INim icon indicating copy to clipboard operation
INim copied to clipboard

Use Hot Code Reloading?

Open 0atman opened this issue 4 years ago • 5 comments

Like https://youtu.be/7WgCt0Wooeo

0atman avatar Apr 15 '20 05:04 0atman

Yeah, super keen for that. When I last had a look it only supported the JS backend, but now we can do much much more

Tangdongle avatar Apr 15 '20 05:04 Tangdongle

Works on the C backend too, apparently! https://nim-lang.org/docs/hcr.html

0atman avatar May 20 '20 09:05 0atman

oh, using a repl with hcr, you can create something similar to the Pharo / Glamorous Toolkit (Smalltalk) experience.

gavr123456789 avatar Apr 11 '21 20:04 gavr123456789

@gavr123456789 oh amazing! There are Nim bindings for Jupyter notebooks, try https://github.com/stisa/jupyternim which HAS hot code reloading! Very impressive, we could learn a lot from this project.

0atman avatar Apr 12 '21 07:04 0atman

yes, it is difficult to imagine something similar to Pharo can be implemented in a statically typed compiled language.
By the way, Nim and Smalltalk have a lot in common, oddly enough.
Here is an interesting series of articles:
http://goran.krampe.se/2014/10/29/nim-and-oo/
http://goran.krampe.se/2014/10/31/nim-and-oo-part-ii/
http://goran.krampe.se/2014/10/31/nim-and-oo-part-iii/
http://goran.krampe.se/2014/11/03/squeak-to-nim/
http://goran.krampe.se/2014/11/30/nim-and-oo-part-iv/

gavr123456789 avatar Apr 12 '21 22:04 gavr123456789