An example of Julia embedded in Haskell.
Per the instructions on Julia's website on embedding.
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Julia
main :: IO ()
main = do
juliaInit
evalJulia "print(sqrt(2.0))"
exitJulia
nix-build
-- [nix-shell:~/Desktop/julio]$ ./result/bin/main
-- 1.4142135623730951
5 commits
Nix
66.7%
Haskell
33.3%
An example of Julia embedded in Haskell.
Per the instructions on Julia's website on embedding.
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Julia
main :: IO ()
main = do
juliaInit
evalJulia "print(sqrt(2.0))"
exitJulia
nix-build
-- [nix-shell:~/Desktop/julio]$ ./result/bin/main
-- 1.4142135623730951
5 commits
Nix
66.7%
Haskell
33.3%