Dealing with complex C-structure-like data in haskell often force the developer to have to deal with C files, and create a system that is usually a tradeoff between efficiency, modularity and safety.
Foreign class doesn’t quite cut it, external program needs C files, Binary parsers (binary, cereal) are not efficient or modular.
Let’s see if we can do better using the advanced haskell type system.
A new hope. Foundation is a new library that tries to define a new modern Haskell framework. It is also trying to be more than a library: A common place for the community to improve things and define new things
Rust is a pretty interesting language, in the area of C++ but more modern / better. The stated goal of rust are: “a systems programming language focused on three goals: safety, speed, and concurrency”. Combining Rust with Haskell could create some interesting use cases, and could replace use of C in some projects while providing a more high level and safer approach where Haskell cannot be used.
For the last 5 years, I’ve worked intermittently on cryptographic related packages for Haskell. Lately, I’ve consolidated it all in one single package. Announcing cryptonite
On unix system, we get access to syscalls that maps files or devices into memory. The main syscall is mmap, but there’s also some others syscalls in the same family to handle mapped memories like mlock, munlock, mprotect, madvise, msync.
One of my side projects that has been running for couple of years now, was to get Cryptography up to scratch in haskell. Back when I started TLS, there were many various cryptography related projects and libraries. Many were not easy to use, none were consistent, many had performance problems.
I’ve been trying to integrate some more type-safety in cryptohash for a while. The current and original scheme was using a bytestring for digest, meaning that they were no way to differentiate a digest with any other bytestring (short of wrapping it yourself).
Opening connection is nowadays a complicated business: One of the leading complication provider is TLS. In itself, there’s nothing complicated about it, however the sheer amount of configurability make it too fiddly for casual programmer that want to open a simple connection to send bytes back and forth.
I’m quite pleased to announce that TLS 1.0 is now available. It took 9 months of brewing in its own branch, to get the last missing protocol bits implemented and much more.
I recently had to make a couple of exhaustive search, and i’m going to share the solution i’ve crafted really quickly. This is for my own future benefits later so that i don’t have to search my disk, but this could be useful and a good starting point for anyone attempting something similar.
In an effort of publicize more what’s happening with TLS, here is a textual changelog of the two previous versions:
Quickcheck is a framework to generate arbitrary input to test properties.
Following from the previous article, where I demonstrated how easy it is to instanciate your own webkit. I’ll try now to go in more details, and create a simple hackage browser.
In this serie of articles, I’ll give a tutorial to use the webkit library.
The following script permits to mirror a darcs repository into a git repository; It’s also working in incremental mode since darcs-fastconvert added support for marksfile (>= 0.2.0) and it’s really fast.
I haven’t really blogged about single package update for a while, as such i’m going to bundle multiple updates in this post.