Commit graph

6084 commits

Author SHA1 Message Date
Brendan Hansknecht
ebc6bd3f45
add more impls and memcpy 2023-06-02 15:23:05 -07:00
Brendan Hansknecht
0e2c3e4723
add actual folly implementation of memcpy 2023-06-02 15:23:05 -07:00
Brendan Hansknecht
77624f627b
better extract musl lib 2023-06-02 15:23:05 -07:00
Brendan Hansknecht
159f95aad1
add musl memcpy and avx2 dispatching 2023-06-02 15:23:04 -07:00
Brendan Hansknecht
ca9938bf7c
add memcpy impl to builtins 2023-06-02 15:23:04 -07:00
Brendan Hansknecht
58067f936a
Merge pull request #5466 from KilianVounckx/list-update
Add List update function
2023-06-02 09:03:22 +00:00
Kilian Vounckx
7f5e6299ab
Generate tests 2023-06-01 18:40:31 +02:00
Folkert de Vries
e59404b6fa
Merge pull request #5495 from roc-lang/dev-backend-nullable-wrapped
Dev backend nullable wrapped
2023-06-01 17:11:14 +02:00
Brendan Hansknecht
121d15a2a6
Merge pull request #5423 from roc-lang/dev-backend-linked-list
Dev backend linked list
2023-06-01 13:59:28 +00:00
Richard Feldman
f45b952688
Merge pull request #5493 from fdbeirao/disallow-slash-lookalikes-on-package-url
Disallow @ and slash lookalikes on package url
2023-06-01 06:35:03 -04:00
KilianVounckx
8b85f966fd
Merge branch 'roc-lang:main' into list-update 2023-06-01 11:16:33 +02:00
Folkert de Vries
6d6e3b9c60
Merge pull request #5496 from roc-lang/remove-libc-instrinsic
Stop using llvm instrinsics that just call libc
2023-06-01 10:46:27 +02:00
Brendan Hansknecht
ccb434bae1
Update cli_run cli_args test
Note: this answer is less correct,
but that is because zigs sub answers are more correct.

Zig specifically gives a more accurate answer for Num.log 3.
old answer:     1.0986122886681098
zig's answer:   1.0986122886681096
correct answer: 1.098612288668109691395

Both answers are technically correct when limited to doubles.
Zig's answer is closer to truly correct.
That said, the more correct answer leads to a slight rounding error in the final division.
So the new output is 4.000000000000001 instead of 4.0
2023-05-31 22:15:05 -07:00
Brendan Hansknecht
7683c5ae53
Stop using llvm instrinsics that just call libc
In a future PR. I will change zig to insure that all of these instrinsics
use musl directly and do not call out to the linked libc.
2023-05-31 20:00:04 -07:00
Folkert
f6fafdb019
nullable unwrapped for the dev backend 2023-06-01 00:02:38 +02:00
Folkert
0adf075123
make bool intern with semanctis 2023-05-31 23:59:40 +02:00
Folkert
f1375b27cc
fix mono tests, again 2023-05-31 23:59:26 +02:00
Folkert
4af9788b51
fix register logic bug in reset/reuse 2023-05-31 23:57:38 +02:00
Folkert
0ace44ae8c
implement reset/reuse in the dev backend 2023-05-31 23:57:38 +02:00
Folkert
f609ec68fc
update mono tests?! 2023-05-31 23:57:38 +02:00
Folkert
dfed7b95e6
enable more tests 2023-05-31 23:57:37 +02:00
Folkert
8833096a07
clippy 2023-05-31 23:57:37 +02:00
Folkert
c24312a045
fix logic error 2023-05-31 23:57:37 +02:00
Folkert
58d4ae91d2
clippy 2023-05-31 23:57:36 +02:00
Folkert
e33c2b3c84
first working linked list test 2023-05-31 23:57:36 +02:00
Folkert
3364d03fcc
fix debug asserts in dev backend 2023-05-31 23:57:36 +02:00
Folkert
97aba2da41
add static offset to ptr read 2023-05-31 23:57:35 +02:00
Fábio Beirão
ed0e445052
Fix formatting errors
Contributes to #5487
2023-05-31 23:09:09 +02:00
Fábio Beirão
778a0dcb67
Adjust the misleading characters to use the \u{} syntax, but still show the rendered example
Contributes to #5487
2023-05-31 22:15:45 +02:00
Fábio Beirão
24b96d872c
Refactor the https tests to not use should_panic
Thanks for the excellent tip, @rtfeldman
Contributes to #5487
2023-05-31 22:10:19 +02:00
Fábio Beirão
6448326e85
Change the implementation to use chars instead of strings
Also include a performance improvement by only iterating over the url's characters once
Contributes to #5487
2023-05-31 21:47:56 +02:00
Fábio Beirão
5b186fbebe
Move the unicode descriptions to be inline with the array items
Improves readability
Contributes to #5487
2023-05-31 21:42:20 +02:00
Fábio Beirão
d633fbf89f
Provide a better explanation to the motivation for disalowing misleading characters
Contributes to #5487
2023-05-31 21:37:50 +02:00
Tero Laxström
17be5a6fd1
Fix typo in gen-dev for float_add_overflow test 2023-05-31 20:52:10 +03:00
Fábio Beirão
a557738791
Add a few unit tests to PackageMetadata
Contributes to #5487
2023-05-31 18:51:28 +02:00
Fábio Beirão
5744387693
Add "@" to the list of misleading characters
Contributes to #5487
2023-05-31 18:50:49 +02:00
Fábio Beirão
842f8b9941
Adjust packaging/https to check for misleading unicode characters
Related to #5487
2023-05-31 16:48:33 +02:00
Anton-4
f6b76f2df5
Num.exp is Num.pow now
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-05-31 15:28:31 +02:00
Anton-4
0c50ee0458
Merge pull request #5485 from roc-lang/manual-compiler-rt
Add all fns in compiler-rt that builtins are known to depend on
2023-05-31 10:59:09 +02:00
Brendan Hansknecht
e7906b30a9
add other compiler-rt functions in builtins.o 2023-05-30 14:38:10 -07:00
Brendan Hansknecht
a41611b553
allow ingested compiler-rt function in windows surgical linker 2023-05-30 12:11:15 -07:00
Brendan Hansknecht
fe4577ce4c
fix typo 2023-05-30 09:38:30 -07:00
Brendan Hansknecht
81e8812f38
Add all fns in compiler-rt that builtins are known to depend on
Also removes the workaround in the surigical linker.
This should mean we should get clear errors if we missed a function instead of crashes/segfaults.
2023-05-30 09:21:59 -07:00
Ayaz
be077ed046
Merge pull request #5130 from roc-lang/big-compiler-doc
Compiler design overview doc
2023-05-30 10:40:15 -05:00
Anton-4
8c23053c1a
Merge pull request #5484 from fdbeirao/fix-small-typo-havs
Fix small typo on user_error macro
2023-05-30 16:46:32 +02:00
Fábio Beirão
9289f28939
Fix small typo on user_error macro
Unless this is an inside joke that I am not aware of 😅
2023-05-30 15:47:38 +02:00
J.Teeuwissen
162e6bbb90
manual default 2023-05-30 11:01:13 +02:00
J.Teeuwissen
f0addf5300
feedback 2023-05-30 10:55:38 +02:00
J.Teeuwissen
93ea086115
Merge branch 'main' into record-update-index-top 2023-05-30 10:47:19 +02:00
Kilian Vounckx
d43a78d000
Add update to symbols table and auto generate test_mono 2023-05-30 09:07:15 +02:00