|
|
|
|
|
by sam0x17
1648 days ago
|
|
Have you delved at all into the potential for having a true "rust repl"? This is something I have very much wanted for some time, where instead of just recompiling and re-running everything every time, it just compiles the new line and executes it in the memory context of the already running rust program. I'm just not enough of a low level rust hacker to get it working, but imagine the web frameworks and things that could exist with a good REPL for rapid debugging and prototyping in rust. I actually spent a whole summer trying to do this in Crystal and I was very nearly successful, however a few low level limitations got in my way at the end of the day. In Crystal it is actually possible to do this kind of REPL if you have a perfect ability to deep marshal/copy any object, and I almost, almost got that working here: https://github.com/sam0x17/marshal |
|
I've written some on it [0] and there was a recent reddit thread discussing it [1]
[0] https://epage.github.io/blog/2021/09/learning-rust/
[1] https://www.reddit.com/r/rust/comments/rddokp/media_most_up_...