Live data from Hacker News

Reloadr – Hot code reloading tool for Python

github.com

1–10 of 58 posts

Re: Reloadr – Hot code reloading tool for Python

#2
I stumbled upon this because there seems to be a FOSDEM talk which talks about it: https://fosdem.org/2021/schedule/event/python_reloading/

(https://news.ycombinator.com/item?id=26034851)

I wonder if this is used seriously by someone.

I always thought that this has a potential to greatly improve the development productivity.

I remember I saw live coding videos from Notch (Minecraft) on some gamejam where he intensively used hot code reloading for Java. About 90% of his development time, he had the game running, and tuned the logic of some game elements live, and immediately saw the result.

I know that Erlang also has such a feature, such that you don't need to shut down your production system, and that you can update it live while it keeps running.

Re: Reloadr – Hot code reloading tool for Python

#4
Having a hot reloaded set up for both my django (It's built in) environment and Web app environment is such a force multiplier.

It's not about simply saving time doing it manually. It fundamentally changes my dev-test/experiment workflow.

I love being able to tab to a server file, make a change, tab to a client file, make another change, and instantly test it in a browser.

Re: Reloadr – Hot code reloading tool for Python

#6
post #3

What are some simple use cases for this?

Not a user of Reloadr, but hot code reloading is a big thing on my Java development process. There are servers and use cases that take a long time to start or setup, and having the possibility to debug -> edit code -> re-execute a specific method using the same context goes a long way.

For production usage, maybe that wouldn't be considered safe, but there are companies that provide services with this purpose (e.g. JRebel).

Re: Reloadr – Hot code reloading tool for Python

#7
post #3

What are some simple use cases for this?

Well, the main benefit is going to be for complex things where you don't want to restart a large program in order to test a small change, but in terms of simple things, programs with event loops (like games or interactive tools) are a good candidate.

Re: Reloadr – Hot code reloading tool for Python

#9

Having a hot reloaded set up for both my django (It's built in) environment and Web app environment is such a force multiplier. It's not about simply saving time doing it manually. It fundamentally changes my dev-test/experiment workflow. I love being able to tab to a server file, make a change, tab to a client file, make another change, and instantly test it in a browser.

Have you tried PHP? :)

I jest, but really I feel like we've made things so complicated it just gets in our way. Our Javascript pipeline is huge, complicated, and requires you to sit down and wrap your head around it every time you want to modify it.

If I get to greenfield another project, it's going to be so bloody simple.

Post reply on HN