News for hackers. Stuff that matters.
Re:TLS/SSL implementation in Haskell by orblivion on Wednesday April 09, 2014 @12:44AM (#7557686)
> A number of people are suggesting that this Haskell implementation must be worse than OpenSSL. It probably is. Writing good crypto code is hard. There are probably bugs.

Ok, but if it were vetted as much as openssl, it would probably be much better, yes?

Re:TLS/SSL implementation in Haskell by dtech on Wednesday April 09, 2014 @02:55AM (#7558009)
Define "better". Probably it wouldn't be more secure because both would be scrutinized and production-tested about the same. It would protect us against some common C errors but might make us vulnerable to "common" Haskell vulnerabilities. You really can't say.

It probably would be slower though, which is kind of a big deal for webservers and the like.

Re:TLS/SSL implementation in Haskell by mercurial on Wednesday April 09, 2014 @04:14AM (#7558221)
> It probably would be slower though, which is kind of a big deal for webservers and the like.

More critically, it would only be useful to Haskell code. Haskell, unless C, cannot be embedded. Having a version in Rust - which does not rely on the runtime - ought to be safe from this kind of issue (baring any problem in Rust itself) while being still embeddable from external code. It would still be somewhat slower than C, and of course Rust is far from mature.

Re:TLS/SSL implementation in Haskell by drdaeman on Wednesday April 09, 2014 @08:14AM (#7558814)
Not in only could be embedded, but also compiled into dynamically linked library.

(Shameless plug) I've collected examples of this here: https://github.com/drdaeman/haskell-library-ffi-example

Re:TLS/SSL implementation in Haskell by platz on Wednesday April 09, 2014 @09:35AM (#7559132)
The nice thing about this example is that you only need GHC to create the shared library, and then GCC can do the rest with just the .so file produced.
Re:TLS/SSL implementation in Haskell by tormeh on Wednesday April 09, 2014 @05:42AM (#7558433)
Doesn't Haskell compile first to C and then to native?
Re:TLS/SSL implementation in Haskell by h3st on Wednesday April 09, 2014 @06:45AM (#7558584)
Re:TLS/SSL implementation in Haskell by stefantalpalaru on Wednesday April 09, 2014 @06:08AM (#7558507)
Re:TLS/SSL implementation in Haskell by mercurial on Wednesday April 09, 2014 @06:34AM (#7558560)
I was unaware of that. Looking a bit deeper into it, it looks pretty involved as soon as you want to do something non-trivial with it.
Re:TLS/SSL implementation in Haskell by nardi on Wednesday April 09, 2014 @04:23AM (#7558242)
Haskell is actually a very fast compiled language. Especially for webservers, where its concurrency shines.