6th
DEC

Erlang and Java (and Scala too)

Posted by Keith under Development Tools, Erlang, Java

People on the net did many performance testing on Erlang, and it shows that Erlang clearly wins over other environments.  And I see that more people are experimenting with it and there are real systems built on it, and performs incredibly.  The language is not easy to learn for someone (like myself) who worked in C++ and Java for many years and only touched Prolog (and Lisp) very lightly.  I concluded years ago that Prolog and Lisp are dead, but with this monstrous language/system, it intrigued me to learn the damn thing.  It’s very fun to play around with it, but it’ll take a while for me to be proficient enough to write a big application in Erlang.  I was a bit bored with Java and was looking for something new, so it’s alright.

I started wondering why this (Erlang way of concurrency) can’t be done in Java, and found something: Kilim. (and Scala’s concurrency.)  It is too early for me to say anything about them as I don’t know enough, but it’s worth reading a few pages.  This page shows Java+Kilim out performs Erlang: http://stephan.reposita.org/archives/2008/06/22/erlang-vs-java-benchmarking-update/

Kilim: http://www.malhar.net/sriram/kilim/index.html

Here is a posting about Erlang and Scala: http://yarivsblog.com/articles/2008/05/18/erlang-vs-scala/ I only read and played around basics with Scala and thought it’s just a way to add FP to Java.  After reading above posting, I looked at Scala site and found this article: http://www.scala-lang.org/node/242.  Take a look at the example code.  It’s very similar to Erlang how concurrency is done.

To Do:

6th

Trying Erlang

Posted by Keith under Development Tools, Erlang, Unix/Linux

I tested DB and Yaws a bit, and found DB access wasn’t working for Solaris version of Erlang.  After some digging, I found that iodbc does not work.  There are two (open source) flavors for ODBC in Unix.  iodbc and unixODBC.  I recompiled Erlang with unixODBC, and DB access works — sort of.  Still some SQL doesn’t work properly, and I haven’t figured it out yet.  But it’s good enough to test Erlang and Yaws for now.  For Ubuntu, no problem.  Installing Erlang, ODBC, and Yaws were effortless.  But I like Sparc Solaris I use at home. :-)  It’s quite old, but still have enough disk space, RAM and works extremely well.

unixODBC: http://www.unixodbc.org/

One thing about Yaws on Solaris — while I was building Yaws, I got an error from ‘id’ with option ‘-u’.  This is due to Solaris 9’s ‘id’ (located in /usr/bin) doesn’t support -u option.  I temporarily changed GNU’s ‘gid’ to ‘id’ and it built correctly.

1st
JUL

PODS (Palm OS Development Suite) does not work on Vista

Posted by Keith under Development Tools, PDA

Tried everything.  I’ve gotten to the point where I can compile and get .prc file, but it just doesn’t work with IDE’s debugger, nor it launches the compiled PRC file to the simulator or emulator.

IT ONLY WORKS ON XP.

Of course, you can just drop the compiled .prc file onto the emulator/simulator and use the stand alone debugger it comes with.  But it is two extra steps — if you have a copy of XP, then it’s better to use VMWare or VirtualPC + WinXP.

I’ll post more info later.

…but it’s better to write apps for Android anyway…IMHO.