2014 March
upcoming events March / April 2014
On 23, Mar 2014 | No Comments | In Event | By admin
Next week I will be presenting a new work, 48Hz, a multi-channel sound installation taking place in the platform arts gallery in Belfast. More information here.
I will also be performing part of this composition in Amsterdam, at OT301, on the 5/04/2014.
I will be in Amsterdam on the first week of April for another meeting of the Modality group. The concert will be part of of that meeting, and there will also be a workshop for those that want to get initiated with Modality.
Making a tiny web server in Haskell
On 09, Mar 2014 | No Comments | In code | By admin
Recently I have been having fun in my spare time discovering how to implement a tcp server / client in Haskell. It’s incredible easy to implement just a couple of lines of code. Building on top of that, today I learned how to implement an http server. Turns out http is just sending and receiving text (and other content) over tcp. As a nice application, I quickly coded a program that given a port and file path starts a web server which will display a webpage with a link to the file which when clicked sends the file to the client’s browser. This is very handy to quickly transfer a file to a friend over a local network. I was impressed with how little code it was needed to implement this in Haskell, and how high level and elegant that code was.