4 ms·
Er...depends on why the students want to program, right? I studied assembly and I may be taking for granted the computer science foundations that it gave me, bu
by danso 15y ago
Er...depends on why the students want to program, right? I studied assembly and I may be taking for granted the computer science foundations that it gave me, but it has almost no bearing in what I do in my current day programming. And I had learned C, C++ and Basic before my assembly classes.
Teaching students assembly as their very first language seems akin to teaching students Latin before they can learn French, German, Spanish, etc. Sure, it's helpful and...IF they get pass that first dry session.
- rbanffy 15y agoAn simpke, elegant 8-bit microprocessor is very simple to hold in one's brain. That said, the 8080 and its offspring would never be my choice. I'd suggest the 6502, the 6809 or the 32032 (which is not 8-bit, but very easy to understand)
- twstws 15y agoThere's a big difference between 'simple to hold in your brain' and 'simple to do something useful with'. For someone just starting out programming, the second is arguably much more important. The article mentions Land of Lisp presenting a simple web server in 15 pages of text. What would you be able to explain in 15 pages of text for assembly?
- RodgerTheGreat 15y agoWell, JonesForth manages to explain a self-hosting Forth compiler/interpreter (as well as the language itself) in about 30 pages of assembly, including extensive references and ASCII-art diagrams: http://git.annexia.org/?p=jonesforth.git;a=blob_plain;f=jonesforth.S;hb=66c56998125f3ac265a3a1df9821fd52cfeee8cc http://git.annexia.org/?p=jonesforth.git;a=blob_plain;f=jone... Seems like that should qualify as comparable.
- RodgerTheGreat 15y agoI agree the 6502 would be a nice choice, but I'd be more tempted to go with a modern RISC architecture like MIPS or ARM- MIPS is extremely clean and simple, but it has the additional advantage of being something students are more likely run into in the wild someday.
- orthecreedence 15y agoAgreed. As an electronics hobbyist, learning 6502 was almost stupidly easy (this was with past experience programming x86 assembly). Once I decided to actually implement a motherboard with an 8080 processor, I gave up after a few hours tearing my hair out over the datasheet. The timings are horrid, and the fact that memory locations intersect each other based on seemingly random equations...too complicated. I'm sure given enough time I could have figured it out, but all the external chips needed to deal with memory locations and IO would have been a nightmare.
- tsotha 15y agoI think you really are taking your own knowledge for granted. My sense in working with green programmers over the years is that the ones who never did assembly never have a feel for how everything fits together. They have real trouble understanding implementation details that matter to their day-to-day work. That's not to say you couldn't learn lisp first and assembly later. But that seems like the hard way to me.