News for hackers. Stuff that matters.
Re:Nand2Tetris Hack assembler implemented in Rust by SilasX on Thursday June 04, 2020 @09:16AM (#23416146)
As always, I can't recommend this course enough, it's a really enlightening dive through the layers that make up a computer, and I presented about my experience with it at a Python meetup.

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...

Re:Nand2Tetris Hack assembler implemented in Rust by tamuhey on Thursday June 04, 2020 @10:58AM (#23417449)
I followed your advice and closed my repo.
Re:Nand2Tetris Hack assembler implemented in Rust by tomgs on Thursday June 04, 2020 @11:52AM (#23418224)
I was also a student of Prof. Schocken's in person, as well as part of the tech crew for a non-profit coding bootcamp he set up[0].

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.

[0] https://wecode.org.il/

Re:Nand2Tetris Hack assembler implemented in Rust by tamuhey on Thursday June 04, 2020 @12:02PM (#23418352)
I'm very interested about your idea. If he approves, I'll make the repository public again. If there is a better way to share my code with him, please let me know.
Re:Nand2Tetris Hack assembler implemented in Rust by tomgs on Thursday June 04, 2020 @12:32PM (#23418720)
Sent him an email. Let's see what he says.
Re:Nand2Tetris Hack assembler implemented in Rust by tomgs on Thursday June 04, 2020 @01:23PM (#23419275)
He's indeed interested in seeing your implementation - how can he reach you without disclosing his private address here?
Re:Nand2Tetris Hack assembler implemented in Rust by tamuhey on Thursday June 04, 2020 @01:36PM (#23419435)
Thanks! My email address is written in my github profile page: https://github.com/tamuhey Please tell him the address.
Re:Nand2Tetris Hack assembler implemented in Rust by tomgs on Thursday June 04, 2020 @01:49PM (#23419582)
Oh! Sweet. Actually only saw the LinkedIn and sent you a request there. Will also send an email.