News for hackers. Stuff that matters.
Re:What else are we getting wrong about programming languages? by lambdasquirrel on Sunday October 30, 2016 @05:09PM (#12832312)
Sometimes, ideas come before their time? How many times has parametric polymorphism been reinvented? Java tried to pretend it wasn't important, and then Go.

Python isn't really typed, which allows it to avoid those kinds of mistakes.

Having been a Haskell programmer, I would argue that the type system is beautiful and powerful, but still not powerful enough that it's a game changer. And it may never be powerful enough.

People forget that the reason we program is to make stuff for other people. Python gets used because it's accessible to the people most connected to the real world problems. The primary in my mind is that there is too much risk involved in transitioning from messy languages to cleaner ones.

Much of that isn't just in the language, but e.g. how easy it is to debug and deploy. So I look forward to things like stacktraces for ghc, and for stack to continue maturing. I look forward to more people being comfortable with the language.

That all having been said, it's just way too easy to run into the limitsof non-dependently-typed programming in Haskell. So here's another thought, what if string type inference is a dead end?

Re:What else are we getting wrong about programming languages? by dnautics on Sunday October 30, 2016 @05:22PM (#12832401)
Have you seen Julia's type system? It is strong, and parametric on types, bitvalues, and tuples thereof. So for example Array{Int32, 2} is a 2-dimensional array of Int32.

Types are tied into multiple dispatch; so the properties are defined by the functions created for it. Moreover, JITting is type-dependent; if you call a function with a type signature, it compiles it, unless it's seen that signature before.

Re:What else are we getting wrong about programming languages? by Xcelerate on Sunday October 30, 2016 @05:56PM (#12832609)
I love Julia's type system. I just wish the whole thing was static (I've never had a case where the Any type worked better than explicitly specifying a type).
Re:What else are we getting wrong about programming languages? by dnautics on Sunday October 30, 2016 @06:49PM (#12832959)
It works fine when you are lazy... I didn't feel like figuring out a type for a dictionary that was stashing parameters, so I just made it {symbol, any}.
Re:What else are we getting wrong about programming languages? by lambdasquirrel on Sunday October 30, 2016 @05:30PM (#12832458)
What build tools would you use with it?
Re:What else are we getting wrong about programming languages? by dnautics on Sunday October 30, 2016 @06:52PM (#12832977)
I don't think those sorts of things are a good use case for Julia. Julia is best used for deploying backend mathematics. I'm just suggesting the type system is beautiful, and if someone wanted to implement a more general purpose language with that type system it might be welcome.
Re:What else are we getting wrong about programming languages? by Jcol1 on Monday October 31, 2016 @12:07PM (#12838098)
How is julia or it's type system not suitable for general purpose programming? Multidispatch seems like a generalization of python...and fields don't have to be typed.

general purpose programs in julia: https://github.com/shashi/Escher.jl https://github.com/essenciary/Genie.jl

Re:What else are we getting wrong about programming languages? by mahyarm on Sunday October 30, 2016 @06:11PM (#12832691)
Programming language features have their own costs too. Ease of shooting yourself in the foot, how much compile time it take when it scales up to a big project, ease of making tooling, likelihood of making programming mistakes and so on. Add too many features and then your language becomes bad to work with in a large scale because compile and memory speeds explode. Too little and it become bad in other ways.
Re:What else are we getting wrong about programming languages? by stcredzero on Sunday October 30, 2016 @06:35PM (#12832870)
Ease of shooting yourself in the foot

The most underestimated cost!

Re:What else are we getting wrong about programming languages? by cgag on Sunday October 30, 2016 @10:11PM (#12833832)
Having been a haskell programming I kind of think it's type system is too powerful. I feel like I run into more problems of being unable to figure out all the type-level hackery and abstraction in a Haskell library, than I do of "I wish I could have encoded this bug into my types".

edit: disclaimer: hobbyist, never did haskell professionally

Re:What else are we getting wrong about programming languages? by tome on Monday October 31, 2016 @04:31AM (#12835030)
> I feel like I run into more problems of being unable to figure out all the type-level hackery and abstraction in a Haskell library

When you feel like this please file issues on those libraries!