this post was submitted on 12 Feb 2025
71 points (93.8% liked)

ProgrammingCircleJerk

59 readers
84 users here now

Programming CircleJerkCommunity at request of a user.

founded 2 weeks ago
MODERATORS
all 38 comments
sorted by: hot top controversial new old
[–] Zannsolo@lemmy.world 6 points 6 days ago

I had a professor with legit old school experience and patents to his name teach my architecture class. for his first semester teaching decided f the book I'll write my own 8 bit computer on the white board with terrible handwriting.

[–] RubberElectrons@lemmy.world 4 points 6 days ago* (last edited 6 days ago)

I taught myself both NASM & C, on the one hand useful for understanding what's under the hood, but on the other.. the fuck is this guy talking about?

Do I write code better than a full time professional? Hell no, I think even some basic python stuff runs faster than my code. And I'm ok with that.

It's ok to not know how everything works. Better if you do, but c'mon.

[–] ZILtoid1991@lemmy.world 3 points 6 days ago

The issue isn't that its not hiding them, but

  • the janky nature of the language that made sense on mainframes with limited memory, but no longer needed,
  • manual memory management, which is extremely troubling with multi-threaded applications (get ready for deallocation before another thread finishes its job)
[–] CarbonatedPastaSauce@lemmy.world 49 points 1 week ago (1 children)

If you don’t know which path the electrons are taking on the silicon wafer, you’re a bad engineer.

[–] crmsnbleyd@sopuli.xyz 10 points 1 week ago (1 children)

in my quantum computer they take all the paths at once

[–] DragonTypeWyvern@midwest.social 8 points 1 week ago (1 children)
[–] sukhmel@programming.dev 7 points 1 week ago

Let's take a look

[–] bjorney@lemmy.ca 48 points 1 week ago (2 children)

I've only ever heard this non-ironically from these types

[–] sus@programming.dev 12 points 6 days ago

Hey, that's unfair! As long as you don't make silly beginner mistakes like using the standard library's string implementation, the standard library's regex implementation, the standard library's hash table implementation, or standard io, C++ is almost always faster than python!

[–] lurch@sh.itjust.works 9 points 1 week ago (1 children)

It crashes ten times faster 😅

[–] ICastFist@programming.dev 5 points 1 week ago

Compiling does take its sweet time, tho

[–] iii@mander.xyz 31 points 1 week ago (3 children)

Assembly gang unite against C-wannabees 🔥🔥

[–] prime_number_314159@lemmy.world 14 points 1 week ago (3 children)

Unless you're analyzing what microcode is doing with it, assembly is just hiding how things really work, too. Good engineers use early 1990s computers so that they can fully understand what's going on, and never have to trust anyone else to correctly do anything.

[–] Ajen@sh.itjust.works 7 points 1 week ago* (last edited 1 week ago)

Real engineers run all their code on CPUs they designed in verilog/VHDL.

[–] earphone843@sh.itjust.works 3 points 1 week ago (1 children)

Real engineers use binary.

[–] bitcrafter@programming.dev 1 points 1 week ago

If by "real engineers" you mean the posers who do not work directly with the underlying analog waveforms that approximate digital logic, then I suppose you have a point.

[–] jet@hackertalks.com 2 points 1 week ago

Lots of truth to this, lots of great eastern block engineers came from working with super janky computers that demanded high levels of mastery from their users.

[–] onlinepersona@programming.dev 8 points 1 week ago (1 children)

VHDL gang unite against the assembly-wannabees 🐝 🐝 🐝

Anti Commercial-AI license

[–] jet@hackertalks.com 3 points 1 week ago

Verilog for life!

[–] Zannsolo@lemmy.world 5 points 1 week ago (1 children)

If you're not programming on punch cards you're a filthy casual

[–] FizzyOrange@programming.dev 1 points 6 days ago

I did an engineering degree at Cambridge in the 2000s and the computing module had us assemble some assembly for some ancient CPU by hand - looking up opcodes in a table in a book - and then type the opcodes into a microcontroller via a 10 digit keypad. No screen or anything. Insane.

If that isn't enough to put anyone off programming then I don't know what is...

[–] owenfromcanada@lemmy.world 23 points 1 week ago
[–] bigboismith@lemmy.world 20 points 1 week ago (3 children)

There is a point to be made that C is the foundation to all other languages, and thus being able to write C let's you better understand how other C based languages (which is basically all of them) work.

I personally believe that in a academic sense, C should be your first language. However in a non-professional hobby context start with whatever you feel like.

[–] baddison@programming.dev 1 points 1 day ago

I mean the main and ultimate penultimate usecase for C it's impetus for existing is writing UNIX and why the man pages got the details for stuff like sys.h and w/e else with the system calls in it so wen the kernel is online one can put in the address of where uname is in the asm code instead of the whole pleb #include <uname.h>

People make it seem like a bunch of kids working at Bell Labs at a time when a sheet of blotter paper the size of a movie poster but made of LSD costed $40 omggggg

Like the reason why in 2025 the operating system called MacOS is still mostly objective-c code from 1985 and the reason why for the duration of your career you've had to type NSObject repeatedly, on a Macintosh is the truth about computer science is that for the most part people are stupid, lazy, lack any kind of imagination, original thinking, or anything that resembles passion for digital computers (ie let's use C for everything full well knowing anything without an AT&T copyright in the header is out of band)

  • 30 -
[–] FizzyOrange@programming.dev 4 points 6 days ago

There is a point to be made that C is the foundation to all other languages

No it isn't. Go for example. Or Lisp in some cases.

[–] crmsnbleyd@sopuli.xyz 6 points 1 week ago

I was never able to properly render a div in react before tasting my first segfault in c

[–] Ajen@sh.itjust.works 20 points 1 week ago* (last edited 1 week ago) (2 children)

To be fair, if you have an engineering degree that covered programming you probably learned C, ASM, and low level details about system architecture. But the definition of "engineer" seems a little looser when you're taking about IT compared to some other fields - SWE is the only "engineering" title you can get without a formal education, AFAIK.

[–] jet@hackertalks.com 3 points 1 week ago* (last edited 1 week ago) (2 children)

EECS, you gotta know all the way down to electron flow!

I love to gift TIS-100 to anyone who tells me they want to be a programmer. So far it's been a great measure of success, if they actually play and complete it (observed via steam achievements)

[–] JoeBigelow@lemmy.ca 3 points 1 week ago

I wanna be a programmer!

[–] ICastFist@programming.dev 1 points 1 week ago (1 children)

How close is it to actual assembly from an existing CPU?

[–] sukhmel@programming.dev 3 points 1 week ago* (last edited 1 week ago)

Far, but being a programmer is usually not about using assembly anymore

Edit: to elaborate a bit, TIS-100 has an overcomplicated architecture but oversimplified command set, and restricts the coder way more than the real assembly (e.g. you have a limit on line length of 12 chars or somewhat close, and that includes the opcode itself). Imo these design decisions allow it to be interesting and simple enough to comprehend, but severely limits what can be implemented on that architecture in reality without requiring for lots of boilerplate

[–] DragonTypeWyvern@midwest.social 14 points 1 week ago

runs a business selling C training

[–] southsamurai@sh.itjust.works 10 points 1 week ago (1 children)

As someone who has not written a line of code since basic was cutting edge, I hereby throw the entire weight of my expertise behind the supremacy of C

[–] disguy_ovahea@lemmy.world 13 points 1 week ago* (last edited 1 week ago)

Memories. I remember copying my first BASIC code from a magazine. All it did was display a solid color on the monitor when you pressed any key. Back then my only resources were magazines and the video rental/computer shop owner that loved answering all of my questions. I’m pretty sure he could’ve sold his ponytail to Exxon for a hefty sum, but he still smelled better than the internet does now. Lol

[–] Thcdenton@lemmy.world 9 points 1 week ago

Ah Linkedin

Lay off me! I'm still trying to learn 6502 assembly.

[–] onlinepersona@programming.dev 6 points 1 week ago