84 points · by signa11 · 4y ago · 63 comments
If you're interested in Haskell and are doing web dev, check out IHP, Haskell's version of Laravel/Rails/Django: https://ihp.digitallyinduced.com/ (Disclaimer: I'm founder of the company that makes IHP)
Looks like a good way of getting back into experimenting with haskell.
I'm pretty fluent in Haskell, but finding Haskell jobs is hard compared to OCaml or F#, which are a bit of a niche of their own. Actually, I routinely get OCaml offers when advertising Haskell on my CV. I find this interesting and exciting as OCaml was not very frequent outside academia a few years back.
I just lost a big block of time because of this, please contextualize correctly that claim when you make it.
Support for dot-notation like it's documented at the proposals has been partially added. Field fetching is complete, field updates isn't released at all. It is being actively developed, and both bring very interesting features that you can't get in most languages - after all, it's Haskell - but it was only partially released up to now.
Sure, a new Haskell standard would allow for more compiler competition and that's a good thing, but it cannot fix the language. I think what we really need is a new language that picks all the good parts from Haskell, but has a very small syntactical core. Something like Go, but purely functional. You might say Rust or Elm. But Rust is too performance oriented and already quite big, hence more like a C++ replacement. And Elm is too domain specific and maybe a bit too simple (lacks ad-hoc polymorphism).
So maybe a general purpose Elm like language with ad-hoc polymorphism, but not as complex as Purescript, with a GC that compiles to binaries and WASM with a standard code formatter and very conservative regarding new language features, just like Golang.
I disagree. C++20 is a standard, even if it is ugly and terribly complex it is being implemented by three separate compilers. And look at Javascript. The attention given to it is starting to show, making the language neater than in the past. The task is not straightforward but the point of the article is that there is absolutely no manpower ready to do it. I think that a few dedicated people could do the work well.
I sometimes think that not enough people appreciate the tough spot that C++ was in around 2008 and just how far it has come since then. The additions via evolution to C++ have been far beyond what I would have thought possible. IMO, the 3 year release cycle is just the right pace.
Yes, I know the language has become complicated and there are still a lot of rough edges. But it's a model of change that's worth emulating.
I'll wait patiently until people start asking for more language features, like the ten thousand last times... every widely used language ends up converging towards at least C++-levels of expressiveness (Java, TypeScript, Go, Python with static types, Caml, etc... you name it) because it turns out that those features are actually needed.
You could get everything done with Javascript's prototype system that you wanted done with classes.
You can get everything done with Go's interfaces (and a bit of boilerplate for the edge cases) that you can do with generics.
The problem is that people come to this language from other languages, and have expectations that this language is basically the same as the other language they already know (and if not, why not?). There's a constant pressure on languages to conform to a single set of "known good" conventions [0]
The unusual languages are needed because we need that diversity, but they are never going to be "mainstream" until/unless a Java dev can learn them inside 3 months without challenging any of their assumptions about programming.
[0] the classic is Erlang vs Elixir - Erlang is "weird", Elixir is "awesome"
> You can get everything done with Go's interfaces (and a bit of boilerplate for the edge cases) that you can do with generics.
by that logic why don't you just use lisp for everything ? it's been there since 1958 and you can also get everything done with it, including reimplementing yourself a Go- or Js-like DSL if you allow yourself a Racket.
The truth is, your "get everything done" actually does not include everything, because "writing less boilerplate" is not only a feature, but one of the most important ones. Boilerplate is unambiguously bad and a place where terrible bugs hide - any time you can replace it by something with much less chances of bugs, such as a language feature, you should (and I'd argue it's professional malpractice to chose not to when you have the option).
As a heads up to anyone reading, you may not consider it only 'a bit of boilerplate'.
This doesn't quite make sense to me because Haskell and Go are kind of polar opposites. Also many would say you are describing Haskell98 I think.
How far it’ll go, and if it’ll ever get traction is fun to observe.
But yes, the entire community will need some time to get together into any new idea.
Haskell users have strong opinions about language syntax- I suppose moreso than your averaged user base. It may take a generation as Doug crockford says for those options to die and retire so new ones can come take their place. Looks like that still holds.