Coder Social home page Coder Social logo

ptzagk / bucklescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rescript-lang/rescript-compiler

0.0 0.0 0.0 330.49 MB

A backend for the OCaml compiler which emits JavaScript.

Home Page: https://bucklescript.github.io

License: Other

Makefile 0.36% OCaml 67.44% Shell 0.02% C++ 0.01% HTML 0.01% JavaScript 21.52% Standard ML 3.63% CSS 0.01% TeX 1.34% PostScript 4.15% Gnuplot 0.01% Coq 1.22% C 0.05% Go 0.01% Batchfile 0.23%

bucklescript's Introduction

BuckleScript: A JavaScript backend for OCaml focused on smooth integration and clean generated code.

NPM Build Status Coverage Status

Documentation

Please see the documentation site.

Contributing

See CONTRIBUTING.md.

Acknowledgments

  • Thanks to the OCaml team, obviously, without such a beautiful yet practical language, this backend would not exist
  • Thanks to ninja-build, BuckleScript also comes with a blazing fast build tool on top of it, ninja is a truly well engineered scalable build tool
  • Thanks to Bloomberg! This project began at Bloomberg and was published in 2016; without the support of Bloomberg, it would not have happened. Now that the project has grown and developed its own community, it has moved to its own GitHub organization.

Licensing

See COPYING and COPYING.LESSER

The ocaml directory contains the official OCaml compiler (version 4.02.3). Refer to its copyright and license notices for information about its licensing.

The ninja-build directory contains the official ninja-build (version 1.7.2). Refer to its copyright and license notices for information about its licensing.

BuckleScript builds on parts of js_of_ocaml:

BuckleScript builds on parts of OCaml:

These modules were adapted from ocaml/bytecomp/simplif.ml for JavaScript specific optimization purposes.

jscomp/core/js_main.ml is adapted from ocaml/driver/main.ml. It is not actively used but demonstrates that it is easy to assemble a whole compiler using the OCaml compiler libraries. It also shows how to add more compilation flags to a JS backend.

jscomp/stdlib is copied from ocaml/stdlib. It is compiled to JavaScript and included with BuckleScript.

jscomp/test is based on ocaml/testsuite.

BuckleScript unittest builds on parts of OUnit

  • jscomp/ounit is adapted from ounit, the unit test utilities are only used for dev purpose, they are not required for distribution

bucklescript's People

Contributors

bobzhang avatar evmar avatar nico avatar chenglou avatar glennsl avatar sgraham avatar nicolasdespres avatar joshaber avatar tfarina avatar riannucci avatar pcc avatar mransan avatar jdeisenberg avatar syntheticpp avatar arnarthor avatar zploskey avatar fanael avatar qhuo avatar mchaver avatar ngzhian avatar doctorlove avatar bsansouci avatar kwesolowski avatar maximuska avatar colincross avatar bradking avatar anmonteiro avatar iwadon avatar ryanartecona avatar rgeary1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.