5 ms·
I am still curious, had they not gone this route, and avoided the other two routes mentioned, what could they have done to make this process as simple as the re
by giancarlostoro 1y ago
I am still curious, had they not gone this route, and avoided the other two routes mentioned, what could they have done to make this process as simple as the rest of Go tends to be, and nearly as performant? I guess this is an ongoing question to be solved at a future date.
- pjmlp 1y agoIt would be another scenario to use as ammunition for "see you can't implement a language toolchain without using C", usually voiced by folks without background in compiler design, and understanding that most of the time that is a decision that spurs out of convenience and nothing else. Assembly isn't that hard, those of us that grown around 8 bit home computers were writing Z80 and 6502 Assembly aged 10 - 12 years old, while having fun cracking games and setting the roots of Demoscene.
- deleted 1y ago[deleted]
- thechao 1y agoOh. There was a comment to your comment saying that kids learning assembly was easy and — I guess? — implying that adults-learning-assembly is hard. I teach adults assembly on an irregular basis. Adults-learning-assembly is hard because adults are rational animals who (correctly) assume I'm an idiot for insisting on assembly. Once I explain the long-term benefits for our exceedingly specific use case, they pick up assembly in a few hours. Assembly isn't hard. Assembly is annoying because it takes absolutely gobsmacking amounts of assembly to do anything.
- dwattttt 1y ago> it takes absolutely gobsmacking amounts of assembly to do anything. "ever built something big in LEGO? Yeah? Yeah."
- dec0dedab0de 1y agoDo you have anything public on how you get people writing assembly in a few hours?
- pjmlp 1y agoI guess because there is nowadays a misconception that it is harder than it actually is in practice. Exactly, plus one gets to understand what JIT and AOT toolchains are actually generating.
- xmprt 1y agoAssembly is simple because each instruction is very simple. Also, assembly is complex because each instruction is very simple.
- bear8642 1y agoRemember, simple is not the same easy
- moomin 1y agoSee also: go.
- zer00eyz 1y agoWell. Don't try to write "good" go and it becomes easy too. I would rather see clearly defined, readable, documented code that isnt optimal... than good code lacking any of those traits. And good code often isnt clearly defined, it often isn't reader friendly and it often lacks documentation (this bit is fixable but ends up needing a lot more of it). Bad code that works isnt bad.
- eschneider 1y agoLarge Scale Assembly puts a huge premium on planning and design. If you try to just bang things out, you'll live in a world of pain.
- keybored 1y agoTo the deleted sibling comment about children vs. adults: some children are also optimists.
- fragmede 1y agoZ80 on the TI-80 series of calculators for me. The Internet was very young, but there was ticalc.org. Damn, it's still around. I wonder if can log in?
- pstuart 1y agoZ80 and 6502 for me, pre internet, which was a luxury of sorts I wish we all could go back to now and then.
- Steeeve 1y ago> Assembly isn't that hard, those of us that grown around 8 bit home computers were writing Z80 and 6502 Assembly aged 10 - 12 years old, while having fun cracking games and setting the roots of Demoscene. Finally. I found my people.
- spookie 1y agoIsn't Valgrind written in C?
- pjmlp 1y agoYes, but the goal of this is integration, not Rewrite in Go for Valgrind.