Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
There're probably better ways of achieving it since I made the implementation very unsafe davesnx/query-json/js/Js.re.
I had a little idea about the theory, but very vague and useless and was the righ time to learn more since I created styled-ppx which is a ppx (Pre*Processor Ex*tension) that allows CSS-in-Reason/OCaml. Needs to parse the CSS and have a backend that compiles to bs-emotion.
You won't have the facility to write frontend code with React, but I'm sure it will change soon since there's a current implementation of React in jsso jsoo-react.
Started with the goal to create something useful and learn during the process. Was very interested in learning about how to write parsers and compilers using the OCaml stack: menhir and sedlex, compile it to any architecture and try to compile it to JavaScript.
js_of_ocaml is a compiler that can be plugged to the OCaml's one and It makes it possible to run pure OCaml programs into JavaScript. As you can see, query-json uses menhir, sedlex and yojson
The compilation to JavaScript is the sweet section of this blog post since we are using OCaml (under the hood while writing Reason), and it allows us to compile directly to JavaScript using js_of_ocaml.