HNHacker News
TopNewBestAskShowJobs

klrr

1,188 karma · joined September 2, 2012

submissionscomments
klrr··on Minds, Machines and Gödel (1961)
Thanks to I/O with the body and knowledge about friends and society saved in our memory.
klrr··on A physics master’s degree opens doors to myriad careers
Interesting, in Scandinavia Engineering Physics is quite prestigious and many graduates end up as SWEs. In fact many researchers across Sweden hold Engineering Physics degrees in CS and other disciplines outside physics.
klrr··on Construction has kept rent in Chongqing, China to $75 a month
Just want to shime in and recommend you to visit Chongqing. Incredibly interesting city to explore, great food and still has some rural China vibe that the other first tier cities start to lack.
klrr··on A Humility Training Exercise for Technical Interviewers
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.
klrr··on Apple is patenting Swift features
I don't know which specific language, but there been around since at least 80s I would guess.
klrr··on Xi Jinping urges China to use artificial intelligence in race for tech future
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.
klrr··on Xi Jinping urges China to use artificial intelligence in race for tech future
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.
klrr··on Introduction to Differential Equations (2008)
I'm also interested in this, it comes up in a lot of EE courses (DSP, Control theory), but I've yet to see it used in a CS course.
klrr··on Ask HN: Cheap places to live with a good intellectual atmosphere?
Anyone with experience of tech work in SE Asia? I am currently studying in Beijing, and I am really surprised how nice the life-style is here. But from what I've read, software engineering is not the best profession here opportunity-wise.
klrr··on Computer Architecture – ETH Zürich – Fall 2017
I think this course is about Computer Architecture as in Computer Organization, ie a course about the layer between digital circuits and operating systems. You probably confuse the term with Software Architecture.
klrr··on Teenage Haskell
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.

klrr··on Spreadsheet-like programming in Haskell
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.
klrr··on Facebook open sources Haxl
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.
klrr··on OS X Yosemite
Those bars looks surprisingly close to GNOMEs' ones.
klrr··on Introducing Swift
"innovative" "new" "concise" "expressive" "lightning-fast"

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

klrr··on An alternative Haskell home page
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).

klrr··on New DuckDuckGo design
This is due to patents. I blogged a solution some while ago, but since then removed my the entire blog, here is a raw paste of the original commit: https://gist.github.com/klrr/73ce6da0fb6947ed92a5
klrr··on Programming Language Popularity on GitHub and Stack Overflow
Obvisouly Java is most popular because it is the best programming language. It got OOP and is on the super fast JVM, nothing can beat it.
klrr··on Ask HN: Best current Linux-compatible laptop?
http://shop.gluglug.org.uk/product/ibm-lenovo-thinkpad-x60-c...

Doesn't require any binary blobs and comes with Trisquil GNU/Linux pre-installed.

klrr··on Leaving Go
Because it doesn't add anything constructive to the discussion.
klrr··on BitBucket was down
Then why don't they host their main servers on statuspage.io? I've never seen a status page that is down.
klrr··on BitBucket was down
Why are they not hosting it on the status.bitbucket.org server? Tt have never been down as far as I know!
klrr··on Go Continuous Delivery is now open source
How hilarious, considering Go-lang stole its name too.
klrr··on Canadian bill to crack down on illegal downloads has privacy experts worried
What is an "illegal download"?
klrr··on TLS/SSL implementation in Haskell
How would you restrict the possability of lifting a function into an Applicative? Can't you simply use pure and <*> for that?
klrr··on What it's like to use Haskell
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.
klrr··on Zuckerberg, Musk Invest in Artificial-Intelligence Company Vicarious

   * 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.
klrr··on Update on Julie Horvath's Departure
Is bullying legal in this particular state? If so I don't get why Julia didn't reported it to the police when it all started.
klrr··on A brief introduction to Haskell, and why it matters
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).
klrr··on Snap for Beginners: Haskell Web Development
There is this tutorial: http://adit.io/posts/2013-04-15-making-a-website-with-haskel...

Although it uses virthualenv instead of a cabal sandbox.

Page 1 of 8Next →