Things I Wish I Had Time to Code in 2004
I have a lot of itches, and I try scratch a lot of them, but I don't have time for all of them. There are a number of really cool ideas I would love to have time to work on in 2004 but cannot see even the remote possibility of finding that time =/
Kernel.callcc
would be almost as cool, but Groovy has better Java integration).
java.lang.Thread
so there is the distinct possibility that a lightweigth thread model on top of the current threading support would be needed. Ugh. The other ugly parts with that include capturing the local context and handling thread local variables. I like to think that doing some unpleasent things via ASM or BCEL would allow creating a library to pull off some type of useful continuation support without having to do the munging on client code -- but I don't know without a lot more playing.
select
[ interface Employee {
[ public User user : u ]
[ public Title title : r.title ]
[ public void do(Action) : u.doSomethingSpecificToADomain(Action) ]
} ]
from
org.skife.kendra.User u, org.skife.kendra.Role r
where
r.title like $1;
This would generate an object (previously undefined), Employee
, with two properties (would actually generate the setters/getters, not the fields, the spec in the query is just shorthand) and a method called "do" which takes an Action
argument. The query would have to materialize both the User
and Role
in order to provide these, would map calls to everything to the right place, and would map calls to do(Action)
to the User.doSomethingSpecificToADomain(Action)
method. James would probaby write a MagicBuilder
in Groovy to make building queries easier ;-)
I like all these ideas, but most of them are a bit bigger than I can hope to bite off in the time I don't already have committed (hah). In practice I will probably get to work on:
Maybe come fall I'll get to work on a really smart http proxy in C. If I get really bored maybe I'll start writing javadocs for cglib and bribe Chris to check them in.
Who am I kidding, at least one or two on my wish list will probably^H^H^H^H^H^H^H^H hopefully be tackled =) Magic may be pushing it though.