GTK + Chromium + Clojure + ClojureScript

It’s been a while since I wrote a desktop app. I have an idea involving something called “FIEL” (you personal digital signature in México), and I’ve read some really good things about C++11, so I decided it was a good idea to try and build something with those two.

There are a few GUI frameworks available, but to be honest I don’t really grok GTK, QT 5 looks nice but there’s all those IDEs and and XMLs and I’m not really an IDE person.

After a little research I found the Chromium Embedded Framework sounds pretty good, there are some good points:

Tha bad side:

I’m complecting things together, but that’s OK. I really want to do this.

But behold! There’s more complecting waiting for us.

For this app I have a strange use case, I need to be able to call some custom Java classes to sign and encrypt, yeah I could use openssl, but eventually someone is going to ask me to add those JAR files.

So, I embedded a JVM!

Ok so let’s take a step back, and check where we are:

I know what you are thinking… everyone’s favorite platform runs on top of the first two… Yes, I’m talking about clojure!

So… it doesn’t hurt if I write clojurescript instead of Javascript and Clojure instead of Java, right?

At least it sounds interesting, I’m half way through it but it seems that it’s going to work.

Let me show you:

Firmavio starting

It does nothing, but I think it is a good starting point for every desktop app that I write from now on.

BTW you can check the code here


comments powered by Disqus