News for hackers. Stuff that matters.
Re:Elixir – HUGE Release Coming Soon by zach_garwood on Wednesday December 07, 2022 @09:57AM (#33895010)
That would be neat! I would really like it if added optional typing like Python or PHP.
Re:Elixir – HUGE Release Coming Soon by tiffanyh on Wednesday December 07, 2022 @10:01AM (#33895063)
I thought Erlang lacked a type system.

How would this work since Elixir compiles into BEAM byte code (via Erlang Abstract Format)?

Re:Elixir – HUGE Release Coming Soon by Lio on Wednesday December 07, 2022 @10:09AM (#33895161)
Do you need to have static typing in your byte code for static typing at the language level to be useful?

I ask because the JVM lacks static typing[1] at byte code level but Java and Scala have it at the language level where it seems to be useful for correctness and performance.

1. https://wuciawe.github.io/jvm/2017/03/04/notes-on-jvm-byteco...

Re:Elixir – HUGE Release Coming Soon by jjtheblunt on Wednesday December 07, 2022 @10:16AM (#33895274)
the compiler can type check source code for any obvious insanities, and thereby catch and prevent, at compile time, a subset of what would be runtime errors.

that's the idea anyway. (i worked on v8 for example, and other compilers, and typescript does something similar targeting javascript)

Re:Elixir – HUGE Release Coming Soon by andy_ppp on Wednesday December 07, 2022 @10:09AM (#33895164)
Sure but so does javascript, it doesn’t mean it can’t be added at compile time and add a lot of value.