raichoo.blogspot.com
MOVED TO: raichoo.github.io: August 2011
http://raichoo.blogspot.com/2011_08_01_archive.html
MOVED TO: raichoo.github.io. Mittwoch, 24. August 2011. More Fun with Scala "Dependent" Types. In my last post. I wrote about lists that encode their length within their type and the possibilities that gives us to ensure correctness of our code. In this post I want to expand these ideas. To make this happen we first need boolean values in the type system to represent that a proposition is actually true and we need to be able to negate them. Type constraint which witnesses that two types are equal. Now th...
raichoo.blogspot.com
MOVED TO: raichoo.github.io: Building GHC under Illumos
http://raichoo.blogspot.com/2012/01/building-ghc-under-illumos.html
MOVED TO: raichoo.github.io. Mittwoch, 4. Januar 2012. Building GHC under Illumos. I like the bleeding edge, that's why I always want to have the newest compilers for my favorite languages and Haskell is one of those languages. In this blogpost I'm going to show you how to build the latest and greatest GHC on the Illumos. If you don't want to build it yourself you can pick up a fairly recent version of GHC from the SFE Repository. Defined(freebsd HOST OS) -#pragma GCC visibility push(hidden) / #pragma GC...
raichoo.blogspot.com
MOVED TO: raichoo.github.io: Juli 2011
http://raichoo.blogspot.com/2011_07_01_archive.html
MOVED TO: raichoo.github.io. Sonntag, 10. Juli 2011. From Functions to Monads in Scala. First of all, I'm not a category theorist. These things just fascinate me, and I enjoy reading about this in my free time. I'm your ordinary "Joe, the programmer" working at a small software company. Still, I find these things useful in my day job. Why? In this blogpost I want to show how to derive Monads from what you already know and give names to things you maybe never even thought about. Where we call ob. OK, that...
raichoo.blogspot.com
MOVED TO: raichoo.github.io: Towards dependently typed webprogramming with Idris
http://raichoo.blogspot.com/2013/01/towards-dependently-typed.html
MOVED TO: raichoo.github.io. Freitag, 18. Januar 2013. Towards dependently typed webprogramming with Idris. JavaScript pretty much has become the lingua franka of the web. It runs in the browser, and since nodejs. Which brings dependent types. To the JavaScript ecosystem meaning a JavaScript backend for the Idris. The foundation of this effort, the programming language Idris by Edwin Brady. Idris is basically the answer to the question: "What would Haskell look like if it had full dependent types? The ba...
raichoo.blogspot.com
MOVED TO: raichoo.github.io: Februar 2012
http://raichoo.blogspot.com/2012_02_01_archive.html
MOVED TO: raichoo.github.io. Samstag, 4. Februar 2012. Setting up a Tor Bridge Relay on illumos. In this blogpost I will show how to set up a so called bridge relay. An entry point to the tor network which empowers people that suffer under the influence of censorship and surveillance to access the internet. Step 1: Building Tor under illumos. Building Tor is easy as pie. All you need is the libevent src. And the Tor src. Step 2: Setting up an illumos zone. Which itself is a dataset) like so:. Root@lain: ...
raichoo.blogspot.com
MOVED TO: raichoo.github.io: September 2010
http://raichoo.blogspot.com/2010_09_01_archive.html
MOVED TO: raichoo.github.io. Montag, 20. September 2010. Scala: Klassen erweitern mal anders. Datentypen erweitern ist mehr oder weniger etwas das man des öfteren machen muss, und das ist nicht umbedingt immer unproblematisch. Nehmen wir mal an wir hätten folgende Klasse:. Class Test(val x: Int). Ganz klar: hochkomplizierter Code. Quillt an Features nur so über, aber uns fehlt gerade eine Methode damit. Wir Objekte dieser Klasse in unserem Code nahtlos verwenden können. Diese Methode nennen wir. Sein, al...
raichoo.blogspot.com
MOVED TO: raichoo.github.io: Januar 2013
http://raichoo.blogspot.com/2013_01_01_archive.html
MOVED TO: raichoo.github.io. Montag, 21. Januar 2013. Idris to JavaScript: Playing with the FFI. Until now the FFI for the JavaScript backend for Idris is quite primitive and somehow I'd like to keep it that way since I don't want to make invasive changes to the language just because of a different target. Therefore a started a little experiment to see how far one can get with the current FFI. Now we want to replace the text of the Node with the id. Int - IO HTMLElement item (Nodes p) i = do i. In this e...
raichoo.blogspot.com
MOVED TO: raichoo.github.io: Januar 2011
http://raichoo.blogspot.com/2011_01_01_archive.html
MOVED TO: raichoo.github.io. Montag, 31. Januar 2011. Scala: Spass mit Streams. Ich wurde ja neulich mal gefragt ob ich mal was über Streams in Scala bloggen könnte (auch wenn es hier eher um IO ging). Da mir da allerdings ein gutes Beispiel gefehlt hat, habe ich das erst einmal auf die lange Bank geschoben (irgendwie blogge ich derzeit glaub ich etwas zu wenig :/). Aber ok, dank eines hervorragenden Posts von Mario Gleichmann. Sealed abstract class Season. Case object Spring extends Season. If (now eq x).
raichoo.blogspot.com
MOVED TO: raichoo.github.io: Calling Idris from Javascript and vice-versa.
http://raichoo.blogspot.com/2013/05/calling-idris-from-javascript-and-vice.html
MOVED TO: raichoo.github.io. Freitag, 31. Mai 2013. Calling Idris from Javascript and vice-versa. Until now the JavaScript backend for Idris has been a nice little gimmick to play around with, but when it comes to writing real applications it's pretty limited. Let's write a very simple piece of code that just changes a text label when it gets. To do this we will need to define our onclick function. It'll look like this:. I'm explaning how these mechanisms are used. I've got a little bit of code on my gist.
SOCIAL ENGAGEMENT