Programming is hard by Stephan Schmidt

Not intellectually simulated in my school

I tried to explain them how important it was to me, since I am not intellectually simulated in my school, and how meeting other smart colege students was imporant to me.

:-)

http://prez.wordpress.com/2006/10/16/facebook-has-a-post-limit/

Erlang vs. Java benchmarking update

As an update to my last post, I didn’t find an image which goes to 100.000 tasks for performance, but the Kilim guys have a graph for creating 200.000 tasks.

kilim2.gif

Perhaps they implement an supervisor architecture too. And perhaps this makes it into a future JDK.

Update: There is also a Google talks video about Kilim on YouTube.

Interesting picture: Benchmarking Erlang versus Java concurrency

I stumbled upon a nice Java framework called Kilim. It implements message passing in Java and it’s interesting to compare to Erlang:

kilim.gif

As I’ve said before, usually comparing Java to Erlang is stupid, because it compares threads to actors, not Java to Erlang. Comparing actors in Java to actors in Erlang is the right thing to do. Also see Scala (Which I don’t use because it won’t make it into the enterprise and I don’t like a type-inferencing language Update: Since then I’ve been playing with Scala quite a bit, like the inference but add type annotations in places where they usually are not needed but make it clearer to the developer what goes on).

SMC WGBR14-N 802.11n doesn’t work with my MacBook Pro

I’ve bought a SMC WGBR14-N router as a replacement for my current Fritzbox. The FB is too slow for wireless with only a small - non replaceable - antenna. I thought I could attach my Qnap 409 to the SMC draft-n router to speed up time machine backups and copying to the NAS.

Reality: The SMC drops connections and doesn’t work with either my MacBook Pro nor the MacBook of my girl friend. Most of the time there is a time out when connecting to the SMC. Both with G and N wireless modes. WPA with 802.11g on the Fritzbox works, but not on the SMC router. Connecting by wire gets me into the internet. Next week it’s going back to the dealer and I’ll try a D-Link or Apple Extreme 802.11n router. I hope for better luck.

(Is there a way to see with which mode a mac is connected to a wireless router?)

Another Rails and dynamic language fallacy concerning missing methods

Russell writes in the post The Dynamic Language Advantage: A Concrete Example:

“All you have to do is make the call to the non-existent method that contains your column names and Rails will dynamically generate the method for you.”

Though he got quite some flak for his opinion.

@cards = Card.find_all_by_cardType_and_expirationData(cardTypeId, expirationDate)

Which looks magic to most people and most impressive. But in the end it’s not more safe or magic than

Card.find("all_by_cardType_and_expirationData", cardTypeId, expirationDate);

This code can easily be written in any static language, becasuse the method missing property is no more safe or expressive than a String. The idea that parsing a method name from method missing is different than parsing a String in this case is a fallacy. I wonder why not more people use Strings like this to create finders? Perhaps because it’s not a good idea, as some comments in the mentioned post claim?

Thanks for listening.