News for hackers. Stuff that matters.
Re:Gleam: a type safe language on the Erlang VM by bmitc on Tuesday November 07, 2023 @06:50PM (#38184807)
I think it might actually be easier to inspect the BEAM over those other VMs. For one, it is much older and stable. And secondly, the BEAM has a lot of self-introspection features.

I highly recommend the talk The Soul of Erlang and Elixir by Sasa Juric which shows off the essence of the BEAM.

https://youtu.be/JvBT4XBdoUE

Re:Gleam: a type safe language on the Erlang VM by mikeurbach on Tuesday November 07, 2023 @07:06PM (#38184977)
Since you brought up Sasa Juric, I will second that and also mention their book Elixir in Action. It really helped me get from toy examples to feeling confident running the BEAM in production. This is of course Elixir-centric, but the parts about OTP, inspecting running applications, etc. are really about the BEAM.
Re:Gleam: a type safe language on the Erlang VM by bmitc on Wednesday November 08, 2023 @10:03PM (#38200606)
Yes, that book is excellent, and I definitely recommend it to anyone new to Elixir. I'd also recommend Joe Armstrong's Erlang book, even if one is eventually wanting to use Elixir.
Re:Gleam: a type safe language on the Erlang VM by cpursley on Tuesday November 07, 2023 @06:53PM (#38184850)
Definitely way easier than tracing Node for any type of async exceptions.
Re:Gleam: a type safe language on the Erlang VM by mikercampbell on Tuesday November 07, 2023 @07:52PM (#38185350)
I transferred from Node.js to elixir for that reason.

Uncaught throws, hanging errors - while someone much smarter than I could have done it better, I was doing a lot of async/retry of APIs with high failure rate and the BEAM just made it easy.

Re:Gleam: a type safe language on the Erlang VM by cdaringe on Wednesday November 08, 2023 @04:07PM (#38197029)
You can put node into debug mode after launch (SIGUSR1) and remote debug it as well, with sources, which is really incredible. This BEAM demo is rad, but chrome/v8 debug is actually really good too if you take the time to learn all the remote debug tips n tricks.
Re:Gleam: a type safe language on the Erlang VM by mikercampbell on Saturday November 18, 2023 @02:39PM (#38323515)
WHAT. I will catch up with you after the rabbit-hole.

I’ve got massive hopes for things like Bun, but especially Deno’s architecture of message passing, but I’m now humbled by my not knowing that existed in V8.

Re:Gleam: a type safe language on the Erlang VM by pjmlp on Wednesday November 08, 2023 @01:30AM (#38187388)
What is BEAM's version of Visual VM, JDK Flight Recoder or ETW?
Re:Gleam: a type safe language on the Erlang VM by mattbaker on Wednesday November 08, 2023 @01:50AM (#38187480)
Great question, check out Erlang’s “Observer”, it’s incredibly powerful, one of my favorite parts of the BEAM :)
Re:Gleam: a type safe language on the Erlang VM by pjmlp on Wednesday November 08, 2023 @05:18AM (#38188571)
Thanks.
Re:Gleam: a type safe language on the Erlang VM by di4na on Wednesday November 08, 2023 @02:02AM (#38187528)
To extend, the answer is the BEAM itself. It ships with these tools built in.

From the whole zoo of system probing stuff or the downright amazing dynamic tracing.

Have a quick look at https://www.erlang-in-anger.com/

Re:Gleam: a type safe language on the Erlang VM by pjmlp on Wednesday November 08, 2023 @05:19AM (#38188579)
Which is also available in JVM and CLR, with amazing graphical tooling, which was the main focus from my question, hence the examples.
Re:Gleam: a type safe language on the Erlang VM by di4na on Wednesday November 08, 2023 @09:37AM (#38190878)
In my experience... Nope it is not really. Not to that extend. But sure i get you.