HNHacker News
TopNewBestAskShowJobs

sold

367 karma · joined February 10, 2012

submissionscomments
sold··on SteamOS
> A launch title like Half-life 3 (seems unlikely with the circle + circle logo implying you need multiple SteamOS instances).

I think Left 4 Dead 3 (long rumored) is more likely.

sold··on [dead]
Already on the frontpage https://news.ycombinator.com/item?id=6267887
sold··on CIS 194: Introduction to Haskell (Spring 2013)
It is possible in GHC, see parent comment.
sold··on CIS 194: Introduction to Haskell (Spring 2013)
> Dear sirs, a List is a recursive data structure by definition.

I don't think so: http://en.wikipedia.org/wiki/List_(abstract_data_type)

sold··on Quine Relay
See also http://blog.sigfpe.com/2011/01/quine-central.html

That post discusses six languages but others can be easily added.

sold··on Monads Made Difficult
This one is good, but more Haskell than category theory.
sold··on Why the world needs Haskell
I think that in the particular case of an associative map, you are generally correct: there is no gain.

However, in other situations the Haskell approach is much better. Say you have a Java class with five fields, three of them are nullable (i.e. have a sensible notion of being null) and two are not (have to be non-null unless there is a programming error). There are tons of places where you can mess up: assign null to an invalid variable, assign "x = f()" not noticing f can return null, call "y.f()" forgetting that y can be null etc. However, if your type system handles nullability, you will get a compile-time error on each of them. More: if you change nullability of a field, compiler errors will point out places that have to be changed.

By throwing an exception when you "know" an element in the hashmap has to be there, you resign from safety offered by the compiler. In Haskell this is a code smell; Haskellers are less content with such hacks and might try to redesign the structure so that the invariants are enforced by the type system.

sold··on Ask HN: Why is ⌥ the option key symbol?
Speculation: it comes from the symbol of (electric) changeover switches: the user can choose whether current goes up or down.

Source: http://www.quora.com/Computer-Keyboards/What-is-the-origin-o...

sold··on Ecuador cancels US trade deal & donates $23MM to US for "human rights education"
Title is misleading: Ecuador merely _offers_ to donate $23M.
sold··on Gaurdian News Site returning Yahoo Geocities page - DNS Hack?
It's guardian not gaurdian.
sold··on Ecuador has received asylum request from NSA leaker Snowden
Reports say he used diplomatic cars [1] to avoid visa requirement.

[1] https://twitter.com/NewsBreaker/status/348800297700835328

sold··on NSA leaker Snowden's passport revoked
See also https://news.ycombinator.com/item?id=5927928
sold··on [dead]
Borowitz Report is satire.
sold··on Do a whois on cnn.com
There's nothing wrong. Skip below to see information domain CNN.COM. Compare with whois microsoft.com, for example.
sold··on Show HN: Playable Ultimate Tic Tac Toe
First turn should belong to X not O.
sold··on Ask HN: Any downsides of programming in Haskell?
There is a very good reason instances cannot be explicitly imported: http://stackoverflow.com/questions/8728596
sold··on Every odd number greater than five is the sum of three primes
You are correct, normality is a stronger criterion. See http://en.wikipedia.org/wiki/Disjunctive_sequence
sold··on Every odd number greater than five is the sum of three primes
Terence Tao's post https://plus.google.com/114134834346472219368/posts/XESxA9bL...

However, in absence of a preprint, it's IMO too soon to make announcements.

sold··on Ask HN: Explain to me the theory behind P=NP in simple words
You have major gaps in knowledge (for example, in this thread you effectively said you don't know asymptotic analysis of algorithms). Start with something simpler - check what is a polynomial, big O, a Turing machine etc. Backtrack to simple things. Be persistent. Search for a textbook like Cormen's Introduction to Algorithms or Hopcroft/Ullman's Introduction to Automata Theory, and slowly read it.

You can't be helped by using "my own words"; my own word for "polynomial" is "polynomial", it is commonly accepted and understood by the computer science community. It can't be dumbed down.

sold··on Ask HN: Explain to me the theory behind P=NP in simple words
This video by Mike Sipser (http://www.youtube.com/watch?v=msp2y_Y5MLE) might help you. It might be long, but you need to spend a longer time if you are confused.

First of all, P=NP is not a "theory"; it's a _question_. We do not know whether the answer is "yes" or "no"; most experts suspect that the answer is "no", i.e. P is not NP. There were attempts to prove it both ways, none successful or even remotely close. The theory encompassing the question is called computational complexity. It is a relatively new field (foundation is often taken to be ~1965), and many questions are open. However, we do make progress and each year there are breakthroughs. People hope to solve it some day - history shows that many open problems in mathematics resisted for long, but they were finally solved after centuries of thinking.

"I want it in simple words so it is easy to understand"

The definition of P and NP uses things such as "decision problem", "polynomial running time", "nondeterministic" algorithm or Turing machine etc. You need effort to understand them. You have to read about those prerequisites, internalize them in your mind, and only then it will become understandable. "Simple words" won't help in overcoming that. You might have heard lots of intuitive musings about P=NP and are not satisfied. The only cure is rigor.

I hope you will not take my words as condescending, but it is not helpful when you say "it makes no sense to me"; it's like someone told you "the program does not work", how are you going to help that person? You need to have a leg to stand on. What you do understand from explanations, what do you not understand from them?

sold··on Ubuntu 13.04 Raring Ringtail Released
Now they did.
sold··on Ubuntu 13.04 Raring Ringtail Released
They didn't announce the new version. The post is premature.
sold··on [dead]
This does not look serious.
sold··on Wikileaks release "PlusD": Database of 1.7 million diplomatic cables
That name was already used in 2010. I don't know who made it up.
sold··on French homeland intelligence threatens a sysop into deleting a Wikipedia Article
It became the second-most read French Wikipedia article, according to English Wikipedia.
sold··on French homeland intelligence threatens a sysop into deleting a Wikipedia Article
They do have "oversight", which deletes from administrator view too. http://en.wikipedia.org/wiki/Wikipedia:Oversight
sold··on Try Haskell: An interactive tutorial in your browser
In Haskell "a" is the same as ['a']
sold··on ‘Functional Programming Principles in Scala’ starts today
> On my remark about Haskell/GHC with extensions, I'm talking about things like the Dynamic type, existential types, HList and about experiments like OOHaskell.

The point of subtyping is implicit coercions: using a type T1 when T2 is expected, without extra conversion. Dynamic and existentials are not subtypes (you need fromDyn or the data constructor introducing the existential). OOHaskell is as far as I know a failed and abandoned experiment. Who uses it? I don't know HList enough to comment, but it's based on GHC's constraint system and very much unlike subtyping in Scala. I agree with you that OOP is not the same as subtyping.

Here's how variance complicates stuff in Scala: http://www.reddit.com/r/haskell/comments/zxcks/haskell_vs_f_...

>> The ecosystem matters the least when learning for learning sake.

> Actually it matters the most, as good learning can only happen if you go forth and experiment on your own. That's why some languages like Python are popular [...]

No, the comparison with Python is not fair. Python is a polar opposite of Haskell.

People learn Python as a scripting language. You can learn the basics of the language extremely fast. There's little didactic value in Python the language once you know imperative programming. Then real work comes by learning libraries, frameworks, APIs etc.

People learn Haskell as a way to broaden horizons, see a different paradigm. GHC, with standard library only (covering a lot less than Python's batteries) gives enough material to experiment for months if not years. It takes a while to understand GADTs, type classes, kinds, higher-order types, type families etc.

Learning Haskell is much closer to learning proofs/doing puzzles than software engineering. The fact that you made your program compile after two hours is rewarding like solving a puzzle.

I have seen people attempting to build a concurrent web server in Haskell in first week, not knowing how laziness or class instances work and blaming Haskell for making things weird and unintuitive. The practical mindset of Python does not pay off in Haskell. So I agree with OP - the ecosystem is least concern when learning FP for learning sake.

sold··on The Fireplace Delusion
> it is possible for two rational people to come to different conclusions without the influence of emotions or personal bias.

Aumann's agreement theorem [1] states this is not the case.

[1] http://en.wikipedia.org/wiki/Aumann_agreement_theorem

sold··on How Valve hires, how it fires, and how much it pays
I don't think it's "leaked" - it's available at their official page http://www.valvesoftware.com/jobs/
← PreviousPage 2 of 5Next →