Commit graph

9048 commits

Author SHA1 Message Date
Chadtech
a7abc8b5b3 Remove dbg and todo 2021-06-19 13:37:10 -04:00
Chadtech
9d2976f14f Module aliases passed into LoadedModule, and used in docs to generate docs for aliases exposed by the module 2021-06-19 13:35:57 -04:00
Folkert
af4ee51560 get rid of InPlace 2021-06-19 16:56:27 +02:00
Folkert
3ba643df70 refactor 2021-06-19 16:44:30 +02:00
Chadtech
fe3919f66e
Merge branch 'trunk' into document-only-exposed-values 2021-06-19 10:41:41 -04:00
Folkert
565a962613 even more Layout::Closure 2021-06-19 16:01:03 +02:00
Folkert
84df503193 less Layout::Closure 2021-06-19 15:52:54 +02:00
Folkert
0a3cfd9a39 more raw function layout 2021-06-19 15:19:25 +02:00
Folkert
6a010c9513 rename TopLevelFunctionLayout -> ProcLayout 2021-06-19 15:07:40 +02:00
Folkert
718aa34b19 clippy 2021-06-19 15:04:28 +02:00
Folkert
f2f9897187 remove FunctionPointer completely 2021-06-19 15:04:28 +02:00
Folkert
c776d98686 remove another FunctionPointer 2021-06-19 15:04:27 +02:00
Folkert
dd341508e4 refactor 2021-06-19 15:04:27 +02:00
Folkert
53ce8b2d25 improve call_by_name with raw layout 2021-06-19 15:04:27 +02:00
Folkert
4a8ec50c0e more raw layout 2021-06-19 15:04:27 +02:00
Folkert
4c6048de7d raw function layout 2021-06-19 15:04:27 +02:00
Folkert
e0f5dc40cb WIP 2021-06-19 15:04:27 +02:00
Richard Feldman
449ec19b0f
Merge pull request #1420 from rtfeldman/layout-changes
Layout changes
2021-06-19 08:08:07 -04:00
Richard Feldman
e337e0287d
Merge pull request #1417 from rtfeldman/cli-host
Updates to roc_std and examples/cli host
2021-06-19 08:05:28 -04:00
Folkert
c6f5f58761 when refcount is isize, decrement is subtraction 2021-06-19 10:56:02 +02:00
Richard Feldman
423c7d4fca
Merge branch 'trunk' into layout-changes 2021-06-18 22:12:36 -04:00
Richard Feldman
96e96f7e5d Drop obsolete comment 2021-06-18 22:11:04 -04:00
Richard Feldman
6f22dc8abf
Merge branch 'trunk' into cli-host 2021-06-18 22:08:18 -04:00
Richard Feldman
fbb7348009
Merge pull request #1419 from rtfeldman/dec-to-str-refactor
Dec to str refactor
2021-06-18 22:07:53 -04:00
Folkert
c44ed3ec79 remove annotation 2021-06-19 00:52:02 +02:00
Folkert
79b44b2dc5 fix UD 2021-06-19 00:51:19 +02:00
Folkert
474a0747cd use MaybeUninit 2021-06-19 00:46:47 +02:00
Folkert
4256c22004 more toplevel 2021-06-18 22:25:31 +02:00
Folkert
fe81eabbfa remove full() function 2021-06-18 22:08:42 +02:00
Folkert
daa1374678 remove full_layout field 2021-06-18 21:58:50 +02:00
Jared Ramirez
711daee650 Fix variable names & clarify comments 2021-06-18 12:56:23 -07:00
Jared Ramirez
5868518758 Add basic Dec.roc docs 2021-06-18 12:50:44 -07:00
Jared Ramirez
88aa8318f1 Refactor RocDec.toStr 2021-06-18 12:50:15 -07:00
Richard Feldman
53ccef0506 nightly clippy
I was on nightly for benchmarks, and these all seem reasonable.
2021-06-18 15:21:11 -04:00
Richard Feldman
6fe1d41c55 make clippy happy 2021-06-18 15:21:11 -04:00
Richard Feldman
aa687d9640 Use .add over .offset for usize pointer offsets 2021-06-18 15:21:11 -04:00
Richard Feldman
8e526631c2 Shrink buffer for RocStr path conversion 2021-06-18 15:21:11 -04:00
Richard Feldman
a12b421e9a Drop roc_fx_readAll
It's really not doing anything significant that roc_fx_open
and roc_fx_read aren't already.
2021-06-18 15:21:11 -04:00
Richard Feldman
804c00c899 Implement some file I/O stuff in cli host 2021-06-18 15:21:11 -04:00
Richard Feldman
6a84902f79 Add RocList::append_slice to roc_std 2021-06-18 15:21:11 -04:00
Richard Feldman
98d0171726 Add RocStr:write_c_str to roc_std 2021-06-18 15:21:11 -04:00
Richard Feldman
3e6e55ffcc Improve roc_std storage pointer usage.
We were trying to represent Refcount as usize,
but Refcount can be isize::MIN which can't be
negated and then cast to usize without overflow.

Also made the Drop implementations for RocList and RocStr
more efficient.
2021-06-18 15:21:03 -04:00
Folkert
a64f80dbe8 fix hash problem 2021-06-18 21:16:43 +02:00
Folkert
d894a06290 use toplevel more 2021-06-18 21:05:31 +02:00
Folkert
88f4b6bc9b remove more FunctionPointer 2021-06-18 21:00:27 +02:00
Folkert
94cbb103ef use toplevelfunctionlayout in refcount insertion 2021-06-18 20:46:15 +02:00
Richard Feldman
b7af34c8b1 Fix decref in utils.zig 2021-06-17 22:39:57 -04:00
Chadtech
dfbba2badd
Merge branch 'trunk' into document-only-exposed-values 2021-06-17 22:04:24 -04:00
Richard Feldman
b6f0a3f693
Merge pull request #1411 from rtfeldman/constrain_when
Constrain Expr2::When
2021-06-17 00:46:02 -04:00
Richard Feldman
7063500313
Merge pull request #1414 from rtfeldman/dec-div
Add RocDec.div
2021-06-17 00:35:24 -04:00