News for hackers. Stuff that matters.

BrianHammond

Re:TeleHash: Distributed JSON Peering Protocol on Thursday May 20, 2010 @12:08AM (#1363228)

    _ry: fictorial: eventually, not for 0.2
http://nodejs.debuggable.com/2010-05-07.txt
Re:Streaming UTF-8 (with node.js) on Tuesday May 18, 2010 @02:39PM (#1358515)
For those using Node.js, the same is

    var len = Buffer.byteLength(a_string, 'utf8')
Re:Alternative monospace fonts for programmers on Monday May 03, 2010 @11:15AM (#1314901)
I enjoy TheSansMonoCd by LucasFonts. It costs money though.

http://imgur.com/kBpMI.png

Re:Alternative monospace fonts for programmers on Monday May 03, 2010 @10:49AM (#1314830)
http://steveblock.com/r/sgiscreen-ttf.tar.gz

Looks pretty good at 14pt in Terminal.app. Thanks.

WebGL is mentioned on that page. I'm not sure if it was updated since you looked.

"Conclusion: Not ready*. Waiting for Internet Explorer 8, Firefox 3.6, Chrome 4, Opera 10.5 to expire"

Re:Erlang vs node.js on Thursday April 29, 2010 @09:26PM (#1306817)
"This can get sloppy."

Indeed it can. I am a fan of flow-js however. It has really helped me to avoid getting sloppy in Node.js.

http://github.com/willconant/flow-js

Re:Heroku Node.js Support (experimental) on Wednesday April 28, 2010 @08:35PM (#1303223)
The big question is if Heroku will suddenly support a fairly large number of long-lived connections to a Node.js hosted app, and how pricing would work. Developing real-time apps and custom servers are how Node.js really shines. A WebSockets module took only a few hours to develop for instance.
Re:A HTTP Proxy Server in 20 Lines of node.js Code on Wednesday April 28, 2010 @08:30PM (#1303213)
Thanks for the shout-out in the slides about the Redis client for Node.js.

http://github.com/fictorial/redis-node-client

Re:Node.js fanout pubsub server for real-time apps on Wednesday April 28, 2010 @08:04PM (#1303165)
I'm curious about the "fanout" name which immediately made me think of a message broker like RabbitMQ on the backend somewhere. I guess "fanout" here means 1 client to fanout.js to N >> 1 other clients.

There are a number of similar projects popping up like this one as of late for Node.js. NodeRed, fanout, dealer, etc.

That's great. Node.js makes previously "complex" things a little easier to setup and play with.

Re:Slides and notes from my three hour Redis tutorial on Monday April 26, 2010 @03:27AM (#1294338)
Redis has native pubsub for a few weeks. A client can subscribe to channels by name or pattern, and publishers can publish messages to channels.

The ruby, python, and node.js clients support non-BLPOP pubsub. We are starting to see some layers added atop this (e.g. NodeRed).

Re:PubSub messaging: scala, Redis , Akka Actors on Sunday April 25, 2010 @12:01PM (#1292913)
I am working on something similar for Node.js called NodeRed:

http://github.com/fictorial/nodered

Re:Concert pianist plays iPad onstage on Sunday April 25, 2010 @12:14AM (#1292151)
menu > settings > songbook no-fail mode: on

menu > songbook > flight of the bumblebee

tap, tap, tap, tap...

Re:360° video from the inside of a stadium demolition on Friday April 23, 2010 @10:04PM (#1290098)
I fully admit to having no idea what this refers to, but I'm scared anyway.
Re:360° video from the inside of a stadium demolition on Friday April 23, 2010 @01:12PM (#1288724)
Wow! That was really neat!

As someone who witnessed the events of 9/11 in NY from across the river in Hoboken, NJ this was fairly terrifying too. I was not expecting to have that association when I clicked the link!

Re:HTML5 Game Engine on Wednesday April 21, 2010 @11:00AM (#1282336)
mootools made javascript a better language? Javascript is a wonderful language regardless of the availability of good tools and libraries.
Re:Open Source Dynamics Engine on Sunday April 18, 2010 @04:01PM (#1275387)
ODE has been around for years. Did something big happen? Why is this here?
Re:Mysterious radio waves emitted from nearby galaxy on Thursday April 15, 2010 @09:29AM (#1267722)
Somewhere Jodie Foster just threw off her headphones, jumped off the hood of her car, and frantically went to investigate. She won't find much. (hint: 3-D, not 2-D).
Re:Nodule: A Node.js Pub-Sub Key-Value Store in 185 Lines on Thursday April 15, 2010 @01:26AM (#1267068)
I just uploaded the first version of NodeRed:

http://github.com/fictorial/nodered

Re:Nodule: A Node.js Pub-Sub Key-Value Store in 185 Lines on Wednesday April 14, 2010 @09:52PM (#1266713)
Nice, good to see more people coming to Node.js. These things are like the modern "Hello, World!".

Here's one I hacked up in 10 minutes. It's 40 LOC. http://gist.github.com/366590

The big problem with this is that it's just one server. I'm working on something called "NodeRed" (har har) that lets one scale out the frontend using Redis for communication. It's generic enough to do PUBSUB, chat, games, etc.

Here's an overview. http://fictorial.com/NodeRed.png

I developed the/a Node.js client for Redis if you care to dive into this stuff: http://github.com/fictorial/redis-node-client

Re:Nodule: A Node.js Pub-Sub Key-Value Store in 185 Lines on Wednesday April 14, 2010 @08:38PM (#1266591)
I am doing something similar with my redis-node-client as a base.
Re:Please Make the iPhone Weather Application Location Aware on Wednesday April 14, 2010 @10:50AM (#1265049)
Rejected: location-aware weather can be obtained by looking out the window.
Re:Ask HN: What would life be like as an Android Developer? on Saturday April 10, 2010 @11:14PM (#1256252)
Ask tocomment: try it and let us know!
Re:Ask HN: Review my side project - Reel Roulette on Monday March 29, 2010 @10:04PM (#1228131)
Suggestion: temporarily disable the "next reel" button for a duration of time proportional to the frequency of my clicks thereupon. Make me watch the reels instead of trying to satisfy my urge to see "what's next?"
Re:Functional Fluid Dynamics in Clojure on Monday March 29, 2010 @09:58PM (#1228118)
"The weird thing about C is that its not even prefixed like Clojure (+ 2 2), instead all operators are scattered between the arguments!"

Please tell me he is kidding. Maybe I don't get out of my cave often enough but it seems uncommon that someone could grok FP bypassing C altogether.

Re:EventMachine: scalable non-blocking i/o in ruby on Monday March 15, 2010 @06:01PM (#1194261)
I see. My (wrong) understanding was that EM used a thread pool to do file I/O like Node.js. It appears to add the file descriptor to the event loop's watch list.
Re:EventMachine: scalable non-blocking i/o in ruby on Monday March 15, 2010 @05:01PM (#1194108)
Honest question: is there a purely event-driven I/O framework (no threads anywhere)?

The one that a lot of people have gotten excited about recently is Node.js and that uses threads for file I/O (libeio).

Re:EventMachine: scalable non-blocking i/o in ruby on Monday March 15, 2010 @04:53PM (#1194088)
I learned Tcl back in college (say 15 years ago) and have not used it since. However, while investigating things like EM and Twisted, I for some reason thought of Tcl. I (and others [1]) asked on the Tcl mailing list about creating a "C10K" server in Tcl but unfortunately Tcl does not have support for epoll, kqueue, etc. at this time.

[1] http://aspn.activestate.com/ASPN/Mail/Message/tcl-core/37509...