Commit graph

25 commits

Author SHA1 Message Date
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
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
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
40c405c67b don't generate code for decrement in Quicksort 2021-05-23 16:22:43 +02:00
Folkert
4e57b3b0d7 refactor quicksort example 2021-05-08 23:18:59 +02: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
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
Folkert
58467d6515 get tests back up an running 2020-10-30 16:58:53 +01:00
Folkert
2df86b6438 fix uniqueness bug
builtin defs were included twice, which threw off uniqueness inference
2020-10-12 22:16:10 +02:00
Folkert
84a8b69437 generate IR that uses uniqueness 2020-08-11 14:47:14 +02:00
Richard Feldman
2592cf5768 Rename main to quicksort 2020-08-10 21:25:47 -04:00
Richard Feldman
dccb3a9691 Have Quicksort example expose a function 2020-08-10 21:25:47 -04:00
Richard Feldman
bcff8b4a57 Update examples/quicksort 2020-05-21 20:52:05 -04:00
Richard Feldman
8a4cde3961 Have quicksort example use defs 2020-04-29 06:35:25 -04:00
Richard Feldman
1517581ced Load main in the CLI and use it for gen 2020-04-15 07:06:11 -04:00
Richard Feldman
61f836e964 Switch examples to use app modules 2020-04-15 07:06:11 -04:00
Renamed from examples/quicksort/qs.roc (Browse further)