Commit graph

951 commits

Author SHA1 Message Date
Celso Bonutti Filho
176cdd0274 adds Num.subWrap 2020-12-22 22:17:45 -03:00
Celso Bonutti Filho
c6b258c50c throws error when Num.sub overflows 2020-12-22 22:17:18 -03:00
Celso Bonutti Filho
0a24f3b4b4 adds Num.bitwiseAnd 2020-12-20 19:55:10 -03:00
Richard Feldman
46a84fcbca
Merge pull request #802 from rtfeldman/large_enum_comment
Replaced large_enum_variant explanation with link to issue #800
2020-12-14 22:08:05 -05:00
Folkert
434c6504df increment result of List.get 2020-12-14 21:30:55 +01:00
Anton-4
b085469602 Replaced large_enum_variant explanation with link to issue #800 2020-12-14 16:09:16 +01:00
Folkert de Vries
3d9b82e35e
Merge branch 'trunk' into more-tea 2020-12-14 02:30:04 +01:00
Richard Feldman
86c14d5c55
Merge pull request #797 from rtfeldman/better-top-level-thunks
TEA-style applications!
2020-12-13 18:39:30 -05:00
Folkert
a5e93cc21b pass arguments (e.g. Msg, Model) by-reference, so the host does not need to know their size 2020-12-13 22:08:12 +01:00
Folkert
a67a750fdc make the example loop a couple of times 2020-12-13 20:05:00 +01:00
Folkert
f00bd9ba01 fix refcount bug
closures were not incremented, but were decremented. This lead to memory corruption
2020-12-13 19:57:51 +01:00
Folkert
30e3f3bd25 clarify len to be the number of list elements 2020-12-13 19:49:49 +01:00
Chadtech
cd6e6e6e4f
Merge branch 'trunk' into rename-map-to-dict 2020-12-11 23:39:10 -05:00
Chadtech
61728fd1d1 Merge branch 'trunk' of github.com:rtfeldman/roc into rename-map-to-dict 2020-12-11 20:21:40 -05:00
Folkert
462f6ac8e5 use C calling convention (approximation) when calling foreign functions 2020-12-12 01:30:39 +01:00
Folkert
539f173472 set correct closure tag_id 2020-12-11 20:25:15 +01:00
Chadtech
224823eb93 EmptyMap renamed to EmptyDict 2020-12-10 21:00:36 -05:00
Folkert
84421ad06d fix bug in closure argument unpacking 2020-12-10 20:45:59 +01:00
Chadtech
2a068941b2 Resolve conflicts 2020-12-08 16:56:52 -05:00
Folkert
d0686582d0 comment invalid assertion 2020-12-08 20:29:59 +01:00
Folkert
fc85761783 fix issue with one-element records containing a union in the closure argument 2020-12-08 16:05:51 +01:00
Chadtech
4dbd4fa893 More instances of Map renamed to Dict 2020-12-08 01:40:08 -05:00
Folkert
ac77177932 fix stack overflow in llvm code gen 2020-12-06 02:29:41 +01:00
Jared Ramirez
5697ec209b Fix call to str split; Move some comments around 2020-12-04 14:16:07 -07:00
Richard Feldman
544e1f294a
Fix doc comment 2020-12-03 22:30:24 -05:00
Richard Feldman
31fd70d0b1
Merge branch 'trunk' into str-from-int 2020-12-03 22:26:23 -05:00
Richard Feldman
567e0e6a8f
Merge pull request #765 from rtfeldman/list-refcount-issues
Fix some list refcount issues
2020-12-03 22:23:21 -05:00
Folkert
4b0b5126a1 add Str.fromInt 2020-12-04 00:37:19 +01:00
Folkert
82e87d04e3 rename str.len to str.number_of_bytes 2020-12-03 21:23:07 +01:00
Folkert
22d798b7c7 add Str.endsWith 2020-12-03 19:16:50 +01:00
Folkert
3162ab5fc4 simplify str_len 2020-12-03 16:22:47 +01:00
Folkert
f21af47fc1 simplify str_starts_with 2020-12-03 16:10:24 +01:00
Folkert
770d4d7bc3 simplify str_count_graphemes 2020-12-03 16:07:14 +01:00
Folkert
3d6ea21184 cleanup 2020-12-03 16:04:08 +01:00
Folkert
3554a81add pass RocStr over the zig/llvm boundary 2020-12-03 15:52:27 +01:00
Folkert
4829368ca8 code cleanup 2020-12-03 15:24:15 +01:00
Folkert
0a8415b48e fix closure not decremented 2020-12-02 22:51:16 +01:00
Folkert
654342fb54 cleanup 2020-12-02 21:42:27 +01:00
Richard Feldman
a9d4b38e44 Merge remote-tracking branch 'origin/trunk' into zig-str-concat 2020-12-01 21:50:08 -05:00
Folkert
674f336601 clippy things 2020-12-01 23:11:24 +01:00
Folkert
5d00910a38 fix memory leaks in lists 2020-12-01 23:01:17 +01:00
Folkert
63f4fbf1ef use zig-defined Str.concat 2020-12-01 23:00:39 +01:00
Folkert
af3a4c16f4 List.map can call closures 2020-12-01 15:20:52 +01:00
Folkert
2475054174 Merge remote-tracking branch 'origin/fix-debug-infos' into llvm-debug-info 2020-11-26 21:32:01 +01:00
Folkert
1022b4ef42 fix the effect Main.roc file and lib.rs file 2020-11-26 20:53:33 +01:00
Richard Feldman
e1575beaa3
Merge pull request #738 from rtfeldman/fix-alignment
Fix alignment
2020-11-25 22:54:18 -05:00
Folkert
7f83d9d3a0 fix mono tests, again 2020-11-25 20:06:53 +01:00
Folkert
ccd2e0ecf4 alignment in single element tag unions 2020-11-24 22:01:57 +01:00
rvcas
0fb2c4ff8b fix(List): clippy on list_walk and tests for the walk builtin 2020-11-24 13:20:05 -05:00
Lucas
dfcf7bb7a2
Merge branch 'trunk' into rvcas/list_functions 2020-11-24 09:07:28 -05:00