|
13 | 13 | "\n",
|
14 | 14 | "Running this notebook assumes Logtalk is installed using one of the provided installers or by running the manual installation script.\n",
|
15 | 15 | "\n",
|
16 |
| - "The default backend can be changed in the fly by adding a code cell at the top and running one of the following queries: `eclipse`, `gnu`, `lvm`, `sicstus`, `trealla`, or `yap` (assuming that all these backend Prolog systems are installed). The default backend can be set for all notebooks in a directory by using a `logtalk_kernel_config.py` file (see the [logtalk-jupyter-kernel](https://github.com/LogtalkDotOrg/logtalk-jupyter-kernel) repo for details). If this file is not present, the default backend is SWI-Prolog.\n", |
| 16 | + "The default backend can be changed in the fly by adding a code cell at the top and running one of the following queries: `eclipse`, `gnu`, `sicstus`, `trealla`, `xvm`, or `yap` (assuming that all these backend Prolog systems are installed). The default backend can be set for all notebooks in a directory by using a `logtalk_kernel_config.py` file (see the [logtalk-jupyter-kernel](https://github.com/LogtalkDotOrg/logtalk-jupyter-kernel) repo for details). If this file is not present, the default backend is SWI-Prolog.\n", |
17 | 17 | "\n",
|
18 | 18 | "This notebook is currently running using:"
|
19 | 19 | ]
|
|
31 | 31 | {
|
32 | 32 | "data": {
|
33 | 33 | "text/plain": [
|
34 |
| - "Logtalk 3.77.0-b01\n", |
35 |
| - "SWI-Prolog 9.3.3\n", |
36 |
| - "Logtalk Jupyter kernel 0.11.0-beta" |
| 34 | + "Logtalk 3.82.0-b01\n", |
| 35 | + "SWI-Prolog 9.3.8\n", |
| 36 | + "Logtalk Jupyter kernel 0.14.0-beta" |
37 | 37 | ]
|
38 | 38 | },
|
39 | 39 | "metadata": {},
|
|
77 | 77 | {
|
78 | 78 | "data": {
|
79 | 79 | "text/plain": [
|
80 |
| - "\u001b[1mVersionData = logtalk(3,77,0,b01)" |
| 80 | + "\u001b[1mVersionData = logtalk(3,82,0,b01)" |
81 | 81 | ]
|
82 | 82 | },
|
83 | 83 | "metadata": {},
|
|
179 | 179 | {
|
180 | 180 | "data": {
|
181 | 181 | "text/plain": [
|
182 |
| - "$VersionData = logtalk(3,77,0,b01)\n", |
| 182 | + "$VersionData = logtalk(3,82,0,b01)\n", |
183 | 183 | "$X = [1,2,3]\n",
|
184 | 184 | "$Z = [1,2,3,4,5,6]\n",
|
185 | 185 | "$Unicode = full\n",
|
|
889 | 889 | {
|
890 | 890 | "data": {
|
891 | 891 | "text/plain": [
|
892 |
| - " Call: (1) fred::number_of_legs(_22292)\n", |
893 |
| - " Call: (2) number_of_legs(_22292)\n", |
| 892 | + " Call: (1) fred::number_of_legs(_23552)\n", |
| 893 | + " Call: (2) number_of_legs(_23552)\n", |
894 | 894 | " Fact: (2) number_of_legs(4)\n",
|
895 | 895 | " Exit: (2) number_of_legs(4)\n",
|
896 | 896 | " Exit: (1) fred::number_of_legs(4)"
|
|
934 | 934 | {
|
935 | 935 | "data": {
|
936 | 936 | "text/plain": [
|
937 |
| - " All specified spy points added.\n", |
938 |
| - "+ Call: (6) gravitational_acceleration(_7774)\n", |
| 937 | + " All specified breakpoints added.\n", |
| 938 | + "+ Call: (6) gravitational_acceleration(_9474)\n", |
939 | 939 | "+ Fact: (6) gravitational_acceleration(3.72076)\n",
|
940 | 940 | "+ Exit: (6) gravitational_acceleration(3.72076)"
|
941 | 941 | ]
|
|
1013 | 1013 | "data": {
|
1014 | 1014 | "text/plain": [
|
1015 | 1015 | "% \n",
|
1016 |
| - "% tests started at 2024-03-25, 14:33:01\n", |
| 1016 | + "% tests started at 2024-07-27, 06:43:46\n", |
1017 | 1017 | "% \n",
|
1018 | 1018 | "% running tests from object tests\n",
|
1019 | 1019 | "% file: /Users/pmoura/logtalk/examples/ack/tests.lgt\n",
|
1020 | 1020 | "% \n",
|
1021 |
| - "% ack_1: success (in 0.000918000/0.001000000 cpu/wall seconds)\n", |
1022 |
| - "% ack_2: success (in 0.026442000/0.033000000 cpu/wall seconds)\n", |
1023 |
| - "% ack_3: success (in 0.109992000/0.135000000 cpu/wall seconds)\n", |
| 1021 | + "% ack_1: success (in 0.000232000/0.000000000 cpu/wall seconds)\n", |
| 1022 | + "% ack_2: success (in 0.006585000/0.008000000 cpu/wall seconds)\n", |
| 1023 | + "% ack_3: success (in 0.028261000/0.033000000 cpu/wall seconds)\n", |
1024 | 1024 | "% \n",
|
1025 | 1025 | "% 3 tests: 0 skipped, 3 passed, 0 failed (0 flaky)\n",
|
1026 |
| - "% runtime: 0.137352000/0.169000000 cpu/wall seconds\n", |
| 1026 | + "% runtime: 0.035078000/0.041000000 cpu/wall seconds\n", |
1027 | 1027 | "% completed tests from object tests\n",
|
1028 | 1028 | "% \n",
|
1029 | 1029 | "% \n",
|
|
1036 | 1036 | "% 1 out of 1 entity covered, 100.000000% entity coverage\n",
|
1037 | 1037 | "% 3 out of 3 clauses covered, 100.000000% clause coverage\n",
|
1038 | 1038 | "% \n",
|
1039 |
| - "% tests ended at 2024-03-25, 14:33:01\n", |
| 1039 | + "% tests ended at 2024-07-27, 06:43:46\n", |
1040 | 1040 | "% "
|
1041 | 1041 | ]
|
1042 | 1042 | },
|
|
1266 | 1266 | "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
|
1267 | 1267 | "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
|
1268 | 1268 | " \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
|
1269 |
| - "<!-- Generated by graphviz version 10.0.1 (20240210.2158)\n", |
| 1269 | + "<!-- Generated by graphviz version 12.0.0 (20240704.0754)\n", |
1270 | 1270 | " -->\n",
|
1271 | 1271 | "<!-- Pages: 1 -->\n",
|
1272 | 1272 | "<svg width=\"216pt\" height=\"310pt\"\n",
|
|
1341 | 1341 | "<title>b(2,c(3,4))->c(3,4)</title>\n",
|
1342 | 1342 | "<path fill=\"none\" stroke=\"black\" d=\"M108.09,-176.91C114.47,-164.9 123.15,-148.59 130.48,-134.8\"/>\n",
|
1343 | 1343 | "<polygon fill=\"black\" stroke=\"black\" points=\"133.46,-136.66 135.06,-126.19 127.28,-133.37 133.46,-136.66\"/>\n",
|
1344 |
| - "<text text-anchor=\"middle\" x=\"130.38\" y=\"-145.7\" font-family=\"Times,serif\" font-size=\"14.00\">2</text>\n", |
| 1344 | + "<text text-anchor=\"middle\" x=\"129.38\" y=\"-145.7\" font-family=\"Times,serif\" font-size=\"14.00\">2</text>\n", |
1345 | 1345 | "</g>\n",
|
1346 | 1346 | "<!-- c(3,4)->3 -->\n",
|
1347 | 1347 | "<g id=\"edge5\" class=\"edge\">\n",
|
1348 | 1348 | "<title>c(3,4)->3</title>\n",
|
1349 | 1349 | "<path fill=\"none\" stroke=\"black\" d=\"M137.89,-88.41C132.88,-76.37 126.06,-59.99 120.31,-46.17\"/>\n",
|
1350 | 1350 | "<polygon fill=\"black\" stroke=\"black\" points=\"123.63,-45.04 116.56,-37.16 117.17,-47.73 123.63,-45.04\"/>\n",
|
1351 |
| - "<text text-anchor=\"middle\" x=\"134.38\" y=\"-57.2\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n", |
| 1351 | + "<text text-anchor=\"middle\" x=\"133.38\" y=\"-57.2\" font-family=\"Times,serif\" font-size=\"14.00\">1</text>\n", |
1352 | 1352 | "</g>\n",
|
1353 | 1353 | "<!-- c(3,4)->4 -->\n",
|
1354 | 1354 | "<g id=\"edge6\" class=\"edge\">\n",
|
|
1780 | 1780 | "\n",
|
1781 | 1781 | "- ECLiPSe (`eclipse`)\n",
|
1782 | 1782 | "- GNU Prolog (`gnu`)\n",
|
1783 |
| - "- LVM (`lvm`)\n", |
1784 | 1783 | "- SICStus Prolog (`sicstus`)\n",
|
1785 | 1784 | "- SWI-Prolog (`swi`)\n",
|
1786 | 1785 | "- Trealla Prolog (`trealla`)\n",
|
| 1786 | + "- XVM (`xvm`)\n", |
1787 | 1787 | "- YAP (`yap`)\n",
|
1788 | 1788 | "\n",
|
1789 |
| - "The above shortcuts assume Logtalk was installed using either one of the provided installers or by running the manual installation script (i.e. you can run e.g. Logtalk with SWI-Prolog by simply typing `swilgt` on a POSIX system or `swilgt.ps1` on a Windows system). But if you running Logtalk from a git clone directory, you will need to switch Prolog backends using the `jupyter::set_prolog_backend(BackendIntegrationScript)` predicate instead (e.g. `jupyter::set_prolog_backend('swilgt.sh')`)." |
| 1789 | + "The above shortcuts assume Logtalk was installed using either one of the provided installers or by running the manual installation script (i.e. you can run e.g. Logtalk with SWI-Prolog by simply typing `swilgt` on a POSIX system or `swilgt.ps1` on a Windows system). Alternatively, that you're running Logtalk from a git clone directory with the `LOGTALKHOME` and `LOGTALKUSER` environment variables defined and pointing to the clone directory (i.e. you can run e.g. Logtalk with SWI-Prolog by simply typing `swilgt.sh` on a POSIX system). But you can always switch Prolog backends using the `jupyter::set_prolog_backend(BackendIntegrationScript)` predicate instead (e.g. `jupyter::set_prolog_backend('swilgt.sh')`)." |
1790 | 1790 | ]
|
1791 | 1791 | },
|
1792 | 1792 | {
|
|
1810 | 1810 | }
|
1811 | 1811 | ],
|
1812 | 1812 | "source": [
|
1813 |
| - "trealla." |
| 1813 | + "gnu." |
1814 | 1814 | ]
|
1815 | 1815 | },
|
1816 | 1816 | {
|
|
1834 | 1834 | {
|
1835 | 1835 | "data": {
|
1836 | 1836 | "text/plain": [
|
1837 |
| - "\u001b[1mtrue" |
| 1837 | + "\u001b[1myes" |
1838 | 1838 | ]
|
1839 | 1839 | },
|
1840 | 1840 | "metadata": {},
|
|
1881 | 1881 | "## Extending the Kernel\n",
|
1882 | 1882 | "\n",
|
1883 | 1883 | "- Original Prolog only kernel was developed for SICStus Prolog and later extended to SWI-Prolog\n",
|
1884 |
| - "- Current Logtalk kernel supports those and other Prolog backends (including ECLiPSe, GNU Prolog, LVM, Trealla Prolog, and YAP)\n", |
| 1884 | + "- Current Logtalk kernel supports those and other Prolog backends (including ECLiPSe, GNU Prolog, Trealla Prolog, XVM, and YAP)\n", |
1885 | 1885 | "- Portable code except for the non-standard stream redirection details that depend on the backend\n",
|
1886 | 1886 | "\n",
|
1887 | 1887 | " "
|
|
0 commit comments