Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@esy-ocaml/ocamlrun

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esy-ocaml/ocamlrun

OCaml bytecode runtime

  • 4.6.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
3
Weekly downloads
 
Created
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

Package last updated on 22 Jan 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc