The Crystal Programming Language Forum

Hot code reloading

Would it be possible for Crystal to add hot code reloading and if so are there any plans?

I just saw that nim and vlang support hot code reloading

https://nim-lang.org/docs/hcr.html
https://vlang.io/docs#hot

5 Likes

Basically not “at present” (unaware of any efforts to incorporate it at this point), but you might be able to find a dynamic template engine somewhere… [any come to mind?]

I have seen some people set this up in C. It would be awesome to do that here.

examples?

The best code I saw for this is not on github but here is a live coding video of how to do it.

Here is an extraction of the idea in the video. I have not really run it though.