HNHacker News
TopNewBestAskShowJobs

brtzsnr

38 karma · joined April 20, 2009

submissionscomments
brtzsnr··on Visualization of the Grammars of Ruby, Java and Javascript
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).
brtzsnr··on [dead]
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.
brtzsnr··on List of Algorithms
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

brtzsnr··on 2010: The Year Information Pollution Takes Off
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.
brtzsnr··on What did 'Life of Brian' ever do for us?
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.
brtzsnr··on Drinking alcohol every day cuts risk of heart disease in men by more than third
However, it probably increases risks of liver disease by more than a third.
brtzsnr··on Netherlands To Tax Drivers By the Kilometer
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.
brtzsnr··on Why I'm not very excited about Go
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.
brtzsnr··on What the world would look like if light traveled slowly (interactive simulation)
No linux version?
brtzsnr··on Ask HN: Why downvote? I honestly do not get it.
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'.
brtzsnr··on Real Life Prisoners Dilemma with $100k at Stake [vid]
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'.

brtzsnr··on Writing serial port interrupt handler in linux
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.

brtzsnr··on Poll: What is your primary *nix distro on your home machine?
Other: Archlinux
brtzsnr··on Distributed Hash Tables and the Postage Stamp Problem
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.
brtzsnr··on How to get/generate free music for a game?
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

brtzsnr··on Why Java (and almost every other programming language) sucks
.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.

brtzsnr··on What's luck got to do with it? The math of gambling
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 :).

brtzsnr··on Ask HN: What terminal emulator do you use ?
I use 'terminator' a very nice terminal based on Gnome Terminal. If you like GT definitely you should try terminator as well.
brtzsnr··on BSD For Linux Users
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.

brtzsnr··on Exploring memcmp
""" 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...