Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@esy-ocaml/ocamlrun

Package Overview
Dependencies
0
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @esy-ocaml/ocamlrun

OCaml bytecode runtime


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

@esy-ocaml/ocamlrun

This repository contains an npm package which wraps the bytecode VM portion of the OCaml toolchain + a set of dynamically loaded libs as an npm package.

The idea is to be able to distribute bytecode compiled OCaml programs on npm and have them executed using this package.

The goal is also to have a very quick installation, current on MacBook Pro 2016 it takes around 18s to compile the ocamlrun.

Usage

% npm install -g @esy-ocaml/ocamlrun
% ocamlrun ./my-bytecode-compiled-executable

Release

% make clean
% make dist
% npm publish

How it works?

We compile ocaml and jbuilder into bytecode and distribute along with ocaml.tar.gz and lwt.tar.gz. On target machine we unpack ocaml.tar.gz and build the runtime portion (ocamlrun + needed C libs) then we build only C part of lwt using bc-compiled ocaml and jbuilder. Finally we have an ocamlrun exposed with a configured $OCAMLLIB which is able to run bytecompiled executables which use lwt.

TODO

  • Support Windows
  • CI

Keywords

FAQs

Last updated on 23 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc