News for hackers. Stuff that matters.
Re:Gleam: a type safe language on the Erlang VM by christophilus on Tuesday November 07, 2023 @06:16PM (#38184461)
Looks decent. I somehow missed the previous thousand discussions.

I’d love to hear from anyone running it in production.

I have always been BEAM-curious, but never felt comfortable running it in production, as it feels like a big black box, and I’m not confident that I’d be able to diagnose problems as readily as I can in .NET, Go, or Node. I’m not sure why I feel that way about BEAM.

Re:Gleam: a type safe language on the Erlang VM by avtar on Tuesday November 07, 2023 @06:40PM (#38184707)
Some comments about the prospect of using Phoenix with Gleam:

https://news.ycombinator.com/item?id=38037082

Re:Gleam: a type safe language on the Erlang VM by dudul on Tuesday November 07, 2023 @06:21PM (#38184519)
I'm not sure either why you feel that way. The BEAM has amazing tools to debug at runtime and explore/modify your system while it's running.

Yeah you'd need to learn it, but it's like any other tool.

Re:Gleam: a type safe language on the Erlang VM by chii on Tuesday November 07, 2023 @06:45PM (#38184764)
> I’m not sure why I feel that way about BEAM.

unfamiliarity? Plus the problem of 'nobody ever got fired for running IBM' plaguing your work.

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.
Re:Gleam: a type safe language on the Erlang VM by ThinkBeat on Wednesday November 08, 2023 @06:13AM (#38188890)
If you compare running a monolith on a singel server then you might be better off diagnosing problems in .Net. Though I think that is uncertain.

If you are writing a distributed system with plenty of microservices BEAM will be magnitudes easier to debug if you write the same system in BEAM native