News for hackers. Stuff that matters.

brtzsnr

Re:Visualization of the Grammars of Ruby, Java and Javascript on Sunday December 06, 2009 @04:23PM (#980186)
Definitely it needs other grammars. I wish to see Python as well whose grammar is advertised as very light. Also C++ (templates), and Perl (for a contrast with Python).
I stopped (not) reading at "often for little or no monetary compensation". I'm still a student, I'm doing CS, I have good work experience, but unless they pay me good money (see Google & Microsoft) I won't accept any offer.
Re:List of Algorithms on Thursday December 03, 2009 @08:55AM (#974314)
Here [0] is an algorithm for bipartite matching not listed there. Too bad it is not a wiki.

[0] http://en.wikipedia.org/wiki/Hopcroft–Karp_algorithm

Re:2010: The Year Information Pollution Takes Off on Monday November 30, 2009 @12:51PM (#968279)
There is already way too much Information Pollution: for example, I read less than 10% of HN and other blogs/news sites have similar proportion.
Re:What did 'Life of Brian' ever do for us? on Sunday November 29, 2009 @08:14PM (#967164)
I saw the movie second time while smoking pot. Almost suicidal because I had trouble breathing from so much laugh. I suggest you try it.
However, it probably increases risks of liver disease by more than a third.
Re:Netherlands To Tax Drivers By the Kilometer on Saturday November 14, 2009 @07:33PM (#942398)
I live in Amsterdam. The public transportation has a similar system: pay for each kilometer you travel. The system is pretty complicated and user unfriendly (I lost twice 4.75€ due to some confusion). I believe they want some fairness, but if you ask me, the old system (pay per travel) was better.
Re:Why I'm not very excited about Go on Friday November 13, 2009 @02:14AM (#939546)
A mostly agree with your point of view. I would like to add that I think the author confuses generics with templates. The former is done using casting and RTTI, while the later is done by generating new code / new classes.
No linux version?
Re:Ask HN: Why downvote? I honestly do not get it. on Saturday October 31, 2009 @04:32PM (#914034)
I usually downvote intentional bad or wrong answers (of course, I don't think others opinion are wrong answers). It's more to inform the poster that he/she generated 'noise'.
Re:Real Life Prisoners Dilemma with $100k at Stake [vid] on Sunday October 25, 2009 @09:45PM (#902482)
Can anybody explain what's the most rational decision?

I believe that you should always call "steal". On average (assuming you don't know what the other person will choose) you get more money (1.0 if you steal versus 0.5 if you split) and you can never be betrayed.

More than that: each player decides whether the other player takes any money or not. However since the players decisions are independent it doesn't make sense to say 'split'.

Re:Writing serial port interrupt handler in linux on Tuesday October 20, 2009 @11:40AM (#892575)
Homework?

I had this assignment while studying Operating Systems Design during college. I can tell you I failed miserable. We used documentation from: http://www.beyondlogic.org/serial/serial.htm. You can find some examples there, but not for the Linux kernel.

Re:Poll: What is your primary *nix distro on your home machine? on Saturday October 17, 2009 @07:47PM (#887635)
Other: Archlinux
Re:Distributed Hash Tables and the Postage Stamp Problem on Saturday October 17, 2009 @04:37PM (#887392)
Interesting. I was working on the PSP problem for the "Son Of Darts" contest (http://www.azspcs.net/Contest/SonOfDarts/). The contest asks solution for the third case (h << k) where the paper is slim.
Re:How to get/generate free music for a game? on Friday October 16, 2009 @04:57PM (#886155)
I've been involved in developing NAEV [0]. Some of its music is "stolen" from other games under CC license, and some was produced by players.

You can start by borrowing music from other games and put an announcement (on forums, mailing lists, in game) saying that you need music. If people like your game somebody with musical skills will help you creating soundtracks eventually. Just don't expect this to happen overnight. NAEV has been under development for over 6 years.

[0] http://github.com/bobbens/naev

Re:Why Java (and almost every other programming language) sucks on Wednesday September 23, 2009 @11:51AM (#839476)
.next() makes sense when you think that generators are also iterables and must support the corresponding interface.

having () and .next() would violate Python philosophy: only one way to do it.

Re:What's luck got to do with it? The math of gambling on Monday September 21, 2009 @08:26AM (#834441)
Interesting article! I had a similar idea to make sport bets & win money.

So, do you know any site that aggregates bets from different bookies?

Update: http://www.betbrain.com/ is even listing SureBets :).

Re:Ask HN: What terminal emulator do you use ? on Sunday August 30, 2009 @04:48AM (#794261)
I use 'terminator' a very nice terminal based on Gnome Terminal. If you like GT definitely you should try terminator as well.
Re:BSD For Linux Users on Tuesday July 07, 2009 @08:05AM (#691308)
I used Windows in the past, moved to Linux (right now, I'm using ArchLinux), also tried FreeBSD.

My problem is that I have a laptop, and FreeBSD doesn't have to many drivers for it including the battering saving ones. Plus, since I need a desktop (includes applications like Firefox, Flash, OpenOffice, GIMP, etc) I found that FreeBSD had quite a few usability bugs (eg. in Firefox, images were only half rendered). So now I'm happily using Linux - the arch way.

I tried installing ArchLinux on my father's computer, but I didn't have time to configure everything (eg. pressing the poweroff button shuts down the computer) and from an end's user point of view his desktop was barely usable. Finally I decided to go with Ubuntu, and since then I haven't heard any other complain about his OS. On contrary, he is much happier than he was when he had Windows installed. Now, only if I find some good chess linux software. Grandmaster Chess was his favourite, but in the linux world I could not find anything similar, only some playing engines.

Re:Exploring memcmp on Thursday May 14, 2009 @04:46AM (#608435)
""" A much faster solution would be the same approach rsync takes with its "rolling checksum." """

I know this function is attributed to Bernstein and it's called Bernstein hash [0]. You're describing the Rabin-Karp string matching algorithm [1].

[0] http://fr.wikipedia.org/wiki/Table_de_hachage#Fonction_de_Ha...

[1] http://en.wikipedia.org/wiki/Rabin-Karp_string_search_algori...