Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 631 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 631 Bytes

Julio

An example of Julia embedded in Haskell.

Per the instructions on Julia's website on embedding.

DSL

{-# LANGUAGE OverloadedStrings #-}
module Main where

import Julia

main :: IO ()
main = do
  juliaInit
  evalJulia "print(sqrt(2.0))"
  exitJulia

Build

nix-build

Run

-- [nix-shell:~/Desktop/julio]$ ./result/bin/main
-- 1.4142135623730951

Reference

"Julio, get the stretch"

  • Bruno Mars