Commit graph

753 commits

Author SHA1 Message Date
Chad Stearns
5561f9787e Use Str.split bitcode with proper arguments and names 2020-11-07 02:26:59 -05:00
Chad Stearns
d41e940b7f Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-11-07 02:07:52 -05: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
39d5221810 pass list_elem_layout down to build_eq 2020-11-05 11:07:07 -05:00
lrosa007
82820ac4a0 no need to clone match on &list_layout 2020-11-05 09:07:02 -05:00
lrosa007
d880293afa remove match cause build_eq can tell if it can't compare the BasicEnumValues 2020-11-05 08:54:12 -05:00
Folkert
9790312d4a add some gen tests 2020-11-05 13:49:21 +01:00
lrosa007
0266754963 fix: bad double condition made no sense 2020-11-04 22:00:32 -05:00
lrosa007
deb249bdb4 llvm yells now 2020-11-04 21:56:42 -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
2cf7a9fe42 fix tests 2020-11-03 20:13:38 +01:00
Folkert
212f8b4d50 change test runners to use new error reporting stuff 2020-11-03 19:36:02 +01:00
Folkert
89e01c63d1 make Num.maxInt and Num.minInt work 2020-11-02 21:49:44 +01:00
Folkert
841d696e6d cleanup 2020-11-02 20:28:12 +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
Chad Stearns
c412a8e0db Merge in remote trunk 2020-11-01 11:38:44 -05: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
Folkert
51506c11cb Merge remote-tracking branch 'origin/trunk' into fix-alias-inference 2020-10-30 22:45:52 +01:00
Richard Feldman
9acfa8d0d4
Merge pull request #619 from rtfeldman/str-split-bitcode
Str split bitcode
2020-10-29 20:54:56 -04:00
Folkert
f758958d4a deliberately don't run some tests in opt mode 2020-10-30 01:44:54 +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
Pit Capitain
233979468b Merge branch 'trunk' into fix-walk-right 2020-10-29 17:45:46 +01:00
Pit Capitain
3f91bd4b23 Fix bug in List.walkRight accumulator types 2020-10-29 16:31:07 +01:00
Pit Capitain
c8e1937ebe Add failing tests for bug in List.walkRight
List.walkRight currently can't handle accumulators that aren't integers,
for example strings or records.
2020-10-29 16:29:31 +01:00
Folkert
a0c8915678 Merge remote-tracking branch 'origin/trunk' into fix-alias-inference 2020-10-29 14:40:55 +01:00
Chad Stearns
a9c0185225 Bringing in remote trunk 2020-10-28 21:24:15 -04:00
Jared Ramirez
242eb6f905 Build bitcode with zig 🎉 2020-10-28 09:21:56 -07:00
Folkert
ef1cee6c41 HUGE WIP 2020-10-28 01:13:04 +01:00
Folkert
5fbcfe18d3 new recvar design 2020-10-26 16:16:01 +01:00
Folkert
7d2cc3aac2 WIP 2020-10-25 22:16:27 +01:00
Jared Ramirez
48f8aad180 Compile bitcode as part of build script 2020-10-25 14:09:53 -07:00
Jared Ramirez
6253ac15e4 Use differnt atan test based on os 2020-10-25 12:11:23 -07:00
Folkert
b4a9ffdccd tests as they currently pass 2020-10-25 19:24:49 +01:00
Richard Feldman
21d4f8026e
Merge branch 'trunk' into convert-bitcode-gen-to-c 2020-10-25 14:17:17 -04:00
Richard Feldman
17b2eebcfc REVERT THIS! Temporarily disable exception tests.
These currently break on Linux, but pass on macOS.

They worked fine with JITExecutionEngine on Linux,
but JITExecutionEngine failed on macOS.
2020-10-25 01:42:10 -04:00
Richard Feldman
3d7a265c5f Load a dynamic library in the repl 2020-10-25 01:42:10 -04:00
Richard Feldman
14c8a00f9d Don't link Scrti.o when doing dynamic linking 2020-10-25 01:42:10 -04:00
Richard Feldman
ac46d84c60 use RelocMode::PIC 2020-10-25 01:42:10 -04:00