Tag Groovy

Posts: 3

Groovy over Python?

After a few frustrating events where I had some python code blow up because of dependencies, I started looking hard a using Groovy going forward.

For some simple things, Groovy and Python are very easy. For example if I wanted to read the latest sales from Park.IO and print them out, I could do the following in Python on my Mac.

import pandas as pd

df = pd.read_csv('https://park.io/orders/export.csv')

print (df)

If I tried that on my old Raspberry Pi, I'd run into dependency issues w.r.t. to Numpy not compiling correctly.

With Groovy, it's roughly the same but no need to call a module, it's just built in.

String getResult = new URL('https://park.io/orders/export.csv').text

print getResult

And that works on my Raspberry Pi.

Granted, I don't really need all the multi-threading power of Java to run this simple program but the portability is nice.


Groovy for Data Science

I was looking through Reddit the other day and came across an interesting post in r/Groovy. The group itself has been relatively dead for a while but sprang to life with a question about using Groovy for Data Science. Granted, Python IS eating the world right now for Data Science with R right behind it and Java still hanging out with all the Big Data stuff.

I've always liked Groovy because it's very Python like (high level-ish) but compiles down to byte-code during runtime. It's multithreaded and concurrent. I know that Python attempts to do this and there are many hackish ways to make it as fast as C, but you have to know how to do it. High performance python is an art form beyond the Data Science world IMHO.

The Reddit post had a link to a set of slides from Dr. Paul King of Object Computing Inc. I did some sleuthing and came across an hour long presentation and I think it's fantastic.


Groovy vs Clojure vs Julia

Everyone will say "learn java" instead but I really like the speed of these scripting languages. They're like duct tape, can be used to get finish out whatever you're working on if you get stuck somewhere.

Google Trend of Groovy, Clojure, and Julia


Neural Market Trends is the online home of Thomas Ott.