Antwerkz, Inc.
24Nov/08Off

I'm a big fan

Posted by admin

I've been watching the Fan language for some time now after seeing it first mentioned on on Stephen Colebourne's blog.  Or maybe it was Cedric's.  Anyway, it caught my interest and i've been a voyeur ever since.  I'd peek into the site every few weeks or and see what was up.  Recently I decided to really give it a go.  Since I had so many other side projects languishing, what's one more, right?  Now, I'm not one to just sit down and start writing random code.  I need a goal.  A Project.

I finally found one:  porting mercurial from python to fan.  Now, I know what you're probably asking.  "Are you daft?  Why would anyone want to do that?"  Well, there are a few answers to that.  Foremost, is that it gives me something concrete to write in Fan.  Other, more ancillary, reasons include not really needing platform specific builds (get rid of the C code!) and seeing how Fan stacks up speed wise to the python version.

Now, that last reason is the tricky one.  The first is easy enough to fulfill no matter how far down this road I go.  I mean, I'll be learning fan regardless of how functional this port is.  But to really compare speed, one has to have equally functional software.  I *could* just write some benchmarks blahblahblah but those are relatively boring and my python chops are a bit rusty.  Having me write python code for a benchmark wouldn't fair at all to python.  And probably just a little embarrassing for me to have that code out in the wild.

So my question now is, how far do I take this?  I like the fan language quite a bit.  I'm far from having mastered it (especially as parts of it are still under heavy development and discussion).  But so far, it's not too bad at all.  It's like a cleaned up Java 2.0.  I've found a number ways that *I* would "clean up" the current python code (I know "clean" is subjective and probably will start a flame war but that's not the point of all this).  I'm almost to the point where I'm going to start getting into some heavy lifting of hg protocols and the like.  I'm not sure have much further I really want to go down this path but so far I'm having fun.

If you're looking around for a new language to try or you've been thinking about fan, you should definitely give it a spin.  It's probably a little too early to commit an enterprise to since there's still some evolution going on.  And some IDE support would be nice.  (I do have Komodo Edit set up to parse the build output but no syntax support yet...)  It's definitely an interesting option if you have mixed deployment environments, though.

Technorati Tags: , , , ,

13Nov/08Off

IDEA 8 on Java 6 on the Mac

Posted by admin

That's a lot of "ons" for just a title but it's descriptive at least.  I've been having some problems launching IDEA 8 on my macbook pro since upgrading to 8.0 final (the RCs were fine strangely enough).  I tracked it down to a plugin that had been built against Java 6.  Unbeknownst to me, IDEA 8 is hard coded to launch with Java 5.  I have no idea (ha!) why but I know how to fix it.

If you open up the package contents (right click, show package contents) and open the "Contents" folder you'll see a file called Info.plist.  Edit this file with your favorite editor and change the line that says "1.5*" to say "1.6*"  You'll also need to update the JVMArchs entry to list x86_64.  Save the file (but don't close it in case you need to roll back this change) and start IDEA.  When it's done starting up, click on the "Intellij IDEA" title in the menu bar and select "About InteliiJ IDEA" option.  The window that pops up should now list your VM as some 1.6 variant.

Now, I'm sure that JetBrains had some good reason for tying to IDEA to 1.5.  This change might break something down the line.  I haven't used it enough to see if I hit anything like that but so far so good.  Your milage may vary and, of course, I can't guarantee this won't trash your source files.  But it seems to work so far.  If you run into any issues, please leave a comment and tell me about it.  I'm guessing if we run into anything it'll be some odd swing bug.  Good luck with it.

UPDATE:

A friend mentioned some menu rendering lag after trying this tip and fixed it by increasing his permgen space.  Another pointed out the VMOptions IDEA plugin to help with editing those options.  No more tracking down that file.

Technorati Tags: , , , , ,

11Nov/08Off

Java 6 on OS X

Posted by admin

Most of the Java loving world has probably already upgraded to OS X 10.5 which has an official, Apple sanctioned Java 6 implementation available.  However, some of you might be stuck on 10.4 for whatever reason (as I was until today...) and are desperate for some Java 6 love.  When doing some work just this morning on gfv3, I finally ran into a Java 6 only reference that I couldn't get around.  After some flailing and whining, I was reminded of soylatte (a colleague here at sun has been using it) which is built off the openjdk sources.

I grabbed that 10.4 build and extracted it and gave it a spin.  If you're a *nix-head like myself, configuring your shell to use soylatte is a trivial process.  Despite my best efforts, however, I failed to find a way to configure OS X to use soylatte in general rather than Apple's 1.5 VM.  So I had to resort to running IntelliJ IDEA on 1.5 but I could register soylatte as a platform VM inside IDEA and run my apps using that.  And that seemed to work quite well.  I can verify that gfv3 does indeed run on soylatte and that makes me very happy.  It made me happy for about 30 minutes until the UPS man showed up with my OS X upgrade DVD with which I could upgrade and get a formal release instead.  But it was an interesting exercise and hopefully anyone else stuck on 10.4 can use this hint as well.  It certainly would've made staying on 10.4 for a longer period much more palatable.

7Nov/08Off

As if I need help…

Posted by admin

As if I didn't neglect this blog enough as it is, I know have another outlet:  my Sun blog.  That's right.  I'm now a Sun employee and member of the GlassFish webtier team.  You can see a brief run down of what that'll look like at the new blog.  I'll probably keep the non-Sun related things off that of that blog and post them here (because I have a great track record of blogging regularly after all).  I also have a new twitter feed that will hopefully help fix some of my blogging exhaustion.

Maybe it's because I rant to my imaginary (what my wife calls my online) friends, but I can never sit down long enough to type up a blog post.  Maybe I just over think my posts.  I don't know.  I find it hard to finish them these days.  They never come out right.  But with twitter, I can blast out the thought and move on.  I've avoided twitter for a while now, but I guess it's better than nothing.  So, anyway, there are now two new venues where you can hang on my every word.  And I know you want to.  There's no shame in that...  ;)

Filed under: General, Java Comments Off
7Nov/08Off

Quick Introduction

Posted by admin

As much as I wanted to part of the GlassFish v3 Prelude festivities, I didn't really have anything to contribute. See, I started with Sun on the code freeze day for v3 prelude so I had 0 to do with prelude. :) Anyway, I'm the newest(?) member of the webtier team and will be working a number of different items leading up to the 3.0 spec release as part of the EE 6 release next year. There's always v3 FCS day, I suppose. :)

As for who I am, I'm a long time java user (since '96ish). I've been building web applications for most of that actually starting in the pre-JSP days and most recently using Wicket. I'm very excited to work under the hood for a change especially during this major revision cycle underway. One of my roles here at Sun is, of course, to blog about the work going on with GFv3 and especially our web container work. Full blown blogs might not be as frequent as I sometimes wish, but I have a twitter stream that I'm trying to use for more of the quick notes that aren't really quite blog worthy. (I admit I have low blog-stamina these days). I'll try to post either here or on twitter some of the things I come across as a relative newbie to this code. Perhaps my efforts to get elbow deep in glassfish code might help some of you who have been wondering how and where to get started.

In any case, it's nice to meet. Hopefully I'll see you around...

Filed under: /Sun, Java Comments Off