by SilasX · 6y ago · 0 comments
With that said ...
1) They respectfully ask that you not share your solutions, so as to ensure others have to figure it out or ask for help in the forums.
2) Why share the assembler specifically? That's probably the least difficult or interesting project, as it's mostly just translating the mnemonics to binary.
3) Holy code duplication! [A] Surely Rust allows you to break off a simpler structure that just represents the mapping from assembly to binary, and then you can have one loop that does the insert/to-owned on each element?
[A] https://github.com/tamuhey/hack-assembler-rust/blob/master/s...
While I agree that posting this publicly is less than appreciated, he is VERY enthusiastic about seeing implementations in interesting programming languages, as far as I can remember from my class (last year). I sent him a link to the original repo, which will now be dead.
Would you be interested in forwarding a private link of some sort? I could forward it over.