Golo - Little 5

Ok! That’s time to sync everyone on the state of GoloHttpServer. First of all, I created a GitHub for this and you’re more than welcome to contribute, ask questions or even just talk about it. This will allow you to take a look at the implementation of the run function which handle the Http request and response. function run = |connectedClient, serverState| { let inFromClient = BufferedReader( InputStreamReader (connectedClient:getInputStream())) let outToClient = DataOutputStream(connectedClient:getOutputStream()) let...

3 minute(s) read

Why? Oh Why?

For 2 days, it’s MixIT 2013 days! This conference has a lot of qualities, but for me, it’s THE event that helped me surviving previous years. This may sound a bit too much, but believe me: I was and still am a true geek! I like technology, I like computers, I like science… and I like to share! But when you work in a company that prevent you from any innovation, where every...

2 minute(s) read

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

PiG 1 - Soldering Iron Step

so what ? You started the GoloHttpServer, showed something on Raspberry and… nothing ? Yeah, I know. But c’mon, I still need some sleep and still don’t have 72h days ;) Last week end, I started the next step in the Little Hardware meets Little Software. yep, I bring back on the desk my soldering iron! I had to prepare several items: a kit to assemble cobbler breakout to use on my breadboards a 2 lines...

2 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