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
8692938fb3
Merge branch 'vecset-references' into builtins-in-roc
2022-04-17 19:39:03 +02:00
Folkert
d0c02ada8a
re-enable ignored test
2022-04-17 14:00:34 +02:00
Richard Feldman
718b999751
Merge pull request #2857 from rtfeldman/abilities-mono
...
Codegen for abilities
2022-04-16 22:59:16 -04:00
Folkert
e112f6ad2c
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc
2022-04-16 21:01:51 +02:00
Brian Carroll
9491d5fae9
Merge branch 'trunk' into update_zig_09
2022-04-15 21:17:25 +01:00
Richard Feldman
ae59eab55b
Merge pull request #2850 from rtfeldman/issue-2646/Num-toStr
...
Issue 2646 - Num.toStr crash
2022-04-15 10:54:20 -04:00
Ayaz Hafiz
95783e03a1
Handle aliasing of ability members
2022-04-15 10:21:35 -04:00
Ayaz Hafiz
8694ea9d33
Add first ability gen tests
2022-04-14 17:06:19 -04:00
Jared Cone
b35debee70
fixed formatting
2022-04-13 23:36:00 -07:00
Jared Cone
17e5ec85aa
Num.toStr unit tests
2022-04-13 23:18:00 -07:00
Brian Carroll
bdad1a5161
wasm: Extract List.mapN logic into a helper function
2022-04-13 21:38:54 +01:00
Folkert
2b07b8c78d
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc
2022-04-13 21:45:40 +02:00
Ayaz Hafiz
b86bf94d92
Dev, wasm test bugs
2022-04-12 17:35:00 -04:00
Ayaz Hafiz
865c1f15d7
Fix test compile errors, and simply load_internal tests
2022-04-12 16:42:51 -04:00
Nikita Mounier
dfba77bd04
Explicit i128 in test.
2022-04-12 16:41:29 +00:00
Nikita Mounier
6b2d1a7af6
Remove outdated comments.
2022-04-11 23:36:30 +00:00
Nikita Mounier
dbb91639e9
Revert weird changes in tests.
2022-04-11 21:33:22 +00:00
Nikita Mounier
20b9f6377c
Fix f64 ambiguity in test.
2022-04-11 19:43:21 +00:00
Nikita Mounier
799c05f183
Fix test.
2022-04-11 17:56:43 +00:00
Nikita Mounier
1d5ab1d79c
Merge remote-tracking branch 'origin/trunk' into div-no-result
2022-04-11 17:51:38 +00:00
Brian Carroll
c950f6d834
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-linking-zig9
2022-04-11 18:34:43 +01:00
Brian Carroll
a7a84019cd
wasm: Get List.map3 working
2022-04-11 14:36:31 +01:00
Brian Carroll
7b96e953ba
wasm: Get List.map2 working
2022-04-11 14:36:31 +01:00
Brian Carroll
a663d335fc
repl_test: update build.rs to work with Zig 0.9 (like test_gen)
2022-04-11 14:19:56 +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
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
Brian Carroll
2473b84ded
test_gen: Ensure preloaded Wasm object has both relocations and libc code
2022-04-11 11:28:36 +01:00
Folkert
823d4678a8
import Box in box tests
2022-04-10 20:12:59 +02:00
Folkert
6ef443d1b0
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc
2022-04-10 19:14:00 +02:00
Ayaz Hafiz
a102a7497e
Support box/unbox for types that are typically only on the stack
...
Closes #2786
2022-04-09 16:22:01 -04:00
Folkert
76037de335
ignore test for now
2022-04-09 12:11:11 +02:00
Folkert
c32f851394
explicitly import Box
2022-04-09 11:35:06 +02:00
Folkert de Vries
5dc8c852e9
Merge pull request #2815 from rtfeldman/i/2811
...
Specialize polymorphic values before binding to pattern
2022-04-08 21:44:11 +02:00
Brian Carroll
90cd644671
test_gen: update wasm build command for zig 0.9
2022-04-08 16:44:28 +01:00
Brian Carroll
b96c9aa61a
Fix signature of roc_memcpy in wasm test platform
2022-04-08 16:38:22 +01:00
Folkert
1d0f9e9192
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc
2022-04-08 15:47:11 +02:00
Ayaz Hafiz
4029748bdf
Fix llvm type errors for float functions
...
Closes #2792
2022-04-07 18:17:29 -04:00
Richard Feldman
4dc7e61f3f
Move conversion tests to test_gen
2022-04-07 16:27:01 -04:00
Ayaz
23bc8aab49
Merge pull request #2805 from rtfeldman/type-vs-value-defs
...
Split up Defs into TypeDef and ValueDef
2022-04-07 14:04:05 -04:00
Ayaz Hafiz
a12e40a310
Specialize polymorphic values before binding to pattern
...
Closes #2811
2022-04-07 14:03:29 -04:00
Ayaz Hafiz
c7d439136b
Flip refcount test symbols
2022-04-07 08:54:07 -04:00
Brian Carroll
2b74e55240
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-higher-order-calls
2022-04-07 09:03:34 +01:00
Folkert
653d2d2a72
fix list functions
2022-04-06 18:43:48 +02:00
Ayaz
d58300e016
Merge pull request #2799 from rtfeldman/i/2583
...
Unify type alias "real variables"
2022-04-05 18:40:02 -04:00
Folkert de Vries
d3a3b6456a
Merge pull request #2800 from rtfeldman/parse-out-dec-suffix
...
Make sure float suffixes are parsed out after can
2022-04-05 23:43:15 +02:00
Ayaz Hafiz
9fbc525d02
Make sure float suffixes are parsed out after can
...
Before we hit mono, we need to make sure the suffixes of numeric
literals are parsed out from the literal string, so that we don't try to
parse something whose type we already know but has the extraneous
suffix.
Co'ed with @tagraves
2022-04-05 11:32:34 -04:00
Ayaz Hafiz
163c6b39d6
Unify type alias "real variables"
...
Turns out that we can't always assume that a successful unification of
type alias type variables means that those aliases had the same real
type from the start. Because type variables may contain unbound type
variables and grow during their unification (for example,
`[InvalidNumStr]a ~ [ListWasEmpty]b` unify to give `[InvalidNumStr,
ListWasEmpty]`), the real type may grow as well.
For this reason, continue to explicitly unify alias real types for now.
We can get away with not having to do so when the type variable
unification causes no changes to the unification tree at all, but we
don't have a great way to detect that right now (maybe snapshots?)
Closes #2583
2022-04-05 11:21:52 -04:00
Brian Carroll
e342b21d43
wasm: enable some List.map tests
2022-04-05 00:02:05 +01:00