Live data from Hacker News

Elixir 1.19

elixir-lang.org

151–152 of 152 posts

Re: Elixir 1.19

#151
post #148

Earlier quoted context omitted.

You'd just do the same thing you do in any language, you parse the incoming data into a format that's more idiomatic, e.g. in Gleam type Record { NShares(n: Int) ZeroTheAccount() } fn parse_record(n: Int) -> Record { case n { 0 -> ZeroTheAccount() _ -> NShares(n) } } Then you don't have to worry about mixing up the two :)

no. you're mistaken. the error came about because the code calculated shares to give out as an average over certain set of values but in the particular business cycle there were no entries to average. a divide by zero error would have crashed and either triggered review or nothing would have happened. instead, dividing by zero was happily calculated as zero and everyone got a zero share disbursement, which meant "zer…

Ah, I see my mistake. Yeah that's definitely the kind of thing that could happen in Gleam.

Re: Elixir 1.19

#152

Earlier quoted context omitted.

It's not dead dead, but no new projects are choosing it. Those that chose Scala as the better Java can now just use the better Java from the latest JDK.

Scala still offers lots over modern Java. The issue for me is that Scala design lacks focus. They say yes to too many features.

Lots, but it's Pareto principle all over again. Those who wanted a sweeter Java were the majority of users. They have no real reason to switch to Scala 3 when Java 25 has 20% of Scala features that provide 80% of the benefits.
Post reply on HN