rvcas
573f7d8093
feat(listRange): use a more terse syntax
2021-06-06 00:53:25 -04:00
rvcas
954949fbb0
chore: delete unused function
2021-06-06 00:52:44 -04:00
rvcas
f6c8c0ff32
feat: better implicit int casts now
2021-06-06 00:51:58 -04:00
rvcas
a3c9009867
fix: all tests need to use try now
2021-06-06 00:50:52 -04:00
rvcas
99db511481
fix: build.zig
...
* can use .ReleaseFast shortcut
* string format the new way
2021-06-06 00:48:14 -04:00
Anton-4
314503cf7f
fixed typos, added typos checking to CI
2021-06-05 20:02:54 +02:00
Jared Ramirez
c7272766fc
Add RocDec.toString
2021-06-04 19:33:38 -07:00
Jared Ramirez
13bb94ac24
fix: last failing test
2021-06-01 17:12:47 -07:00
rvcas
a046bbe32a
feat(RocDec): add last few RocStr tests
2021-06-01 20:09:10 -04:00
rvcas
d994b02fe4
Merge branch 'dec-from-string' of github.com:rtfeldman/roc into dec-from-string
2021-06-01 19:56:54 -04:00
rvcas
f6f2a13daa
feat(RocDec): fromString takes RocStr
2021-06-01 19:56:21 -04:00
Jared Ramirez
76e6daad50
fix: parsing negatives decimals
2021-06-01 16:51:28 -07:00
rvcas
d57277de4b
fix: RocDec tests
...
* try in tests starts in 0.8.0 not 0.7.1
* needed an @intCast in fromU64
* removed if statements in test cases in favor of checking null equality
and unwrapping the optional
2021-06-01 19:13:54 -04:00
Jared Ramirez
a691afbf0e
Add a few more test cases
2021-05-31 19:52:19 -07:00
Jared Ramirez
81b14b9122
Add RocDec.fromString
2021-05-31 19:39:08 -07:00
tarjei
bec6e556d5
Merge branch 'trunk' into builtins/list-swap
2021-05-31 19:16:31 +02:00
tarjei
45185d1e84
Implement List.swap in zig
2021-05-31 19:08:37 +02:00
tarjei
ade591dd10
Fix plumbing
2021-05-29 22:21:25 +02:00
tarjei
107822a5cc
Add plumbing for List.swap
2021-05-29 21:30:16 +02:00
Jared Ramirez
a4d3f96f25
Run build script instead of zig build on big sur
2021-05-28 17:03:59 -07:00
Richard Feldman
42d583cc88
Drop obsolete mul test
2021-05-25 19:13:19 -04:00
rvcas
522bf0c9f0
feat: port rust RocDec.mul logic over to zig
2021-05-25 19:08:50 -04:00
Richard Feldman
cbdfdf08e4
Don't import dec.zig yet
2021-05-25 19:08:50 -04:00
Richard Feldman
0341c0f9dd
Beginnings of RocDec in Zig
2021-05-25 19:08:50 -04:00
Folkert
4d0216cf09
fix merge conflicts
2021-05-25 09:18:39 +02:00
Folkert de Vries
5724f82667
Merge branch 'trunk' into zig-list-set
2021-05-25 09:05:18 +02:00
Richard Feldman
aa96d2373b
Reorder args in decref
2021-05-24 22:06:35 -04:00
Richard Feldman
65542149a3
Fix alloc type sigs in utils.zig
2021-05-24 22:01:14 -04:00
Richard Feldman
0b3715ebee
Rearrange arg order for roc_alloc etc
2021-05-24 21:01:12 -04:00
Richard Feldman
7d7588ca19
Merge remote-tracking branch 'origin/trunk' into roc_alloc
2021-05-24 20:10:26 -04:00
Folkert
799e4a3239
use new roc alloc stuff for List.set
2021-05-24 18:27:27 +02:00
Folkert
91b49ecf98
Merge remote-tracking branch 'origin/roc_alloc' into zig-list-set
2021-05-24 18:25:18 +02:00
Folkert
fbb711b2ca
Merge remote-tracking branch 'origin/trunk' into specialize-lowlevel
2021-05-24 15:11:40 +02:00
Richard Feldman
797bed6d18
Add a comment
2021-05-23 23:46:09 -04:00
Richard Feldman
12c353afaf
zig fmt
2021-05-23 23:46:09 -04:00
Richard Feldman
2a68c0c2cd
Revert "Add __cxa_throw to utils"
...
This reverts commit 23f4802b8773043bd0bb32cdf2f235d023a38050.
2021-05-23 23:46:09 -04:00
Richard Feldman
b02ae3794f
Add __cxa_throw to utils
2021-05-23 23:46:09 -04:00
Richard Feldman
5efed85d81
Use test allocators for roc_alloc etc in tests
2021-05-23 23:46:09 -04:00
Richard Feldman
64dbf5a777
Have realloc take old_size too
...
After all, we always know it, and it means host authors don't
necessarily have to store it.
2021-05-23 23:46:09 -04:00
Richard Feldman
ab51582541
Switch builtins to use roc_alloc and friends
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
a4ed13d714
optimize zig code
2021-05-23 15:58:08 +02:00
Folkert
25ec057b2b
write List.set in zig
2021-05-22 22:13:54 +02:00
Richard Feldman
8666a2ad58
Avoid recomputing loop termination condition
...
LLVM might take care of this for us, but just to be safe!
2021-05-22 14:51:19 -04:00
Folkert
f0fc8a268f
cleanup
2021-05-22 17:26:01 +02:00
tarjei
e062bdaad8
Fix dec ref for empty list
2021-05-22 00:54:03 +02:00
tarjei
85e5b0ff82
Fix most of deref logic
...
Still doesn't handle empty lists properly.
2021-05-21 21:53:55 +02:00
Folkert
8f55706d5d
fix list gen tests
2021-05-19 22:45:30 +02:00
Folkert
f3199ed2a7
work on dicts
2021-05-19 22:32:31 +02:00
Folkert
d01d539d6b
first pass for List.keep
2021-05-19 21:30:43 +02:00