6 ms·
Erlang has had Hot-code swapping for decades
by qaq 4y ago
Erlang has had Hot-code swapping for decades
- brabel 4y agoDart is one of the only compiled languages that also does that (see Flutter).
- freilanzer 4y agoCommon Lisp as well.
- pjmlp 4y agoIf we ignore Java, .NET, Common Lisp and C++.
- brabel 4y agoThose are not compiled to native code (C++ has hot swapping?), which is the obvious meaning of hot-swapping we're discussing here.
- pjmlp 4y agoThey surely are,you apparently aren't aware of the available toolchains for such purpose. Plenty of coments of mine where I list what exists since their early days. Yes, C++ compilers like Visual C++ support it. Or Unreal tooling like Live++.
- brabel 4y agoBut you claim Java can hot swap... I happen to know all about hot-swapping in Java, and it's only good for very simple debugging reloads... not at all at the same level as Dart VM. No one who knows Java would claim that. Common Lisp is only hot-swappable when you're not running a binary, at least from what I know of SBCL. So, it's hard to take your comment seriously. I am unfamiliar with Visual C++'s hot-swapping capabilities, but to claim the language itself can do it seems pretty ridiculous to me, as all you've got is machine code at runtime, C++ has no hot-swapping runtime and could never have one... which makes me think you're just confused about what we're talking about... I am not talking about debuggers here.
- pjmlp 4y agoYes I claim, there are multiple implementation of Java, like JRebel. Maybe spend some time using proper Lisps like LispWorks and Allegro Common Lisp. Language and implementation aren't the same thing. There is so much to learn about compilers, young padawan.
- lispm 4y ago> Common Lisp is only hot-swappable when you're not running a binary, at least from what I know of SBCL. Which is false.
- kstenerud 4y agoFor every feature X, there is a programming language Y that has had it for decades. It's not a question of inventing it, but rather of making it mainstream popular.
- catach 4y agoI expect that erlang is still significantly more popular than zig.
- kstenerud 4y agoOf course it is. Zig is an up-and-comer, so most established languages will be more popular at this stage. But Zig aims to be a mostly general purpose language (which is what the majority of mainstream languages are), whereas Erlang does not.
- kjeetgill 4y agoIt's extremely common in plenty of popular languages: Java's a big one, and if you count dynamic languages most do.