Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonghough/ocaml2j
OCaml bindings for calling and running J scripts
https://github.com/jonghough/ocaml2j
dll jlang language-bindings ocaml
Last synced: 18 days ago
JSON representation
OCaml bindings for calling and running J scripts
- Host: GitHub
- URL: https://github.com/jonghough/ocaml2j
- Owner: jonghough
- Created: 2016-04-04T13:27:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-04T13:55:34.000Z (almost 9 years ago)
- Last Synced: 2024-11-11T16:21:09.316Z (3 months ago)
- Topics: dll, jlang, language-bindings, ocaml
- Language: OCaml
- Homepage:
- Size: 717 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ocaml2j
Example programm calling j.dll (libj.so) from Ocaml.## Functions
j.dll functions`JInit`, `JDo`, `JFree`, `JGetM` are mapped to Ocaml functions:
```
jinit, jfree, jdo, jget
```and **J** types `Boolean`, `Integer`, `Floating`, `Literal` are mapped to
```type jBool = JBool of bool
type jInt = JInt of int
type jFloat = JFloat of float
```
Other types are not supported (yet).## Building and running
to build -> `./build.sh`
to run -> `./callc.byte`
## Tested platforms
This has been tested on 32-bit Linux only. For other OSes, obviously the correct library file is needed. Definitely not tested on 64-bit yet.