Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



There 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.


Can you load new code into a Node.js program that's running?


`eval()` to run new code and `delete require.cache` (to reload a module)


Hmmm... Can you eval entire files?


That's essentially what browsers do.


This is a question about the details of the Lua interpretation, for which it is not relevant what browsers do, because they do not use Lua.


Yes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: