jueves, 17 de marzo de 2016

Rich Hickey on Clojure

So, today I will talk about a podcast with Rich Hickey about Clojure.

Today's song will be one of my favorites, the song is "Giorgio" by Daft Punk, lots of soft funky bass slaps that get along well with the time I'm writing this entry.



Clojure is a Lisp dialect created on 2009 by Rich Hickey with a very bold promise, bring Lisp back more powerful than ever, and bring it to industry applications.
First of all, Rich Hickey defined Clojure as a language binded to the Java virtual machine, in a way that Clojure could run along with Java, the pointy haired bosses' favorite language, in a way that programmers could easily run Clojure code in a Java project, Rich even jokes about it. "Tell your boss that you're just using a new Java library".
Second, Clojure is focused on concurrency, with many programming languages having problems dealing with concurrency, and concurrency being a critical aspect of new generation programming languages due to the heavy use of multiple cores on computers and other electronic devices. Clojure attempts to solve that problem by using immutable data structures that can be processed by multiple cores without the use of locks or other complex mechanisms, by using atoms, agents or refs Clojure brings simple, yet powerful synchronization tools.
Third, Clojure extends Lisp by not only having lists as a primitive data structure but lists, maps, vectors, and sets, all of them work transparently with Clojure sequence API, which handles a lot of sequence processing.

In that way, Rich attempts to bring a more powerful tool, which works easily alongside other mainstream conservative languages, so you have the power of Lisp, macros and other obscure Lisp's uniqueness on a mainstream Java enviroment. Lisp has been reborn more powerful than ever.

And while I haven't had that "Eureka" feeling while working with Clojure, and I still find it somehow hard to adjust to the syntax (or should I say "lack of syntax"?) of any Lisp dialect. I find it very tempting to use with Java code. You could for example, code a videogame in Java and use native Java for UI and all the graphic related aspects and use Clojure for data processing like handling the enemies AI, that way, you could reduce a lot of coding time and deploy a powerful, platform independent game that could run virtually on any device (the one and only appealing feature about Java).

In that way I find Clojure to be a really promising programming language for the near future, I'm almost certain that in a few years Clojure will have its big boom. And so, the Lisp era will finally begin.

Thats all for now my fellow reader(s)
Wololo.

No hay comentarios:

Publicar un comentario