Commit graph

39 commits

Author SHA1 Message Date
Joshua Warner
8b58d5cbc7 Switch to always encoding package names / paths as strings
This will simplify parsing and make it possible to have a uniform lexer for the language. Previously unquoted package names were allowed to include '-'s, which aren't valid identifiers.

In the future, we'll distinguish local paths from packages in the package-manager by looking for a ".roc" suffix, which should only be present in local paths.
2021-12-23 20:11:14 -08:00
Joshua Warner
8b967f1ea8 Run formatter on all examples 2021-12-21 17:17:31 -08:00
Brendan Hansknecht
7d1b88b3fb Merge branch 'trunk' into integrate-linker 2021-09-23 21:12:40 -07:00
Brendan Hansknecht
d710e78ab3
Merge branch 'trunk' into integrate-linker 2021-09-21 09:39:47 -07:00
Folkert
e319d1e758 make roc main return values, instead of write them into pointer 2021-09-19 22:05:48 +02:00
Folkert
c5eeaab2c2 remove callresult from cli examples 2021-09-19 18:34:42 +02:00
Brendan Hansknecht
da28b669bb Get zig host working 2021-09-15 11:45:44 -07:00
Folkert
1496ee2e70 use zig allocator, not libc, in host 2021-09-10 10:15:41 +02:00
Folkert
3ace5c7660 fix invalid usize 2021-09-09 21:36:25 +02:00
Folkert
8eb032aa62 fix lints in quicksort platform 2021-09-09 21:03:08 +02:00
Folkert
a12e18ca70 add roc_panic to all hosts 2021-08-16 22:46:00 +02:00
Folkert
19db7515da fix shadowing of layout 2021-06-14 21:03:17 +02:00
Folkert
86f35c33cd work on higher order lowlevels 2021-06-12 23:05:06 +02:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Richard Feldman
18df7fd24f Make alignment be a u32 2021-05-23 23:46:09 -04:00
Richard Feldman
24e22bc31b Have roc_alloc return a nullable pointer 2021-05-23 23:46:09 -04:00
Richard Feldman
175115ee4e Have examples with zig hosts use roc_alloc etc 2021-05-23 23:46:09 -04:00
Richard Feldman
7a408e44da s/Pkg-Config/Package-Config/g 2021-05-22 15:29:18 -04:00
Folkert
c68cd2fb2d fix and test 2021-04-14 22:03:03 +02:00
Richard Feldman
ce6969d31f Only do the compiler_rt workaround on macOS 2021-03-14 22:31:32 -04:00
Chadtech
7d78de110b Added comptime import compiler_rt to several host.zig files 2021-03-14 22:31:32 -04:00
Folkert
a392ef2419 set the refcount of the input 2021-02-10 22:37:40 +01:00
Folkert
08338c6cc0 use zig platform for quicksort 2021-01-31 17:08:13 +01:00
Folkert
02d6e276cf update configs 2021-01-31 15:59:47 +01:00
Folkert
818465e8e1 update cli fixtures 2020-12-09 01:17:29 +01:00
Richard Feldman
88d2ad1ffc Use roc__ prefix for exposed app functions 2020-11-23 00:24:40 -05:00
Folkert
acbb4c29b8 fully qualify symbols (with the module name) in generated IR 2020-11-10 20:15:59 +01:00
Folkert
40477eee82 make quicksort use a Pkg-Config.roc file 2020-11-07 22:44:06 +01:00
Folkert
bfcc74f97e move Pkg-Config.roc 2020-11-07 22:21:05 +01:00
Folkert
a53254de40 update quicksort 2020-11-02 01:14:04 +01:00
Folkert
5897a07962 use RocCallResult and pass-by-reference in all examples 2020-11-01 15:00:11 +01:00
Brendan Hansknecht
46148f0114 Minimize work done in valgrind tests to fix ci 2020-10-22 17:11:38 -07:00
Brendan Hansknecht
97c23557c7 Fix RocList memory leak
Also, reduces the number of elements in the quicksort example to make it
run better with valgrind.
2020-10-11 19:00:35 -07:00
Richard Feldman
c49912be49 Have quicksort example use cargo host and RocList 2020-10-05 22:52:50 -04:00
Richard Feldman
7e1166b3a2 Rebuild hosts automatically (for now) 2020-10-04 16:35:32 -04:00
Richard Feldman
ad16aa61e9 Change linking back 2020-10-04 16:35:21 -04:00
Richard Feldman
d776798e32 Attempt to statically link hosts 2020-10-04 16:35:17 -04:00
Richard Feldman
f499c7b056 Simplify host building 2020-10-04 16:35:14 -04:00
Richard Feldman
ff8bb64bae Update quicksort macOS host 2020-10-04 16:34:53 -04:00