Folkert
1c6b55584a
fix list inc/dec wrt slices
2023-05-14 15:20:42 +02:00
Folkert
8ba3fd082d
dev backend: treat box like a machine-sized integer when storing to register
2023-05-14 15:20:42 +02:00
Folkert
8770668688
implement add saturated for the dev backend
2023-05-14 15:20:42 +02:00
Folkert
736b7c6a83
inc/dec string slices
2023-05-14 15:20:41 +02:00
Folkert
62dac6bdf8
don't calculate RC pointer in STR decrement function
...
we now decrement based on the data pointer; further logic is all in zig now
2023-05-14 15:20:41 +02:00
Brian Carroll
75b21e6228
wasm_interp: print function names in stack trace if available
2023-05-14 15:20:41 +02:00
Brian Carroll
a3b5a9d9a2
wasm_interp: create a new error MemoryAccessOutOfBounds
2023-05-14 15:20:40 +02:00
Brian Carroll
17d8ef2aa7
Support refcounting Str seamless slices for dev backends
2023-05-14 15:20:40 +02:00
Brian Carroll
5c53530c81
Support refcounting List seamless slices for dev backends
2023-05-14 15:20:40 +02:00
Folkert
4e8aea50c9
fix how scan_ast works with join points
2023-05-14 15:20:08 +02:00
Ayaz Hafiz
24e65cbf8d
Update mono tests
2023-05-10 17:45:46 -05:00
Ayaz Hafiz
4d50817968
Preserve semantic when reifying recursion layouts
2023-05-10 17:29:00 -05:00
Ayaz Hafiz
94203ca6d9
Preserve semantic when fixing rec pointer
2023-05-10 17:25:15 -05:00
Ayaz Hafiz
fa787b9b48
Unused imports
2023-05-10 17:25:05 -05:00
Ayaz Hafiz
49b8886b82
Hide semantic repr in layout
2023-05-10 17:24:45 -05:00
Ayaz Hafiz
31c9cc8227
Hide away SemanticRepr definition
2023-05-10 17:10:58 -05:00
Ayaz Hafiz
a37a0f1770
DbgDeep for semantic reprs
2023-05-10 17:09:50 -05:00
Ayaz Hafiz
6b537864c6
Drop unnecessary intern
2023-05-10 16:02:44 -05:00
Ayaz Hafiz
4296d5a349
Drop Layout::struct_no_name_order
2023-05-10 15:58:51 -05:00
Ayaz Hafiz
1170b542b6
Remove field_order_hash from struct layouts
2023-05-10 15:49:30 -05:00
Ayaz Hafiz
43d4135dc8
Semantic layouts for tuples
2023-05-10 15:40:44 -05:00
Ayaz Hafiz
c06ffc434b
Begin generating semantic reprs for records
2023-05-10 15:38:25 -05:00
Ayaz Hafiz
6714a6fd92
Use LayoutRepr directly when possible
2023-05-10 15:28:11 -05:00
Ayaz Hafiz
7b2d149deb
Move repr-specific functions to LayoutRepr and impl deref
2023-05-10 15:26:31 -05:00
Ayaz Hafiz
58fe2bb4e0
Ignore all semantic layouts for now
2023-05-10 15:21:01 -05:00
Ayaz Hafiz
f100e8753c
Introduce the concept of SemanticRepr
2023-05-10 13:51:04 -05:00
Ayaz Hafiz
c3eeb5e2cc
Wrap layouts in a LayoutRepr
constructor
...
Part 1 of support semantic layout representations.
2023-05-10 13:22:10 -05:00
Anton-4
c2d2bd4bb9
Merge pull request #5391 from sandprickle/docs-package-index
...
Docs: index.html for packages
2023-05-10 15:13:18 +02:00
Bryce Miller
3d67d7091f
style package index module list
2023-05-10 07:55:38 +02:00
Bryce Miller
4603d8cc84
generate package index
2023-05-10 07:55:27 +02:00
Richard Feldman
039599da6a
Fix test
2023-05-09 20:20:21 -04:00
Richard Feldman
b42da4ae8d
Revert "remove undefined -dynamic_lookup"
...
This reverts commit bd6ae25cbc
.
2023-05-08 15:46:53 -04:00
Folkert
6091ccd3b0
enable list_ends_with test for dev backend
2023-05-07 20:31:47 +02:00
Folkert
72a997f1bf
move ptr equality check under length equality check
2023-05-07 20:31:47 +02:00
Folkert
a4be750a3a
properly load pointers before comparison
2023-05-07 20:31:47 +02:00
Folkert
44e5d7459e
fix lambda set case not handled
2023-05-07 20:31:45 +02:00
Folkert de Vries
deb1e9952d
Merge pull request #5365 from roc-lang/dev-backend-cli
...
Dev backend list tests
2023-05-07 14:47:39 +02:00
Richard Feldman
8afe6fcd3c
Merge pull request #5375 from sandprickle/docs-static-files
...
Docs: read static assets from fs for debug builds
2023-05-06 14:58:57 -04:00
Bryce Miller
ff3c209be8
eliminate unnecessary closures
2023-05-06 13:10:19 +02:00
Bryce Miller
54da8acb0c
slightly better error messages
2023-05-06 12:27:08 +02:00
Folkert
ef60be37af
fix alloca of wrong type
2023-05-06 00:42:48 +02:00
Folkert de Vries
ec21f19826
Merge pull request #5374 from GabrielDertoni/remove-needless-string-alloc
...
refactor: remove needless string allocation in pretty printer
2023-05-06 00:34:48 +02:00
Bryce Miller
8bd80406e6
read files relative to roc dir
2023-05-05 22:48:52 +02:00
Folkert
1c16617bec
llvm backend: fix how closure value is passed
2023-05-05 16:36:29 +02:00
Folkert
83742bc741
two more tests
2023-05-05 15:08:31 +02:00
Folkert
41583edfb2
list still increments recursively
2023-05-05 15:03:17 +02:00
Folkert
6ed899d8be
indirec inc/dec generation in mono helpers
2023-05-05 15:02:21 +02:00
Richard Feldman
df0ab01128
Merge pull request #5348 from basile-henry/basile/num-is-nan
...
Implement builtins for Num.isNan, Num.isInfinite, and Num.isFinite
2023-05-05 06:15:18 -04:00
Bryce Miller
ccbbf2b1ce
load static assets from fs for debug builds
2023-05-04 19:25:55 +02:00
Gabriel Dertoni
7d0027f428
refactor: remove needles string allocation in pretty printer
...
Many times, in order to create a `ven_pretty::Doc` containing a text
node, the pattern `alloc.text(format!(...))` would be used. This code
then creates a fresh string that is then used in the `Doc`. However,
many times only a small string is necessary and so the allocation could
be optimized. The `ven_pretty` crate supports this through a `SmallString`
type. Allocating a fresh string with `format!` also moves control away
from the `DocAllocator` which isn't ideal, since it could also handle
the string allocations. So, instead of creating a fresh string, one can
simply call `alloc.as_string(format_args!(...))` and delegate the
allocation to the `DocAllocator` without any loss in expressivity. So,
in order to encorage this pattern, this commit also introduces the
`text!` macro.
In order to find all instances of the code pattern, the following
tree-sitter query was used:
```scm
(call_expression
function: (field_expression
field: (field_identifier) @field.name
(#eq? @field.name "text"))
arguments: (arguments
(macro_invocation
macro: (identifier) @macro.name
(#eq? @macro.name "format")))) @reference.call
```
2023-05-03 21:28:36 -03:00