Reasons to love Reason – ReactiveConf – Medium

Reasons to love Reason:  #ReactJS #JavaScript

  • Reasons to love ReasonReason is a rethought syntax and tooling ecosystem for OCaml created by Facebook.
  • OCaml is great, but its weird syntax was holding people back from trying it out, so Cheng Lou and Jordan Walke along with other people decided to fix it — and Reason was born!I learned about Reason from Sean Grove when we were chatting over a cup of tea in Samovar.
  • And this incredible talk was born later that year:Sean’s talk at ReactiveConf 2016Why Reason?Since Reason is a dialect of OCaml, you get a lot of good functional stuff:modern type system: algebraic types, type inference, and even typed commentsvariants and pattern matchingmodules and files as first class objectsfunctional and immutable by defaultimperative and mutable when neededJavaScript and React support via BuckleScript and reason-reactcompilation to native code for backendUnikernels via MirageOSIt comes with amazing tooling, too!
  • REPL, auto-formatting, auto-generated type annotations, automatic printer generation, and Reason to OCaml, and OCaml to Reason transpiler are all included in the package.refmt inside Vim, called once per window resize (source: reason docs)Reason is getting hotSince 2016, Facebook has migrated 25% of the Messenger app code to Reason.
  • They use BuckleScript to compile OCaml to JS, and they have created Reason bindings for React.Recently, Cheng gave great talks at React Conf 2017 and at React London 2017, and ReasonML communities have been forming all around the world.Reason is becoming a big thing, and you shouldn’t miss out on that.

Reason is a rethought syntax and tooling ecosystem for OCaml created by Facebook. OCaml is great, but its weird syntax was holding people back from trying it out, so Cheng Lou and Jordan Walke along…

@ReactiveConf: Reasons to love Reason: #ReactJS #JavaScript

Reason is a rethought syntax and tooling ecosystem for OCaml created by Facebook. OCaml is great, but its weird syntax was holding people back from trying it out, so Cheng Lou and Jordan Walke along with other people decided to fix it — and Reason was born!

I learned about Reason from Sean Grove when we were chatting over a cup of tea in Samovar.

“Unikernels are the way how to get rid of the OS,” he told me about unikernels in OCaml.

“And why would anyone do that?” I asked.

“Operating systems were created to run many programs from several users on one machine. We don’t do that anymore,” he explained. “Today, when every micro-service runs on its VM, 99% of OS is useless.”

I was curious: “What about networking, disk IO, threads, and all the other stuff?” But as Sean explained to me, those were just simple OCaml libraries.

“You get a type-safe operating system, booting time under 50ms, and a size of few kilobytes. You can boot a new machine to handle each new network request,” he added. “And unikernels are also incredibly safe thanks to the extremely small attack surface. It is all just a few kilobytes of a type-safe functional code.”

I was hooked, so when we started putting ReactiveConf 2016 together, Sean was among the first invitees. And this incredible talk was born later that year:

Since Reason is a dialect of OCaml, you get a lot of good functional stuff:

It comes with amazing tooling, too! REPL, auto-formatting, auto-generated type annotations, automatic printer generation, and Reason to OCaml, and OCaml to Reason transpiler are all included in the package.

Since 2016, Facebook has migrated 25% of the Messenger app code to Reason. They use BuckleScript to compile OCaml to JS, and they have created Reason bindings for React.

Recently, Cheng gave great talks at React Conf 2017 and at React London 2017, and ReasonML communities have been forming all around the world.

Reason is becoming a big thing, and you shouldn’t miss out on that. We are working on a great surprise for all of you, Reasonable folks, which is one more reason to grab a ticket right away !

Reasons to love Reason – ReactiveConf – Medium