Commit Graph

90 Commits

Author SHA1 Message Date
Jan Van Bruggen
99c825aa99 Simplify example platform names 2022-03-07 19:59:29 -07:00
Brendan Hansknecht
a34c4f7c44 stop printing to stdout before timing completes 2022-02-21 19:19:39 -08:00
Folkert
885500712c remove old Effect module things 2022-02-03 23:55:02 +01:00
Folkert
a98635ed06 update other examples 2022-02-03 22:45:15 +01:00
ayazhafiz
b5225c87d8 Make sure quicksort only ever uses non-negative values
`low` can be zero, and so `low - 1` causes an integer overflow for
unsigned ints.
2022-01-10 21:10:35 -05:00
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
Jan Van Bruggen
d03a51c75b Rename base package to pf everywhere, to match tutorial 2021-12-12 05:57:39 -07: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
Richard Feldman
e3292cff4e Drop some more references to needing C++ 2021-08-29 16:59:15 -04:00
Folkert
a12e18ca70 add roc_panic to all hosts 2021-08-16 22:46:00 +02:00
Richard Feldman
bc952641eb Update docs to remove references to roc run 2021-08-05 23:15:00 -04: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
Folkert de Vries
5724f82667
Merge branch 'trunk' into zig-list-set 2021-05-25 09:05:18 +02:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Folkert
aa97abcdea prevent decrement in quicksort 2021-05-24 19:42:33 +02:00
Folkert
91b49ecf98 Merge remote-tracking branch 'origin/roc_alloc' into zig-list-set 2021-05-24 18:25:18 +02:00
Folkert
d620005cf3 Merge remote-tracking branch 'origin/trunk' into zig-list-set 2021-05-24 18:24:22 +02:00
Folkert de Vries
513a624d28
Merge branch 'trunk' into roc_alloc 2021-05-24 18:22:47 +02:00
Richard Feldman
b60988d63e
Merge branch 'trunk' into morphic-lib 2021-05-24 07:18:59 -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
Folkert
2e8a246095 Merge remote-tracking branch 'origin/trunk' into zig-list-set 2021-05-23 16:28:20 +02:00
Folkert
40c405c67b don't generate code for decrement in Quicksort 2021-05-23 16:22:43 +02:00
Richard Feldman
7a408e44da s/Pkg-Config/Package-Config/g 2021-05-22 15:29:18 -04:00
Folkert
4e57b3b0d7 refactor quicksort example 2021-05-08 23:18:59 +02: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
rvcas
565cf21e1e fix(tests): need to adjust tests after changing builtin function types 2021-01-05 09:18:24 -05:00
rvcas
27cfd4d7ad more test fixes 2021-01-04 15:18:49 -05:00
Folkert
818465e8e1 update cli fixtures 2020-12-09 01:17:29 +01:00
rvcas
4987721154 feat(Num): rename Num.Int to Num.I64 2020-12-07 19:17:20 -05:00
Richard Feldman
88d2ad1ffc Use roc__ prefix for exposed app functions 2020-11-23 00:24:40 -05:00
Richard Feldman
759c047b4c Add some .gitignores 2020-11-23 00:24:40 -05:00
Richard Feldman
1868051105 Allow for shorter app headers 2020-11-23 00:08:50 -05:00
Richard Feldman
a7eb568267 Fix load tests 2020-11-23 00:08:49 -05:00
Richard Feldman
ab1be6e394 Update examples 2020-11-23 00:08:49 -05:00