HNHacker News
TopNewBestAskShowJobs

tuxychandru

549 karma · joined March 11, 2010

submissionscomments
tuxychandru··on No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 Spaceships
Ah, so I cannot just use any Java library that performs IO if I have to get quasar's benefits.
tuxychandru··on No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 Spaceships
How do you determine whether a method call is thread-blocking or not?

Should libraries be quasar-aware to not end up in the IO workers pool when invoked?

tuxychandru··on No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 Spaceships
When a query is executed with JDBC, the execute() method does not return until the the DB responds. The method must have been invoked in some OS thread by quasar scheduler. Wouldn't that thread block as long as execute() doesn't complete?

To put it differently, can I make 10000 concurrent HTTP requests (to different domains), using a non-NIO HTTP client library, without ending up with one OS thread per request?

If I can, how does the scheduler manage it?

tuxychandru··on No More Callbacks: 10,000 Actors, 10,000 Threads, 10,000 Spaceships
Have you published the benchmark source codes used for the comparison, anywhere? I am interested in figuring out the bottlenecks that make go perform worse.
tuxychandru··on Writing Web Applications in Go
Go is much better at responding with large amounts of data when the database call is eliminated. I can only assume its ability to deal with large strings is leaps and bounds superior to v8 which makes sense to me.

In my own micro-benchmark, I've seen that BSON decoding takes big chunk of time when using mgo. That should explain why the go version got faster when DB access was removed.

This shouldn't come as a surprise as the node.js driver uses a BSON parser written in C++ by default.

tuxychandru··on How to use interfaces in Go
No but it has to be passed a pointer to a structure which implements Entity.
tuxychandru··on United Airlines Lost My Friend's 10 Year Old Daughter And Didn't Care
The benefits of air travel outweigh the risk of dying in air crash and other modes of travel are riskier.

However the benefits to the person helping the child is minuscule compared to the risk of ending up in prison and being added to sex offenders list. It is minuscule even compared to the risk of undergoing a criminal trial.

tuxychandru··on Nginx design details
I use ZeroMQ or Go's RPC libraries for internal communication and mostly use nginx as reverse proxy and to serve static files on the edge.
tuxychandru··on Nginx design details
I do not know about others but I do it because not mixing up web server responsibilities with application server is a good idea. For example, I leave things like gzip compression and TLS handling to nginx without having to deal with them in my app.
tuxychandru··on C10K 2012: Erlang Wins, Go a close second. Java, Haskell, Node & Python fail
But it returned only half as many messages as Go.
tuxychandru··on Ask HN: Who is using Go language?
The bug affects application dealing with large integers which can be seen as a valid pointer within the program's address space. So, this will affect your app if it deals with large ints.

There is also work underway to make the GC more precise which will avoid this problem in future.

tuxychandru··on When Rob Pike first met rms
The woman was carrying the sign "Patents Cripple Software.". Rob might have thought the wheelchair was symbolic.
tuxychandru··on Ubuntu To Soon Ship On 5% Of PCs
I guess I'm in the minority then. Unity is one of the few desktops which gets completely out of your way and uses minimum screen real estate while still remaining usable by non-technical users.

With HUD in 12.04, it's the only widely-used DE I can control almost entirely with keyboard.

tuxychandru··on Digramly - build diagrams online with great ease for free
Google docs does have drawing tools. Insert > Drawing...
tuxychandru··on Go Version 1 now on App Engine
All network IO in go is non-blocking. Channels and goroutines avoid the nested callback mess. Go is also a better designed language than JS.

Gorilla[1] provides nice libraries for web development in Go.

[1]http://gorilla-web.appspot.com/

tuxychandru··on Ubuntu 12.04 LTS (Precise Pangolin) Beta 1 Released.
Icons in the launcher can be moved around by clicking and holding them for a second.
tuxychandru··on The Great Web Framework Shootout – On GitHub
Using a framework on top of plain node.js is not going to make it faster.
tuxychandru··on Two decades of productivity: Vim's 20th anniversary
Eclim [http://eclim.org/] does this for Eclipse.
tuxychandru··on Chrome extension "Awesome Screenshot" messes with Google search results
I didn't know an official Google extension existed for this, until I scrolled further down the thread!
tuxychandru··on Chrome extension "Awesome Screenshot" messes with Google search results
Webpage Screenshot does full-page captures, in case you're looking for a replacement.

https://chrome.google.com/webstore/detail/ckibcdccnfeookdmba...

tuxychandru··on Voice search enabled on Google homepage (Chrome)
Didn't you have to click the mic icon before it started recording anything?
tuxychandru··on The 10 commandments of good source control management
Why not squash all the broken commits together before pushing to the central repository (assuming you use a DVCS)?
tuxychandru··on CoffeeScript 1.1.0 released
Global and local installations are documented here.

http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-in...

tuxychandru··on Apple is actually asking for 100% of SaaS mobile revenue
It wouldn't cost apple anything if they just allow applications downloaded of websites to be installed on iDevices. I'm sure subscription services would be happy to host a small application package themselves.
tuxychandru··on Bing smacks Google in new usability test
I see it in the second result from Google!
tuxychandru··on Microsoft backs H.264.
When MPEG LA which holds several codec related patents in its pool cannot indemnify its H.264 licensees, Google indemnifying WebM sounds far fetched.
tuxychandru··on Why PHP is (still) the easiest web programming language to learn
Except that printing back the value of a POST parameter in PHP is just.

    <?php
        echo htmlspecialchars($_POST["name"]);
    ?>
Most other languages would need a lot more (even with things like mod_perl). Plain PHP is definitely incomparable to Rails/Django but for web development, it definitely is much more than just Perl/Python/Ruby.
tuxychandru··on The Practical vs. Idealistic Scenarios for the Near-Term Future of Online Video
While I do not know the exact figures, there still is a good possibility for Apple to gain

They pay for H.264 license to distribute their decoder, but collect royalty for their patents from every other codec vendor, device maker and commercial video distributor in the world.

tuxychandru··on Git Immersion
Branches are usable only when a merge is not unnecessarily painful. SVN's lack of ability to track renames is a big pain especially in languages like Java where the filename corresponds to code itself. SVN is capable of leaving the codebase broken after a merge.

Here's an example scenario I described in my blog an year back. http://tuxychandru.blogspot.com/2010/01/how-git-shines-above...

tuxychandru··on The Practical vs. Idealistic Scenarios for the Near-Term Future of Online Video
Moving to WebM may not save money for Apple. They gain money everytime someone pays MPEG LA for H.264 as they are one of the licensors. If H.264 loses widespread adoption Apple loses its share of the fees too.
← PreviousPage 2 of 4Next →