Commit graph

519 commits

Author SHA1 Message Date
Folkert
61d4d66f80
move to u16 again for lengths 2022-04-27 14:26:20 +02:00
Folkert
b2f3ff0c3b
fix bug with updating strings giving incorrect results 2022-04-27 11:37:57 +02:00
Folkert
fc9067805b
move SmallStringInterner to its own file 2022-04-26 22:22:10 +02:00
Folkert
7b7da3ffce
refactor out a SmallStringInterner 2022-04-26 21:54:45 +02:00
Folkert
a0c8d4413b
using features that are too fancy 2022-04-26 21:32:34 +02:00
Folkert
e5e27dff1c
style 2022-04-26 20:40:47 +02:00
Folkert
9cfca53b0d
update guess 2022-04-26 20:32:11 +02:00
Folkert
d690d3f325
clippy 2022-04-26 20:26:13 +02:00
Folkert
e87cb5555b
use u8 as length type 2022-04-26 20:18:17 +02:00
Folkert
c31b796938
more types! 2022-04-26 20:10:29 +02:00
Folkert
d3ef35d935
rename 2022-04-26 11:33:26 +02:00
Folkert
25561ff757
Merge branch 'improved-identids' of github.com:rtfeldman/roc into improved-identids 2022-04-26 09:23:28 +02:00
Folkert
b761890f47
use std::io::Write to write bytes 2022-04-26 09:17:09 +02:00
Folkert
3e0b598bc7
switch to Vec<u8> 2022-04-26 09:15:51 +02:00
Folkert
b6e8509e89
more inline 2022-04-26 09:14:44 +02:00
Folkert
af6c3231f3
Improved IdentIds 2022-04-25 23:15:57 +02:00
Folkert
ae04887cb1
make IdentIds expose an iterator of &str 2022-04-25 23:15:56 +02:00
Folkert
724fdb666d
Improved IdentIds 2022-04-25 23:09:18 +02:00
Folkert
5a5324f27e
make IdentIds expose an iterator of &str 2022-04-25 21:44:44 +02:00
Ayaz Hafiz
cf8409dfaa
Remove private tag variants 2022-04-25 11:38:54 -04:00
Ayaz Hafiz
b6383f81ee
Numbers are opaques 2022-04-25 10:59:42 -04:00
Richard Feldman
122a1d57a0
Merge remote-tracking branch 'origin/trunk' into sqrt-unchecked 2022-04-23 15:40:30 -04:00
Richard Feldman
132213245d
Add a way to convert Lowercase to &str 2022-04-20 21:39:09 -04:00
Brian Carroll
f8156ffd53
Merge pull request #2834 from rtfeldman/wasm-list-map-n
Wasm List.mapN
2022-04-20 14:47:04 +01:00
Richard Feldman
082fde976a
Merge branch 'trunk' into sqrt-unchecked 2022-04-20 08:19:34 -04:00
Richard Feldman
93677001ba
Merge pull request #2888 from rtfeldman/divTrunc
rename divFloor to divTrunc
2022-04-19 21:57:49 -04:00
Kevin Gillette
cd8ab753e3
remove %% operator 2022-04-18 19:15:14 -06:00
Kevin Gillette
777363afd0
decrement symbol IDs to account for mod removal 2022-04-18 19:14:43 -06:00
Kevin Gillette
d236c28743
Merge branch 'trunk' into sqrt-unchecked 2022-04-18 19:12:22 -06:00
Kevin Gillette
9ed4ca9739
remove Num.mod and Num.modUnchecked 2022-04-18 13:54:40 -06:00
Folkert
1c8b18f176
import Box by default 2022-04-18 21:43:16 +02:00
Kevin Gillette
6a3fd3a607
rename divFloor to divTrunc 2022-04-18 02:33:31 -06:00
Kevin Gillette
1908ff41c3
rem, sqrt, log are unchecked but have checked variants
mod exists but is not implemented due to lack of hardware support
(emulation, possibly in terms of rem, is needed).
2022-04-17 14:40:39 -06:00
Folkert
e112f6ad2c
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-16 21:01:51 +02:00
Folkert
2b07b8c78d
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-13 21:45:40 +02:00
Kevin Gillette
2c4a83788c
Rename internal NUM_DIV_INT references to NUM_DIV_FLOOR.
This balances with NUM_DIV_CEIL
(which is another form of integer division).
2022-04-13 02:48:57 -06:00
Brian Carroll
6de8892e88 module: ensure dev backends don't eliminate wrapper functions for higher-order builtins 2022-04-11 14:36:31 +01:00
Nikita Mounier
8206f345c7 Merge remote-tracking branch 'origin/trunk' into div-no-result 2022-04-11 11:45:06 +00:00
Nikita Mounier
9182bb5773 Add toF32/64 checked versions in symbol.rs to avoid conflict. 2022-04-11 11:35:56 +00:00
Nikita Mounier
4ecf2a8c24 Modify division behaviour to panic when dividing by 0, and add divChecked, divFloorChecked and divCeilingChecked` for safe alternatives which return a Result, mimicking the previous behaviour. 2022-04-11 11:23:33 +00:00
Folkert
1d0f9e9192
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-08 15:47:11 +02:00
Richard Feldman
cd00a98636
Add toF32/64 and checked versions 2022-04-07 16:13:57 -04:00
Brian Carroll
448140d223 wasm: refactor to prepare for HigherOrder calls 2022-04-05 00:01:11 +01:00
Folkert
7b221d6115
Merge branch 'simplify-identids' into builtins-in-roc 2022-03-22 22:25:55 +01:00
Folkert
30aa242075
flip insert and check 2022-03-22 22:22:24 +01:00
Folkert
a67bb29a36
remove hashmap 2022-03-22 21:58:49 +01:00
Folkert
6a9b08ed11
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-03-20 13:01:00 +01:00
Folkert
e914272bf5
Revert "idea (rejected): only generate work up to constraint gen, then look at what modules are actually used and generate Solve.. work based on that"
This reverts commit 2cbe5f5231.
2022-03-19 16:26:46 +01:00
Folkert
2cbe5f5231
idea (rejected): only generate work up to constraint gen, then look at what modules are actually used and generate Solve.. work based on that 2022-03-19 16:26:38 +01:00
Folkert
988ab8775b
fix miscompilation for wasm 2022-03-18 23:11:28 +01:00