Better HN
topnewbestaskshowjobs
Log inSign up

koloron

81 karma · joined Jun 15, 2013 (13y ago) · 28 submissions

Submissions

comment 10y ago · link · parent

Here are two blog posts on free monads that should be accessible for people who understand what a monad is and are able to read Haskell:

http://www.haskellforall.com/2012/06/you-could-have-invented...

http://www.haskellforall.com/2012/07/purify-code-using-free-...

comment 10y ago · link · parent

Yeah, someone please write reverse-dependency-ci! :)

comment 10y ago · link · parent

> but it's still the best at what it does.

If "what it does" means "build complex software projects" I think your claim is rather debatable.

GHC is currently switching away from make after having already overhauled its make-based build system two times:

http://research.microsoft.com/en-us/um/people/simonpj/papers...

comment 10y ago · link · parent

Haskell: https://github.com/tweag/sparkle

comment 10y ago · link · parent

Hah, just today I started to read "Haskell programming from first principles"[1] which also targets non-programmers but builds on lambda calculus instead of assembly.

Would anyone actually recommend to a beginner to start learn assembly first?

[1]http://haskellbook.com/

comment 10y ago · link · parent

Nearly the same question was recently asked in r/haskell:

https://www.reddit.com/r/haskell/comments/4fhuw3/json_for_ad...

comment 10y ago · link · parent

Even better with mapMaybe:

    map transform . mapMaybe safeHead

comment 10y ago · link · parent

The project has existed only since last summer.

comment 10y ago · link · parent

If you're still using string types for pathnames you may want to check out the path and path-io packages. The path package defines a Path type parameterized by its locality (absolute or relative) and type (pointing at a file or a directory).

Especially the distinction between relative and absolute paths adds a nice safety layer.

comment 10y ago · link · parent

mcbuilder has already mentioned it, but I really want to emphasize that dependency management in Haskell is an entirely different story now with stack.

comment 10y ago · link · parent

IMO, the difference in readability has little to do with the difference between OOP and FP. What's important is the expressiveness of the language.

So Ruby can be very easy to read because you can simply keep appending methods to the right.

In Haskell you can do the same, only you'll prepend functions on the left, so you end up reading expressions from right to left:

    (intercalate ", " . map show . Map.elems) myMap
What I find really hard to read, are expressions where the direction of the data flow changes, something that often happens to me in Java:

    Streams.takeWhile(list.stream().map(e -> f(e)), e -> e.isNeeded())

comment 10y ago · link · parent

> It doesn't want to be Haskell or Lisp, those languages can be very hard to use and maintain for junior developers in large teams.

Can you expand a bit on the difficulties that these junior developers had with Haskell?

comment 10y ago · link · parent

I find ghcid very useful. It reloads your code automatically when it detects a filechange.

https://github.com/ndmitchell/ghcid http://neilmitchell.blogspot.de/2014/09/ghcid-new-ghci-based...

comment 10y ago · link · parent

Since GHC-7.10, the minimal complete definition for a Monad instance has been (>>=) (bind) only. So you can simply move the old definition for "return" into the Applicative instance as "pure" and you're good.

comment 10y ago · link · parent

How does Maven compare to Haskell's Stack in your opinion?

comment 10y ago · link · parent

Didn't downvote, just FYI: Haskell's Applicative is a superclass of Monad now.

comment 10y ago · link · parent

Can you share some links?

comment 11y ago · link · parent

My favorite song by her: https://www.youtube.com/watch?v=eAKh26bfkpw

Beautiful usage of a vocoder.

Yes, I know it's OT…

comment 11y ago · link · parent

Haskell has a pretty cool new dependency management tool called stack (https://github.com/commercialhaskell/stack).

It's based on the curated package server https://stackage.org which server sets of packages that are tested for compatibility.

comment 12y ago · link · parent

How does Haskell compare to Erlang regarding these features?

21.

The Automatic Corporation(blog.vivekhaldar.com ↗)

3 points · by koloron · 12y ago · discuss

comment 12y ago · link · parent

That's at least the third programming language named Q:

https://en.wikipedia.org/wiki/Q_(programming_language_from_K...

https://en.wikipedia.org/wiki/Q_(equational_programming_lang...

comment 12y ago · link · parent

"postal" and "loc" are a bit off in my case. My true location is about 6km away from "loc".

comment 13y ago · link · parent

Symbols are in the same class as uppercase letters in the Neo layout. They are easily accessible by pressing the caps lock key.

Hover your mouse over "Ebene 3" here: http://neo-layout.org/

comment 13y ago · link · parent

I'm a happy user of the Neo layout. It's very different from QWERTY (or rather German QWERTZ) but optimised for English and German bi- and trigrams as well as programming.

Read about it here: http://en.wikipedia.org/wiki/Keyboard_layout#Neo

Or take a good look at its multilevel layout here: http://neo-layout.org/ ("Ebene 3" is especially interesting for programmers…)

comment 13y ago · link · parent

AFAIK any shell command preceded by a "!" works just as you would it expect it to work in your shell.

comment 13y ago · link · parent

I'm currently looking to adapt vim for Python development. What are the other plugins that you use or would you possibly even share your .vimrc?