I was trying to install the Mozart Programming System on Mac OS X. The installation instructions on the Mozart website was very cryptic. Googling did not turn up good pointers initially, but I eventually managed to find the information. Here are the steps I followed to get Mozart installed on my Mac OS X (PPC) 10.4.9:
- Download Mozart PPC package, uncompress it and run the .pkg installer. By default this installs to the /usr/local/oz directory
- Download Aquamacs, mount the .dmg image and copy the binary into the Applications folder
- Install GMP. Download the source from GMP website, uncompress it onto the disk, cd into the directory and run the following commands:
gmp-4.2.1$ ./configure --enable-cxx --enable-shared gmp-4.2.1$ make gmp-4.2.1$ make check gmp-4.2.1$ sudo make install
- Create a file named .emacs in your home directory (if it is not there already)
- Add the following lines to .emacs file:
(add-to-list 'load-path "/usr/local/oz/share/elisp") (require 'oz)
- Add the following lines to the .bash_profile file in your home directory:
export PATH=/usr/local/oz/bin:$PATH export OZEMACS="/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs"
- Open a new command window and start Oz Programming Interface by running the command oz
The above assumes that you have installed Oz at /usr/local/oz and Aquamacs at /Applications directories.
The logo for Olympics 2012 was announced earlier today and was soundly trashed.
Sebastian Coe introduced the logo with the following blurb:
“This is the vision at the very heart of our brand,” said London 2012 organising committee chairman Seb Coe.
“It will define the venues we build and the Games we hold and act as a reminder of our promise to use the Olympic spirit to inspire everyone and reach out to young people around the world.
“It is an invitation to take part and be involved.
Sorry Seb; despite all that trash-talk it still looks like a jagged picture. If you think you can do better, BBC invites submissions.
After yesterday, most of my friend’s dropped out of the conference today. Me and Kannan went to catch the post-lunch session.
We reached the auditorium in time to catch the last 10 minutes of the session Introduction to GMF by Raj Madhuram. From whatever little I saw it was a sensible no-nonsense introduction to GMF. I worked on GMF about a year ago, and one of the big pain points then was to export a GMF-generated editor as a standalone RCP application. From Raj’s talk it looks like that problem is solved now. GMF is a very interesting technology; it enables rapid development of high quality graphical editors for a model. I should take another look at GMF sometime soon.
The next session we attended was Groovy and Grails Tutorial by Harshad Oak. Many things went wrong with this session. Firstly, the talk was all over the place; Harshad tried to introduce too many topics spreading it real thin. Closures, builders, dynamic typing, string interpolation, literal syntax for lists and maps and higher-order functions in the space of 10 minutes confused the audience. It did not occur to me then, but many people seem to have had trouble understanding the notion of the Java platform – and Harshad, unfortunately, skipped over this key concept. Secondly, Harshad took question during the session. When a bunch of Java programmers are introduced to a modern language like Groovy for the first time, people would have gazillion questions popping up in the mind – encouraging them to voice them loudly is simply asking for trouble. Thirdly, Harshad himself was very disorganized in his talk – and one of his demos went wrong during the session. Harshad might do well to watch seasoned speakers like Neal Ford and get his sessions a bit more organized. Overall, I got to see how Grails development looks like – I should be checking it out some time soon. (This is a recurring theme, isnt it? My backlog is quite full!)
During tea-time I got to speak to Harshad. I really appreciate his writing. It was nice to meet him finally in person. I also got to meet couple of gentlemen who were talking to Harshad and Sangeetha. One of them was working with Sun; I have no idea about the other person. Here is an interesting tidbit of conversation I overheard between these two:
Sun guy: In Java 6 the class verification phase is significantly improved. They are using split bytecode verification, which was first tried in J2ME. This should improve the startup times significantly.
Other guy (with a funny accent): Oh like using an MD5 hash blah blah blah blah
Sun guy: Like what?
Other guy (with a funny accent): You know, information verification? Verifying that some information is not tampered with. blah blah blah
The rest of the audience (me, Harshad and Sangeetha) had to politely suppress the giggles. From the conversation it looked like this guy is in charge of making technical decisions; it was amusing that he had not even heard of byte code verification. The Sun guy was repeatedly trying to say how cool Sun was, which was really annoying. I eventually tried to be equally annoying by asking “Now that Sun has lost the IDE race to Eclipse, what is the feeling within Sun? Do you guys think you can still make it with NetBeans?” – it was fun to watch him stare back at me with his mouth agape
After tea we went to the SOA Industry Panel. We were looking forward to some honest discussion on SOA, but when an HP guy came up to pimp his product we realized that it was going to be a vendor-pitch-fest. We left the conference by then.
So, that was my day.
I am back from a day at the JAX India 2007 conference. I went with Kapil, Kannan, both Vikas, Subin and Janmejay. It was a busy day and, overall, I found it not very useful to me.
First, I attended Neal Ford‘s session titled 10 Ways To Improve Your Code. This session was a huge let down! I walked in a tad late and was horrified at the advise handed out at that very moment – “Version control your code”! I can’t help notice that it was a wondefully useful advise in 2007, duh! The next 40 minutes or so we were treated with more trite. There was this bit of advise – “Use reflection when appropriate”. And an example of such an appropriate instance? (in summary)
We were called in to help this customer. They were using some framework which generated a whole bunch of getters and setters. We were not allowed to touch any of that code, and these getters were spoiling our test coverage numbers. So we wrote a test which simply invoked those getters and setters using reflection.
If anybody was worried about using reflection, that example should just convince them! Yeah.
The next session was AOP – Whats new and cool in Spring 2.0 by Vishal Puri. Vishal showed some Spring AOP capabilities – transaction demarcation, exception translation, retries with an around advice and checking for depdency violations. Vishal was somewhat handicapped by most of the audience not knowing what a pointcut was; and his examples, unfortunately, could be appreciated only if one recognises the power of a good pointcut expression language. The specific capabilities introduced are well-known to anyone, at least casually , following the AOP scene but it was good to know that these are available out of the box in Spring 2.0. I need to read up on these sometime soon. BTW, I found Vishal to be a terrible presenter.
Sangeetha Oak’s session titled Building an AJAX Web application using Dojo toolkit was up next. I barely managed to squeeze into the hall; but when Sangeetha started with “Well, you might have heard of Ajax and might think that Dojo is … “, we decided that maybe it was a good time to check the stalls. Subin hung on for some 10 minutes more but by the time speaker started explaining dojo.addOnLoad(..), he also joined us. Dojo is an incredibly powerful framework, and I was glad to see that people were interested in hearing about it.
The stalls were eventless. And nobody offered a single damn tshirt! I saw a demo of JTest – a tool which generates unit test code. It is the worst idea I have seen this year. From the brief demo I saw, what I gathered was that JTest analyses your code, figures out what it might be doing, and generates unit tests which always pass. Then you have to generate a report which tells you what inputs were given to a method and what the actual outputs were – which somebody needs to manually verify. To me, it looked like actually writing the tests by hand (with a lil help from the IDE) was lot easier. The person doing the demo, showed a totally incomprehensible deep if-else-if branch and proudly demostrated that such code can be tested by JTest. I think that somebody has totally missed the whole point of unit testing.
We then went to catch up some lunch. While waiting in the queue this one guy came up and asked “May I squeeze in please?” and when I politely said “Sure”, he got into the queue ahead of me, turned around and declared “This lady here is a friend of mine” (pointing at the lady who was standing ahead of me, but was now standing in front of him). Yeah, great friend who would let you stand behind herself in a queue – and a great response to the guy who actually let you get ahead of himself; impressed, buddy, I really am! The lunch was actually good; the only time I felt that the conference fee made good ROI.
After lunch we went to yet another session by Vishal Puri – this time titled Simplfying enterprise applications with Spring 2.0. This was pure Spring marketing pitch. Vishal, as I mentioned earlier, is not a great speaker – so I am not sure if he would manage to convince anyone to use Spring. That would be a shame though; Spring is a very useful piece of software.
The next session was Neal Ford again – this time with JRuby on Rails. Neal whipped out a quick scaffold user interface for one database table. From couple of conversations I overheard later in the day, some people were immensely impressed. He mentioned that one can now host JRuby applications as a WAR file in servlet containers but admitted that JRuby at this point is too slow. He expressed hope that it would soon be as quick or even quicker than C Ruby. Yawn.
The last session I attended in the day – Persistence for Service Oriented Architectures by Tobias Israel – was actually the most useful. I had trouble following him at some parts of the talk but he asked lots of interesting questions which I don’t hear being talked about much. After making such a great start by enumerating the questions, he didn’t do a good job of suggesting answers. Maybe he was rushed for time, maybe I did not understand him well. Anyways, I need to read up on the topic sometime soon. Tobias works for SignSoft, and I hope he has a blog. His slides had lots of typos – that made understanding him even harder.
So, that was my day.
I am attending the JAX India 2007 conference tomorrow. If you happen to be around, please say ‘Hi’. These are the sessions I am planning to attend:
- 10 Ways To Improve Your Code (Neal Ford)
- AOP – Whats new and cool in Spring 2.0 (Vishal Puri)
- Persistence for Service Oriented Architectures (Tobias Israel)
- Simplfying enterprise applications with Spring 2.0 (Vishal Puri) (maybe, I am not sure)
- Why is everyone so excited about Ruby on Rails (Neal Ford) (again, maybe; everyone was excited about RoR in 2005!)
- Building an AJAX Web application using Dojo toolkit (Sangeeta Oak) (again, maybe; the other two sessions don’t sound great)
Couple of days ago, I wrote a post about a bug I encountered with the Scala Eclipse plugin. I posted this on the Scala list, and the developer – Sean McDirmid – reopened the bug. The bug was not reproducible on my iBook – so I think it is a Windows issue. I dug around the code for Scala Eclipse plugin and I was able to figure out a possible cause for this bug. The developer has promised to look into it and fix it soon. Thanks Sean!
Tonight I tried taking Scala for a spin.
I installed the Scala Eclipse plugin, created a
hello project, switched to Scala perspective in the IDE, created a
test package, and created an object
HelloWorld in it, with the code to print the customary message. When I tried to run this code by right-clicking the file by choosing
Run As -> Scala Application, the code throws up the error:
java.lang.NoClassDefFoundError: src/test/HelloWorld Exception in thread "main"
After a bit of digging around, I figured out what is wrong – when one right clicks as chooses
Run as -> Scala application, the run configuration created is incorrect. The
Scala Application Object is set to be
src.test.HelloWorld; changing it to
test.HelloWorld makes the code run fine. Posting this here to help others trying the plugin.