Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
Title: | Embedded Julia for SWI Prolog |
---|---|
Rating: | Not rated. Create the first rating! |
Latest version: | 0.1.4 |
SHA1 sum: | c336ba353b3818e747b9316deb5db56f0c288724 |
Author: | Samer Abdallah <samer.abdallah.00@gmail.com> |
Download URL: | https://github.com/samer--/pljulia.git |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.1.4 | c336ba353b3818e747b9316deb5db56f0c288724 | 1 | https://github.com/samer--/pljulia.git |
aaf740c54dfe4f4b3eef09931b3dd26635179760 | 3 | https://github.com/samer--/pljulia.git | |
1b044f41f8977500778e84b9bd75d9430cb1143c | 52 | https://github.com/samer--/pljulia.git | |
0.1.3 | f85a50080bf578478da7388ae62587814151d254 | 1 | https://github.com/samer--/pljulia.git |
c423615170621d225ad3a41498cf625cc20bf6ea | 1 | https://github.com/samer--/pljulia.git | |
0.1.1 | 3f8f295c860db8aa1566f38f2474ca3981162d1d | 1 | https://github.com/samer--/pljulia.git |
0fc51257f51bda817671a7d6270de5536f30fe54 | 1 | https://github.com/samer--/pljulia.git | |
0.1.0 | cebdc43f222f8c25ee2dfc55dab4954ef628f229 | 1 | https://github.com/samer--/pljulia.git |
0.0.6 | 7dac0da329c082186312d953f9a81242556f4411 | 1 | https://github.com/samer--/pljulia.git |
0.0.5 | 7178f5102ed27bfd90f89657d64b4afe9cc734c7 | 1 | https://github.com/samer--/pljulia.git |
0.0.4 | 1f4fff7d856b94b17f756214dd2621440e918226 | 1 | https://github.com/samer--/pljulia.git |
569011ca78304fff91552dacdbfa959d548087ab | 1 | https://github.com/samer--/pljulia.git | |
0.0.3 | 8df8bee9f0d7ed4919458c61d590eca6c21be4d4 | 1 | https://github.com/samer--/pljulia.git |
4e88ed6b69f7536ab0417335dcb925e62d6f35e0 | 1 | https://github.com/samer--/pljulia.git | |
0.0.2 | 543525931be43391906ee5f88d82c792787f5f70 | 1 | https://github.com/samer--/pljulia.git |
0.0.1 | e73ace9e61a3fdc9516c90a70a4f7e7e004a35d3 | 1 | https://github.com/samer--/pljulia.git |
ee47a0e10a5d128a361aee527de2551925996343 | 1 | https://github.com/samer--/pljulia.git | |
2141a083e3675381c0d98a6d05b36a97abbc7c5c | 1 | https://github.com/samer--/pljulia.git |
Embedded Julia for SWI Prolog
This module allows Prolog code to use an embedded instance of Julia, a language for numerical and technical computing.
Make sure you have installed Julia, and that the julia executable is on your PATH.
Then do
?- pack_install(pljulia).
?- use_module(library(julia)). ?- ?cumsum(rand(4,4)). ?- X <? 6*7. ?- "hello world"[1:2:end] ?> X. ?- X <? rand(3,4,5), ?X. ?- X <? #(1,"a",2.2,[1,2,3]). ?- maplist(jl_call("println"), [1,3.14,#("a",2.2,float64([3],[4,5,6]))], _). ?- ?pl_call(:user,:succ,4).
See examples/example.pl for more, including plotting.
Add jl_map/2, like jl_call/N
but mapped over lists.
Generate more informative Prolog exceptions from Julia exceptions
Handle more Julia types directly: more base types? Arrays of more types? BitArray?
Handle more node types in Julia syntax trees.
Consider having jl_array_t
structures floating around as Prolog BLOB
atoms, assuming they can be protected from Julia's garbage collector.
Should be more efficient than converting to/from Prolog lists when dealing
with numeric arrays.
Handle more Julia syntax:
; to separate positional args from keyword args {} for parametric types
Pack contains 8 files holding a total of 73.0K bytes.