The Source for Java Technology Collaboration
User: Password:



Lucas Torri's Blog

Lucas Torri Lucas Torri is a Brazilian software developer of a digital convergence company called Praesto Convergence, where he's worked with Java ME since 2005. He studies Computer Science at Federal University of Santa Catarina and is one of the owners of the Marge Project ( http://marge.dev.java.net). Besides Java related stuff, likes to read things about smart environments and to watch his favorite soccer team playing: Grêmio FBPA.



OpenSolaris Community Innovation Awards

Posted by lucastorri on December 14, 2007 at 05:43 AM | Permalink | Comments (0)

opensolaris.png

A few days ago, Sun announced that is going to sponsor Open Source community with $1M. In my opinion this is a great way to encourage students to get involved with Open Source projects.

One of the sponsored projects is community for researches related to operating systems, called OpenSolaris. The list and wiki for the OpenSolaris Community Innovation Awards are now open. If you'd like to get involved, please go here:

http://www.genunix.org/wiki/index.php/OpenSolaris_Community_Innovation_Awards



UFSC Campus Ambassador and Ambassador kit

Posted by lucastorri on December 13, 2007 at 06:49 AM | Permalink | Comments (1)

Since October I'm the Sun Campus Ambassador of Federal University of Santa Catarina. It's a great job, which I'm responsible to connect students and university to Sun Microsystems.

Today I got surprised when a big box come in my house. It is a Ambassador kit with cds (with NetBeans, Sun Studio and others), OpenSolaris books, T-Shirts, pens, a backpack and many more.

I just got crazy, started to open the box and remove everything from inside:
13122007.jpg

The Ambassador T-Shirt, backpack and pens:
13122007(004).jpg

CDs and OpenSolaris keyfobs:
13122007(001).jpg

December 20th I'm going to São Paulo, Brazil, to meet the Ambassadors from the rest of the Country and Gary Serda, that also will be there. That's really exciting!



JustJava 2007 is open

Posted by lucastorri on October 03, 2007 at 01:53 PM | Permalink | Comments (0)

Ola Pessoal/Hello Everybody!

03102007.jpg

pt:
Estamos aqui em São Paulo, Brasil, no JustJava 2007 (http://www.sucesusp.org.br/eventos2007/justjava07/), evento do SouJava. A foto acima mostra o Mauricio Leal (http://weblogs.java.net/blog/maltron/) fazendo a abertura do evento.

Hoje a tarde o Neto Marin (http://weblogs.java.net/blog/netomarin) vai apresentar um tutorial sobre Java ME (parte I e II) e amanhã teremos uma trilha sobre Java ME, com vários assuntos muito interessantes. Então fiquem ligados nas próximas notícias!
---

en:
We are here in São Paulo, Brazil, in JustJava 2007 (http://www.sucesusp.org.br/eventos2007/justjava07/), an event by SouJava. The photo above shows Mauricio Leal (http://weblogs.java.net/blog/maltron/) openning the event.

This afternoon Neto Marin (http://weblogs.java.net/blog/netomarin) will present a Java ME tutorial (part I and II) and tomorrow we will have a Java ME track, with a lot of interesting subjects. So stay tunned for more news!
---

;)
Lucas Torri



Jython : Scripting for the Java language

Posted by lucastorri on September 24, 2007 at 04:18 PM | Permalink | Comments (2)

Scripts languages are famous for their simplicity and ease of development. For this, they can be powerful Allies to software development.

In this vast world of available scripting languages, one that really calls attention is Jython[http://www.jython.org]. Jython, is the Java implementation for the high-level Python language, allowing you to run Python on any Java platform.

Python is a multi paradigm language, can be learned in a few days and used to write any kind of application. Also, many programmers report substantial productivity gains using it.

The syntax is a little bit different from usual languages, cause uses indentation to separate blocks of code, which makes Python a highly readable language. An increase in indentation comes after certain statements and a decrease in indentation signifies the end of the current block.

For me, the biggest advantage of using Jython is that it provides interactivity with Java Classes and Objects. This property, makes possible, together with the interactive, interact with Java resources, allowing programmers to experiment and debug any Java system using Jython.

Installation is made through a GUI installer, making this process very simple. After that, you can run the Jython interpreter running the executable file in the installation folder. Once the intrepeter it's open, you can starting coding like in every other editor, but in each new line the code will be instantly interpreted. For example, look how easily I create a JFrame using Jython:

jython.png

>>> from javax.swing import JFrame # import the JFrame class
>>> j = JFrame(title='hello world!', size=(400,100)) # create a new JFrame instance and automatically sets title and size
>>> j.visible = 1 # the same as j.setVisible(1)

Notice that the 'new' ain't needed and you can access and modify attributes without get/set before. Also, integers can be used as booleans, but there are also available the True and False operators. The line setting the frame visible could also be inside the constructor, making the code even smaller.

It can be used to write automation scripts, including ones that use JDBC, use it as a script language inside your programs using the project jar or even use Jython compiler (jythonc) to transform the python code to Java code. All this using a very easy and high-level language.

I'm not trying to write a Jython tutorial here, this is just to give you a little taste. So, if you want more information about that, I recommend you to check this:

* http://www.jython.org/Project/index.html
* http://www.oreilly.com/catalog/jythoness/chapter/ch01.html
* http://www.onjava.com/pub/a/onjava/2002/03/27/jython.html



December 2007
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          


Search this blog:
  

Categories
Community: Mobile & Embedded
Tools
Archives

December 2007
October 2007
September 2007
May 2007

Recent Entries

OpenSolaris Community Innovation Awards

UFSC Campus Ambassador and Ambassador kit

JustJava 2007 is open



Powered by
Movable Type 3.01D


 Feed java.net RSS Feeds