Folkert
727f2f6e93
cleanup
2021-12-08 21:02:38 +01:00
Folkert
6c5f809678
cleanup
2021-12-08 21:00:53 +01:00
Folkert
79d5c82dfb
cleanup
2021-11-27 16:36:43 +01:00
Folkert
a1fd34feef
remove empty layout types (list,str,dict,set)
2021-11-27 14:05:16 +01:00
Folkert
dc44eaac97
cleanup
2021-11-21 14:11:18 +01:00
Folkert
123c963ff1
llvm build working
2021-11-21 00:23:59 +01:00
Michael Downey
d946b84e63
adding initial List.all
2021-11-16 16:34:36 -05:00
satotake
c253273490
Merge branch 'trunk' into refactor-builtin-list-drop
2021-11-15 11:37:32 +00:00
satotake
8e29daa160
remove low-level List.drop
codes
2021-11-15 11:28:38 +00:00
Richard Feldman
1c6fab7043
Merge pull request #1916 from rtfeldman/tag-union-imitate-rust
...
Tag union imitate rust
2021-11-13 08:13:32 -08:00
satotake
9ec2bc7946
Remove takeFirst
and takeLast
from backend
2021-11-13 06:03:18 +00:00
satotake
2e073d57ea
destruct record at high level
2021-11-13 05:13:46 +00:00
satotake
98d2c57edf
move List.sublist to backend
2021-11-13 04:57:28 +00:00
Folkert
196538cc58
fix valgrind error, finally
2021-11-13 01:00:20 +01:00
Folkert
144dbef434
Merge remote-tracking branch 'origin/trunk' into tag-union-imitate-rust
2021-11-10 17:19:30 +01:00
Folkert
94efbd0e95
Merge remote-tracking branch 'origin/trunk' into builtins-list-take-last
2021-11-09 16:18:19 +01:00
satotake
772fc9c021
Implement List.takeLast
2021-11-09 12:26:17 +00:00
ayazhafiz
f65b174ab5
Implement List.find
...
`List.find : List elem, (elem -> Bool) -> Result elem [ NotFound ]*`
behaves as follows:
```
>>> List.find [1, 2, 3] (\n -> n > 2)
Ok 2
>>> List.find [1, 2, 3] (\n -> n > 4)
Err NotFound
```
We implement this as builtin in two phases. First, we call out to a
pure-llvm-lowlevel `ListFindUnsafe` that returns a record indicating
whether a satisfying element was found, and the value of that element
(the value is all null bytes if the element wasn't found). Then, we lift
that record to a `Result` via a standard construction of the can AST.
Closes #1909
2021-11-08 21:03:14 -05:00
Folkert
a9d483cb60
Merge remote-tracking branch 'origin/trunk' into tag-union-imitate-rust
2021-11-08 22:31:17 +01:00
satotake
d0b09e1922
cleanup unused args
2021-11-08 14:31:34 +00:00
satotake
878400f95f
Implement List.takeFirst
2021-11-08 14:10:53 +00:00
Kevin Sjöberg
87894578cf
Remove alignment parameter
2021-11-07 20:48:09 +01:00
Kevin Sjöberg
44938a9e35
Implement List.any
2021-11-07 20:44:10 +01:00
Folkert
3138fc43ec
cosmetic changes
2021-11-07 16:31:43 +01:00
Folkert
180575852a
all tests passing
2021-11-07 14:56:24 +01:00
Richard Feldman
4e19320982
Merge branch 'trunk' into false-cleanup
2021-11-01 22:30:45 -04:00
Kevin Sjöberg
f9ed060e49
Implement List.map4
2021-10-31 21:08:41 +01:00
Folkert
29e7853b85
use phi node in elem_loop
2021-10-30 22:05:43 +02:00
Folkert
dd38d49335
fix formatting
2021-10-20 19:44:26 +02:00
Folkert
9fc832d8ef
new intrinsic approach
2021-10-20 15:18:02 +02:00
Folkert
78c49d3095
support intrinsics/builtins for more integer types
2021-10-19 21:41:38 +02:00
Dan Knutson
65821d6a9f
remove giesch/todo tags, add List.drop doc
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
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
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
Folkert
cd9b32ba65
fix list decref
2021-09-10 21:53:57 +02:00
Folkert
4990e543fa
make str/list 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
225c97aae3
move List.prepend to zig
2021-08-14 12:28:05 +02:00
Folkert
899cbeabd7
fix extra ampersands
2021-07-29 17:32:08 +02:00
Folkert
768c59f45d
bigger tag size fixes
2021-07-24 13:36:06 +02:00
Folkert
f5e5ec42ad
use ptr_int
2021-07-24 12:43:58 +02:00
Folkert
d0be0df83c
tweaks
2021-07-24 12:33:57 +02:00
rvcas
fb12715aba
chore: list remove unused vars
2021-07-02 18:36:17 -04:00
Folkert
98a9dc0945
remove tag id from data bytes for non-recursive tags
2021-06-26 17:01:23 +02:00
Folkert
fd9b826398
fix the issues
2021-06-25 22:27:11 +02:00
Folkert
0eba188493
WIP
2021-06-24 20:12:37 +02:00
Folkert
f8bdf05f90
has_tag_id from zig
2021-06-24 20:12:05 +02:00