Skip to content

tkonolige/inline-julia

Repository files navigation

inline-julia

A haskell library for writing inline julia code

Examples

{-# LANGUAGE QuasiQuotes #-}

import Language.Julia.Inline

main = do
  let l = [1,2,4,5] :: [Int]
  ([julia| map(x->x+1, $l) |] >>= jlList) :: IO [Int] -- returns [2,3,4,5,6]

TODO:

  • Tests
  • Automatic marshaling of data types
  • Typechecking julia code
  • Infer return type from julia code
  • $varname with typeclass for easy passing of variables
  • rewrite rules optimizations
  • Better error messages
  • Use precompilation
  • don't use libffi

About

Inline Julia code in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published