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

NIM IDE

2021-11-01 Thread saem
An LSP can do pretty much anything an extension can with little to no fidelity difference. The difficulty in implementation is another matter, I've wasted a lot of cycles on trying to improve the LSP but it's a pain to get a productive test setup going and even if you do the inability to kill t

NIM IDE

2021-10-29 Thread quantimnot
You're probably right. I was using the Saem nim vscode extension, because I had wanted to add some features and the typescript was't getting frequently updated and I wanted to work with nim. @Saem lists "Extract most functionality into an LSP (check existing one)" on the readme. So there is des

NIM IDE

2021-10-29 Thread giaco
Why spending on this or that extension when improving would make most IDEs compatible with Nim?

NIM IDE

2021-10-28 Thread Yardanico
I don't get your point - install count (or download count) almost never correlates with software quality, it rather shows software popularity, and kosz extension has 48k installs because it has been around for much longer. Nowadays it's not maintained while the saem extension is, so it actually

NIM IDE

2021-10-28 Thread SunnyCorleone
The typescript VS Code Nim plugin has 48k installs vs 3k for the saem Nim version. Are you recommending that people use the Nim version because its better, or because you hope it becomes better in the future with support?

NIM IDE

2021-10-28 Thread DIzer
If you so like PyCharm perhaps you will stick with the Nim plugin for it (from Intelli JDEA creators)

NIM IDE

2021-10-27 Thread miran
> Should the "Nim basics tutorial" on the official docs site be updated? Yes. I've pushed the updated version.

NIM IDE

2021-10-27 Thread quantimnot
I don't think that is an "official" tutorial, but go ahead and make a pr or issue for it:

NIM IDE

2021-10-27 Thread evoalg
Should the "Nim basics tutorial" on the official docs site be updated? ... as the installation section points new users (who want to use vscode) to the kosz extension rather than the saem one - /

NIM IDE

2021-10-27 Thread quantimnot
Yeah, thank you for pointing that out. I do use that when I use gdb. I guess the thing I was missing was pretty printing objects, but I see that is actually in there. It's just commented out. FYI for anyone: There is also

NIM IDE

2021-10-26 Thread Araq
> Trust me when I say: it's better to spend time perfecting a VS Code extension > rather than a standalone IDE. I wrote "NimEdit" and have to agree. However, I'm still proud of how far I got with what is basically `drawText` and `putPixel`. :-)

NIM IDE

2021-10-26 Thread quantimnot
There are two Nim extensions for VSCode. One written in typescript and not frequently updated, and one written in Nim with frequent updates. I highly recommend using and contributing to the pure Nim one: . You can also use the codelldb plugin for debugging. T

NIM IDE

2021-10-26 Thread Yardanico
We do have a GDB pretty-printer though -

NIM IDE

2021-10-26 Thread juancarlospaco
* Last commit yesterday

NIM IDE

2021-10-26 Thread dsrw
According to VSCode is used by > 70% of developers, so a good VSCode plugin seems like the best way to attract new users. Fortunately we already have that. There's also

NIM IDE

2021-10-26 Thread ynfle
What are you looking for in an IDE?

NIM IDE

2021-10-26 Thread treeform
As a person who made and used my own editor for many years, I agree with @dom96.

NIM IDE

2021-10-26 Thread SolitudeSF
> So any opinion about that? useless

NIM IDE

2021-10-26 Thread dom96
Nim used to have its own IDE, Aporia: . Trust me when I say: it's better to spend time perfecting a VS Code extension rather than a standalone IDE.

NIM IDE

2021-10-26 Thread robb1e
that would be time and resource expensive and could lead the developer team attention away from nim development, maybe a community solution would be good, if i'm not wrong a nim ide similar to vim already exists

NIM IDE

2021-10-26 Thread Pumpus
Hi Nim guys! In my opinion NIM is one of the best language around. Point. It should have its own IDE. Commercial solution like Embarcadero Delphi offers a free community edition. Also R Studio offers a free edition for R. Are project like Aporia and similar still in development? I write this j

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 imp