Reddit Programming
201 subscribers
1.22K photos
126K links
I will send you newest post from subreddit /r/programming
Download Telegram
Race conditions in generated code (tested across 10 models, 5 runs)
https://www.reddit.com/r/programming/comments/1rsx3bo/race_conditions_in_generated_code_tested_across/

<!-- SC_OFF -->Most of the web apps I've reviewed over the last year have had race conditions around the LLM requests. I ran a test and found it was systematic. Ten of the most popular LLMs used for coding produce the same race condition by default. They can all resolve the issue if prompted. Here's a full write-up and a link to a Jupyter Notebook if you want to verify. <!-- SC_ON --> submitted by /u/Apprehensive-Put-822 (https://www.reddit.com/user/Apprehensive-Put-822)
[link] (https://forward.deployed.agency/blog/check-call-deduct) [comments] (https://www.reddit.com/r/programming/comments/1rsx3bo/race_conditions_in_generated_code_tested_across/)
Jerry Lawson Doodle is Turing-Complete
https://www.reddit.com/r/programming/comments/1rt1oft/jerry_lawson_doodle_is_turingcomplete/

<!-- SC_OFF -->This system actually fulfills all of the Turing-completeness requirements. -It has an unbounded memory system (i.e. the infinite level editor)
-It has conditional branching in the form of portals
-It can loop arbitrarily (if you program it right)
-It can store memory and read it whenever needed in the form of pushable blocks. In this full adder, a 0 means collecting the key with the Jerry on the left and making the right Jerry fall, while a 1 means making the Jerry on the left go through the portal, allowing the right Jerry to go to the portal on the right. If you input a 0, walk left until the left Jerry pops out. If you input a 1, walk right and jump (jumping isn't necessary to enter the portal as the right Jerry) For the sum and carry blocks, left=0, right=1. Enter the portal whose number is 1 more than the one you came out of in the carry block section. A NAND gate is easily constructible if you put 2 keys and 2 locks instead. <!-- SC_ON --> submitted by /u/TeamReamy2 (https://www.reddit.com/user/TeamReamy2)
[link] (https://share.google/BlMKq4FQPCy5a0Ss7) [comments] (https://www.reddit.com/r/programming/comments/1rt1oft/jerry_lawson_doodle_is_turingcomplete/)
Microservices: Shackles on your feet
https://www.reddit.com/r/programming/comments/1rtgjvz/microservices_shackles_on_your_feet/

<!-- SC_OFF -->You don't need microservices. You need better module boundaries. Split only when teams are truly independent, scaling needs are night-and-day different, or your headcount is pushing 150+. Before any of that — fix the code, draw real boundaries inside the monolith, set up tracing. Microservices don't fix a messy codebase. They just spread it across the network and make it someone else's 3 AM problem. When you do split, use a strangler fig. Not a rewrite. Never a rewrite. <!-- SC_ON --> submitted by /u/Itchy-Warthog8260 (https://www.reddit.com/user/Itchy-Warthog8260)
[link] (https://howtocenterdiv.com/beyond-the-div/microservices-shackles-on-your-feet) [comments] (https://www.reddit.com/r/programming/comments/1rtgjvz/microservices_shackles_on_your_feet/)
Internet of Things might be the worst terminology in tech
https://www.reddit.com/r/programming/comments/1ru5mcr/internet_of_things_might_be_the_worst_terminology/

<!-- SC_OFF -->“IoT” might be the most useless piece of terminology in tech. What does that phrase even mean? “Things.” If someone says they work on an Internet of Things platform, it could mean: sensors embedded devices telemetry pipelines smart home gadgets Instead we somehow ended up with a phrase that sounds like it came out of a 2012 venture capital pitch deck. Let’s stop calling everything “IoT” and just describe the system or use literally any other name. Your thermostat sending data somewhere is not “the Internet of Things.” It’s a temperature sensor with a network connection. “Internet of Things” is just what happens when marketing discovers embedded systems.” <!-- SC_ON --> submitted by /u/BringtheBacon (https://www.reddit.com/user/BringtheBacon)
[link] (https://c.org/pTm8rRW27Y) [comments] (https://www.reddit.com/r/programming/comments/1ru5mcr/internet_of_things_might_be_the_worst_terminology/)