News for hackers. Stuff that matters.
Re:Introducing Transport Layer Security in pure OCaml by chriswarbo on Tuesday July 08, 2014 @03:37PM (#8006317)
Interesting. Maybe an area where linear types can shine?

Rust is probably the most trendy language offering linear types at the moment, although I'd say it much closer to being "a safer C" than "a linear OCaml", so it wouldn't really make things more functional (although it would be safer!).

ATS is descended from DependentML, but for some reason most ATS code I've seen is written in a "safer C" style too. Maybe that's just pragmatism, since ATS has very few native libraries, so it's usually easier to call out to C.

Linear Lisp might be a nice choice, but its dynamic typing may be a problem for security-critical code.

Re:Introducing Transport Layer Security in pure OCaml by steveklabnik on Tuesday July 08, 2014 @07:54PM (#8007394)
Fun bit of trivia: Rust was originally implemented _in_ OCaml, and takes a lot of cues from it.
Re:Introducing Transport Layer Security in pure OCaml by klibertp on Wednesday July 09, 2014 @05:18AM (#8008735)
I saw a bit of OCaml code in Rust code-base recently, can you say what it's used for? I know that Rust is self-hosting now, but I swear I saw some .ml files there...
Re:Introducing Transport Layer Security in pure OCaml by dbaupp on Wednesday July 09, 2014 @08:42AM (#8009304)

  ~/rust $ find -name '*.ml' | wc -l
  72
  ~/rust $ find -name '*.ml' | grep -v ./src/llvm | wc -l
  0
i.e. there are some OCaml files in a Rust checkout, but they're all part of LLVM, mostly part of the "OCaml Kaleidoscope": http://llvm.org/docs/tutorial/OCamlLangImpl1.html