zlacker

[parent] [thread] 4 comments
1. innoce+(OP)[view] [source] 2025-12-14 01:07:53
I don’t mean to minimize the huge effort by the Gleam team; however, Elixir cannot become Gleam without breaking OTP/BEAM in the same ways Gleam does. As it stands now, Elixir is the superior language between the two, if using the full Erlang VM is your goal.
replies(1): >>worthl+um
2. worthl+um[view] [source] 2025-12-14 07:01:16
>>innoce+(OP)
I use many of the otp functions in gleam on thr regular, what functionality cant i call?

Gleam can call any erlang function, and can somewhat handle the idc types. [ im sure it has another name ].

Did i miss something that gleam fails on, because this is one of my concerns.

replies(1): >>innoce+gd2
◧◩
3. innoce+gd2[view] [source] [discussion] 2025-12-14 23:44:23
>>worthl+um
- No state machine behaviours. Gleam cannot do gen_statem.

- Limited OTP system messages. Gleam doesn't yet support all OTP system messages, so some OTP debugging messages are discarded by Gleam.

- Gleam doesn't have an equivalent of gen_event to handle event handlers.

- Gleam doesn't support DynamicSupervisor or the :simple_one_for_one for dynamically starting children at runtime.

replies(1): >>worthl+Ffa
◧◩◪
4. worthl+Ffa[view] [source] [discussion] 2025-12-17 07:52:13
>>innoce+gd2
I didn't know about the statem limitation, I have howerver worked around it with gen server like wrapper, that way all state transitions were handled with gleams type system.

I have been meaning to ask about that on the discord but its one of the ten thousand things on my backlog.

Maybe i could write a gen_event equivalent.. I have some code which does very similar things.

Thank you for taking the time to respond.

replies(1): >>innoce+Lha
◧◩◪◨
5. innoce+Lha[view] [source] [discussion] 2025-12-17 08:13:14
>>worthl+Ffa
You're welcome.

I'm sure at some point, Gleam will figure it all out.

[go to top]