News for hackers. Stuff that matters.

renshaw

Re:Scala – 1 Star – Would Not Program Again on Sunday December 01, 2013 @10:14PM (#6831259)
I'm with you, in favor of strongly typed headers. Working with strings can be very error-prone; you might not catch typo bugs until your system is in production and handling some rare case for which failure is expensive.

It seems to me that, in the worst case, the downside of your current scheme is an extra field dereference, as in `request.headers.extensions.get("crazyNewField")` instead of `request.headers.get("crazyNewField")`. I think that cost is easily outweighed by the benefits.

Re:Capnproto-rust vs. C++ on Thursday November 21, 2013 @08:29AM (#6774549)
Update: the compilation error was actually due to some missing includes. https://github.com/kentonv/capnproto/pull/47

Switching compilers on the C++ side doesn't seem to make a significant difference in performance.

Re:Capnproto-rust vs. C++ on Monday November 18, 2013 @07:56PM (#6758484)
I should note that the Rust version currently omits some features of the C++ version, such as read-limiting and the actual counting of the throughput. These things are cheap, but they may explain why Rust is faster in that one case.
Re:Capnproto-rust vs. C++ on Monday November 18, 2013 @07:46PM (#6758437)
Author here. The makefiles I'm using are on github:

https://github.com/dwrensha/capnproto-rust/blob/master/Makef...

https://github.com/dwrensha/capnproto/blob/benchmark/c%2B%2B...

I compiled libcapnp with the latest Clang g++ that ships with XCode. It perhaps would be more fair to also compile the C++ benchmarks with Clang, instead of the Macports gcc4.8 that I'm using, but unfortunately Clang barfs on some template hackery in the benchmark driver.

Re:SML#: a new Standard ML family programming language on Saturday July 20, 2013 @08:53AM (#6075058)
I often use SML for writing games. The Functioning library (http://github.com/robsimmons/functioning) provides support for SDL and includes an SML port of Box2D.
Re:The Crisis in American Walking on Tuesday April 10, 2012 @06:55PM (#3824906)
Don't forget Pittsburgh.
Re:Moving to New York: a Guide for Software Engineers on Wednesday June 29, 2011 @08:32PM (#2711963)
Pittsburgh!
Re:Which is your favorite 70-80s computer book? on Tuesday April 29, 2008 @05:36PM (#177020)
"The Soul of a New Machine" by Tracy Kidder.