HN user

klrr

1,188 karma
Posts26
Comments222
View on HN
www.edx.org 12y ago

Haskell MOOC by Erik Meijer

klrr
2pts0
github.com 12y ago

CSScheme – Sublime Text Plugin

klrr
1pts0
devskypers.blogspot.fr 12y ago

Regular imperative statements versus FPL abstractions

klrr
1pts0
cryto.net 12y ago

Why Mt. Gox is full of shit

klrr
277pts134
www.bit-tech.net 12y ago

Fine Gael calls for open source browser crackdown

klrr
12pts1
helm-engine.org 13y ago

Helm – A Functionally Reactive Game Engine

klrr
9pts2
adit.io 13y ago

Haskell Lenses In Pictures

klrr
184pts50
www.fpcomplete.com 13y ago

FPComplete launches Haskell competition

klrr
2pts0
cloudroyale.se 13y ago

New cheap VPS provider, based in Sweden

klrr
17pts24
www.youtube.com 13y ago

SLCON 13 - Recordings

klrr
1pts0
www.xonotic.org 13y ago

Xonotic 0.7 released - New maps, animation blending and much much more

klrr
32pts8
news.ycombinator.com 13y ago

Ask HN: Alternatives to HN

klrr
197pts168
lolokaust.com 13y ago

The Boston Marathon Game

klrr
1pts0
www.haskell.org 13y ago

Haskell.org is down

klrr
3pts1
news.ycombinator.com 13y ago

Hoogle is down

klrr
1pts0
news.ycombinator.com 13y ago

Stealing Open Source Projects' Names

klrr
3pts1
crux.nu 13y ago

CRUX 3.0 Released, now supports amd64

klrr
4pts0
news.ycombinator.com 13y ago

Ask HN: What programs to write?

klrr
7pts14
www.gnu.org 13y ago

Guix 0.1 alpha released

klrr
4pts0
github.com 13y ago

Stellar - PyGame/Python Game Engine

klrr
22pts12
news.ycombinator.com 13y ago

Ask HN: Python 2.7 book, any recommendations?

klrr
7pts5
news.ycombinator.com 13y ago

Ask HN: How does HN's downvotes work?

klrr
1pts2
news.ycombinator.com 13y ago

Ask HN: Learning programming without math?

klrr
6pts10
news.ycombinator.com 13y ago

Haskell, Scheme & Julia?

klrr
6pts1
github.com 13y ago

I made a color scheme

klrr
1pts0
news.ycombinator.com 13y ago

Ask HN: How do I get italic text?

klrr
1pts6

Why not pick a problem the interviewer have not solved, and let the interviewee and interviewer solve the problem together. This shows how the candidate is thinking, and how they are working together with others. It will also let the interviewer get a more un-biased view of the difficulty of the algorithm or CS problem.

I think China has plenty of data as well, of its own people at least. It's a surveillance state, and the big corps work closely with the government and so also the universities. My point is more that they have a chance of winning the ML race, but that doesn't matter if there will be more important technological breakthroughs in other areas that will have greater impact on AI than ML.

I think China will create an AI bubble, currently studying in Beijing and all EE and CS students I know focus all their time at either stats, ML or data mining. While I think China might have a big shot at the AI race, I don't think it's useful to have to only focus on AI because it's hot right now, they may lack progress in other fundamental fields that may lead to more important breakthrough and technological change.

Teenage Haskell 12 years ago

I'm a teen I guess. Haskell as a first language worked great for me, and I happened to write a game and a few scripts in Python two months ago so I think I can answer your question.

So, what made learning Haskell a good experience I think was mainly the strong type system. You could basically even early on use functions you barely knew what its name meant solely based on its type signature. It also made the progress of writing a program very nice, you write it and then it fails, you go back and try fix it, and when it compiles it usually worked.

There are some things to keep in mind though. Wild recursion is really the GOTO of functional languages, it's important to teach how to use the generalized folds and traversals early on. Secondly it is important to have simple analogies to concepts such as functors, monoids and monads etc. If you make sure to not care about these strange names then you can go pretty far by just trying to make the type signatures stick together, and it's not important for a beginner to grasp these directly either.

Python was quite smooth to learn coming from Haskell, the syntax is similar and it simply felt like programming in Haskell's do-blocks. It was very easy to get quickly going, I managed to write a little script talking to a JSON API almost directly after reading the official tutorial. I also digged a little bit into the realm of OOP, I wrote a simple game using Kivy. It felt quite nice actually, I could get some code re-use, although it was harder to get that (as newbie) than in Haskell.

EDIT: Something like typed Racket might been even better when I think about it, since Racket got a lot of resources for complete beginners. Then you get the benefit of easy to use syntax too, although syntax is probably not the biggest problem when starting out. For the record I usually recommend Python or Racket when people ask me where to start, because in the end I don't think it matter much what language you go with first, just make sure not to limit the paradigm of languages you learn afterwards.

Learning Haskell is a deep rabbit hole. Make sure you decide when it is enough, there's tons to learn and you can't be an expert on everything and you don't have to programming in Haskell.

In many cases a few examples and type signatures are enough for the intermediate Haskell user. Virtually all packages for Haskell are free software though, so you can of course contribute documentation if you feel there ain't enough, because obviously if the current Haskell users don't need more docs they won't write it.

Introducing Swift 12 years ago

"innovative" "new" "concise" "expressive" "lightning-fast"

God, I love Apple. Now I just wish real innovative languages could market themselves as efficient.

LYAH and RWH, then its just to lurk the web for good blog posts making sense of the academic papers. ;)

Seriously though, there's tons of resources for beginners in Haskell. School of Haskell, above mentioned books, tons of good SO answers, #haskell at freenode is super friendly and helpful, Haskell for All by Tekmo is a good blog making sense of some more advanced Haskell stuff, there's probably more that I've missed to mention.

The best way to learn Haskell is to write a lot of Haskell and being interested in learning interesting stuff (that might be quite abstract for some time before you get a good intuition and can apply it to real world code).

Leaving Go 12 years ago

Because it doesn't add anything constructive to the discussion.

BitBucket was down 12 years ago

Then why don't they host their main servers on statuspage.io? I've never seen a status page that is down.

BitBucket was down 12 years ago

Why are they not hosting it on the status.bitbucket.org server? Tt have never been down as far as I know!

As for resource leaks, the particular example in the post was a bit unfortunate. The problem in general have a solution though. You can either use functions that limit a resource inside a limited scope, and then have it clean up automatically when done (like 'withFile'). And if you want to do more complicated things there are the resourcet and pipes-safe libraries.

   * First Law: A robot must never harm a human being or, through inaction, allow any human to come to harm.
   * Second Law: A robot must obey the orders given to them by human beings, except where such orders violate the First Law.
   * Third Law: A robot must protect its own existence unless this violates the First or Second Laws.

While Clojure does a lot of things well, it have the same flaws that Haskell (and to some extend Scala) tries to solve. For example, Haskell has strong emphasis on types and has no side-effects which let you easier write correct programs. One beautiful thing you'll encounter doing after some experience with Haskell is that types will guide you when designing your programs, not only giving a correct but also concise and elegant solution (most of the times).