Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mjijackson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
Twitter CEO Costolo on Apple, Privacy, Free Speech and Google; Far From IPO
(blogs.wsj.com)
1 points
by
mjijackson
15y ago
|
0 comments
32.
▲
I am not the 99%, and whether or not you are is your decision
(the53.tumblr.com)
6 points
by
mjijackson
15y ago
|
12 comments
33.
▲
India unveils draft National Telecom Policy 2011
(rcrwireless.com)
1 points
by
mjijackson
15y ago
|
0 comments
34.
▲
by
mjijackson
15y ago
He's not suggesting forking. He's suggesting spinning up a new process entirely (ffmpeg in this case).
35.
▲
by
mjijackson
15y ago
It's not the main point of the article, but I just thought I'd point out that node already does have a WSGI/Rack-style library for folks who like that kind of thing. It's called Strata ( http://stratajs.org ). Disclaimer: I'm the author.
36.
▲
by
mjijackson
15y ago
Even so, this breaks down with JSGI middleware that depends on running in a Java environment. For example, JSGI's gzip middleware uses Java's byte buffers.
37.
▲
by
mjijackson
15y ago
Thanks! I think if you dig in and actually write something with if you'll soon see that the differences are subtle, but significant.
38.
▲
by
mjijackson
15y ago
Proven to fail? You haven't proven anything. Abstractions can be useful. You use lots of them every day. Node itself is an abstraction.
39.
▲
by
mjijackson
15y ago
Parsing multipart requests and saving uploaded files to temporary files on disk. Large request bodies emit data multiple times.
40.
▲
by
mjijackson
15y ago
Connect/Express do little more than set up a callback chain for you that passes along the request and response objects it received from node's request listener. Strata gives you a sane environment modeled after the WSGI/Rack/CGI model, whic
41.
▲
by
mjijackson
15y ago
The Strata spec states that a body may be either a string or a stream. All Strata middleware that needs to modify the body in some way must account for this. It's not difficult to do a "if (typeof body == 'string')". Strata borrows many con
42.
▲
by
mjijackson
15y ago
The fact that Strata uses cookies for sessions is just a personal preference, and certainly isn't something that is forced upon you. It would not be very difficult to add support for file or database-backed sessions into the core distributi
43.
▲
by
mjijackson
15y ago
Strata definitely does eat its own lunch. :) You can view the source of the website here: https://github.com/mjijackson/stratajs.org The Server header reports nginx because it's sitting behind a reverse proxy on Heroku.
44.
▲
by
mjijackson
15y ago
JSGI is not able to take advantage of node's ability to serve responses asynchronously because the spec doesn't allow for it. JSGI specifies that the return value of an app must be the [status, headers, body], whereas Strata specifies that
45.
▲
by
mjijackson
15y ago
At this point I'd actually compare it more closely with Werkzeug ( http://werkzeug.pocoo.org/ ).
46.
▲
by
mjijackson
15y ago
That's like saying that WSGI/Rack don't do anything more for Python/Ruby than their respective HTTP libraries. When you understand the rationale behind those libraries you'll understand Strata.
47.
▲
by
mjijackson
15y ago
The examples use string concatenation for the sake of simplicity. Strata doesn't attempt to tie you to any particular templating library because everyone has their own preferences and there are so many of them out there. For an example of u
48.
▲
by
mjijackson
15y ago
It would be more correct to say that V8 has a 1G memory limit. But node.js actually gives you these nice things called Buffers which, according to the node.js manual, are "similar to an array of integers but corresponds to a raw memory allo
49.
▲
Show HN: Link - A WSGI/Rack clone for node.js
(linkjs.org)
1 points
by
mjijackson
15y ago
|
0 comments
50.
▲
by
mjijackson
15y ago
I absolutely agree with this sentiment. This is the "box" that I was referring to above. It represents the limit of that which you are willing to believe, in many cases because you believe that you have already reached some level of underst
51.
▲
by
mjijackson
15y ago
I am a husband. I am a father. I am a child of God. There is a fine line between putting yourself in a box that you (or others) create for you and knowing who you are. The classifications that Paul lists in his post are of the first kind. T
52.
▲
by
mjijackson
15y ago
The title of this article tells me nothing. The real question is, how well do hotcakes actually sell in Kenya?
53.
▲
by
mjijackson
15y ago
So glad that Apple is finally at least trying to make some smart decisions around this. I can't tell you how many times I've gone to troubleshoot something on a friend's computer and they have about 20 apps "open" and no windows. Of course,
54.
▲
Introducing With, a Path Short.
(blog.path.com)
3 points
by
mjijackson
15y ago
|
0 comments
55.
▲
With Full-On Twitter Integration, Path Launches A Second App
(techcrunch.com)
2 points
by
mjijackson
15y ago
|
0 comments
56.
▲
by
mjijackson
15y ago
Absolutely. In the opening paragraph the author states how difficult it is to find documentation for the .is() function. http://api.jquery.com/is done.
57.
▲
by
mjijackson
15y ago
This is a well-known issue that we shouldn't still be discussing in 2011. Any sane JavaScript implementation already addresses this issue, and any responsible JavaScript framework will address this issue for you for the sake of older browse
58.
▲
by
mjijackson
16y ago
To say that something is "zero-configuration" is complete marketing garbage. You get what you deserve if you choose to believe it.
59.
▲
by
mjijackson
16y ago
Hooray! No more mucking around in /etc/hosts, .rvmrc, or .profile! Now you can muck around in ~/Library/Application Support/Pow/Hosts, .powrc, and .powenv instead! Thanks but no thanks. Do yourself a favor and learn how to install rack and
60.
▲
by
mjijackson
16y ago
So awesome that his contributions to charity play such a prominent part in the article announcing his death. A life well spent.
More ›