=== ANCHOR POEM === ═════════════════════════════════════════════────────────────────────────────────── So you're telling me the speed difference between Python and C is due not to the logic that the programmer uses, but rather the optimization capabilities of the compiler? (An interpreter includes a compiler, it just runs it in a loop rather than a single pass) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘ === SIMILARITY RANKED === --- #1 fediverse/5179 --- ═══════════════════════════════════════════════════════════════════──────────────── why don't corporations let you write code in whatever language you want? it's trivial to run a compiler or interpreter inside of another program. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════════════════════════───────────────┘ --- #2 fediverse/3800 --- ═════════════════════════════════════════════════════════────────────────────────── @user-1352 You're absolutely right, the compiler knows better than me! Certainly the compiler doesn't know best, but certainly the compiler knows better than me. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘ --- #3 messages/972 --- ═════════════════════════════════════════════════════════════════════════────────── vibecoders write detailed instructions. "A for loop which iterates through all of the elements" and not "a package manager that stores all of it's instants" ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════════════════════════════════─────────┘ --- #4 fediverse/617 --- ═════════════════════════════════════════════────────────────────────────────────── So much of computing is just... handling the quirks of hardware and presenting it to the user (programmer) in a way that is sane and makes sense, instead of the arcane and [nebulous/confabulous/incomprehensible] way that physical nature demands our absurdly potentialized computational endeavors be. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘ --- #5 fediverse/1034 --- ═══════════════════════════════════════════════──────────────────────────────────── @user-192 be careful, recursion can cause stack overflows. better to run function pointers from a loop. That way you can operate as long as necessary. Just make sure you don't get in an infinite loop... ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘ --- #6 fediverse/1723 --- ════════════════════════════════════════════════════─────────────────────────────── @user-1037 Lua with 0 based indexing would be the perfect language (okay maybe LuaJIT) (i try to hurt as few people as I can as little as I can but it's impossible to not hurt anyone) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═════════════════════════════════════════════──────────────────────────────┘ --- #7 fediverse/6438 --- ══════════════════════════════════════════════════════════════════════════════───── why would you gatekeep content by keeping us from easily using LLMs some people aren't technical and still need to write computer programs because that's how you enlighten a people is empower them with new tools "I've never heard of that programming language, but luckily I can fit all of it's documentation in my context window." ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════════════════════════════════════────┘ --- #8 fediverse_boost/4925 --- ◀─╔══════════════════════════[BOOST]═══════════════════════════──────────────────╗ ║ ┌────────────────────────────────────────────────────────────────────────────┐ ║ ║ │ still waiting to find the energy and headspace to write an irritated blog post about why the fact that most toolchains are like 80% of the learning curve for those who are just getting into programming (especially on windows) │ ║ ║ └────────────────────────────────────────────────────────────────────────────┘ ║ ╠─────────┐ ┌───────────╣ ║ similar │ chronological │ different ║ ╚═════════╧══════════════════════════════════════════════════──────────┴───────╝─▶ --- #9 fediverse/4084 --- ═══════════════════════════════════════════════════════════──────────────────────── ┌──────────────────────┐ │ CW: re: -mentioned │ └──────────────────────┘ @user-1074 the more you try, the more you have to calculate, which is a problem, because endlessly recursive calculations create infinite loops, which frankly are impossible to compute because they defy computation! Not good, not ideal, no thank you, not for me, no thanks, not what I'd like. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘ --- #10 fediverse/2638 --- ══════════════════════════════════════════════════════───────────────────────────── I really do believe that you can write any computer program you'd like with a combination of Lua, Bash, and C. Bash to start the program and enable updates / configuration, Lua to handle the scripting and ordering of events, and C (or Rust) to execute performance intensive sections. (often in their own threads) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘ --- #11 messages/181 --- ══════════════════════════════════════════════───────────────────────────────────── I know you don't want to hear this, but there is a chance that there will come a time where your life depends on your ability to debug a computer without the internet. To set up an SSH server. To install Linux. To program in C. To do something else that I'm not prepared for... If StackOverflow didn't exist because network connectivity has been lost, could you remember syntax? Maybe it's a good idea to set up a local LLM that can answer basic questions about technology. Maybe it's a good idea to set up on your parents computer, just in case you have to hide out there for a couple months. Maybe it's a good idea to download wikipedia, just in case. If I need to use a mac, I'm screwed ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘ --- #12 fediverse/4296 --- ═══════════════════════════════════════════════════════════──────────────────────── @user-1655 why don't we just weaponize email and send json to each other that ends up parsed, interpreted, and presented on the end-user's computer using whatever client we want? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘ --- #13 fediverse/4900 --- ════════════════════════════════════════════════════════════════─────────────────── if you wanna trick systems administrators just put a bunch of sleeps in your code so your computer programs don't use up all the mainframe's resources all at once [statements dreamed up by the practically deranged] ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═════════════════════════════════════════════════════════──────────────────┘ --- #14 fediverse/1233 --- ═══════════════════════════════════════════════──────────────────────────────────── low key kinda wish someone would kidnap me and lock me in a room with nothing but a c compiler and strict orders to only work on whatever I want ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘ --- #15 fediverse/2922 --- ══════════════════════════════════════════════════════───────────────────────────── @user-192 now I want to re-implement strings as structs in C! I don't know why I never thought of them that way. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘ --- #16 fediverse/879 --- ══════════════════════════════════════════════───────────────────────────────────── @user-501 also it's only undefined behavior because the order of the bits aren't defined, so if you do bitfield "pointer arithmetic" then you're screwed if you try and be portable with it. However if you're just using bitfields as compressed data storage then you can safely access integer.a integer.b integer.c etc safely and easily. The compiler doesn't care what order they're in if you don't write logic that requires them to be in a certain order ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘ --- #17 fediverse/1246 --- ═══════════════════════════════════════════════──────────────────────────────────── @user-883 hehe if I don't understand how it works it's difficult for me to use things. My Linux friends get so exasperated with me because I'm like "cool script gimme like 2 days to figure it out" and they're like "bro just use these flags" and I'm like "no" ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘ --- #18 fediverse/498 --- ═════════════════════════════════════════════────────────────────────────────────── Wikipedia would make a lot more sense to me if they included pictures next to the names of every proper noun so that my pictorally oriented primate brain might pattern match meaning onto the visual understandings gleaned from the perceptual conceiving which were arrayed within and alongside the textual information presented to me. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘ --- #19 fediverse/1614 --- ════════════════════════════════════════════════════─────────────────────────────── wondering if anyone's ever made a computer that could only run programs written in interpreted languages. Like, no binaries allowed. Would probably be slower, but if my iphone is good enough for NASA to get to the moon then odds are it's good enough for me. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═════════════════════════════════════════════──────────────────────────────┘ --- #20 fediverse/777 --- ══════════════════════════════════════════════───────────────────────────────────── @user-192 Those are good points. The C in our hearts is elegant, but the C that runs on every computer in the world is spaghetti. I'm sure someone's made a language that's "C but simple" - Zig maybe? I looked into V a while back but got turned off of both of them because neither had support for multithreading, which is essential in the modern era. Also, typedefs for structs make me mad -.- ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘ |