Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
creationix
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
creationix
14y ago
It's not a new format, I have no idea why it's popular news today. Having worked extensively with both msgpack and JSON in a javascript environment, I can tell you, its the closest to JSON of all the binary formats. The difference with JS
92.
▲
by
creationix
14y ago
Is was a fun project actually. https://github.com/creationix/msgpack-js-browser
93.
▲
by
creationix
14y ago
That benchmark you referenced has nothing but strings for it's data. That's not msgpack's strong point. Do another benchmark with nothing but small integers and arrays and you'll find msgpack kicks json's tail in both cpu usage and bandwi
94.
▲
by
creationix
14y ago
How is it binary unfriendly? It's designed to be super easy to parse using C. The lengths and types are in the first byte(s) and most conversions can be done using typecasts. And as far as human readable binary format, it's not that bad.
95.
▲
by
creationix
14y ago
Let me weigh in with my experience with msgpack. I'm a long-time nodejs core contributor and have been designing browser libraries for many years. I discovered msgpack almost three years ago and was sad at the lack of javascript support.
96.
▲
by
creationix
14y ago
Cloud9 is a very large application. We have many developers working around the clock in different time zones constantly. The main thing that helps us work together is clearly defining the interfaces between different modules or pieces of t
97.
▲
by
creationix
14y ago
The neat thing about architect is that some plugins provide "services" or named APIs and other plugins consume such named APIs. It's interface oriented programming. The service names are simple short strings and that's why architect has a
98.
▲
by
creationix
14y ago
Like I said in my nodeconf talk. "Callbacks are Hard... in C!" JS callbacks are a very elegant tool for a very hard problem. In node you have the power and responsibility to manually decide when your thread of execution stops and when
99.
▲
by
creationix
14y ago
I can tell you the node libraries I wrote for this release are very cool in their own right as well. See the c9 account on github for most of them. I'm especially proud of the vfs system.
100.
▲
by
creationix
15y ago
Indeed, this is a problem. I've mitigated it somewhat by changing how require works (to be more node-like) and disabling the built-in I/O library. This will make most offending libraries unable to run in Luvit. Also this means I don't ge
101.
▲
by
creationix
15y ago
Indeed. In that benchmark I did, it was 2 times faster on 32-bit linux and 4 times faster on 64-bit linux. In both the Luvit version used about 40x less ram. Also startup time is much faster in Luvit. This doesn't matter as much for s
102.
▲
by
creationix
15y ago
It's a much leaner VM and it much faster and uses less memory in all my tests. However Lua and JS aren't the same language so real applications may show something different.
103.
▲
by
creationix
15y ago
Just remember to ask yourself when you're out of hours in the day and still have work to do and family to be with: "What matters most?" http://youtu.be/l70e1TfN34w
104.
▲
by
creationix
15y ago
As an added bonus, I've discovered that not being able to hack till after the kids are in bed means you're more motivated to get them to bed on time. They get more sleep and you can code once the house is quiet and you brain just had a bre
105.
▲
WebGL implemented for nodeJS and webOS
(nodeknockout.com)
16 points
by
creationix
15y ago
|
2 comments
106.
▲
by
creationix
15y ago
Also try running apachebench with the keepalive flag. I know it's not realistic, but then again, hello-world benchmarks never are.
107.
▲
Learning Javascript with Object Graphs (Part II)
(howtonode.org)
2 points
by
creationix
16y ago
|
0 comments
108.
▲
by
creationix
16y ago
I have written extensively on this topic, here are a few articles. Here is the progression leading up to the development of Step. http://howtonode.org/control-flow http://howtonode.org/control-flow-part-ii http://howtonode.org/control
109.
▲
by
creationix
16y ago
I never said JavaScript is best language to use server-side. That would be insane. I'm just saying that it worked well for the browser (mostly because it was forced on us, but still) and node is an experiment to try the same thing on the
110.
▲
by
creationix
16y ago
Whether you like the model or not, the fact is that JavaScript with it's callback/event based model is what browsers understand. And the internet isn't going anywhere anytime soon. Node is an attempt at using this successful model on the s
111.
▲
Deploying Node Apps with Spark
(howtonode.org)
20 points
by
creationix
16y ago
|
0 comments
112.
▲
by
creationix
17y ago
Good catch, I'm looking into this one. I know I've seen this behavior before in some JS environment. I'm glad it's not the case for V8 and will shortly update the article.