Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-06-01 Thread cblake
Yeah.. that came up in a private conversation as the easiest next step for global "workspaces" like the R repl has. There' s still perhaps some trickiness if any objects contain pointers to other objects since pointers are not "fat" (or encoded as offsets to some base address to be "re-linked at

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-31 Thread stisa
> Does the stdlib HCR work at all? I tested the program in the docs (making > sure that the logic was in a separate file), and on 2.0.2 and 2.0.4 it > produced bad codegen. On 1.16.14 it compiled, but it didn't actually work. Yeah it used to kind of work before 2.0 (but crashed even just printin

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-31 Thread termer
Does the stdlib HCR work at all? I tested the program in the [docs](https://nim-lang.org/docs/hcr.html) (making sure that the logic was in a separate file), and on 2.0.2 and 2.0.4 it produced bad codegen. On 1.16.14 it compiled, but it didn't actually work.

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-30 Thread Niminem
Thank you for the suggestion as well @cblake. This is quite the homework!

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-30 Thread Niminem
Thank you for the suggestion that makes better sense now

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-30 Thread cblake
@Niminem \- I have done the `std/memfiles` thing a lot to avoid "recalculating The World" only because your process exited. >1 value is not hard and you're already close. is really a generic data layer ("like CSV but running off **_live_** mmaps because, once you

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-30 Thread enthus1ast
You could write an object with `system.copyMem` but then you would have an issue with non shallow datatypes (like strings), so i think the best would be to serialize your data first. For example with

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-29 Thread Niminem
I found for supporting shared memory and have a basic example working where I'm writing an integer into the file and loading it during another run. That works. But how the hell do I store and access multiple variables using this library? Documentation i

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-28 Thread Niminem
The only issue I have with inim is that it recompiles everything each time a command is sent. If you're using any randomization in your variables, you'll get different variables everytime you have a new input. Booo

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-28 Thread Niminem
Unfortunately not, I haven't put a saving functionality in yet. You can clone the repo and check it out for yourself though. Only two cells are avaible to run but.. it works!

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-28 Thread Niminem
Thanks Araq, looks like it'll have to be HCR for now. For the life of me I couldn't get arraymancer to work with `nim secret` and deep learning stuff was originally what I intended on making the notebook IDE for. As for your recommendation, I'll definitely head in that direction at a later time

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-28 Thread Lecale
This project looks fun, do you have any example notebooks?

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-27 Thread Clonk
AS a REPL `inim` is quite good

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-27 Thread Hlaaftana
`nim js` is pretty fast, enough to use for a normal REPL or scripting purposes, though it's not exactly a substitute for all the C bindings.

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-27 Thread Araq
There is a patch for enabling the FFI with Nim's VM or you can use hot-code-reloading. I think neither approaches are that good, I encourage you to look into solutions that patch Nim's allocator to be support "shared" memory and patch the C(++) codegen so that globals are accessed via an indirec

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-26 Thread alexeypetrushin
+1, and would be even better if REPL worked in compiled-to-JS too, so you have pure one page interactive Nim calculations.

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2021-09-26 Thread Niminem
What's up guys, I've been playing around with the concept of a Jupyter-Notebook like Nim IDE for a while. I call it [Nim Notebook](https://github.com/Niminem/NimNotebook/) So far I've experimented with `nim secret` (currently the best, and the default), `inim`, and various implementations of em