Commit graph

2382 commits

Author SHA1 Message Date
Folkert
173f84400e specialize symbol in record construction 2020-12-13 23:29:31 +01:00
Folkert
407f8b9321 turn unused module into a warning 2020-12-13 22:21:44 +01:00
Folkert
a5e93cc21b pass arguments (e.g. Msg, Model) by-reference, so the host does not need to know their size 2020-12-13 22:08:12 +01:00
Folkert
a67a750fdc make the example loop a couple of times 2020-12-13 20:05:00 +01:00
Folkert
f00bd9ba01 fix refcount bug
closures were not incremented, but were decremented. This lead to memory corruption
2020-12-13 19:57:51 +01:00
Folkert
30e3f3bd25 clarify len to be the number of list elements 2020-12-13 19:49:49 +01:00
Folkert
05a6b30644 fix import of top-level thunks 2020-12-12 17:57:42 +01:00
Richard Feldman
3d827f40f4
Merge pull request #793 from rtfeldman/runtime-error
Generate a runtime error for ExposedButNotDefined
2020-12-11 22:20:22 -05:00
Richard Feldman
6883f57543 If we hit ExposedButNotDefined, gen a RuntimeError 2020-12-11 21:13:55 -05:00
Richard Feldman
48909f2114 Add RuntimeError::ExposedButNotDefined 2020-12-11 21:13:34 -05:00
Folkert
20c041dc60 improvements to str.zig 2020-12-12 01:46:33 +01:00
Folkert
462f6ac8e5 use C calling convention (approximation) when calling foreign functions 2020-12-12 01:30:39 +01:00
Folkert
f1b4d535c6 add other effect functions 2020-12-11 20:46:46 +01:00
Folkert
539f173472 set correct closure tag_id 2020-12-11 20:25:15 +01:00
Folkert
752a2200fd partial procs that look the same can still be different 2020-12-11 16:39:53 +01:00
Richard Feldman
9115f792a4 Special-case error reporting of app module 2020-12-10 23:59:15 -05:00
Richard Feldman
572c7cb3dd Report an error for lookups of unexposed values 2020-12-10 23:59:15 -05:00
Richard Feldman
7b09232911 Improve an error message 2020-12-10 23:59:15 -05:00
Richard Feldman
ed222912b3 Report exposed-but-not-defined symbols 2020-12-10 23:59:15 -05:00
Folkert
1978b92358 Merge remote-tracking branch 'origin/trunk' into effect-as-task 2020-12-11 01:53:29 +01:00
Folkert
b669202d86 fix wildcards not recognized as rigids 2020-12-11 01:49:54 +01:00
Folkert
f5c267acf4 fix problem with empty closures still considered closures 2020-12-10 23:58:53 +01:00
Folkert
84421ad06d fix bug in closure argument unpacking 2020-12-10 20:45:59 +01:00
Folkert
a9b3c74f2e don't drop empty records from layouts 2020-12-10 15:04:42 +01:00
Richard Feldman
7391ec98f7 Make builtin build.rs script more resilient
Before this change, re-running it from the root of the project
failed for me.
2020-12-09 22:42:40 -05:00
Folkert
d7449482c3 clippy 2020-12-10 02:47:45 +01:00
Folkert
d81544b061 update new test cases 2020-12-10 01:21:17 +01:00
Folkert
16994cfaf7 shrink number of used variables (by a lot) 2020-12-10 00:13:09 +01:00
Folkert
64c3fc6da6 add test for type error 2020-12-09 22:55:14 +01:00
Richard Feldman
15b1087059
Merge branch 'trunk' into pkg-config-module 2020-12-08 22:14:31 -05:00
Richard Feldman
8dbe75bd70
Merge pull request #782 from rtfeldman/task
Beginnings of file IO
2020-12-08 22:14:09 -05:00
Folkert
7933d63573 clippy 2020-12-09 03:30:07 +01:00
Jared Ramirez
170b5eb707 Small rename 2020-12-08 17:08:33 -08:00
Jared Ramirez
784f299b43 Various small zig str changes 2020-12-08 17:05:26 -08:00
Folkert
818465e8e1 update cli fixtures 2020-12-09 01:17:29 +01:00
Folkert
89a1237b06 refactor 2020-12-08 23:27:25 +01:00
Folkert
3969a73277 make Pkg-Config work as a module 2020-12-08 22:58:30 +01:00
Folkert
4b665639ff special-case the PkgConfig 2020-12-08 21:39:30 +01:00
Folkert
5b521dccf4 make Pkg-Config into a module 2020-12-08 21:12:36 +01:00
Folkert
4c16a46001 better zig hosts 2020-12-08 20:30:48 +01:00
Folkert
d0686582d0 comment invalid assertion 2020-12-08 20:29:59 +01:00
Folkert
fc85761783 fix issue with one-element records containing a union in the closure argument 2020-12-08 16:05:51 +01:00
Folkert
4c2654d4ed Merge remote-tracking branch 'origin/trunk' into task 2020-12-08 14:51:46 +01:00
Richard Feldman
149d10ea0b
Merge pull request #780 from rtfeldman/rvcas/rename_int
Rename Int to I64
2020-12-07 22:49:39 -05:00
rvcas
4987721154 feat(Num): rename Num.Int to Num.I64 2020-12-07 19:17:20 -05:00
Folkert
95a66bb1fc clippy 2020-12-08 00:27:53 +01:00
Folkert
0b0ae7b287 make it work! 2020-12-08 00:15:57 +01:00
Folkert
7123269f30 successfully load package-qualified host 2020-12-07 23:24:06 +01:00
Folkert
7919b2eef3 clippy 2020-12-06 22:16:53 +01:00
Folkert
0873792488 special-case effect modules so they are not parsed 2020-12-06 21:51:08 +01:00