3 ms·
Golang seems pretty comfortable from the stuff I've done in it, but it's not as oriented toward prototyping. It's more oriented toward writing code that's long
by kragen 1y ago
Golang seems pretty comfortable from the stuff I've done in it, but it's not as oriented toward prototyping. It's more oriented toward writing code that's long-term maintainable even if that makes it more verbose, which is bad for throwaway code. And it's not clear how you'd use Golang to do the kind of open-ended exploration you can do in a Jupyter notebook, for example. How would you load new code into a Golang program that's already running?
Admittedly Python is not great at this either (reload has interacted buggily with isinstance since the beginning), but it does attempt it.
- bravesoul2 1y agoThere are live reload utilities for Go but yeah it comes down to recompiling and restarting - which is quick but any state is gone. I agree its not a rapid prototyping kind of language. AI assistance can help though.
- oblio 1y agoCan you load new code into a Node.js program that's running?
- rvnx 1y ago`eval()` to run new code and `delete require.cache` (to reload a module)