Jared Ramirez
e112a406a2
Fix countGrapheme wiring; Reorganize zig builtins; Streamline how we export zig function
2020-11-06 16:54:28 -06:00
Jared Ramirez
63308d90e1
Add Str.countGraphemes
2020-11-06 16:54:28 -06:00
Richard Feldman
6f4d727b6f
Merge pull request #646 from rtfeldman/add_list_contains
...
Add List.contains
2020-11-06 08:49:59 -05:00
lrosa007
9269f1d8a7
feat(List): start contains function
2020-11-04 21:09:15 -05:00
Folkert
3fe0140c7e
clip clip clip
2020-11-05 00:59:26 +01:00
Folkert
f07e69ad87
wrap closure call result in RocCallResult
2020-11-05 00:43:13 +01:00
Folkert
c3090cf9d7
attempt to wrap closure call result in RocCallResult
2020-11-05 00:23:53 +01:00
Folkert
0289fe37a5
make it actually work
2020-11-05 00:02:49 +01:00
Folkert
cb28e533b8
so close
2020-11-04 23:07:02 +01:00
Folkert
cb0bfa3eb7
Merge remote-tracking branch 'origin/trunk' into multi-dep-bugs
2020-11-02 15:52:44 +01:00
Folkert de Vries
75ccb650e0
Merge branch 'trunk' into host-pass-by-pointer
2020-11-02 01:46:38 +01:00
Folkert
ebba7e0c6a
cleanup
2020-11-02 01:09:34 +01:00
lrosa007
bd696e1f6f
feat(builtins): Num.asin : Float -> Float
2020-11-01 09:54:00 -05:00
lrosa007
4da2d7f101
feat(builtins): Num.acos : Float -> Float
2020-11-01 09:27:42 -05:00
Folkert
5897a07962
use RocCallResult and pass-by-reference in all examples
2020-11-01 15:00:11 +01:00
Richard Feldman
a6b57aea87
Add more diagnostic info to a panic
2020-10-31 21:34:34 -04:00
Folkert
78c0a9f17d
add RocCallResult wrapper
2020-11-01 00:02:01 +01:00
Folkert
27598f6e78
expose values to the host in a new way
2020-10-31 22:44:35 +01:00
Jared Ramirez
08b78e9c9b
Follow Zig conventions; Update zig bitcode export fn names; Update rust
...
to use bitcode fn name consts;
2020-10-29 15:43:22 -07:00
Jared Ramirez
242eb6f905
Build bitcode with zig 🎉
2020-10-28 09:21:56 -07:00
Jared Ramirez
48f8aad180
Compile bitcode as part of build script
2020-10-25 14:09:53 -07:00
Richard Feldman
d0a9db06f5
Add Into instance for OptLevel
2020-10-25 01:42:10 -04:00
Folkert
c8c1a0678a
code gen for variably-sized closures
2020-10-21 13:01:27 +02:00
Folkert
edfc96628e
WIP
2020-10-17 14:53:57 +02:00
Folkert
40ffca2b7b
IT WORKS
2020-10-16 00:18:40 +02:00
Folkert
02a396d08a
use fast calling convention
2020-10-15 01:46:28 +02:00
Folkert
729e16cad9
clippy
2020-10-14 21:42:22 +02:00
Folkert
07e29eb34c
initial implementation
2020-10-14 14:43:59 +02:00
Folkert
89a1146c19
run gen tests as modules
2020-10-13 21:45:41 +02:00
Folkert de Vries
d9827ae467
Merge branch 'trunk' into improve-dependency-solving
2020-10-13 00:55:19 +02:00
Richard Feldman
a7da54516a
Cast i64 to f64 instead of using builtin bitcode
2020-10-12 17:59:20 -04:00
Folkert
06bc187f8b
all tests passing + clippy satisfied
2020-10-12 01:42:03 +02:00
Folkert
4f9b27b694
sketch of a proof of concept
2020-10-11 01:54:50 +02:00
Brendan Hansknecht
46db0fd989
Properly size refcount based on system ptr size
2020-09-29 17:27:29 -07:00
Brendan Hansknecht
51e1cd61dd
Intentionally leak memory with 0 for refcount
...
A 0 value for refcount is the max and means leaked/read-only memory.
These values should never be incremented or decremented.
This changes also uses signed overflow when decrementing memory.
2020-09-27 09:34:51 -07:00
Jared Ramirez
5cafbcd5ad
Add Num.atan builtin
2020-09-26 19:00:51 -07:00
Richard Feldman
94b1760965
Remove redundant variable
2020-09-21 21:27:39 -04:00
Folkert
9ac5533f80
final touchups
2020-09-21 23:57:05 +02:00
Folkert
515f717536
don't explicitly add filler bytes
...
leaving the memory undefined is fine
2020-09-21 23:55:05 +02:00
Folkert
fb4a796e07
add different variants of addition
2020-09-21 23:38:10 +02:00
Folkert
95177eee5a
integer addition operations
2020-09-20 20:21:45 +02:00
Folkert
f732eb3e83
crash upon integer overflow
2020-09-20 17:01:00 +02:00
Folkert
16fc5dd497
Merge remote-tracking branch 'origin/trunk' into exception-handling
2020-09-19 21:50:57 +02:00
Folkert
9a0a13646f
fix repl
2020-09-19 01:46:14 +02:00
Jared Ramirez
665c7c7f9f
Add Num.floor
2020-09-17 17:44:53 -07:00
Folkert
14da3906da
wip
2020-09-18 01:07:53 +02:00
Dimitar Apostolov
9276fd8c9d
Add function to call bitcode
2020-09-17 14:07:25 +02:00
Dimitar Apostolov
e89af31015
Use own implementation of pow_int_ instead of llvm
...
Remove LLVM intrinsics code related to `Num.powInt`.
2020-09-17 14:07:18 +02:00
Dimitar Apostolov
2404882c1a
Add Num.powInt implementation
2020-09-17 11:42:37 +02:00
Richard Feldman
1c8383b3bb
clippy things
2020-09-16 19:34:48 -04:00