Skip to main content

Rémi Forax

Rémi Forax is Maitre de Conférence at University of Marne-la-Vallée since 2003 where he obtained his PhD on multi-method in Java. He has been using Java for many years and enjoys himself hacking the JDK.

 

forax's blog

Obfuscated Java

Posted by forax on October 17, 2006 at 12:36 AM PDT

With a colleague, we discuss about the fact that function type
can or not obfuscate Java code and he advocate the fact that
a code in Java is always readable if you have an IDE
that can auto-format the code.

Is bug 6472193 a showstopper ?

Posted by forax on October 12, 2006 at 5:57 AM PDT

Recently a user named jirkahana post a topic on the java.net JDK forum about the fact that javax.xml.stream.XMLReader inherits from a non generified Iterator.

Languages Evolution: introduction of new keywords

Posted by forax on October 9, 2006 at 2:22 AM PDT

When you want to add features to a language
without breaking backward compatibility,
a widespread idea that you can't add new keywords.

About iterative control abstraction

Posted by forax on October 4, 2006 at 12:11 PM PDT

Neal proposes to use for to tag methods that take
a synchronous closure as parameter and to call this new kind
of method.

Use foreach to iterate using an Iterator

Posted by forax on September 22, 2006 at 5:09 AM PDT

When the foreach syntax (for(:)) has been
introduced in 1.5, a recurring question was
why foreach is not able to
iterate using an iterator.

I think i have a trick to do that using the
syntax of the closure :

Is function type required for closure ?

Posted by forax on September 20, 2006 at 2:41 AM PDT

As seen in Neil Gafter's blogs, there are two rival proposals
about adding closure to Java language.
The first one, named v0.1, introduces a new kind of
type, function type in order to express the type of a closure.
The second one, named

Synchronized or confined

Posted by forax on September 17, 2006 at 1:01 PM PDT

A new version of the closure proposal
has been post at the end of this week by Neal Gafter
and proposes in section 3 to tag parameter
with a special keyword to differenciate between
synchonous and asychronous closure.

Using jrunscript as a build tool

Posted by forax on September 14, 2006 at 3:34 PM PDT

In my last post, i've described how to use jrunscript to
create a build script.


As olivier wrote in the comments, the build process is usually
a dependency graph and jrunscript doesn't do that by default.

Using jrunscript to create a build script

Posted by forax on September 13, 2006 at 3:00 AM PDT

The JDK6 provides a new command jrunscript
that enables to execute script shell in Java environment.
By default, jrunscript uses javascript as scripting language
and provides some useful default functions li

Function that does not return normally II (the return)

Posted by forax on September 8, 2006 at 6:08 AM PDT

In a previous entry, i've written about declaring a method
that doesn't return normally using null,
the type of null, as return type.
A comment from Neal Gafter make me realize that i was wrong
but i now think the closure spec is wrong too.