Archive

Posts Tagged ‘Python’

Python 3000 – Nothing radical

December 17, 2006 Leave a comment

An interesting talk by Guido van Rossum is available at google video. Nothing radical in Python 3000. Mostly a cleanup release that breaks backwards compatibility. Some consideration is given to Common Lisp like generic functions but I cannot imagine they will enter Python 3000 (too much is needed).

Advertisements
Categories: Programming Tags:

Static versus dynamic attitude

February 22, 2005 Leave a comment

I think Bill is dead-on-the-money with the different-language, different-mindset thing. Java can make you feel guilty alright :-). Even when you can get over your own guilt, there’s the struggle with your colleagues who may not have a dynamic mindset.

I’ve been programming in JavaScript lately (actually more ActionScript 2.0 but some browser based JavaScript too). You’d probably return a single object there rather than multiple:

    var context = ExamplePage.process();

followed by code using context.forumID, context.reply, context.subject and context.body.

Single objects are constructed easily in JavaScript:

    function process() {
        // Do some processing...
        return {
            forumID: ...,
            reply: "a reply",
            subject: "a subject",
            context: "a context"
        }
    }

This is a very lightweight approach. Another poster had a similar solution in Python. There must be a similar way of doing this in Ruby or Groovy.

It would be great to use Ruby/JRuby, Groovy, JavaScript, Python/Jython or whatever on the Java platform. What’s needed for adoption is buy-in by vendors like Sun and IBM (so that project managers and other developers don’t have a fit when something without the .java or .xml file extension is checked into the repository). It would be nice to have support for these languages in Eclipse (say) with all the usual bells-and-whistes Java programmers have come to rely on to get stuff done – code completion, Javadoc lookup, hyperlinking, refactoring etc. Groovy seems to have alot of momentum including a JSR thing – so maybe something along these lines is not too far away. Maybe it’s already there and I just haven’t looked!

BTW – have you heard about NoXML? It’s this great new XML technology…

The Python Paradox

August 14, 2004 Leave a comment

http://www.paulgraham.com/pypar.html

I learnt Python afew years ago. I’ve moved onto Ruby for day to day tasks and am studying Scheme and Common Lisp when I can spare a moment.

Today I was watching another couple of videos from the Abelson and Sussman collection. It’s about 9G of divx movies. I’m pretty dedicated to my lisp education – I’m only on 32k dialup connection. I watched 6a&b about streams (again) and then got onto the very amusing lectures on meta circular evaluation (7a&b). Very funny – a must see for any lisp enthusiast.

I was also reviewing multithreading issues in Common Lisp implementations via the slides from Roger Corman’s talk on the subject.

Categories: Programming Tags: , ,