News for hackers. Stuff that matters.
Re:8-Bit Scheme: What if the C64 was a Lisp Machine? by SwellJoe on Sunday May 27, 2012 @04:05AM (#4029611)
This sounds like superstition, borne of lack of experience with C.

I'm not saying assembly isn't interesting, or worth learning (to some degree). I spent quite a bit of my youth poking at 6510 and 68000 assembly (C64 and Amiga, respectively). But, I don't think it was more enlightening than my first few weeks with K&R, which were eye-opening on a whole other level. It's just misses the point to say C has oddities or whatever; maybe just say that learning a little assembly can be fun and useful, and leave it at that.

Re:8-Bit Scheme: What if the C64 was a Lisp Machine? by Retric on Sunday May 27, 2012 @10:38AM (#4030160)
It's not that hard to find cases in C where x=a+b; y=c+d; is slower than x=a+b; y=c+d;. What that happens has very little to do with C you really do need to dig down a level to understand what's going on. That said, the C compiler was optimized for a range of diffrent CPU's all with their own preferences so it will swap some instructions around to help you along, but it's not prefect which is IMO some of the oddities's associated with C.

68000 assembly is vary different from x86-64. x86-64 has a huge instruction set with a lot of legacy crap, multiple execution units even on a single core chip, does out of order instructions etc. Just poke around http://sandpile.org/ for a few minutes and you will probably learn something new. Then read up on L1 cache which is a vary strange beast that's fast etc.