
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@esy-ocaml/ocamlrun
Advanced tools
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
.
% npm install -g @esy-ocaml/ocamlrun
% ocamlrun ./my-bytecode-compiled-executable
% make clean
% make dist
% npm publish
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.
FAQs
OCaml bytecode runtime
The npm package @esy-ocaml/ocamlrun receives a total of 170 weekly downloads. As such, @esy-ocaml/ocamlrun popularity was classified as not popular.
We found that @esy-ocaml/ocamlrun demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.