Skip to content

Meeting with Julia's meta-programming

Pre-release
Pre-release
Compare
Choose a tag to compare
@haldai haldai released this 15 Mar 11:38
· 34 commits to master since this release

By separating Julia QuoteNode with Symbol with predicates :/1 and $/1 respectively, Jurassic.pl can manipulate Julia's AST expressions (Expr type). It has the following basic functions:

  • Construct Julia expressions with jl_expr/2;
  • Evaluate Julia expressions with Julia's eval/1;
  • Unify Prolog terms and Julia expressions.

Enjoy writing Julia code with Prolog :)