PiG 2 - First Interaction

In my previous article I explained some steps useful for my Little Experiment with my Raspy. Yes, I gave it a name, I’m stupid and geek ;) This time I’ll explain my first usage of Golo to control the GPIO of my Raspy. If you didn’t prepared your Raspy for Golo usage, just follow my article. All those previous articles looks like I prepared something ? ;) When you have the hardware and software ready...

4 minute(s) read

Golo on the Raspberry

On the Little experiments desk, there are a lot of Little hardware. I must admit I have some favorites among them, but don’t tell them ;) One of them is an Android USB key, MK808B, which allows me to run Android any TV with a HDMI input. Used with a bluetooth PlayStation keyboard, it’s pure fun. Unfortunately, Android devices are running a modified JVM called Dalvik which has one major drawback: it’s based...

2 minute(s) read

Golo - Little 4

So, last time I told you I started to write some kind of GoloHttpServer. In that process (which is still WIP) I had several questions. One of the first was: a server will receive several requests, I need to launch threads. I knew how to do that with Java, how to do that with Golo. The solution I found is based on the below code: module little.experiment4_1 import java.lang function run = |number| { println...

2 minute(s) read

Golo - Little 2

The D-day is coming for Golo and be sure to attend Julien’s talk at Devoxx ! In the meantime, here is a new piece of Golo. module little.experiment2_1 import java.lang function functionWithCase = |inputParameter| { case { when inputParameter == "This value" { println("this value spotted") } otherwise { println("otherwise was the answer") } } } function main = |args| { functionWithCase("This value") functionWithCase("not something to handle") } This illustrate the...

2 minute(s) read

Golo - Little 1

I think it’s time to start some Golo experiment. Of course, everyone wanted the mandatory HelloWorld. But hey, that’s a blog called “Little Experiment” ;) (at least it was at the writing time in) Ok, ok, the HelloWorld is available at Golo website, and as a present to my fellow readers, here is a copy here ;) module hello.World function main = |args| { println("Hello world!") } Save this to a helloworld.golo file...

1 minute(s) read