Skip to content
OCaml Opa JavaScript Shell Emacs Lisp C Other
Pull request Compare This branch is 4 commits ahead, 3119 commits behind MLstate:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
appruntime
build [feature] build: support for Windows Mingw64 compiler chain
buildinfos [feature] version: move to 0.9.0 & S4
compilerlib
copyright
database [fix] runtime, database: since we have serveral database backend bado…
dependencies
dissemination [fix] dissemination/spawn.sh: bash equal is = and not ==
doc
installer/Mac [feature] js-like,mode: new mode for js-like syntax
jslang [fix] jsimp: Fixing "Object.prototype leaks into Opa land", Credit:Bu…
libbase
libbsl [enhance] compiler, bsl: added --no-absolute-plugin needed for buildi…
libirc
libnet
libqmlcompil [enhance] compiler, printer: Added a class of printer usefull for cyc…
libruntime [fix] compilers: derived compiler should also handle syntax options.
libsecurity
libsession
libtools [fix] user privilege drop: remove this broken feature
libtrx [fix] TRX: Admitting some grammars that could be looping.
manpages [fix] manpages: when called from the main Makefile, do not assume 'in…
ocamllang
opa [fix] compiler, database: Import database engine even if no user file…
opabsl [fix] stdlib, server: take care of js renaming
opacapi
opadoc [cleanup] permissions: fixed several *.opa *.png *.js *.java _tags files
opalang
opalib
oparuntime
opatop [enhance] opatop: Added typer warnings to opatop
packages/experimental
passes
passlib [enhance] compiler: Added to PassHandler the switch handler
plugins [revert] Crypto: "[feature] Crypto: add hmac_sha256"
pplib
protocols [enhance] compiler: added query ast + add node to update ast
qml2js [fix] compilers: derived compiler should also handle syntax options.
qml2ocaml
qmlcompilers [enhance] compiler: (big) Common path typing beetween several backend…
qmlcps [feature] closure serialisation: adding closure instrumentation (comp…
qmlflat
qmljsimp [fix] opa_event_to_dom_event: added a very basic fix for opa_event_to…
qmlpasses
qmlslicer
stdlib
teerex
tools [fix] stdlib, server: take care of js renaming
utils [feature] build: support for Windows Mingw64 compiler chain
.gitignore
CHANGELOG [doc] CHANGELOG: update
LICENSE
Makefile [fix] compilers: derived compiler should also handle syntax options.
README.md [doc] README: Converted README to Markdown
_tags
appruntime.mllib
build_libs [feature] build: support for optional libraries, enabled libnattraver…
build_rules.ml
build_tools [feature] opa-translator: build and install
buildinfos.mllib
compilerlib.mllib
config.mli [feature] build: support for Windows Mingw64 compiler chain
configure
database.mllibp [feature] Database: making dblight compilation optional, depending on…
gitinit.sh Don't assume that bash is in /bin
install_release.sh [fix] install_release.sh: .api generation is still neded
jslang.mllib
libbase.mllib [fix] stdlib: Move stuff.ml into bson.ml. Remove endian.ml. Default o…
libbsl.mllib [enhance] compiler, bsl: added --no-absolute-plugin needed for buildi…
libirc.mllib
libnattraversal.mllib Initial open-source release
libnet.mllib [cleanup] MailServe: removed mailServe.ml file, and imported some fun…
libqmlcompil.mllib
libruntime.mllib Initial open-source release
libsecurity.mllib [clean] removed whirlpool related code
libsession.mllib
libtools.mllib
libtrx.mllib
make_package.sh
ocamlbase.mltop
ocamllang.mllib
opa-compile-libs.itarget Initial open-source release
opa-run-js-libs.itarget Initial open-source release
opa-run-libs.itarget [fix] opa-run-libs.itarget: protocols.cmxa should not be here
opabsl.itarget Initial open-source release
opabsl_for_compiler.mllib
opabsl_for_interpreter.mllib Initial open-source release
opabsl_for_server.mllib Initial open-source release
opacapi.mllib Initial open-source release
opalang.mllib
opalib.mllib Initial open-source release
opapasses.mllib [feature] Internationalisation: add @i18n directive and start support…
oparuntime.mllib
opatoplib.mllib
passlib.mllib Initial open-source release
platform_helper.sh [feature] build: support for Windows Mingw64 compiler chain
plugins.itarget Initial open-source release
pplib.mllib Initial open-source release
protocols.mllib [fix] protocols: Removed genproto from library (problems with argumen…
qml2js.mllib
qml2ocaml.mllib Initial open-source release
qmlcpsrewriter.mllib
qmlcpsserver.mllib Initial open-source release
qmlflatcompiler.mllib Initial open-source release
qmlflatserver.mllib
qmljsimp.mllib
qmlpasses.mllib
qmlslicer.mllib

README.md

OPA

Overview

Opa is a new generation of cloud development platform. It is a new programming language, a new web server, a new database and a new distributed execution engine, all of them tightly integrated to provide a great experience for cloud developers.

This repository contains all the sources of the OPA compiler and libraries.

Quick build instructions

$ ./configure
$ make
$ sudo make install

should get you there ./configure should report any missing dependencies and point you to the packages you may install to fix them (although those may depend on your distribution). make needs to be GNU make.

The main dependency of OPA is OCaml 3.12. In case your distribution doesn't provide a recent enough version, or if you miss some other dependencies, you can use the installation_helper.sh script, which automates the download and installation of our dependencies. Try

$ dependencies/installation_helper.sh --help

Directory layout

  • _build: compilation target directory
  • build: build scripts and auxiliary Makefiles
  • copyright: some copyright information used in our binary package, which includes external software (as obtained from the dependency installation helper).
  • dependencies: contains the dependency installation helper
  • dissemination: contains helper programs to run on the cloud (transitional)
  • installer: auxiliary files used to build binary packages
  • plugins: additional OPA library modules (work in progress)
  • stdlib: the OPA standard library
  • tools: contains external checking tools; see Credits below
  • utils: some auxiliary, independent tools like bash completion, syntax highlighting for popular editors, etc.

The other directories contain the source of the OPA libraries, compiler, and tools.

Files at the root of the repository:

  • *.mllib: ocamlbuild target declaration for building an ocaml lib
  • *.itarget: ocamlbuild target declaration for building a set of targets
  • install_release.sh: builds a full OPA runtime in order to make a binary package
  • platform_helper.sh: some helpers to guarantee script compatibility, mostly between Linux and MacOS
  • make_package.sh: builds various kinds of binary packages from the file hierarchy created by install_release.sh

The build system

The build system is based on OCamlbuild; the included build/Makefile.bld dynamically builds an ocamlbuild plugin and generates targets based on files build_libs, build_tools and build_rules.ml.

See build/Makefile.bld and build_rules.ml for more information. All generated files are put in _build, following the same hierarchy as the source directory.

License & Credits

OPA is Copyright 2011, MLstate; it is distributed under the terms of the GNU Affero General Public License, version 3. See file LICENSE for details.

The repository opalang is currently versioning 2 external tools in tools/ used only during the build process of Opa :

  • The Closure Compiler (see tools/jschecker/README for copyright information)
  • JsDoc Toolkit (see tools/jsdoc-toolkit/README.txt for copyright information)

The Closure Compiler is used as a checker for the Javascript part of the sources of Opa, and JsDoc Toolkit is used for generating html documentation pages from this Javascript code.

The use of these tools is transitional, and will soon be made optional.

Part of the jslang library, has been closely inspired by ocamljs/jslib:

  • ocamljs/jslib, © 2007-2009 2007-9 Skydeck, Inc, distributed under LGPL v2

Files jslang/jsAst.ml and jslang/jsPrint.ml are extended versions of the modules found in ocamljs, specialized for OPA specific needs. We would like to thank the authors of the ocamljs/jslib.

Contact

All bug reports, feedback, comments, contributions or remarks are welcome, either on our website: http://opalang.org

or by email, to: support@opalang.org

Something went wrong with that request. Please try again.