Getting started with Frege: Hello World and basic setup using Maven

I spent a couple of hours playing with Frege (Haskell on the JVM) and not much documentation tutorials seems available. I am trying to help writing this simple Hello World tutorial. The code is available on Github: https://github.com/ftomassetti/frege-tutorial/tree/01_HelloWorld Update: Frege has some very useful documentation at http://www.frege-lang.org/doc/… where … represents…

Continue reading

Java comments parsing

Recently I have done some work on JavaParser, focusing on parsing comments and attributing them to the element being commented. I like working on manipulating source code. I like this problem also because it does not have obvious solutions, but it can be solved only relaying on heuristics and conventions.…

Continue reading

Ruby vs Python

During the last year I spent quite some time using both. All in all they are mostly equivalent, they are powerful dynamic strongly-typed languages with decent support for a bunch of programming paradigms. So just’s take a look at the differences: – Ruby is more fun to write, the syntax…

Continue reading

Maps, again

During these holidays I played a little bit with a couple of ideas, including a “civilization-like” game. I used JRuby. I started using a dataset of elevation (the SRTM 90m). In practice you get a big matrix with the elevation in meters of a point each 90 meters. If you…

Continue reading