Commit graph

449 commits

Author SHA1 Message Date
Folkert
4152519bfb formatting & catch zig overflow error 2021-10-17 18:03:40 +02:00
Chelsea Troy
0cc6e44d35
Thread through the divCeil implementation from Zig:
+ OPEN QUESTION: Evidently the Zig implementation can throw an overflow error. Do we want to do something in Roc to fix this?
2021-10-17 10:46:16 -05:00
Folkert
94e8c62613 make things compile, base64 has a memory leak 2021-10-06 22:57:11 +02:00
Dan Knutson
25215cb3e3 cleanup mutable case, split test 2021-10-03 14:09:07 -05:00
Dan Knutson
2a72439117 WIP adding unique mutable case 2021-10-03 13:55:11 -05:00
Dan Knutson
65821d6a9f remove giesch/todo tags, add List.drop doc 2021-10-03 13:55:11 -05:00
Dan Knutson
700ab20a8c add tests for List.dropAt 2021-10-03 13:55:11 -05:00
Dan Knutson
3baff93a97 add first version of List.dropAt
* adds an implementation with no uniqueness/mutability
2021-10-03 13:55:11 -05:00
Folkert
f8ac85195b fix zig test 2021-10-03 14:18:48 +02:00
Folkert
0690633116 spec for List.reverse 2021-10-03 13:34:09 +02:00
Folkert
13d480d5f3 spec for list append 2021-10-03 13:27:47 +02:00
Folkert
486f1d540f add specifications for fromUtf8 and toUtf8 2021-10-03 13:22:03 +02:00
Folkert
018348bd83 make Str.fromUtf8 in-place 2021-10-03 12:13:17 +02:00
Folkert
dbb8acbe67 add in-place List.swap 2021-10-03 00:25:35 +02:00
Kofi Gumbs
b2343cb0ad Format zig 2021-09-29 21:54:14 -04:00
Kofi Gumbs
b32a42f05a Add Str.repeat builtin 2021-09-29 17:32:42 -04:00
Brendan Hansknecht
c334e4d3e5 Export zig builtin version of __muloti4 as weak so it doesn't conflict if it already exists 2021-09-24 08:54:41 -07:00
Folkert
c0cfd6ac16 make conversion a cast again 2021-09-12 14:28:44 +02:00
Richard Feldman
0dd1395331
Merge pull request #1686 from rtfeldman/refcounting-cleanup
Refcounting cleanup
2021-09-11 13:33:36 -04:00
Folkert
8015edccf8 use freestanding as wasm32 builtins target 2021-09-11 15:40:35 +02:00
Folkert
cd9b32ba65 fix list decref 2021-09-10 21:53:57 +02:00
Folkert
5e68d31afc expose decref_pointer_check_NULL 2021-09-10 20:42:25 +02:00
Folkert
c2165ec0a4 bundle wasi-libc.a 2021-09-10 10:13:16 +02:00
Folkert
1d17a21d1f higher alignment requirement on rocstr/roclist 2021-09-04 15:18:37 +02:00
Folkert
3adfbf3459 fix bug in realloc on 32-bit platforms 2021-09-04 13:46:30 +02:00
Folkert
a7eeae05ca support i386 (no linking yet) 2021-09-04 01:31:33 +02:00
Folkert
cde8f5cbd4 optimize RC 2021-09-02 21:29:24 +02:00
Folkert
4e39543054 simplify/optimize decref logic 2021-09-01 23:07:56 +02:00
Folkert
7aac6b6750 cleanup 2021-09-01 22:52:39 +02:00
Folkert
d8d4522b16 cleanup 2021-09-01 20:27:48 +02:00
Folkert
5cb7dbd3cc use zig's decref instead of an LLVM implementation 2021-09-01 16:58:05 +02:00
Folkert
3ef4a40f45 hopefully get the logic right this time 2021-09-01 15:56:50 +02:00
Folkert
4731cbd391 trying to be even smarter 2021-08-31 22:40:13 +02:00
Folkert
a810c2c27b smarter alignment code 2021-08-31 22:37:32 +02:00
Folkert
106f1311d2 only conditionally flip a bit 2021-08-31 22:32:56 +02:00
Folkert
b416e854ef Merge remote-tracking branch 'origin/trunk' into wasm-gen-test 2021-08-29 23:14:03 +02:00
rvcas
059aeaf1de fix: obj and ir files have new names 2021-08-29 10:47:53 -04:00
Folkert
fdd34a5d3e zig remove explicit libc dep in 32-bit mode 2021-08-29 00:37:28 +02:00
Richard Feldman
bc5b8bfbba Merge remote-tracking branch 'origin/trunk' into wasm-cli-option 2021-08-25 23:05:53 -04:00
Folkert
b9cd254b9a allow 4byte alignment in dict values 2021-08-25 22:07:16 +02:00
Folkert
e99237e302 make Dict.empty C ABI safe 2021-08-25 20:48:58 +02:00
Folkert
e387403c19 make Dict.empty C ABI safe 2021-08-25 20:47:03 +02:00
Folkert
a4475b7544 make TestBase64 compile 2021-08-25 20:47:03 +02:00
Folkert
4be5780215 hash function returns u64! 2021-08-25 00:24:46 +02:00
Folkert
63f89d73be attempt benchmark platform 2021-08-24 23:57:39 +02:00
Folkert
0a7f7a2772 emit LLVM IR that can be compiled to wasm 2021-08-24 20:56:13 +02:00
Folkert
04fa8fee38 take self by reference 2021-08-24 20:24:21 +02:00
Folkert
ca5efdf1d9 fix alignment issue 2021-08-24 20:23:24 +02:00
Folkert
13df4ee656 Merge remote-tracking branch 'origin/trunk' into wasm-cli-option 2021-08-24 17:02:05 +02:00
Folkert
40d86551ad build builtins with 32-bit pointers 2021-08-24 16:38:47 +02:00