HNHacker News
TopNewBestAskShowJobs

sdp

460 karma · joined March 11, 2008

(interests '(love life lisp))

    www.SimonDavidPratt.com
me {at) SimonDavidPratt (dot} com
submissionscomments
sdp··on Try Haskell: An interactive tutorial in your browser
...if we can get used to car, cdr and so on, I guess its not bad.

Common Lisp (and MzScheme) users can use first (and second, and third...) and rest, and probably should do so when using simple lists.

sdp··on Try Haskell: An interactive tutorial in your browser
I like everything up to but not including step 7. (http://tryhaskell.org/#7)

The syntax

  let villain = (28,"chirs") in fst villain
is not obvious to me, and the tutorial doesn't explain what each piece of the new syntax means, and quickly moves on to something new in step 8.

Only through experimentation, I find:

  fst (28,"chirs")
  => 28
  snd (28,"chirs")
  => "chirs"
So I gather the let is equivalent to:

  (let ((villain '(28 "chirs")))
    (first villain))
But without parens, line breaks or semicolons I have difficulty determining where one expression ends and another begins.

Plus, the arbitrary shortening of "first" to "fst" doesn't help, and should probably be clarified.

You seem to only check the return value to determine when to skip to the next step in the tutorial, since in step10, you want me to type:

  ['a','b','c'] == "abc"
But it skips ahead when I play around and return True from a different expression:

  'a' : 'b' : [] == "ab"
  => True
sdp··on A better mobile version of HN. Please review my weekend project
Could you easily add duckduckgo style infinite scrolling?
sdp··on [dead]
This might be a matter best resolved in private with the administrator. Details for contacting him directly can be found on his website: http://www.paulgraham.com/
sdp··on (Re) Writing Code [2001]
If you can get (or write) a lexer/parser to generate an AST from the code, can't you easily translate it to any other language?
sdp··on The Bomb for Beginners: A DIY Guide to Going Nuclear
The ip-global version is more nicely laid out.

http://news.ycombinator.com/item?id=1219608

sdp··on Bill Watterson, creator of Calvin & Hobbes, first interview since 1989
I would pay to read Einstein being interviewed by Hunter S. Thompson.
sdp··on Ask HN: Review My (Common Lisp backed) Startup
Hey, I'm in Amherst, NH right now and since there's nothing up here it sent me to NYC. However, you have some content in Boston which is much closer and hence more useful to me.

If there's nothing in the detected area, can you move to the closest bon instead?

sdp··on So I finally tried Wave...
That "draft" tick box has been grayed out for me since I got into Wave.
sdp··on Zinc-air battery could hold 3x more energy than lithium-ion
Of course, once they start making laptops with these, the TSA will ban them.
sdp··on Codepad.org | a pastebin that executes code for you
GNU solved the halting problem[1]?

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

sdp··on How to crack a master lock
Sounds like HN is becoming self-aware and vetoing any attempts at critical thinking with regards to its policies.

Long live HN Skynet!

sdp··on AmoebaOS, a new "webos" with mail clients, ftp, proxying, etc
Clicking on Create Account gives the message:

"Hi! amoebaOS opens for Beta registration soon."

sdp··on Ask HN: How do you stay (somewhat) healthy?
The hacker's diet: http://www.fourmilab.ch/hackdiet/e4/
sdp··on Ask HN: Any tutorials on forming a Delaware LLC?
I'd like to suggest it's cheaper overall to hire a competent lawyer.
sdp··on Microsoft Research releases Barrelfish - OS optimized for multiple cores
Bad joke for me, maybe. People who get it will read your message, laugh, then read the explanation (maybe).
sdp··on Zap Reader - Download to your brain as fast as you can handle
I gave it: http://www.gutenberg.org/files/6130/6130-8.txt

And it gave me: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 47 bytes) in /var/www/vhosts/rickyspears.com/httpdocs/wwwzr/reader/index.php on line 68

sdp··on Experiment: No Comment Scores
PG: Will you be applying some metric to determine if this improves site feel? If so, what metric?
sdp··on Where US Oil comes from (Infographic)
http://en.wikipedia.org/wiki/Billion

International news avoids the term "billion" because it can refer to 10^9 or 10^12.

In UK English, 10^9 is called a milliard.

http://en.wikipedia.org/wiki/Milliard

sdp··on Microsoft Research releases Barrelfish - OS optimized for multiple cores
I understand Bracemonkey is like Greasemonkey, and B8 is like V8, but what is Barrelfish like?
sdp··on The CRTC tries to eliminate ISP competition in Canada
When Bell was a monopoly, they had a phone in every household which you leased from Bell. Monopolies seem to penetrate the market very well, regardless of their level of innovation so I don't think market penetration should be by any means a measure of innovation.
sdp··on The CRTC tries to eliminate ISP competition in Canada
If you're still interested, the "decision" and "framework" that they talk about seems to be "Telecom Decision CRTC 2008-17" ( http://www.crtc.gc.ca/eng/archive/2008/dt2008-17.htm ), in which they decide to institute a new framework for the mostly public telco/cableco to sell internet wholesale to the smaller ISPs.
sdp··on Oliver's simple fluid dynamics simulator in Javascript
I recommend that you don't turn it up to 512 resolution on a macbook in firefox. =(
sdp··on Visualizing Bayes' theorem
I've always been confused about Bayesian probability, until I read that article. I am a heavily visual learner, so the diagrams made a lot of sense to me...I finally get it!!
sdp··on Pirate Bay officially loses case
I find it curious that the tech-savvy world of Hacker News, which should be comfortable with the idea of specialization in modern capitalist economies, seems to pine for a return to a "cottage" music industry, where the musician is to perform all of the afore-mentioned roles himself.

That would be tantamount to a programmer founding a company.

sdp··on Idea: using code rather than templates to generate HTML
Ah, I was making a couple of assumptions:

  any DSL which generates markup must be more concise than the markup itself
Otherwise, there will have been no point in creating the DSL. This assumption is probably fair. An example of this would be Seaside's HTML generation DSL.

  a more concise language will be better in the long run
This assumption is flawed and doesn't take the designers' tools into account. A DSL would need its own tools before it became a valuable long-term investment.
sdp··on Idea: using code rather than templates to generate HTML
Your argument assumes workflows never change. If that were true, we would still be using whatever workflows our forebears used for every task. Since that is clearly untrue, workflows must be able to change.

However, given that business are formed to turn a profit, the standard workflow will remain unchanged until it is profitable to do otherwise.

If a markup-generating DSL was simple enough for designers to pick up quickly, it would make good business sense to push them through the transition.

sdp··on Hacker Newspaper: reformatted Hacker News
Why not follow this to its logical conclusion?

  Remove all synonyms
  Example: fine -> good

  Remove antonyms and just negate the word
  Example: bad -> ungood

  Remove special-case nouns: just combine a noun and one or more adjectives to reach the same meaning with fewer fundamental words.
  Example: great -> doubleplusgood; murder -> collateral damage
We could call this doubleplusgood language newspeak.
sdp··on Ask HN: Worst working conditions you have written code in?
Not so bad compared to the rest of the stories, but I still work as a developer/tech support. I have to drop whatever I'm doing to troubleshoot student tech problems, so the interruptions are frequent.
sdp··on Ask HN: What Programming Book would you buy right now (if it existed)
How would an algol language with sexp syntax differ from scheme?
← PreviousPage 2 of 4Next →