Saturday, March 31, 2007

OpenLaszlo 4.0.0

OpenLaszlo 4 released a few days ago. I was impressed with its CSS support, although it's a pull (not push - like HTML's CSS) style. Anyway I've found some bugs that prevented me from compiling an LZX program for the DHTML runtime. Hopefully, these bugs will be get fixed soon.

Another thing is that styles, which are working well in Flash runtimes, doesn't work for the DHTML runtime as well. However, these bugs don't stop me from using this great software !!!

Saturday, March 24, 2007

Get OpenJDK Hotspot Compiled !

I'm very newbie on hacking JVM and I'm very happy to get OpenJDK Hotspot B10 compiled on Ubuntu 6.10. Compilation time is 1 hour and 5 mins. Actually, what I'm wanting to do from now on is to add some modification into its interpreter mode. Everything's just started.

Some configuration
- OpenJDK Hotspot VM 7-EA-B10 (21 Mar 07)
- Importing JDK 1.6_01
- Ubuntu 6.10
- GCC 4.1.2 (Ubuntu 4.1.1-13ubuntu5)
- Linux 2.6.17-11

Monday, February 05, 2007

Flattening Xml to Map using depthFirst

It's very wonderful and extremely easy to use groovy.xml.XmlParser to flatten an XML document into a Grails compatible Map:


def Map xmlToMap(String xml) {
def root = new XmlParser().parseText(xml)
def map = [:]
root.depthFirst().each { n ->
if(n.value.size == 1) {
def key = n.name
def p = n.parent
while(p.parent != null) {
key = "${p.name}.${key}"
p = p.parent
}
map[key] = n.value[0]
}
}
return map
}

Sunday, February 04, 2007

Multiple Assignment soon in Groovy 1.1

Beside other cool features, the last entry in GDC 3 report about what's going to be added into Groovy 1.1 is multiple assignment. I'm definitely looking forward to use it !!!