3 ms·
Streaming a PNG with node.js
- jerf 16y ago... and so...?
- shawndumas 16y agowell... the title is 'Playing With node.js'. It's just playing.
- jerf 16y agoYes, but what makes it interesting to be here? Question fired at upvoters as well. Telling me that Node.js is incapable of serving filesystem-based PNGs would be news! If this is the bar for 9 votes (as of this writing) there's 8 people who need to be cruising the "New" page more often, there's a lot of stuff getting lost above this bar. Just to be clear, in my opinion you've done nothing wrong by writing or posting this on the internet. It's just weird that it's here.
- shawndumas 16y agoI'm just the one who was playing. I didn't submit it to HN. (In fact my skills at nodejs are so nascent that I am apprehensive about it being up here.)
- olalonde 16y agoI'm also surprised it is getting so many up votes (not that it's not interesting at all). Perhaps people blindly up vote anything with "Node.js" in the title?
- jackfoxy 16y agoEveryone thinks there is room for improvement in what makes it from the new page to the front page. I think someone has a Chrome extension that displays the front page and new page side by side. I recently decided I want to try that, but now I can't locate the reference. ...anyway let's all try to stay positive about improving the front page. I'm interested in reading about node.js, but don't do any development. I found this post interesting.
- coderdude 16y agoYou know the etiquette here. If you don't think it's neat or useful then Just Flag It. You don't need to look down on other people's interests while you're at it.
- augustl 16y agoI find insights on the inner workings of HTTP servers interesting. The comments about sendfile(2) provided great value for me. Score imo :)
- superjared 16y agoThe irony here is you'd lose serious performance since you're not using sendfile(2).
- shawndumas 16y agoyou can now use sendfile; as ry says: "A portable sendfile [...], thanks to Marc Lehmann. It's undocumented because it's an unstable API for now. I wouldn't mind a contribution for a test/simple/test-sendfile.js" [1]. . Also see Using sendfile(2) with NodeJS [2]. ---- [1]: http://comments.gmane.org/gmane.comp.lang.javascript.nodejs/12130 http://comments.gmane.org/gmane.comp.lang.javascript.nodejs/... [2]: http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/ http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/