Krasimir Angelov
1957eb1fc5
more comments
2022-09-12 12:20:30 +02:00
Krasimir Angelov
bd3ccb4a0d
now linearization is working
2022-09-12 12:11:56 +02:00
Krasimir Angelov
c71ed9f513
better error handling and an API for linearizations
2022-09-12 12:06:40 +02:00
Krasimir Angelov
f9ca462a06
turn abstractName into a property to better follow the Python API
2022-09-12 11:03:15 +02:00
Krasimir Angelov
7492cd52d1
extract the list of languages
2022-09-12 10:55:26 +02:00
Krasimir Angelov
6f6f742d01
Merge branch 'wasm' of github.com:GrammaticalFramework/gf-core into wasm
2022-09-01 13:28:49 +02:00
Krasimir Angelov
d477250c48
more high-level API & better memory management
2022-09-01 13:26:38 +02:00
John J. Camilleri
3a17a68da6
Update README.md
2022-08-31 16:42:41 +02:00
John J. Camilleri
6ea53e44a4
Update README.md
2022-08-31 16:41:59 +02:00
Krasimir Angelov
4ecd216796
DataView doesn't work use Uint8Array instead
2022-08-31 16:21:08 +02:00
Krasimir Angelov
0b01f56fd7
fix pgf_jit_predicate for emscripten
2022-08-31 16:19:48 +02:00
John J. Camilleri
0bac8f0dae
Load and read PGF in test-web: doesn't fail but abstract name is empty
2022-08-01 14:47:28 +02:00
John J. Camilleri
3d272ac053
Move everything to javascript dir. Add jspgf API, test files for both Node and web.
2022-08-01 14:11:45 +02:00
John J. Camilleri
72bec84f58
Add Dockerfile and script for building WASM files
2022-08-01 11:56:11 +02:00
John J. Camilleri
539b946c96
Clear out javascript and typescript folders
2022-08-01 09:59:44 +02:00
Krasimir Angelov
a42cec2107
support for BIND tokens in the Python bindings
2022-07-16 20:29:36 +02:00
Krasimir Angelov
ae460e76b6
allow compilation with emscripten
2022-07-04 10:42:34 +02:00
Krasimir Angelov
b7672b67a3
adjust the -view command depending on the OS
2022-05-31 10:15:50 +02:00
Krasimir Angelov
e33de168fd
use a relative link to WordNet
2022-05-31 07:44:25 +02:00
Andreas Källberg
9b9905c0b2
Always use UTF8 encoding in the gf executable
...
This fixes many of the "Invalid character" messages
you can get on different platforms.
This has helped both with a nix-installation that didn't have global
locale set and with a windows installation.
2022-05-18 14:42:01 +08:00
Inari Listenmaa
ec70e4a83e
Merge pull request #136 from mengwong/ghc9
...
compiles with GHC 9.0.2
2022-05-06 03:26:00 +02:00
Andreas Källberg
b0b2a06f3b
Improve comment
2022-05-03 13:10:29 +08:00
Andreas Källberg
221597bd79
When profiling, don't add cost centres in Data.Binary.Get
...
This change speeds up profiling by an order of magnitude.
Without it, the >>= function for Get dominates runtime completely during profiling.
2022-05-03 13:08:35 +08:00
Inari Listenmaa
862aeb5d9b
Update base <4.15 to <4.16 for tests + pgf*.cabal
2022-03-05 13:42:11 +08:00
Meng Weng Wong
b53a102c98
if this PR is accepted we don't need these instructions
2022-03-05 12:59:25 +08:00
Meng Weng Wong
bc14a56f83
"now try this" instructions for people flailing with Apple Silicon M1
2022-03-05 12:59:25 +08:00
Meng Weng Wong
3a1213ab37
prepare for GHC 9, base 4.15, by using Buffer constructor interface
2022-03-05 12:59:25 +08:00
John J. Camilleri
723bec1ba0
Changes made in order to get Hackage upload working
2021-08-09 13:41:25 +02:00
krangelov
265f08d6ee
added link to vis-network.min.js
2021-07-26 16:57:05 +02:00
krangelov
e47042424e
Merge branch 'master' of https://github.com/GrammaticalFramework/gf-core
2021-07-26 16:52:11 +02:00
krangelov
ecf309a28e
fix links to WordNet
2021-07-26 16:51:58 +02:00
Inari Listenmaa
667bfd30bd
Merge pull request #87 from anka-213/make-it-fast
...
Remove the `Either Int` from value2term
2021-07-20 04:35:37 +02:00
Inari Listenmaa
45bc5595c0
Update C runtime install instructions
2021-07-15 09:54:15 +08:00
Meowyam
743f5e55d4
add missing install.sh file for c runtime
2021-07-14 17:20:20 +08:00
Andreas Källberg
7faf8c9dad
Clean up redundant case expressions
2021-07-12 16:38:29 +08:00
Andreas Källberg
b3881570c7
Remove last traces of the Either in value2term
2021-07-12 15:53:49 +08:00
Andreas Källberg
bd270b05ff
Remove the Either Int from value2term
...
This prevents HUGE space leak and makes compiling a PGF a LOT faster
For example, an application grammar moved from taking over 50GB
of ram and taking 5 minutes (most of which is spent on garbage colelction)
to taking 1.2 seconds and using 42mb of memory
The price we pay is that the "variable #n is out of scope" error is now
lazy and will happen when we try to evaluate the term instead of
happening when the function returns and allowing the caller to chose how
to handle the error.
I don't think this should matter in practice, since it's very rare;
at least Inari has never encountered it.
2021-07-12 15:50:43 +08:00
John J. Camilleri
a1fd3ea142
Fix bug introduced in cdbe73eb47
...
Apparently I don't understand how pattern-matching works in Haskell
2021-07-08 13:56:58 +02:00
John J. Camilleri
cdbe73eb47
Remove two missing-methods warnings
2021-07-08 12:10:41 +02:00
John J. Camilleri
0954b4cbab
More cabal file cleanup. Remove some more tabs from Haskell source.
2021-07-07 13:04:09 +02:00
John J. Camilleri
f2e52d6f2c
Replace tabs for whitespace in source code
2021-07-07 09:40:41 +02:00
John J. Camilleri
ef42216415
Add import from command line invocation to command history
...
Closes #64
2021-07-06 15:35:03 +02:00
John J. Camilleri
0c3ca3d79a
Add note in PGF2 documentation about risk for integer overflow.
...
Closes #109
2021-07-06 14:43:21 +02:00
John J. Camilleri
e2e5033075
Merge pull request #122 from 2jacobtan/master
...
specify version bounds in *.cabal files
2021-07-06 14:31:29 +02:00
John J. Camilleri
84b4b6fab9
Some more cabal file cleanup. Add stack files for pgf, pgf2.
2021-07-06 14:11:30 +02:00
Inari Listenmaa
d2fb755fab
Merge branch 'master' into concrete-new
2021-07-06 09:37:22 +02:00
Inari Listenmaa
1b66bf2773
Merge pull request #121 from Meowyam/issue97
...
resolves GrammaticalFramework/gf-core/#97
2021-07-06 09:22:48 +02:00
Meowyam
1e3de38ac4
remove redundant options
2021-07-06 15:22:59 +08:00
Inari Listenmaa
4e8859aa75
Merge pull request #118 from GrammaticalFramework/canonical
...
Fixes to canonical compilation
2021-07-06 09:16:52 +02:00
Meowyam
dff215504a
resolves GrammaticalFramework/gf-core/#97, without l
2021-07-06 15:00:17 +08:00