Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
361.
▲
by
pka
14y ago
I can't count the number of times I've googled for simple commands like "how do I revert an uncommited file to its original state"? hg revert bla.txt git ??? ... and I would still have to google for it (it's something with HEAD
362.
▲
by
pka
14y ago
Facebook chat is based on Erlang, at least 1-2 years ago when they made a presentation [1] about it at CUFP. [1] http://cufp.org/videos/functional-programming-facebook
363.
▲
by
pka
14y ago
You're forgetting about OTP, Erlang's battle tested framework that covers about any edge case conceivable in a concurrent world. By themselves, you could probably produce hacky actors, pattern matching and hod code swap implementations in m
364.
▲
Curiosity's Seven Minutes of Terror
(youtu.be)
1 points
by
pka
14y ago
|
1 comments
365.
▲
J. Carmack, M. Abrash and P. Lucky talk about VR live at QuakeCon right now
(own3d.tv)
1 points
by
pka
14y ago
|
1 comments
366.
▲
John Carmack QuakeCon keynote streaming now
(own3d.tv)
5 points
by
pka
14y ago
|
0 comments
367.
▲
by
pka
14y ago
I thought this would be about rewriting the core HTML renderer or JS engine in Haskell. As it stands now, is this not just the "chrome" around WebKit?
368.
▲
by
pka
14y ago
js minifiers not only remove whitespace, they reorder execution paths, eliminate useless declarations, identify unreachable code [1]. Reformatting a minified js file is not going to produce a much better result than disassembling a distrib
369.
▲
by
pka
14y ago
Absolutely agree. I would never be able to take anybody seriously (in terms of hiring them) who can't spell or get basic grammar right in my native tongue, but this tends to be quite common in written English. How much can one infer from th
370.
▲
by
pka
14y ago
The only thing that has changed is that the compiler has got better at identifying code that is recalculating the same value over and over, and gets rid of that code. i.e. the compiler identifies pure functions and tries to move t
371.
▲
by
pka
14y ago
FF users may wanna check out Pentadactyl [1]. Press f/F, type in number or link text, done. [1] http://5digits.org/pentadactyl
372.
▲
Ask HN: does a compressed spring weigh more than the same spring uncompressed?
3 points
by
pka
14y ago
|
2 comments
373.
▲
by
pka
14y ago
Partly, sure. If I had to write some C again I would surely try to do it as functionally as possible, and with the added experience I have gained in the last years I would now probably be a better overall C programmer. But had I sticked wit
374.
▲
by
pka
14y ago
It's absolutely doable in HTML+Js - I've written a TableView in GWT that utilizes the exact same principle and was actually inspired by Cocoa's TableView API. It could render thousands of rows (or however many) utilizing only a few actual d
375.
▲
by
pka
14y ago
Automatic memory management, instantaneous compilation, no portability issues, (easier) polymorphism. Maybe weeks -> days was an overexaggeration when it comes to C -> Java but I definitely experienced a big productivity gain, and i
376.
▲
by
pka
14y ago
So, Java's HashMap.get() should throw a checked exception whenever the value is not found in the map? That would sure eliminate a lot of boilerplate code :) Aren't exceptions meant to be used for, well, exceptional cases only, i.e. when n
377.
▲
by
pka
14y ago
Well, it depends. For example, look at core.logic and show me something comparable in Perl or Python. The ability to just code up a DSL in no time, with the same syntax as the rest of the language is a really powerful tool, and I've yet to
378.
▲
by
pka
14y ago
Sure, but a 3x faster programmer will still be more efficient than 3 other programmers, because there is no communication overhead and opportunities for misunderstandings. I would rather hire somebody really good for $6k / month than 3 peop
379.
▲
by
pka
14y ago
Good you're not a manager then. When I switched from C to Java, I experienced a considerable bump in development speed. Just the collections framework was a godsend, not to mention things like GC etc. Quite literally I would write things i
380.
▲
by
pka
14y ago
At the price point we can afford? Just a quick note: from personal experience, I've been a lot more productive in Clojure than in Java, and I have written a lot of Java code. Things like the REPL, STM or FP speed you up a lot, I would say
381.
▲
by
pka
14y ago
Yeah, I was overgeneralizing - what I meant were industrial Californian tomatoes. The taste is probably much better in other regions of the US. Also it probably depends on what chain you buy them from - it wasn't Walmart but it was still so
382.
▲
by
pka
14y ago
Coming from Europe, when I was in America (CA) 3 years ago I was shocked that supermarket tomatoes just didn't have any taste; literally, they tasted like water. When I tell my friends about this they think I surely must be exaggerating. Ye
383.
▲
by
pka
14y ago
This problem has already been solved in the Haskell ecosystem [1]. For example, you get typesafe URLs so that if you have a standard query like myapp.com/person/345 you can't mistakenly misuse 345 as an article id. Every input string is tra
384.
▲
by
pka
14y ago
For all my love of Clojure, having used its STM implementation I can wholeheartedly agree with this. Having side effects in a transaction occur more than once because you didn't pay attention is a real pain to debug, mostly because the tran
385.
▲
by
pka
14y ago
Could you give a concrete example that shows why Haskell is constraining?
386.
▲
by
pka
14y ago
Yes, but without pattern matching and a do-like syntax sugaring they are close to useless, unfortunately.
387.
▲
by
pka
14y ago
Managers like you are the reason why I quit my day job and started a thing on my own. Best decision I ever made.
388.
▲
by
pka
14y ago
Thanks for the comprehensive reply; however, a quick search turned up a couple of small, portable and embeddable Lisp dialects (Hedgehog, PicoLisp, ECL) that all seem to target the same niche Lua is apparently designed for. Admittedly, Lua
389.
▲
by
pka
14y ago
The same thing in Clojure (untested): (doseq [[a c] (zip ["dog" "cat" "bird"] ["brown" "black" "red"])] (print "See the " c a "?")) Haskell: mapM_ (\(a, c) -> putStrLn $ "See the " ++ c ++ " " ++ a ++ "?") (zip ["dog", "cat", "bird"] ["
390.
▲
by
pka
14y ago
An honest question: for which use cases is Lua strictly better than Lisp?
More ›