Archive for April, 2007

You are currently browsing the Martin en Neukoelln archives for April, 2007.


Erster Arbeitstag

Heute nun war dann mein erster Arbeitstag. Tja, was soll ich nun berichten? Eigentich verlief alles so wie wir es geplant hatten, wir trafen uns um halb neun, gingen dann zur Security und liessen uns die Ausweise ausstellen und dann ab ins Buero. Kaum angekommen, dann gleich wieder runter zum IT Service and Support Center und dort den Laptop abgeholt. Bei mir ging das alles glatt, bei Bastian und Martin gab es ein paar Komplikationen. Aber auch sie hatten dann nach dem Mittag ihren Laptop in der Hand.

Mein neues Arbeitsgeraet ist ein Laptop von Lenovo vom Typ T60 und eigentich mit allem ausgestattet was das Herz begehrt. Ein schoenes Display, akzeptable Grafikkarte und vor allem 2GB RAM. Das Gehaeuse ist alles in allem ok, aber die Handballenauflage ein wenig komisch und rund um das Touchpad ein wenig wackelig. Aber ich will mich ja hier nicht beschweren oder?

Und so war es dann bald auch schon Mittags und wir sind dann hier im EVZ Essen gegangen, das Essen war allen Erwartungen und eigenen Erlebnissen die ich zuvor hatte sehr gut. Um danach noch ein wenig das Wetter zu geniessen sind wir einmal quer duch die Anlage gelaufen und haben uns ein wenig umgeschaut, welche Gebaeude denn dort noch so alles stehen :) . Schick, Schick, gerade die neuen Sterne sehen wirklich gut aus. Wer aber auf die Idee gekommen ist, unbeding die Freiflaeche zwischen Schulungszentrum und Stern mit Tennisplaetzen zu verpflastern, dem hat wohl die Vorstellung einer entspannenden gruenen Wiese gefehlt. Tennis kann man spielen, aber sich vielleicht mal auf eine Wiese setzen alternativ auch auf eine Bank oder aehnliches leider nicht vorgeseehn. Aber egal, Tennis ist auch gut.

Auf dem Rueckweg nach Hause bin ich hier in Wieblingen noch schnell einkaufen gegangen und habe mich fuer den morgigen Feiertag mit allem versorgt was man so benoetigt. Was ich an dem morgigen freien Tag machen werde? Ich habe noch keine Idee, wenn das Wetter so stabil bleibt vielleicht ein wenig mit dem Rad die Gegend unsicher machen.

Soweit nun der Bericht fuers erste, wenn ich spannende Sachen erlebe gibts mehr und dann natuerlich auch mit Fotos hoffe ich.

Kopfgrafik

Damit nun auch mein Blog entsprechend meiner Position angepasst wird, habe ich ein kleinen Betateil eingebaut. Das Blog heisst nun offiziel: Martin en Neukoelln – Heidelberg beta.

:D

Martin en NeukoellnHeidelberg

Nach ziehmlich genau einem Jahr und einem Monat hat es mich wie viele wissen wieder in die weite Welt hinausverschlagen. Diesmal aber nicht allzuweit weg, sondern eigentlich vom globalen Stand aus gesehen fast schon um die Ecke. Aber wie der Title auch schon sagt, bin ich diesmal in Heidelberg gelandet um dort in Walldorf zu arbeiten. Bis jetzt ist noch nicht viel passiert. Ich bin angekommen und habe meine Sachen ausgepackt und werd nun etwas essen.

Damit Ihr aber nicht auf alle Neuigkeite verzichten muesst hab ich mir das neue MyMaps Feature von Google zu eigen gemacht und eine kleine Karte gezeichnet mit allen Punkten, an denen ich gewohnt hab und auch gearbeitet. Viel Spass damit.

Performance of Dynamic Code Invocation Contd.

As Gregor posted an really interesting article on dynamic code invocation and its performance, I tried to check the invocation with an optimized JRuby execution. As Charles stated in his performance of JRuby article I used the following optimizations:

  1. First Run: JAVA_OPTS=”-Xverify:none jruby SERVER -O”
  2. Second Run: JAVA_OPTS=”-Djruby.jit.enabled=true -Xverify:none jruby SERVER -O”
Ruby 1.8.6 (MRI) Ruby 1.9 (YARV) JRuby Standard JRuby Optimized JRuby Optimized 2
simple call 1.0 (0.42)* 1.0 (0.25) 1.0 (1.40) 1.0 (1.23) 1.0 (0.76)
eval with block 2.5 (1.08) 6.3 (1.57) 1.6 (2.28) 1.6 (2.06) 2.1 (1.63)
eval with string 8.4 (3.51) 55 (13.73) 27.6 (38.57) 29.4 (36.19) 34.0 (25.84)
bound method 1.2 (0.49) 1.8 (0.45) 1.2 (1.73) 1.33 (1.64) 1.2 (0.91)
bind method each time 2.7 (1.15) 4.3 (1.08) 3.1 (4.35) 3.1 (3.89) 2.29 (1.74)

Ain’t numbers a really special thing? What can we see from these numbers? At first, we see, that using the Server VM helps as expected. The JIT compiler even improves the whole benchmark by numbers.

But what is really interesting is, that JRuby’s relative performance characteristics nearly equal MRI’s and YARV’s.

How do these numbers help me? No, they dont help me, it was more to check how Gregor’s test is influenced by optimizing the JRuby startup.

ps: The numbers for MRI, YARV are taken from Gregors test and act only as a comparison.

Wohnungssuche

Was manche Menschen an Zimmern vermietern gehoert echt verboten:

  • “Zimmer in Untergeschoss” moeglichst ohne Licht
  • “Ruhiges Zimmer im DG ohne Waschmaschiene und Kochgelegenheit” – 6 Monate hungern? Am Wochenende heimfahren?
  • Ohne so,

    Bin bei Don ueber zwei Videos gestolpert. Fand ich schoen, deswegen hier nochmal.

    Update: Warum auch immer Wordpress mir die Youtube Videos verhauen hat.

    Tutorial: How to debug JRuby with Eclipse

    Regarding my yesterday post and the answer from Charles I said, ok why not have a deeper look at JRuby. So I checked out the current trunk version and looked for some issues easy to solve from the Jira. But to be able to understand how JRuby works, I wanted to have a small debug session through the whole JRuby stack. Unfortunatly I did not find a general purpose introduction on how to debug JRuby so with a little help of Google and some mailing list post I found the solution, that I want to post here.

    1. Download or checkout the current JRuby version directly from the trunk. The needed URL is availabe on the JRuby homepage.
    2. Start your Eclipse and import the JRuby project into you current workspace

    To run JRuby in debug mode and attach to the process we need to define two run configurations. One for the real JRuby instance and the other one for the debugging process.

    1. Choose Run -> External Tools -> External Tools… from the menu
    2. Add a new entry under Programs with your path to the JRuby shell script as Location, ${project_loc} as working directory and the following arguments:
      1. JAVA_DEBUG – to start the JRuby VM in debug mode
      2. the location of the script you want to execute
    3. Select the Environment tab and add the folloing variables
      1. CLASSPATH – pointing to the directory of your Java classes to use
      2. JRUBY_HOME – set to your JRuby installation path wich is your ${project_loc}
    4. Choose apply and close the dialog
    5. Choose Run -> Debug -> Debug… from the menu
    6. Add a new entry under Remote Java Application and select the JRuby project from your workspace. To breakpoint through the JRuby source, you have to add the JRuby project to the source lookup path
    7. Apply and close

    Now you have to start first your JRuby external tool launcher to create the JRuby VM and this will then wait for a remote debugging process to attach. Second, launch the remote debugging debug launcher to attach to the process. As soon as you attached to the process, the execution of your Ruby script will start and you are able to set breakpoints on any position that you like (at least in the JRuby core code).

    Have fun!