HNHacker News
TopNewBestAskShowJobs

pilgrim689

924 karma · joined May 18, 2011

submissionscomments
pilgrim689··on Web Framework Benchmarks
ditto. I hear Warp (the server behind Yesod) is a beast.
pilgrim689··on R, the master troll of statistical languages (2012)
Off-topic but: Can you comment on the significance of this cliff for a team considering moving from R to Haskell for data analysis? Is the availability for statistics packages really sparse in Haskell?
pilgrim689··on Try Haskell: An interactive tutorial in your browser
That sortBy is split into 6 sub-functions, all 2 to 4 lines each. You want it more broken down?
pilgrim689··on Try Haskell: An interactive tutorial in your browser
This tells you that "map reverse" returned a function that takes a list and returns a list. This function does not have a "Show" instance (analogous to someone failing to implement the "toString()" method for that type), so an error is thrown at you since it cannot possibly output something that doesn't know how to be output. Try just storing it in a variable instead.

> let f = map reverse

> f [[1,2,3], [6,7,8]]

EDIT: scratch the "let" example (thanks nandemo), tryhaskell.org doesn't support that. my bad!

pilgrim689··on Designing a RESTful API That Doesn't Suck
I misused "action". Replace "to give the client URLs to the next possible actions." with "to give the client URLs so they can perform their next possible actions on related resources".

My point remains: one of the main reasons of using HATEOAS is so that you can evolve your API without breaking clients. The other main benefit is so that your client can discover your protocol by simply following hypermedia controls.

pilgrim689··on Designing a RESTful API That Doesn't Suck
> With REST, the URL for a resource never changes.

I could have an endpoint example.com/users become example.com/subsite/users. It is precisely because the URL might change that you want to give the client URLs to the next possible actions.

pilgrim689··on Not Lisp again (2009)
An optimized tail-recursive call is just a loop. As far as I know, there are no stack traces for loops in imperative languages.
pilgrim689··on Show HN: I rewrote the Backbone.js Todo example
"working on my business logic" and "preferring explicit languages" are not mutually exclusive -_-
pilgrim689··on This Man Thinks He Never Has to Eat Again
> still looked healthier than this guy

What makes you think he's unhealthy? Because he has whiter complexion and he isn't bulky?

pilgrim689··on This Man Thinks He Never Has to Eat Again
too lazy, or too busy? I could be doing a bunch of other non-lazy things I much prefer doing instead of cooking, such as coding, exercising, music, reading, etc.
pilgrim689··on Clojure: All grown up
> But the libraries are massively, massively complex and do things in ways that are very often not at all intuitive if you're not familiar with the math behind them.

I'm just a beginner Haskeller, but this seems like a pretty bold (and false) claim. I've used Parsec for writing a Scheme (while reading the book), Shelly and Shake for build and test automation, and some statistics libraries for, well, statistics. They were all intuitive to use, and there was no "impenetrable morass of esoteric abstractions". I'm not sure what you're on about. Maybe provide examples?

pilgrim689··on Some dark corners of C
We haven't all learned... https://www.destroyallsoftware.com/talks/wat :P
pilgrim689··on New Sanctions Imposed on North Korea as it Warns of Pre-emptive Nuclear Attack
Couldn't Seoul protect itself like Isreal did with the Iron Dome?
pilgrim689··on EmberJS Confuses Me
> The downside to this approach is that your HTML is "compromised", if you will, and many developers don't like that. My thought is that it's already compromised using Handlebars so what's the difference here? Personally I have no issue using the ng-* directives. Some people do, and I respect that.

I'm a bit off-topic, but you don't need to "compromise" your HTML with AngularJS, you can place "data-" in front of your attributes and you're HTML-compliant again :).

pilgrim689··on CoffeeScript 1.6.0 released with support for source maps
You can also ask yourself what step of learning you're at. Do you just want to build stuff? Then you can probably jump to coffeescript right away (especially with the new Source Maps feature). Do you want to get more in-depth knowledge of popular programming languages? Then stick with JS; learn how it handles types, how it handles functions, what the prototype chain is, how exceptions are thrown, etc. Maybe even read JavaScript: The Good Parts.

People build amazing sites in both languages... so you can't go wrong... it's just a matter of what you want to learn on the way. Good luck!

pilgrim689··on Ubuntu will switch from X window server to Mir
I don't understand all the negative reactions. Canonical is recognizing various problems in making GNU/Linux mainstream. They are then innovating at a deeper level (fixing root causes rather than duct-taping) to ultimately attempt to really attract the layman to a mobile or desktop GNU/Linux distro. Devs don't need to target Mir if they don't want to, Linux users can switch to another Debian if they don't like it, and the Layman discovers that Linux can possibly be just as shiny as Mac OS. Can someone explain to me why this is all so horrible?
pilgrim689··on Literals in Programming Languages
> I like [Python] better than C

Isn't it strange to compare Python/Perl to C and say that one is better than the other? It's apples to oranges. You wouldn't use Python or Perl to build an OS, and you wouldn't use C to prototype a web app.

pilgrim689··on Erlang 16B Released
I don't know actually. You can ask him, he posts his address on the front page: bonus at learnyouahaskell dot com
pilgrim689··on Erlang 16B Released
It's not written by the same guy. Fred Hébert for the Erlang one, Miran Lipovaca for the Haskell one.
pilgrim689··on Erlang 16B Released
I can't recommend http://learnyouahaskell.com/chapters enough. It was my first book coming from imperative to functional. It blew my mind. Plus, if you're looking to learn specifically functional programming, you don't get more functional than Haskell. I'd also consider Racket to see what Lisps can do (I stay away from Clojure just because it's in Java-land... but that might be a lame excuse).
pilgrim689··on Minix 3.2.1 Released
I'm only familiar with the QNX microkernel from working in safety-critical systems. I'm really excited for the possibility of an open source microkernel getting some mainstream attention, since the benefits (modularity, reliability, maintainability, security, etc.) of a microkernel are just too real to ignore now.

Can someone explain how Minix compares to Hurd? In terms of how far ahead both projects are, the differences in their architecture and visions?

pilgrim689··on 25 Years to Mac - How Ubuntu Pushed Me Away from the PC
I'm not sure who you're addressing, because I never argued against that... in my original comment: "[some people] rather something that "just works""
pilgrim689··on 25 Years to Mac - How Ubuntu Pushed Me Away from the PC
Of course it's not a good thing... If you want to hack on your system only to find out that it's all been prepackaged and filled with bells and whistles that can't be removed, there ain't much hacking you can do!
pilgrim689··on 25 Years to Mac - How Ubuntu Pushed Me Away from the PC
I think he could have taken the time he wasted Googling for duct-tape solutions and used it to read deeper documentation. Then, he wouldn't be so tired. Nonetheless, he wanted something that just worked, which Ubuntu didn't; so the take-away from all this is that Ubuntu is just not such a "consumer friendly" distribution after all. Linux is Linux... it has its roots in a community of hackers that build for hackers... it's hard to escape that ><
pilgrim689··on 25 Years to Mac - How Ubuntu Pushed Me Away from the PC
Reading this from an Arch Linux machine with everything configured to my liking from the system initialisation to package management to window management to terminal emulators feels very strange. Why would I ever want to give up knowing exactly what buttons to press to make my system behave the way I want it to?

The problem is probably: "Googling for some obscure mail archive to find I need to change “bop” to “boop” in /etc/something/config.ini. The amount of time that I had to spend doing this crap was growing instead of shrinking."

If you take the time and patience to understand your system and sift through man pages, configuration time will obviously shrink. If it's growing it's because you've never sat down to truly understand the cogs and screws of your system.

On the other hand, not everyone wants to read man pages, they'd rather something that "just works"... which Mac does way better than Ubuntu, unsurprisingly.

pilgrim689··on Linux 3.8 Released
"it seems like a good basis for a future secure Unix"

There's QNX for that: http://www.qnx.com/products/neutrino-rtos/secure-kernel.html It's used in industries such as automotive, nuclear, etc.

Perhaps you meant "future secure open-source Unix" ;) (QNX source was closed the day RIM announced the purchase)

pilgrim689··on Lunch and dinner with Julian Assange, in prison
"He is not "the most wanted man in the world"."

It is obviously not meant to be taken literally. He is, though, wanted by the US, the Brits, the Swedes... Who would you say, off the top of your head, has a higher "wanted" status today?

pilgrim689··on Stop Working More than 40 Hours a Week
... or recent travels or instruments they play or people they've seen or concerts they went to or adventures they've had or sports they play or side projects or dates or ...
pilgrim689··on Python trademark at risk in Europe
The judge would tell you that "prior art" is irrelevant here. This isn't about patents or copyrights. They are filing for a trademark...
pilgrim689··on The Algebra of Algebraic Data Types
I'm a beginner Haskeller and I'm really enjoying this blog so far. After reading through a few tutorials, it's refreshing to get some theoretical background to it all. It helps make the language more intuitive, even if it's not teaching concrete uses of the theory. Subscribed!
← PreviousPage 3 of 8Next →