Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
walrus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
211.
▲
by
walrus
14y ago
> Purely functional programming doesn't work, but if you mix in a small amount of imperative code then it does. That isn't controversial nor is it an opinion. It's just the truth. Purely functional code has no side effects. The entire
212.
▲
by
walrus
14y ago
Thanks for taking the time to explain. While I haven't experienced much joy in reading mathematics so far (beyond a select few books), maybe I'll understand in a few years.
213.
▲
by
walrus
14y ago
> Pi, as it turns out, may serve as a source for random sequences of digits. So apart from its geometric meaning, Pi stays interesting. Right, but the fun part (for me) is finding out how and why pi can be used as a source of random seq
214.
▲
by
walrus
14y ago
Maybe. I'd like to hear back from lutusp before I jump to that conclusion.
215.
▲
by
walrus
14y ago
I liked Concrete Mathematics by Ron Graham, Donald Knuth, and Oren Patashnik. Get it from the library of a nearby university, read the first chapter, do the warm-up problems, then decide if you like it enough to read the rest. The authors h
216.
▲
by
walrus
14y ago
> Oh, this is so wrong. Did you like Avatar? Then you like math. Avatar is one long, beautiful mathematical expression, from beginning to end. Can you elaborate? To me, the interesting part of mathematics is the process of manipulating
217.
▲
by
walrus
14y ago
> Of course there some exceptions – programmers who are known mostly for their work. These are almost exclusively in the free software field though, like Linux Torvalds or RMS. Linus really is known for his work, huh?
218.
▲
by
walrus
14y ago
It's not technically wrong: 0 is indeed a "low probability". It's misleading, though.
219.
▲
by
walrus
14y ago
Not that it really matters, but chartulous < data.csv http://partmaps.org/era/unix/award.html
220.
▲
by
walrus
14y ago
It's also super short, so you can easily glance over the source code to make sure it's not doing anything shady (it's not).
221.
▲
by
walrus
14y ago
Search YouTube for "relay computer" for an example.
222.
▲
by
walrus
14y ago
Probably not, but that's not really the point. People do this this kind of math because it's fun.
223.
▲
by
walrus
14y ago
megrimlock has a poster of a Venn diagram on the wall. The intersections in the diagram represent interdependencies between different parts of a piece of software (in object-oriented programming terms: places where encapsulation is broken).
224.
▲
by
walrus
14y ago
http://www.haskell.org/haskellwiki/Mutually_recursive_module...
225.
▲
by
walrus
14y ago
Just curious: how did you find this? I don't see a link to it anywhere on Knuth's website. The only reference I can find to it is on Twitter[1]. [1] https://twitter.com/pervognsen/status/230892091188846592
226.
▲
by
walrus
14y ago
It works. Common Lisp just happens to have a function built in (substitute) that does pretty much what the problem asks for.
227.
▲
by
walrus
14y ago
Was the title change really necessary? No one knows what "The Construct" is, but a lot of people know what "Fluid Simulation in 9 Lines of Code, and More on Fast Simulation Prototyping" is.
228.
▲
by
walrus
14y ago
355/113 is actually [3,7,15,1]. The reason it's particularly good compared to its length is because it falls right before the 292 term (since 1/292 is a much smaller contribution than 1/1).
229.
▲
by
walrus
14y ago
> 1. [...] There is always some sort of crap class that the department "thinks" you should take. For you it is Mat 380 Error-correction Codes. Error correcting codes are fun! Taking a class on coding theory gave me some insight on compr
230.
▲
by
walrus
14y ago
object["method"](params) is just an alternative syntax. Normally you would do object->method(params).
231.
▲
by
walrus
14y ago
You can explain the difference without attacking the person you're replying to.
232.
▲
by
walrus
14y ago
Putting the data argument second is nice when combined with currying. For example: var bigNumbers = Udon.curry(Udon.filter)(function (number) { return number > 5; }); bigNumbers([3, 1, 4, 1, 5, 9]); // [9] bigNumbers([2
233.
▲
by
walrus
14y ago
How about both? Udon.flip = function(f) { return function(x) { if(arguments.length > 1) { return f(arguments[1])(x); } return function(y) { return f(y)(x); };
234.
▲
by
walrus
14y ago
Which of Underscore's design decisions didn't you like?
235.
▲
Practical functional programming in JavaScript
(extralogical.net)
62 points
by
walrus
14y ago
|
38 comments
236.
▲
by
walrus
14y ago
JavaScript's prototypes really are poorly designed, though. To see how it probably should have been done, check out the programming language Io ( http://iolanguage.com/ ) or Douglas Crockford's note on prototypal inheritance in JavaScript a
237.
▲
by
walrus
14y ago
I really did interpret it in the same way as aheilbut initially (i.e., I initially thought that the author was just whining). However, I realized I was probably missing something, so I decided to ask. Fortunately for me, you came along and
238.
▲
by
walrus
14y ago
I understand your viewpoint here, because that's more or less how I interpreted the article on my first read through. However, you likely misinterpreted the article. See pnmahoney's response to my comment: https://news.ycombinator.com/item
239.
▲
by
walrus
14y ago
Thanks. After reading your comment and rereading the article, I agree with your interpretation (but I can't stand the author's presentation). It's too bad that the author chose to put the "male" spin on things[1][2][3][4]. I found that offe
240.
▲
by
walrus
14y ago
Can someone explain to me what the author is trying to say? I see two things in the article: 1. In the author's eyes, the majority of early Facebook employees acted in a juvenile masculine manner[1]. 2. Some of those early Facebook employee
More ›