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
Chad Stearns
ee7a3e375c
counter_delimiters bitcode function for Str.split
2020-10-06 02:51:43 -04:00
Chad Stearns
d5dd03313a
Merge branch 'trunk' of github.com:rtfeldman/roc into str-split
2020-10-03 00:21:37 -04:00
Brendan Hansknecht
46db0fd989
Properly size refcount based on system ptr size
2020-09-29 17:27:29 -07:00
Chad Stearns
43960cf1c6
unique and std work, check if delimiter is longer than str
2020-09-27 14:27:56 -04: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
Chad Stearns
5fe6eefa97
Merge branch 'trunk' of github.com:rtfeldman/roc into str-split
2020-09-26 14:54:18 -04:00
Chad Stearns
943925e4de
Set up many basic details for Str.split- no implementation yet
2020-09-26 14:54:14 -04: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
Richard Feldman
5d3645350d
Merge remote-tracking branch 'origin/trunk' into small-str
2020-09-16 02:23:06 -04:00
Richard Feldman
bec7254d92
Zero-initialize small strings using memset
2020-09-16 01:38:00 -04:00
Richard Feldman
96445262f6
Add memset intrinsic
2020-09-16 01:15:30 -04:00
Richard Feldman
bbbf5de6a5
Simplify call_intrinsic
2020-09-16 01:15:19 -04:00
Jared Ramirez
a0402bca4d
Add Num.ceiling
2020-09-15 18:37:45 -07:00
Richard Feldman
099d9e35f6
Merge pull request #518 from rtfeldman/c-abi-progress
...
C abi progress
2020-09-14 18:28:20 -04:00
Folkert
f794874c68
Merge remote-tracking branch 'origin/trunk' into c-abi-progress
2020-09-14 22:01:12 +02:00
Dimitar Apostolov
bbb05749ab
Add LLVM intrinsic for Num.pow
2020-09-14 22:01:12 +02:00
Folkert
ee017084f7
return 3-element records
2020-09-14 21:56:57 +02:00
Folkert
d093f056b7
consider strings
2020-09-14 01:55:23 +02:00
Chad Stearns
30b7545da0
Fixed inplace problem in list_set
2020-09-13 15:04:34 -04:00
Chad Stearns
4e7aecc434
Complied with clippy
2020-09-13 14:55:37 -04:00
Chad Stearns
3112025b0c
Passed down inplace to everything that uses allocate_list
2020-09-13 14:46:21 -04:00
Chad Stearns
0a1e297b0f
Passed result layout down build expr function
2020-09-13 13:31:57 -04:00
Richard Feldman
1efc386e5a
Fix Str.concat for small strings
2020-09-12 23:25:34 -04:00
Richard Feldman
254b93a8ce
Add env.small_str_bytes
2020-09-12 23:05:01 -04:00
Richard Feldman
d778e82d65
Fix Str.isEmpty
2020-09-12 22:05:08 -04:00
Richard Feldman
e3d0145894
Add Str.isEmpty
2020-09-12 21:56:53 -04:00
Chad Stearns
a6c3d8edef
Mostly implemented big and small string work for Str.concat. Just some bugs somewhere in the llvm
2020-09-12 17:39:41 -04:00
Chad Stearns
89ca6735eb
Code compiles for load_str, but does not work
2020-09-12 16:59:00 -04:00
Richard Feldman
b6f706d124
Merge branch 'trunk' into feature/500-add-num-pow-expr-implementation
2020-09-10 21:25:24 -04:00
Folkert
145f75d72b
list reverse in-place
2020-09-11 00:59:19 +02:00
Dimitar Apostolov
51a6e0bde0
Add canonical Expr implementation for NumPow
2020-09-10 14:34:23 +02:00
Chad Stearns
a318253d48
small str implementation in string literal, and bringing in remote trunk
2020-09-09 21:53:38 -04:00
Folkert
1b42831973
implement Num.compare
2020-09-08 19:40:18 +02:00
Folkert
4c995b12a6
move refcounting code gen into its own module
2020-09-08 15:51:38 +02:00