News for hackers. Stuff that matters.
Re:GitHub implementing Erlang git-daemon by mojombo on Monday July 14, 2008 @05:50PM (#246127)
Changes to the git protocol happen at a glacial pace. Keeping up with them will not be a problem. The only users of the C daemon that would benefit from egitd are our competitors. We've open sourced our Ruby git library since that has benefit to the community as a whole. I'd hardly call our decision to write an Erlang git server antisocial. As far as I can tell, it's not hurting anyone.
Re:GitHub implementing Erlang git-daemon by jrockway on Monday July 14, 2008 @06:13PM (#246147)
I didn't realize you weren't releasing egitd. If you're keeping it to yourself, it doesn't really matter what it does or what language it's written in.
Re:GitHub implementing Erlang git-daemon by ionfish on Monday July 14, 2008 @06:20PM (#246153)
Surely it matters insofar as people find it interesting to hear about, even if they might prefer to actually see the code.
Re:GitHub implementing Erlang git-daemon by mojombo on Monday July 14, 2008 @06:50PM (#246189)
Here's a piece of it that we did opensource. An Erlang pipe implementation. It acts as a FIFO for binaries.

http://github.com/mojombo/erlang_pipe/tree/master/pipe.erl

The performance ends up being quite good.

Re:GitHub implementing Erlang git-daemon by jfarmer on Tuesday July 15, 2008 @12:00AM (#246359)
spaceship?
Re:GitHub implementing Erlang git-daemon by mojombo on Tuesday July 15, 2008 @12:04PM (#246769)
The comparison operator that returns -1, 0, or 1 depending on how the operands compare is often represented as <=> and commonly referred to as the "spaceship operator" because it looks like a flying saucer viewed from the side.

http://en.wikipedia.org/wiki/Spaceship_operator

Re:GitHub implementing Erlang git-daemon by jfarmer on Tuesday July 15, 2008 @04:34PM (#247051)
Huh. I never heard it called that before.

My background is in math so I always though of it in terms of the sign function: http://en.wikipedia.org/wiki/Sign_function

spaceship(x,y) = sign(x-y), for numbers, anyhow.

Re:GitHub implementing Erlang git-daemon by jrockway on Friday July 18, 2008 @04:07AM (#249539)
FWIW, Larry Wall calls it the Spaceship Operator in "Programming Perl".