Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

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

Submissions

comment 10y ago · link · parent

Not true if one is using Haskell (or any other sufficiently expressive language)

comment 10y ago · link · parent

What I find strange is why they developed an iOS version at all, given the restrictions. They could have provided the top-selling Android version. I had to give my money to some other clone, I would have much rather given it to the innovators.

comment 10y ago · link · parent

Maths will never be obsolete. It's the safest bet if you value your time.

comment 10y ago · link · parent

Here's one proposal for an alternative to monad transformers for Haskell: http://okmij.org/ftp/Haskell/extensible/

comment 10y ago · link · parent

Monad transformers are not the only way of combining effects.

comment 10y ago · link · parent

I'm curious about your comment about Types. Types are an important part of Haskell and Haskell was largely based on Miranda. What makes you believe they were an accident? There are more research papers about type system implementations and extensions regarding Haskell, than there are about laziness.

comment 10y ago · link · parent

OOP is an attempt to manage global state and the mutation of it, lenses are essentially a convenient way of transforming values (without mutation) and are only superficially similar. Side effects are inherently non-compositional, so it's no surprise that they are not easy to model, but Monads are gradually teaching us the best way to handle them. The current state of the art appears to be a single monad parameterized with an effect algebra (supporting composition for some effect types). You are of course free to be a skeptic, but in doing so you are rejecting a large part of modern computer science.

comment 10y ago · link · parent

Does modern C++ have a decent story for writing nonblocking concurrent code yet? Something that could compete with async-await in C# or monads in functional programming?

comment 11y ago · link · parent

Well we shouldn't need huge batteries if Android was fixed. Have you seen the batteries Apple put inside iPhones? iOS is great for their hardware margins.

comment 11y ago · link · parent

I see Google Services at the top consuming 22% of your battery. It must be Lollipop. Under KitKat, the screen is almost always at the top of the list.

comment 11y ago · link · parent

Samsung TouchWiz with KitKat 4.4.4 had awesome performance and battery life on my Note4, then they destroyed it with a Lollipop update (after constant update nags) and forced me to downgrade probably voiding my warranty in the process, anyone sane would have returned the phone. I don't know if Samsung or Google is to blame for the serious battery and performance regressions, but I do blame Samsung for pushing it out to its users. Many people have been burned by this and will never buy Samsung again. What were they thinking? It's not as if Lollipop offers anything much for the average user (developers are another matter). It's such a shame, as the hardware is top notch.

comment 11y ago · link · parent

Yes Python is fine for teaching the imperative algorithms needed for a graduate to pass his/her Google interview. But computer science and SICP is/was so much more than that. Even if these institutions want to be vocational, typical software development roles do not require recalling famous algorithms, they require glueing code together. To be good at this, you need a sound grounding in abstraction and composition - the mathematics of program construction. Python will not help people learn this.

comment 11y ago · link · parent

In this case interests were closely aligned. But I take your point.

comment 11y ago · link · parent

Yes it has lots of wrappers over old C/Fortran libraries and is moving into the MatLab/R space. But does that make it good for teaching computer science?

comment 11y ago · link · parent

You should be concerned that the elite are taught Haskell and the rest of us are forced into Python.

comment 11y ago · link · parent

There are countless parsing libraries, compilers and cutting edge research done in Haskell. My guess is that you are thinking of NumPy and similar wrappers over older C/Fortran code. A computer scientist would seek to design something better, perhaps by exploiting algebraic properties not considered by NumPy. Universities teaching Python is a relatively recent phenomenon, perhaps to appease industry.

EDIT: cabal came from industry and was based on ideas from the Java, Python, Ruby communities. The Nix packager better embodies the ideas of Haskell.

comment 11y ago · link · parent

When we want to get something done, we typically reach for what is most familiar.

comment 11y ago · link · parent

For computer science, I doubt it.

comment 11y ago · link · parent

At Oxford University in the UK, students are taught exclusively Haskell in their first year - a language designed by a committee of some of the worlds best computer scientists. An institution that teaches Python under the banner of computer science, certainly loses prestige in my opinion.

comment 11y ago · link · parent

No it's more like 9000 implementations of the same programming language. Only those from academia have ever been new languages.

comment 11y ago · link · parent

I never compared enterprises to startups. I also wouldn't want to generalise. Some enterprises I know have millions of lines of Python code. Personally I'm skeptical that such a codebase is going to be maintainable and that they even 'care a great deal'.

comment 11y ago · link · parent

IMHO if you are smart enough to complete an engineering degree you are easily smart enough to grok Haskell. It really is quite a simple language (compared to C++ and Scala anyway). Of course, like me, you might not grok everything that other people do with Haskell, but this is true for any language. I agree that Haskell is very different from imperative languages and that there can be a lot to learn before you can become productive.

comment 11y ago · link · parent

Yes Java 8 does have a lot of new functional goodness. But it's still missing a lot even compared to Scala. For example I cannot even do a basic case analysis without involving statements, you have the ternary operator for working with expressions and that's about it. Static type systems, type inference and algebraic datatypes, which I believe to be hugely beneficial, do not define "functional programming" in most peoples minds.

comment 11y ago · link · parent

Have you seen C++14 or the complexity of Java stacks like Spring? These also take months or years to learn. At least learning some new abstract math is knowledge that will be useful for the rest of your life.

comment 11y ago · link · parent

What I would like to see happen is less use of general purpose programming languages; and more use of domain specific languages. DSLs give less opportunities for people to shoot themselves in the foot and more possibilities for heterogeneous hardware, parallel programming, static analysis etc. Of course, a small percentage of us will have to write these DSLs and Haskell IMHO is currently the best tool for this.

comment 11y ago · link · parent

I've often seen the term "functional first" used, which would describe F# but not Scala.

comment 11y ago · link · parent

No IO in Haskell is purely functional. Your Haskell program wires up a computation that is eventually run by the runtime. The wiring up, as described in Haskell, supports referential transparency and composition as only pure code can. Your confusion may arise from people using the term "pure" to differentiate from "monadic".

comment 11y ago · link · parent

The language is more restrictive and sometimes it's harder to get something working. Of course the payoff is immense, you end up with much more maintainable and composable code. However I'm not convinced that many enterprises care much about these properties, as they are often more of a long term win. People also have an emotional attachment to their existing tools and paradigms.

comment 11y ago · link · parent

Sadly I'm sceptical that the JVM can support practical and efficient use of functional structures such as monads. I hope this will change.

comment 11y ago · link · parent

Scala is not a functional programming language, it is OO first and foremost. It has better support for functional programming than Java 8, Python or Smalltalk. And that in itself is great.
1
6566676869