News for hackers. Stuff that matters.
Re:Alpaca – Functional programming inspired by ML for the Er... by leshow on Saturday March 25, 2017 @12:35PM (#13956373)
> In my experience the problem comes when you try to apply static typing to a dynamic system.

As in, because it compiles down to a dynamic system, it's no good?

There are plenty of languages that give us strong static guarantees and compile down to dynamic or untyped languages. Look at Purescript, Elm, etc. They all do quite well compiling down to JS.

Don't forget that assembly isn't strongly typed either, and most languages compile down to that. I don't see anything wrong with a static typed layer that compiles to dynamic code, the interface you're providing is still type safe.

Re:Alpaca – Functional programming inspired by ML for the Er... by dalailambda on Saturday March 25, 2017 @08:49PM (#13958351)
In regards to Purescript/Typescript, they're both statically typed and that results in friction when trying to integrate with the existing JavaScript ecosystem/libraries. Erlang/OTP might be different, but there will probably be situations where the type system is either incompatible with a certain library, or the type system is made less strict (e.g. an any type).
Re:Alpaca – Functional programming inspired by ML for the Er... by leshow on Sunday March 26, 2017 @04:59PM (#13963266)
That wasn't what I got out of the previous post, it seemed to be saying there was something inherently unsafe about compiling down to a dynamic language.