Coding 2022-09-02
Okay, so, I'm really not feeling great right now, so I'm going to explain what I tried to do, then I'm going to lie down or something for a while.
I mentioned Crafting Interpreters yesterday, and I decided to pick it back up. Now, I've got a few attempted projects that try to port the first half to other languages. One in Lua that's in a weird state because I left a bunch of the challenge code in, so that's not a great baseline. One in Python that I don't quite remember what I was doing, but I don't want to get back into Python code right now, because I'm on some kind of Quixotic quest for perfection with MOTR.
A quixotic quest for perfection, hm? That sounds like some of the descriptions of Rust. I thought, maybe I could pick Rust back up, and translate the Java code to Rust code.
:)
Max could not.
I don't know whether it's that I'm, uh, rusty with Rust, that it's uniquely annoying to translate from Java to Rust, or just that I'm extremely tired, but currently I'm just not feeling it. At least I know this wasn't anything to do with the borrow checker, because I did not get the code far enough for that to matter.
- In support of "I'm out of practice with Rust"; well, I just... am.
- In support of "The translation is annoying"; so, I guess I should be converting these throws declarations to Results? Maybe? I'm not sure?
- In support of "I'm extremely tired"; I am extremely tired.
There are a few different tacks I can and should take to deal with this:
- Work through a proper Rust tutorial.
- Read the current chapter to the end, developing a plan for translation.
- Potentially, for now use a language I'm more familiar with, like Lua.
- Get some dang sleep.
I know what I should be working on to start with, so I'm going to try to wrap up earlier than usual tonight.
Good night.