I teach technology design (particularly, software engineering, human-computer interaction, Scala, mobile, and web development) at the University of New England. I do research in how we can design smart useful systems and make sure that reasoning machines aren't unreasonable machines. Especially in technology education and education technology. I also re-invent far too many of my own wheels.
Thursday, 12 July 2007
Conditional approval...
Today I received the official letter from BoGS (that fabulous acronym that stands for Board of Graduate Studies) saying I've been conditionally approved to be awarded the PhD. "Conditional" is subject to giving them a hardbound copy of my thesis for the library, so it's not a very onerous condition...
Friday, 6 July 2007
Google Web Toolkit (GWT)'s cunning plan?
Languages like Java and Python compile it to an intermediate semi-digested form called "p-code" or "bytecode". Google Web Toolkit (GWT) takes Java source and compiles it into cross-browser JavaScript. Effectively, GWT uses JavaScript as its p-code.
But how good is JavaScript at being a p-code? Probably not great, because it wasn't designed as one -- it was designed as a general purpose programming language. Programming languages are designed to cater for the fact that programs are written by people. So, they have lots of syntactic sugar and usability features. P-code, meanwhile, is never written by hand and so needs no usability features. P-code is something designed to be quick and easy for a virtual machine to interpret and optimise. (See any course on compilers for the sorts of changes compilers make when converting source code to an intermediate representation.)
If JavaScript was an efficient p-code language, and if the "virtual machines" for it (the browsers) were efficient, then GWT applications would perform as well as Java or .NET applications. And yet, GWT actually feels a little sluggish.
So how could Google get around this issue? Well, it's in a uniquely good position to introduce a new p-code into browsers: a proper intermediate representation of JavaScript. The new p-code would be put into Firefox first presumably. GWT would then include some code in the sites it generates to see if the browser supports this new p-code. If it does, it would ask the server for blazing fast new p-code; if it doesn't, it would ask for sluggish old JavaScript. And if GWT sites (like most of Google) were blazing fast on Firefox and sluggish on IE or Safari, it wouldn't take the other browser manufacturers long to say "we'd like some of this new p-code goodness too please".
And then Google would have moved some way towards their goal of the Web being their "universal application platform", rather than the slightly hacky, messy, not quite fit-for-purpose application platform that browsers have always been so far.
Of course all this is purely speculation...
But how good is JavaScript at being a p-code? Probably not great, because it wasn't designed as one -- it was designed as a general purpose programming language. Programming languages are designed to cater for the fact that programs are written by people. So, they have lots of syntactic sugar and usability features. P-code, meanwhile, is never written by hand and so needs no usability features. P-code is something designed to be quick and easy for a virtual machine to interpret and optimise. (See any course on compilers for the sorts of changes compilers make when converting source code to an intermediate representation.)
If JavaScript was an efficient p-code language, and if the "virtual machines" for it (the browsers) were efficient, then GWT applications would perform as well as Java or .NET applications. And yet, GWT actually feels a little sluggish.
So how could Google get around this issue? Well, it's in a uniquely good position to introduce a new p-code into browsers: a proper intermediate representation of JavaScript. The new p-code would be put into Firefox first presumably. GWT would then include some code in the sites it generates to see if the browser supports this new p-code. If it does, it would ask the server for blazing fast new p-code; if it doesn't, it would ask for sluggish old JavaScript. And if GWT sites (like most of Google) were blazing fast on Firefox and sluggish on IE or Safari, it wouldn't take the other browser manufacturers long to say "we'd like some of this new p-code goodness too please".
And then Google would have moved some way towards their goal of the Web being their "universal application platform", rather than the slightly hacky, messy, not quite fit-for-purpose application platform that browsers have always been so far.
Of course all this is purely speculation...
Wednesday, 4 July 2007
21 July
So I'm arranging to graduate (subject of course to the official result of my viva), and it turns out the next university Congregation is on 21st July, the day the final Harry Potter book comes out. Which just makes it slightly odd reading lines on the graduation forms about gowns and hoods and how academical dress can be hired from any robemaker in Cambridge...
Wednesday, 27 June 2007
Saturday, 23 June 2007
Viva survivor
I had my viva (thesis defence) for my PhD on Thursday. I came out smiling. (Though officially I won't get told the result for a few days.)
Thursday, 14 June 2007
No more 50p bus fares
For about a year, Cambridge has run a trial scheme where university members could catch busses around the city for 50p. But the bus company has just announced this is ending on June 30th. This is a big shame, because for a brief while it meant that it actually made financial sense to catch the bus. The usual bus fare for a return ticket is £2.70, using the discounted "day rider". For the journeys my wife and I make, that's more than twice the cost of driving (Cambridge is a small city). And that's assuming only one person in the car. Put two people in the car, and catching the bus would be utterly profligate... (not to mention slow and unreliable).
On the up-side, I tend to cycle to work in town. And with bus fares at £2.70 per day, it's now that much harder for me to justify being lazy and catching the bus.
On the up-side, I tend to cycle to work in town. And with bus fares at £2.70 per day, it's now that much harder for me to justify being lazy and catching the bus.
One Week to Viva...
Next Thursday, the 21st, I have my viva voce examination for my PhD -- where two examiners who've read my dissertation come and ask me all sorts of tricky questions about it. (Or as one person put it "where two lucky people who already have their PhDs tell you whether or not they'll let you join the club").
Subscribe to:
Posts (Atom)