Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions

Submissions

comment 9y ago · link · parent

Yes. But this is more the problem of vendor lock-in than anything to do with Haskell.

comment 9y ago · link · parent

Decent static typing with inference has also missed the mainstream

comment 9y ago · link · parent

Dart is just a Java-clone by some of the same people and hasn't really incorporated any lessons from 20 years of Java. For example, their answer to Tony Hoare's billion-dollar mistake is... "The Elvis operator"

comment 9y ago · link · parent

Of course, lazy-by-default also brings many advantages: http://augustss.blogspot.co.uk/2011/05/more-points-for-lazy-...

comment 9y ago · link · parent

Yes. Connman (developed by Intel) is a much more modular design. Network Manager evolved from a Gnome applet.

comment 9y ago · link · parent

Good alternatives exist too, like the light and fast connman. I use it on a thinkpad running NixOS and it works beautifully.

comment 9y ago · link · parent

Yes I agree. Haskell is a powerful principled general-purpose language, but not everyone will need this.

But this does not mean I am happy with the current mainstream status quo :)

comment 9y ago · link · parent

For me personally it is the most productive and expressive language I have worked in.

There is a steep learning curve, which will make one a better programmer, but not without significant buy in. There is no free lunch.

Haskell is very expressive with its types, especially with regard to when effects happen, which makes it excellent as a shared design language. It's interesting for me to see Java/C# programmers struggle to explain some of their more modern stream abstractions to each other:

http://stackoverflow.com/questions/28459498/why-are-java-str...

The answers above are unable to explain succinctly what the APIs are doing, because the authors lack the necessary common language. They have to answer with wordy essays describing various scenarios and use cases.

comment 9y ago · link · parent

Microsoft and various Linux distributions do at least offer a stable version for enterprise customers and others that don't want the bleeding edge.

comment 9y ago · link · parent

No one is funding these studies, so I wouldn't hold your breath. It is down to you to decide for yourself. As an anecdote, I switched to Haskell professionally 5 years ago and am both happier and more productive.

comment 9y ago · link · parent

There is a third way, nix and NixOS.

comment 9y ago · link · parent

Forgot to mention that I didn't downvote either, despite disagreeing with much of the post.

comment 9y ago · link · parent

It's overly simplistic. For example, Haskell's do notation allows asynchronous programming in a linear "task list" (to use your phrase). Yet most popular imperative programming languages do not; one must instead use callbacks.

As to whether programming with expressions is fundamentally harder, I'm not so sure. Since Fortran, most languages have supported arithmetic expressions over primitive numeric types, since they are certainly not easier with an imperative approach (MOV, MOV, ADD, PUSH). Haskell allows one to easily take this further using arbitrary objects and algebras, for example, expressions with drawing primitives, parsing grammars, financial contracts etc. With a small amount of syntactic sugar, you can even make expressions that look exactly like imperative programming (Haskell's do notation).

comment 9y ago · link · parent

I enjoy it so much I quit mainstream tech to do Haskell professionally 5 years ago.

comment 9y ago · link · parent

Will the singularity be happy that it's been written in Python?

comment 9y ago · link · parent

I use the odd simple flowchart for documentation, but it's not a concise notation. It has no agreed method for abstraction and composition, and generally does not scale.

comment 9y ago · link · parent

I saw a demo of VS code today, as a Haskell IDE. I was very impressed with what I saw.

comment 9y ago · link · parent

No C++ is to blame. This type of error could never happen in OCaml and Haskell.

comment 9y ago · link · parent

It's worth pointing out that the majority of large C++ projects contain non-deterministic memory management (reference counting) and cache-inefficient object structures like C#.

comment 9y ago · link · parent

Luckily there are some Blockchain/Crypto currency startups that do understand the value of using something like Haskell. See https://iohk.io/projects/cardano/

comment 9y ago · link · parent

NixOS is also a lightweight alternative to containers.

comment 9y ago · link · parent

If you're a developer, make sure you check out NixOS. The ability to install different versions/builds of libraries and packages side-by-side safely and without containers is a huge win. I typically pin my base system at a stable release, using rolling releases for desktop and dev packages (which is possible even if different versions of libc are needed).

comment 9y ago · link · parent

The complexity of many Haskell collection APIs is actually documented unlike with many other languages. These complexities are not changed by the runtime. Only constant factors and memory use are affected by optimisations and this is no different to any other high-level language that actually optimises code.

comment 9y ago · link · parent

Everything has a cost. As I said, frameworks do not compose and often fundamentally take away control. If you want to change the behaviour of your framework, you need to hope they have created the necessary callback interfaces.

comment 9y ago · link · parent

But as my example pointed out, expressiveness is often the difference between being able to understand something and not. Expressiveness permits better abstractions, better composition and better libraries, allowing cheaper and faster software. Something business users will appreciate.

comment 9y ago · link · parent

Frameworks do not compose. Libraries do. If you need a framework, your language has failed.

comment 9y ago · link · parent

No Java is simply not expressive enough, that's why so many frameworks exist. Adding Lambdas certainly helps, but you are missing out if you restrict yourself to Java.

Let me give an example of how Java limits ones thinking.

Look at these Stack overflow answers: http://stackoverflow.com/questions/28459498/why-are-java-str...

They are great examples of Java/C# users being unable to explain succinctly what the APIs are doing, because they lack the necessary common language. They have to answer with great essays describing various scenarios and use cases.

A Haskell user just needs to compare the type signatures, showing where the IO is happening. She will then understand the differences and the implications.

comment 9y ago · link · parent

The presence of many of these frameworks, spring, AOP etc, is proof that many people do not find Java reasonable to work with. If Java was sufficiently expressive, you would need only libraries.

comment 9y ago · link · parent

Absolutely, just look at all the Hadoop users who don't really have big data.

comment 9y ago · link · parent

I'm not sure you can really separate the two. Sun pushed out the language and also helped develop much of the culture (enterprise beans, the pet shop example). Languages shape peoples thinking.
1
565758
69