Richard Feldman
f83f50a9a7
Merge pull request #2337 from rtfeldman/i/2331
...
Use unsigned LLVM intrinsic arithmetic for unsigned integers
2022-01-12 08:29:30 -05:00
Jan Van Bruggen
6c4fcb6514
Maybe-fix some maybe-incorrect doc-comments
...
This might affect `roc docs ...` parsing, but probably not.
2022-01-11 20:00:15 -07:00
ayazhafiz
2c41c43aea
Implement saturated add/subtract
2022-01-10 22:37:08 -05:00
ayazhafiz
abe42781d5
Use unsigned LLVM intrinsic arithmetic for unsigned integers
...
Closes #2331
2022-01-10 19:20:51 -05:00
Richard Feldman
46d36ed942
Fix tutorial table formatting
2022-01-07 19:48:43 -05:00
Richard Feldman
9cd27b72d7
Fix some links in Num docs
2022-01-07 19:48:43 -05:00
rvcas
c4e6349714
fix(bitcode): leave a comment explaining why u64 is not used
2021-12-28 13:07:05 -05:00
rvcas
715c441b25
fix(int_instrinsic): these should be unsigned
2021-12-27 19:07:52 -05:00
Folkert
022b1ca83a
use ROC_ZIG environment variable to configure which zig is used
2021-12-25 22:27:52 +01:00
ayazhafiz
ed64ff912a
Implement List.dropIf
...
This was referenced in the `List` documentation and in the
[tutorial](./TUTORIAL.md), but wasn't actually implemented prior to this
commit!
Part of #2227
2021-12-22 12:34:48 -06:00
Brian Carroll
0bdf76f81a
Merge pull request #2234 from rtfeldman/str-split-empty-delimiter
...
Add empty-delimiter handling for `Str.split`
2021-12-19 12:43:01 +00:00
Jan Van Bruggen
8cc5abd219
Fix typos in docs for Num.maxDec
& Num.minDec
2021-12-18 01:21:20 -07:00
Jan Van Bruggen
96724e73aa
Add empty-delimiter handling for Str.split
2021-12-18 00:53:17 -07:00
Jan Van Bruggen
12818f9b9d
Merge pull request #2223 from rtfeldman/alphabetize-builtins-docs-exposures
...
Alphabetize compiler/builtins/docs/ exposures
2021-12-18 07:32:08 +00:00
Brian Carroll
77d73f35eb
Merge branch 'trunk' of github.com:rtfeldman/roc into faster-str-eq
2021-12-17 13:47:25 +00:00
Brian Carroll
a481e34f31
Zig builtins: set small string flag on empty string
2021-12-16 19:04:36 +00:00
Brian Carroll
ad8fa483d2
Make Str equality faster
2021-12-16 11:45:54 +00:00
Brian Carroll
3c74acafa4
More precise alignCast (allow for 32-bit targets)
2021-12-16 11:45:54 +00:00
Brian Carroll
457041a314
Slightly optimize Str.isEmpty
2021-12-16 11:45:54 +00:00
j
ec68b1ab38
Alphabetize compiler/builtins/docs/ exposures
2021-12-15 07:37:15 -07:00
Brian Carroll
bbf04b8752
Add more Zig tests for Str.eq
2021-12-15 11:27:13 +00:00
Richard Feldman
6056d29df0
Merge pull request #2201 from rtfeldman/builtin_docs
...
Added builtins to docs
2021-12-14 22:04:23 -05:00
Richard Feldman
7a1f3b1c02
Merge pull request #2207 from rtfeldman/JanCVanB-patch-1
...
Remove duplicate `dropLast` & `all` in `List` docs
2021-12-14 22:03:43 -05:00
Richard Feldman
5ac6bf89e4
Merge pull request #2208 from rtfeldman/JanCVanB-patch-2
...
Add missing section headers to `Set` docs
2021-12-14 22:03:27 -05:00
Jan Van Bruggen
ba328aa30f
Add missing section headers to Set
docs
...
This emulates [the section headers in `List` docs](09c1222b28/compiler/builtins/docs/List.roc (L216)
).
2021-12-13 18:48:25 -07:00
Jan Van Bruggen
c783446567
Remove duplicate dropLast
& all
in List
docs
2021-12-13 18:43:24 -07:00
Anton-4
eeb8d7e9f1
Added builtins to docs
2021-12-13 20:27:32 +01:00
Jan Van Bruggen
d03a51c75b
Rename base
package to pf
everywhere, to match tutorial
2021-12-12 05:57:39 -07:00
Richard Feldman
1ce648ac27
Merge pull request #2116 from rtfeldman/str_to_num
...
Str.toNum
2021-12-09 09:48:38 -05:00
rvcas
b7d48b2fe1
feat: add the rest of the num types for Str conversion
2021-12-06 23:24:02 -05:00
rvcas
e587e20de2
feat: switch to using a builtin per num type to convert from a string
2021-12-06 22:24:00 -05:00
Anton-4
e50fb25b38
forgot about Aarch64
2021-12-03 20:03:45 +01:00
Anton-4
4427779c7a
set zig builtins target for compatibility
2021-12-03 19:57:19 +01:00
rvcas
bc5b1abcba
feat(Str.toNum): support decimal
2021-12-02 15:35:34 -05:00
rvcas
d8a3a961bf
fix: remove first arg input: T from parseFloat in zig
2021-12-02 15:15:14 -05:00
Folkert
d6ed2147ae
basic working test case
2021-12-02 20:30:58 +01:00
Anton-4
58f3559c98
consistent result type signatures
2021-12-02 17:49:04 +01:00
rvcas
d6ab0b6aa4
fix: bitcode functions needed the str namespace not num
2021-12-01 16:40:56 -05:00
rvcas
ba9d01773b
fix: result holds a num_type
2021-12-01 16:25:00 -05:00
rvcas
3104406956
feat: add the type def for Str.toNum
2021-12-01 16:12:55 -05:00
Anton-4
e63701c5d1
trying to make Str.toNum work for Ints
2021-12-01 20:37:21 +01:00
Anton-4
2e21fd0cb9
Merge branch 'str-to-num' of github.com:rtfeldman/roc into str_to_num
2021-12-01 19:43:01 +01:00
Folkert
69fc1ad7e7
sketch of StrToNum
2021-12-01 15:33:16 +01:00
Anton-4
eaf4e57759
started on Str.toNum
2021-12-01 15:15:30 +01:00
Brian Carroll
a3827d6636
Merge pull request #2071 from rtfeldman/refcount-mono-ir
...
Start generating refcounting code as mono IR
2021-12-01 12:59:16 +00:00
rvcas
00bd77bf1d
chore: update builtin docs
2021-11-30 14:55:41 -05:00
rvcas
f995a07029
feat: Num.toStr
...
* add type for Num.toStr
* create new lowlevel
* delete types and Symbol for fromInt and fromFloat
* leave LowLevel::{StrFromFloat,StrFromInt}
* match on LowLevel::NumToStr and figure out the layout to decide
which build function to delegate to
2021-11-30 14:52:06 -05:00
Brian Carroll
6e5acadfea
Create new lowlevels for refcounting
2021-11-30 09:57:00 +00:00
Folkert
7fc79c3d40
fix typo
2021-11-21 19:20:05 +01:00
Folkert
123c963ff1
llvm build working
2021-11-21 00:23:59 +01:00