Thread with 16 posts

jump to expanded post

“c is portable assembly” hasn't been true since optimising compilers appeared for it. it's an accurate description for those really simple (usually old) c compilers on the other hand… where for (;;) and while (1) are different and local variables aren't free. old c is so cute

Open thread at this post

so much of c was a good idea, or at least good enough, for its time, but we've been using this poor old language for far too long and i think making optimising compilers for it was really mean to it. society if rust had existed in 1992…

Open thread at this post

@suetanvil this is true, but none of them are necessarily particularly sophisticated: the functions might always map to a label, the data types and variables are no more complex than you can define in an assembler macro, etc

Open thread at this post

@SRAZKVT yeah!! llvm ir is absurdly complicated (don't let someone tell you it's simple, i wish it were, i worked with it professionally and as a hobby for four years), and wasm is i think reasonably simple, but because it has memory sandboxing it's only good for compiling to… wasm

Open thread at this post