News for hackers. Stuff that matters.

progressbwc

Re:Ten years without Elixir on Thursday January 14, 2021 @02:20AM (#25773204)
While “use” resembles mixins, it is a much restricted version of whatever you can do in Ruby thanks to lexical scope, closed modules (via open classes), and immutability.

In practice “use” is closer to Ruby’s refinements, which is something that never caught in Ruby because they were too restricted.

You are right that you don’t see this in Erlang but you don’t see similar high level frameworks in Erlang either. Many don’t care for them but many also find such tools an essential part of their toolkit.

Re:Hotwire: HTML over the Wire on Tuesday December 22, 2020 @02:00PM (#25509809)
I can’t speak for Blazor but LiveView does not keep a DOM on the server nor it requires all UI interaction to go to the server.
Re:Ruby 3.0.0 RC1 on Monday December 21, 2020 @09:45AM (#25495346)
It is a pity the type hinting is done in a separate file though, as it leads to a lot of duplication. In this case, I pretty much prefer Python’s approach.
Re:Switch from Ruby to Crystal on Friday November 06, 2020 @05:01AM (#25006474)
Yes but it is unlikely to make a difference unless a major part of ecosystem changes which is unlikely to happen as it will lose its “dynamic feeling”. Even the standard library has to be compiled when you compile your project.

There is some caching to help but times are still high. IIRC the compiler is not parallel either, so having more cores won't help.

There is also a —release compile flag that you would want to use for production and it is much slower.

Re:Switch from Ruby to Crystal on Friday November 06, 2020 @04:39AM (#25006375)
Crystal does global type inference to be performant while “feeling like a dynamic language” - as claimed by the article. This leads to very high compilation times (which is non-linear so a program double the size will likely take more than double the time to compile) and last time I asked I was told it is not a solvable problem.