Geeks With Blogs

News
www.flickr.com
This is a Flickr badge showing public photos from hammett1. Make your own badge here.

hamilton *hammett* verissimo Another special person... just like everyone else Programming
Language improvements
So among one phase and other of Manhunt, I'm improving my brain exercise. Now it's able to deal with boolean expressions. I had to review the AST nodes implementation to allow some tree rewriting. a = 1 == 1 b = 1 != 2 x = 10 puts 3 * 90, a, b, x This produces the following initial AST AssignmentExp NameReferenceExpression (a) BinaryExp (....) AssignmentExp NameReferenceExpression (b) BinaryExp (....) AssignmentExp NameReferenceExpression (x) ConstantExp (10, int) MethodInvocationExp Target NameReferenceExpression ......

Posted On Sunday, February 5, 2006 12:06 AM

Type inference and polymorphic functions
I've been using my spare time to read about different languages and how they deal with types. It's amazing how good ideas are implemented in several non-mainstream languages that are not going to ever be known by most of programmers. Nevertheless, you can deduce that I'm working on a language. Indeed, just as a brain exercise. Fixing and improving Castle is nice and it's cool, but sometimes I need to research and try things on a different field. One of the things I wanted to make work was type inference, ......

Posted On Friday, February 3, 2006 9:51 PM

Weekend experiences
I was able to compile and run the following code x = 10 x = x + 1 Yeah, stupid, innit? You may look closer and realise that 'x' is an undeclared variable 'x' type is thus not defined 'x''s type is inferred based on operations of attribution that follows the first appearance So x goes to a SymbolTable. Every assign expression that uses it is registered as a candidate on the SymbolTable entry. During the type resolval step it's easy to resolve the type of the first assign: x = 10 # this is a int32 ......

Posted On Saturday, January 28, 2006 5:31 PM

Laptop upgraded
So I finally upgraded my laptop memory and have it cleaned (coolers and processor). Now 1GB + 256mb should be enough to ReSharper. Gosh, that thing is a memory eater. I wonder whether there are memory leaks on the code. It won't surprise me, though. ReSharper seems to use lots of flow analyzers which are quite complex. Anyway, one day and a half without any computer or internet access was surprisingly good. I had a chance to pile all the books I wanted to read and just sit and start reading them. ......

Posted On Friday, January 27, 2006 1:44 PM

New blog
This one seems nice. My old blog unfortunatelly has been taken over by spammers, I had to disable comments and couldn't stop to delete all the spam (it was hundreds, maybe thousands of spam comments) Today I read an interesting sentence (two to be precise) from StringTemplate documentation: Many tool builders have clearly lost sight of the original problem we were all trying to solve. We programmers often get caught up in cool implementations, but we should focus on what should be built not what ......

Posted On Wednesday, January 25, 2006 10:31 AM

Copyright © hamilton verissimo | Powered by: GeeksWithBlogs.net