HNHacker News
TopNewBestAskShowJobs

agazso

418 karma · joined June 11, 2009

submissionscomments
agazso··on C++ in Coders at Work
(Another author here)

The basic issue is that we didn't want to include external libraries, because it's a pain to debug, pain to build on multiple platforms and there are licensing issues.

Also we don't use so many datastructures, so we rolled our own and we are happy with them. For example we have an intrusive treemap, that has a function for returning the middle of a sorted key which is useful when you want to split a keyspace into two. Not sure if any of STL/Boost supports that.

Your solutions looks good, you are hired! ;) Seriously, we know that it is not that hard, but still the applicants have problems with it.

agazso··on C++ in Coders at Work
Also don't forget licensing issues. It becomes important when you make a living of selling software.
agazso··on C++ in Coders at Work
Eclipse and CDT for C++ coding sucks. However this doesn't mean there aren't any good tools. Both Visual Studio and XCode are very good for working with C++.
agazso··on Finding similar items using minhashing
In practice there is a certain kind of minhashing that is used in key-value stores, which is called a Bloom-filter.

Basically it is a probabilistic bitmap index for quickly telling if a certain elem is in a set. It is used in BigTable, Hbase etc.

http://en.wikipedia.org/wiki/Bloom_filter

The Jaccard similarity (or Jaccard index) mentioned in the article is used for finding similar items in a big set. E.g. Google News uses it for aggregating articles on the same subject.

agazso··on Stuxnet is now on GitHub
Since 1991 :)

Seriously, it is one of the biggest open-source C codebases out there, with thousands of hackers working on it. And the result is very good, as the majority of the internet is running on it.

agazso··on What is the most effective thing you did to improve your programming skills?
In most recent C compilers you can turn on warnings for at least missing return values from functions and not having a default: in a switch.

It is good practice to compile C/C++ programs with high warning level, and fix all the warnings before shipping.

agazso··on Debian 6.0 “Squeeze” released
I wouldn't call it `cleaner and more modern' either but I really don't care. The best thing in Debian is that you don't have to visit their website often (or at all), because everything works in it, and everything works from command line.
agazso··on Sublime Text 2: Public Alpha Released
Hi, very cool editor, currently I'm thinking about making it my default editor instead of TextMate.

However there are few issues:

* The default theme looks too dark (at least on OSX). It's hard to see which tab is active atm. Simple gray would be better (like in Chrome).

* Cannot change between tabs with Cmd-number.

* If the file is long and minimap is bigger than the height of the screen, clicking on it does not take you to the clicked position, but somewhere else.

* Too much animation, imho.

* Seriously needs a better icon, at least on OSX. It's too simplistic and looks like the frame that you can move when Cmd-tabbing through the programs.

Hope that helps, and keep up the good work!

agazso··on MongoDB, Data Durability and Improvements coming in 1.8
This is exactly how all databases work. Well, except for MongoDB ;)
agazso··on I launched 06-10 and constantly feel helpless and lost. What advice do you have?
For me the main raison holding back is that I don't like to register to new websites. I like for example Hacker News' Clickpass authentication, because it's easy to use and I don't have to remember another password. But on your site Facebook connect would be even better, because it opens a lot of possibilites.

Another thing is that I don't know how the blog looks like because I can't find a link to it. So a Tour or Help would be nice, or a link to active blogs from the main page.

Other ideas:

Make a contest for newly registered users for a prize of something cool, e.g. iPhone4. Also make a mobile optimized version of the site, or an iPhone app, where the users can find, comment, upload images based on GPS coordinates.

agazso··on I launched 06-10 and constantly feel helpless and lost. What advice do you have?
Checked out your site and as an avid backpacker found the idea pretty cool, but yes, it feels empty.

My experience is that backpackers tend to use Facebook a lot, so integrate your login with Facebook Connect for starters. Make it more social by hotels/restaurants/etc. having Like buttons that points to your site.

Create a Facebook group, where these people can get to know each other. It is also a good opportunity to advertise your page.

Try to fetch data from Google Maps/Yelp/Foursquare and put it on your site. Make badges and achievments like Foursqare does, that users can earn and show off. That makes them wanting to go back to your site and make activities.

agazso··on Telehash: JSON+UDP+DHT = Freedom
The bigger an UDP packet the less the probability it arrives. 1400 is probably chosen because it is less than the usual MTU of ethernet which is 1500.
agazso··on Tabs on the side?
With the latest Chrome you can try the --enable-vertical-tabs command line option.

See: http://www.howtonew.com/how-to-move-chrome-tabs-to-the-left-... http://googlesystem.blogspot.com/2010/08/google-chrome-labs....

agazso··on Scalable memory allocation using jemalloc
It is not a performance evaluation, but there is a comment from Niall (the author of nedmalloc) in Jason Evans' blog that might give you a hint.

http://t-t-travails.blogspot.com/2010/04/red-black-trees-rev...

agazso··on Software Patents Have Got to Go
Keep in mind that copyright is also a form of intellectual property. Do you really want it to die as well?
agazso··on Emscripten: an LLVM to JavaScript compiler
This is cool for porting existing C/C++ libraries to the web without actually having to rewrite it in Javascript.

Similar project for Flash is Alchemy: http://labs.adobe.com/technologies/alchemy/

agazso··on Lisp interpreter in 90 lines of C++
I'm nitpicking, but actually any C or C++ program can be written in one line, but otherwise it's a great experiment.
agazso··on BSD For Linux Users: Intro
In Unix it is rather "everything has a file descriptor at API level" while in Plan9 it is really "everything is a file" from the system standpoint.

It is not surprising since Plan9 also came from Bell Labs, and they learned the lessons of Unix, raising the idea to a new level.

agazso··on Algorithms and Data Structures by N. Wirth [pdf]
Scribd link does not work. I think this is the result the recent Facebook Connect integration...
agazso··on Facebook’s Modern Messaging System: Seamless, History, And A Social Inbox
It is not a new system, it is an already existing technology called Apache HBase that is part of the Hadoop ecosystem.

Here is a video from the recent Hadoop World conference, where Jonathan Gray from Facebook speaks about their experiences with HBase:

http://vimeo.com/16350544

agazso··on Ask HN: What are you reading right now?
Coders at Work by Peter Seibel.

Very interesting interviews with hackers and/or computer language inventors.

agazso··on Ask HN: Cost of living across the world (Ramen PPP Index for hackers)
Budapest

Rent for a two rooms flat in a good part of the city is about 300-400€.

Internet is 40€ (15Mb).

You can get a meal for 3-4€. Monthly pass for tram/bus/underground is 40€. A pint of beer is around 1.5-2€ in clubs.

The average IT worker salary is about 1000€, but it's hard to tell because the tax system is complicated and everyone is finding and abusing holes in it.

agazso··on Ask HN: Please recommend an open-source SMTP server
I second that. It is mature technology, can be easily integrated with spam and virus filters and its configuration is quite logical.

It should handle 40000 emails a day on an old machine easily (it is about twice a second on average).

agazso··on Start ups, please don't force me to log in with Facebook
It's interesting, I registered Quora last week and it was optional to use your Facebook or Twitter account to register. It was a bit tricky because it looked like you need it, but you could make progress without it.

But I rechecked a minute ago, and it really required it. It seems that they changed the policy this week.

agazso··on Zero-day Flash exploit on all platforms, fix two weeks out
Use Flashblock or something similar. By default Flash objects are turned off, but you can click on them to enable.

Firefox: https://addons.mozilla.org/en-US/firefox/addon/433/

Chrome: https://chrome.google.com/extensions/detail/cdngiadmnkhgemki...

agazso··on Mongrel2 1.0 released.
I have an old idea regarding webservers: peer-to-peer file transfer. The server would not store the file on disk, only the last transferred block in memory. Rate control would be done at TCP level: while the block is not transferred by the receiver, the server would not read again from the sender.

I have written several HTTP servers myself, and I know it's doable, but the world does not need another webserver that only has this distinguishing feature.

My question is if all of this can be done with Mongrel2?

agazso··on What I would do if I was in charge of Windows 8 - Miguel de Icaza
The Registry is a pseudo file system inside the file system. It is one of the reasons that Windows is so much harder to backup and restore than Unix is, because parts of it contain system state and other parts contain configuration and the whole is mixed into one big mess.

On the other hand, text files are universal.

agazso··on Automated Scalability with Python on nginx
It is so wrong on many levels I don't even know where to start. He is scaling a blog engine (!) with a "scalability daemon" instead of generating html pages and storing them in cache. He could then serve ten thousands of pages with one server instead of 823 request of seconds and the complex setup.
agazso··on ALL code is ugly
This feature is also in C and in Go language. It makes especially easy to write code generators, because you don't have to deal with first/last special cases.
agazso··on Better performance in App Engine with new Lisp language Clojure
Just-in-time compilation is not a new idea. According to the book "The Practice of Programming" (by Brian W. Kernighan and Rob Pike, Ch9, pg. 242):

"Generalizing the idea for the full set of operations, we can write an on-the-fly compiler that translates the current regular expression into special code optimized for that expression.

Ken Thompson did exactly this for an implementation of regular expressions on the IBM 7094 in 1967. His version generated little blocks of binary 7094 instructions for the various operations in the expressions, threaded them together, and then ran the resulting program by calling it, just like a regular function."

← PreviousPage 3 of 6Next →