Commit Graph

10034 Commits

Author SHA1 Message Date
Dan Knutson
3baff93a97 add first version of List.dropAt
* adds an implementation with no uniqueness/mutability
2021-10-03 13:55:11 -05:00
Anton-4
ff9866420b
Merge pull request #1762 from rtfeldman/test
skip RBtreeTest check
2021-10-03 19:44:05 +02:00
Anton-4
09917b1f01 ignore missing RBTreeDel test 2021-10-03 18:34:04 +02:00
Anton-4
f4ea4e4ad7 just want to run tests 2021-10-03 17:26:11 +02:00
Anton-4
13d64c48bd fmt 2021-10-03 17:17:23 +02:00
Folkert
f8ac85195b fix zig test 2021-10-03 14:18:48 +02:00
Folkert
313bc71f48 disable RBTreeDel test/benchmark 2021-10-03 14:06:40 +02: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
486f1d540f add specifications for fromUtf8 and toUtf8 2021-10-03 13:22:03 +02:00
Folkert
018348bd83 make Str.fromUtf8 in-place 2021-10-03 12:13:17 +02:00
Folkert
9e97a09a87 check if exposed function is defined already 2021-10-03 00:57:54 +02:00
Folkert
dbb8acbe67 add in-place List.swap 2021-10-03 00:25:35 +02:00
Folkert
3d7b42deba better error message for when morphic did not specialize 2021-10-03 00:17:15 +02:00
Folkert
fa57ff88a5 disable list of constants in read-only section 2021-10-03 00:16:52 +02:00
Folkert
7e6a3431e2 trick morphic into updating a value that comes from the host 2021-10-03 00:07:38 +02:00
Folkert
5a8547f2d4 trick morphic into specializing closure callers 2021-10-03 00:05:17 +02:00
Folkert
2fe431f1b8 update morphic (can solve quicksort now) 2021-10-02 22:45:31 +02:00
Richard Feldman
7d6aca5a4e
Merge pull request #1754 from rtfeldman/www
Add 'a taste of roc' link to www
2021-10-02 09:40:19 -05:00
Folkert de Vries
a13ca2cb24
Merge pull request #1756 from rtfeldman/wasm_results_vs_panics
More useful stack traces for gen_wasm bugs
2021-10-02 15:37:37 +02:00
Brian Carroll
4aa2452e01 gen_wasm: Change some compiler bugs error handling from Result to panic
Result makes sense where I have something meaningful to say to the user like
"X is not implemented yet". And also for public functions that may interface
with other parts of the project like Backend.

But for private functions internal to gen_wasm, it's just unhelpful to get a stack trace
to where the Result is unwrapped! I want a stack trace to the root cause.
I always end up temporarily rewriting Err("oops") to panic!("oops") and then waiting
for it to recompile.

This feels like a more balanced approach, using each technique where it makes sense.
2021-10-02 13:40:44 +01:00
Folkert
f1ec5c30d0 make things compile 2021-10-01 20:33:34 +02:00
Richard Feldman
08a3f0fb9a Add 'a taste of roc' link to www 2021-10-01 13:06:35 -05:00
Folkert de Vries
a42620ecb5
Merge pull request #1752 from rtfeldman/wasm_stack_memory
Wasm stack memory
2021-09-30 23:53:38 +02:00
Brian Carroll
304e9c904f Formatting 2021-09-30 17:28:02 +01:00
Brian Carroll
92085a0fcb README notes on reducing gets and sets 2021-09-30 17:27:56 +01:00
Brian Carroll
7ac7e16f60 Ensure stack frame is always popped when procedure returns from inside a branch 2021-09-30 17:04:16 +01:00
Brian Carroll
79ac2f04b8 Improve stack allocation code 2021-09-30 17:04:16 +01:00
Brian Carroll
f1b14c14e3 Refactor SymbolStorage to emphasise stack/non-stack params
We don't have much (any) code that cares about the difference between
heap pointers and other primitives, but we have a _lot_ of code that cares
if it's stack memory. So let's encode it that way.
2021-09-30 17:04:16 +01:00
Folkert de Vries
c4c7ecf1bc
Merge pull request #1751 from rtfeldman/str-repeat
Add Str.repeat builtin
2021-09-30 12:47:49 +02:00
Kofi Gumbs
2f574ea75e Remove extraneous .into() 2021-09-29 22:41:30 -04:00
Kofi Gumbs
b2343cb0ad Format zig 2021-09-29 21:54:14 -04:00
Kofi Gumbs
0cdafa1623 Add Str.repeat test for big strings 2021-09-29 21:54:06 -04:00
Kofi Gumbs
b32a42f05a Add Str.repeat builtin 2021-09-29 17:32:42 -04:00
Brian Carroll
1fe20b0422
Merge pull request #1748 from rtfeldman/wasm_stack_memory
Wasm stack memory
2021-09-29 19:05:46 +01:00
Brian Carroll
7ea59ad9d4 PR tidy-ups 2021-09-29 06:15:58 +01:00
Brian Carroll
93448182e4 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_stack_memory 2021-09-28 19:08:36 +01:00
Brian Carroll
45c9dc8617 update gen_wasm README 2021-09-28 19:06:47 +01:00
Brian Carroll
02bb9028ef Returning records on the stack from Wasm dev backend! 2021-09-28 08:06:59 +01:00
Anton-4
0b02929a53
Merge pull request #1746 from rtfeldman/bench_race_condition
benchmark race condition patch
2021-09-27 17:14:48 +02:00
Anton-4
4026291945 re-enjable benchmarks 2021-09-27 15:17:13 +02:00
Anton-4
e0bd644c79 single threaded file loading with env var 2021-09-27 15:16:07 +02:00
Brian Carroll
39fda3e675 Add more information to SymbolStorage
SymbolStorage is function-specific, whereas WasmLayout is function-independent.

SymbolStorage used to be a single-variant enum with a LocalId and a WasmLayout,
but now we need more variants, so we can handle stack memory allocation..

- For values in stack memory, the storage needs to include an offset within the
  stack frame, but we don't need that for primitive values.

- For function parameters, the allocated stack memory is in the caller's frame
  rather than the current frame, so we don't want size or offset.

We could have kept a WasmLayout inside of SymbolStorage but that would have made
possible a lot of invalid combinations. It seemed better to copy the fields we need.
2021-09-26 20:52:17 +01:00
Brian Carroll
ecece45a83 Add a helper method local_id_from_symbol 2021-09-26 20:52:17 +01:00
Brian Carroll
ae6cfe1992 Moree implementations for Wasm32TestResult 2021-09-26 20:52:16 +01:00
Brian Carroll
286ca680e0 Tidy up load_literal 2021-09-26 20:52:16 +01:00
Brian Carroll
ab4f28fd69 Comment out a test that isn't working 2021-09-26 20:52:16 +01:00
Brian Carroll
92b1d73bd6 Refactor build_proc into smaller helpers 2021-09-26 20:52:10 +01:00
Folkert de Vries
f7c1a6e952
Merge pull request #1734 from rtfeldman/alias-analysis-const-list
alias analysis static list
2021-09-26 12:43:28 +02:00
Folkert de Vries
a263d57e62
Merge pull request #1738 from rtfeldman/list-function-unit
empty list of functions
2021-09-26 12:43:06 +02:00