<commit_before>#+AUTHOR: <NAME>
#+TITLE:  Embed Rust in Haskell
#+DATE:   Sat, Dec 13, 2014


* Embedding Rust Libraries in Haskell


** Build and Run

  *The Rust and GHC Haskell compiler needs to be in your PATH*
#+BEGIN_SRC sh
  $ make
  $ make run
#+END_SRC


This writeup is a work-in-progress. I want to provide a more
comprehensive breakdown and outline design plans for a `Foreign.Rust'
module. If you have any questions or want to collaborate/contribute
please message me.


** Resources

  - [[https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ffi.html][GHC Manual - Chapter 9. Foreign function interface (FFI)]]
  - [[https://brson.github.io/2013/03/10/embedding-rust-in-ruby][Embedding Rust in Ruby]]
  - [[https://github.com/brson/rubyrustdemo][haskellrubydemo]]
  - [[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]]
<commit_msg>Remove redundant title from README.<commit_after>#+AUTHOR: <NAME>
#+TITLE:  Embed Rust in Haskell
#+DATE:   Sat, Dec 13, 2014


** Build and Run

  *The Rust and GHC Haskell compiler needs to be in your PATH*
#+BEGIN_SRC sh
  $ make
  $ make run
#+END_SRC


This writeup is a work-in-progress. I want to provide a more
comprehensive breakdown and outline design plans for a `Foreign.Rust'
module. If you have any questions or want to collaborate/contribute
please message me.


** Resources

  - [[https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ffi.html][GHC Manual - Chapter 9. Foreign function interface (FFI)]]
  - [[https://brson.github.io/2013/03/10/embedding-rust-in-ruby][Embedding Rust in Ruby]]
  - [[https://github.com/brson/rubyrustdemo][haskellrubydemo]]
  - [[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]]

{'fraction_non_alphanumeric': 0.148014440433213, 'fraction_numerical': 0.023465703971119134, 'mean_word_length': 4.179906542056075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4059003', 'n_tokens_mistral': 869, 'n_tokens_neox': 760, 'n_words': 183}