Remix.run Logo
jcranmer 13 hours ago

This reminds me of the time I was a young, naïve idiot, and decided I would learn GTK by writing some basic app in GTK. In x86 (not x86-64) assembly. Like all of my other project ideas from that era, never went anywhere, and I horribly underappreciated just how complicated things were.

Kudos for actually getting somewhere in their attempt to do this, a further state than I ever managed.

iberator 10 hours ago | parent | next [-]

I currently re-learn ASM by writing my own virtual machine with my own cpu architecture and instruction set. Its FUN :)

I never expected to write programs in pure machine code before, but here I am. Writing my own assembler now :)

Way easier than C++ LOL

I highly recommend it.

5 hours ago | parent | next [-]
[deleted]
mettamage 9 hours ago | parent | prev [-]

How so? I know some of both but not enough to know why C++ is that much more complex.

bitexploder 5 hours ago | parent [-]

C++ is an advanced programming language with a couple decades of features. Assembly is very simple in terms of syntax, requiring an hour to understand the basics. Assembly is simple if you know the processor you are writing against. It can take some time to learn instructions and figure out how to implement familiar programming constructs like loop and logic conditions. The simplicity of assembly comes with a cost: it takes many more lines of assembly to do simple things compared even to C. The lack of abstraction and language features make assembly very simple, but not easy for large programs.

esafak 4 hours ago | parent | prev [-]

When you don't know what you don't know...

In my youth, kids learned assembly to crack games.