Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/creichert/haskellrustdemo
Example Integration for Embedding Rust in Haskell
https://github.com/creichert/haskellrustdemo
ffi haskell rust
Last synced: 3 months ago
JSON representation
Example Integration for Embedding Rust in Haskell
- Host: GitHub
- URL: https://github.com/creichert/haskellrustdemo
- Owner: creichert
- License: mit
- Created: 2014-12-13T21:37:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-11T18:40:08.000Z (over 6 years ago)
- Last Synced: 2024-10-11T23:58:59.940Z (4 months ago)
- Topics: ffi, haskell, rust
- Language: Makefile
- Homepage:
- Size: 8.79 KB
- Stars: 35
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Haskell-Rust foreign function interface demo
This project shows how to use Rust from Haskell and Haskell from Rust.
Last updated on **Tuesday, September 11, 2018**
## Build and Run
Make sure the following executables are in your `PATH`:
- `rustc`
- `ghc`
- `cargo` - used to show ffi linking using Cargo
- `cabal` - used to show ffi linking a Haskell cabal projectThen, build and run the project:
$ make
$ make run## Resources
- [[https://brson.github.io/2013/03/10/embedding-rust-in-ruby][Embedding Rust in Ruby]]
- [[https://github.com/brson/rubyrustdemo][rubyrustdemo]]
- [[http://doc.rust-lang.org/guide-ffi.html][Rust FFI Guide]]
- [[http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=ghc&lang2=rust][Benchmarks]]
- [[https://pcwalton.github.io/blog/2013/04/18/performance-of-sequential-rust-programs][More Benchmarks]]
- [[https://github.com/servo/servo][Servo]]
- [[https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ffi-chap.html][GHC Manual - Chapter 10. Foreign function interface (FFI)]]