Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmjio/julio

Julia embedded in Haskell
https://github.com/dmjio/julio

haskell julia

Last synced: 2 months ago
JSON representation

Julia embedded in Haskell

Awesome Lists containing this project

README

        

Julio
=====================

An example of [Julia](https://julialang.org/) embedded in [Haskell](https://haskell.org).

Per the instructions on Julia's website [on embedding](https://docs.julialang.org/en/v0.6.2/manual/embedding/).

## DSL
```haskell
{-# LANGUAGE OverloadedStrings #-}
module Main where

import Julia

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

## Build
```bash
nix-build
```

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

## Reference

> ["Julio, get the stretch"](https://www.youtube.com/watch?v=eb3hoJ-CLJ8)
- Bruno Mars