Programming thread

  • 🏰 Deploying update to the Tatarus security page. If you encounter issues, post here.
  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
Learning C and ASM before object oriented languages makes me have perma data brain and it makes me want to do things like have everything use something like ECS under the hood.

What's hilarious is a codegen and a better AI can literally just do that. I had claude do that with Opus. C# and Java.

Java: used the motherfucking Guava test suite and... it works. But I'll never get a CTO to fucking try it and fuck being a maintenance dev for this.
C#: didn't need it nearly as much because C# already does shit like Array of Struct etc. Also it has Span<T> etc.

It's still hilarious to me that we throw object references around and pointer chase when we've known cache locality is the most fucking important thing, ever, and MUH INDICES are easily fixed with Handles (with generations). Sigh.

You can even do fucking trees etc with them. Just make another fucking component that has indices for parent/child.

I'm on the fence about open soresing this shit but loldoxing myself for a programming spat on KF.
 
Learning C and ASM before object oriented languages makes me have perma data brain and it makes me want to do things like have everything use something like ECS under the hood.

What's hilarious is a codegen and a better AI can literally just do that. I had claude do that with Opus. C# and Java.

Java: used the motherfucking Guava test suite and... it works. But I'll never get a CTO to fucking try it and fuck being a maintenance dev for this.
C#: didn't need it nearly as much because C# already does shit like Array of Struct etc. Also it has Span<T> etc.

It's still hilarious to me that we throw object references around and pointer chase when we've known cache locality is the most fucking important thing, ever, and MUH INDICES are easily fixed with Handles (with generations). Sigh.

You can even do fucking trees etc with them. Just make another fucking component that has indices for parent/child.

I'm on the fence about open soresing this shit but loldoxing myself for a programming spat on KF.
you can make a new account on gitgud.io and post it there

for extra OPSEC change variable names and naming convention
 
Every time I see a rust/javascript/golang/flavor of the week program I'm always impressed that they've managed to use more dependencies than there are packages on my entire system.

Then I go back to my embedded C program, one of which has 2 libraries(4 if you count TinyUSB and LWIP embedded in the Pico SDK). and one which has 5, although I'm not using the I2C one right now.

It is funny as even the AI is confused sometimes, I asked it for some debugging help and it's like: Maybe instead of yielding to the main loop you should just do the sleep here and waste those precious milliseconds while we wait for the 1-Wire bus to respond. I mean I have TWO cores, but I don't want to waste time in sleep() when I might have other tasks piling up. Turns out I never actually tested my 1-Wire code and instead of yielding properly I was entering the main loop repeatedly instead of a proper yield to do one loop of the main loop and return to the 1-Wire timing code.
 
Forced to use c99, at the most, sadly. (and such compiler intrinsics aren't permitted in the context I am going for). But good to know anyways.
Newer standard GCC C is a lot of fun, but the portability stuff does hold it back.
I've been using C2Y lately, and I quite like it. The nice thing about C as opposed to C++ is that you can avoid newer features you don't like.
 
Newer standard GCC C is a lot of fun, but the portability stuff does hold it back.
I've been using C2Y lately, and I quite like it. The nice thing about C as opposed to C++ is that you can avoid newer features you don't like.
I was working through Jens Gustedt's Modern C a while ago. Didn't finish it because of life events, but I enjoyed it, and C in general.
 
I don't pronounce it as I don't have anyone to talk to.
Stop! You're getting too relatable. I joke that when I don't have my usual rotation of professors to talk to (like right now, over the summer) that it's time for my "yearly vow of silence." My lowest point was telling one of them that I feel like I'm working towards a future that isn't made for me due to all the AI and Soyware Engineer bullshit my school pushes constantly. I feel a bit bad for subjecting these poor souls to my moments of emotional vulnerability, but it really gets to you sometimes.

I would put you in a room with one of the professors here that I've managed to avoid for my own entertainment. He is a flavor of the week program enthusiast. Last I heard from my friend who took him, expecting to learn something useful, this professor apparently "used AI to show us a dart online IDE and prompted the AI "Write hello world in dart pwetty please :3"

So, I will continue avoiding this professor.

Currently delving into A/D conversion, digital signal processing, and all that for the next group project. Going to make a tool that uses echo hiding to embed binary messages in audio files. If you guys have any related books you'd like to reccommend, or general fun facts, I'd enjoy hearing them.
I get the feeling this is another group project that I'll end up soloing. I'm so fucking sick of group projects. No one has anything interesting to add or wants to do anything. I'm tired of being alone in this major.
 
Every time I see a rust/javascript/golang/flavor of the week program I'm always impressed that they've managed to use more dependencies than there are packages on my entire system.
Golang has a pretty decent library, and often I don't really feel the need to use third-party libraries. So I am not sure how they do it.
 
I don't get when they shortened IIC to I2C, if anything it uses more space and is harder to say.
SPI did it right because you just say "Spy", and then you MOSI over to SCK some MISO SSoup
 
It's a rare skill. Caring about assembly is orthogonal to how most Rust-cucks think these days. Assembly programming will always remind me of my undergrad, where I did basically an entire year's lab work in one session with the help of certain illicit eugeroics. When you're decent at assembly, it comes off as wizardry to most mere mortals.
There's a post I've read in a different thread here I can no longer find, but it says anyone who knows how to program in assembler languages is mentally ill, or something like that, and it cracks me up every time I remember it. :story:

It's funny seeing C language programmers talk about how their language of choice reflects the underlying machine, except in all of those yucky irrelevant ways, without carrying the chain of thought any further. A true hacker hasn't lived until he's fucked up moving a subroutine call around because he forgot to move the instructions setting up the call, optimized a subroutine until its memory or register usages avoided all unnecessary movements across the total program, or a myriad of other things that only happen when writing the individual instructions. I didn't really understand the story of Mel until I started hacking like so, and nowadays a lot of guys who get that low use an assembler language and still won't know what he meant in the story.
bro doesnt have internal monologue SAD
As an internal monologue haver, trying to think without language of any kind is akin to exercising the brain in different ways. While exercising, as an example, I'll usually count in Latin to get in some practice, but trying to count and compare numbers with neither vocalization nor visualization makes for an interesting experience.
Learning C and ASM before object oriented languages makes me have perma data brain and it makes me want to do things like have everything use something like ECS under the hood.
I personally get the same impression from both APL and machine codes: Here are the shapes data take, here are the primitive operations to transform them, figure out which chain works to go from the input shape to the output shape. APL's of course higher-level, but that's regardless how I most often think about it.
 
As I continue to find ways to calm myself that I didn't pass up a life of luxury not doing programming, I see threads like this:

Half the comments are people describing the mental fatigue of programming jobs leaving them unable to do anything once they're home. I had a pretty basic office gig sans the bullying, but even comparing that to my manual labor job now, I got the energy to walk, read and shop within minutes of coming home whereas these soft value office roles just fry your brain.

I once read that what actually tires out humans is making decisions. That's why a holiday in a foreign country got you dead by 1pm while you can mentally sleep through a job you've done hundreds of times.
 
Half the comments are people describing the mental fatigue of programming jobs leaving them unable to do anything once they're home.
Maybe programming is not for them. Or maybe they are not that experienced. Once you get used to that activity, you can do most of it with your brain switched off.
When I feel interested in some programming related subject, I usually have it in me to study it after the job's done.
 
Half the comments are people describing the mental fatigue of programming jobs leaving them unable to do anything once they're home.
Keep in mind that most Redditors are mental midgets. Sure, I get exhausted after hours of hacking, but I doubt they're doing anything novel. Besides, it's fun to relax in bed for just a minute and wake up four hours later.
 
Back
Top Bottom