Better HN
topnewbestaskshowjobs
Log inSign up

vinayp

6 karma · joined Apr 15, 2011 (15y ago) · 2 submissions

YCombinator '07

[ my public key: https://keybase.io/vp; my proof: https://keybase.io/vp/sigs/YL0BdLim7SfjZx2yh0m6tGf5hprwT4DV5cgh3unERiQ ]

YC Badge: 0x59aa082c10256c1483483b5f7c6fa3dee17a814a

Submissions

comment 15y ago · link · parent

:) Would still love to see your implementation though. Ours only covers a subset of the spec so lots of room for improvement...

comment 15y ago · link · parent

Don't want to turn this into a Node.js/Python flame war (we love Python as well here at MileWise), but regarding asynchronous Python code:

It's more just an annoyance of the language. Specifically, anonymous functions are must easier in JavaScript, so it was just easier to write read and write maintainable code.

In Python, you are limited to only passing in simple lambda functions (although deferreds do get around this issue somewhat). It's not a show stopper but when combined with all the other advantages of Node.js, it just made the decision to switch a lot easier.

We also ran into a lot of issues related to poor garbage collection in Python and were using up a lot of memory. This was not related to dangling references but rather Python's permanent allocation of Integer and Float objects.

Finally, we just saw better performance out of V8 than Python (although we never tried anything else besides vanilla Python 2.6).

For our specific problem, Node.js worked well. It's not always the right solution. We will write a more detailed blog post soon with specifics of how we used Node.