this post was submitted on 04 Dec 2024
26 points (86.1% liked)

Programming

17668 readers
179 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

~ Code Crafters Cafe ~

We intend to save human intelligence, to preserve the ability to write code with our own hands and our own brains. Join us now on #codecrafters channel at libera.chat or discord: https://discord.gg/W7CMehj6dd

~ A cozy place in the jungle of the techno world for all programmers who like to create high-quality and effective code from scratch with their own hands. Hobbyists, professionals, beginners, and just curious about how things really work. Handmade, free and open-source software written with a love for engineering and deep knowledge is code crafting. ~

@[email protected]

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 2 weeks ago (1 children)

I always had the idea in mind to one day code something in #C for the #C64. There's #cc65 offering a decent compiler. I always ended up with using #assembler again. That's because on that platform, it is the only way to have "full control": The OS only offers a machine code ABI (jump to routines, pass stuff in registers) and misses lots of things, so you need to program the hardware directly. Of course, I still use an assembler instead of hacking the bytes of the machine code directly.

Any Unix and similar OS comes with a C compiler, and even other systems offer a C API, so for a "modern" environment, that's the natural language to use for that "full control". And remember, C is your "portable assembler". 😏

In a nutshell, if you take "from scratch" literally, it would mean to somehow hack bytes into the machine's memory. That doesn't make much sense. I understand it as "use a simple programming language and avoid these huge frameworks and similar doing deep magical stuff for you".

CC: @[email protected]

[–] nebeker 2 points 2 weeks ago (1 children)

Don’t mind me, I’m just picking the very best grains of sand to make my own silicon, like a real programmer (xkcd).

[–] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago)

Imagine not creating your own universe and going through nucleosysnthesis to create your own silicon. People these days have no sense of craft...