Commit graph

75 commits

Author SHA1 Message Date
Richard Feldman
58cede45b2
Add for clauses to platform modules 2025-12-12 21:21:51 -05:00
Luke Boswell
22b1ffce82
Merge remote-tracking branch 'remote/main' into build-static-lib 2025-12-11 09:05:01 +11:00
Richard Feldman
002ad6a1ea
Merge pull request #8611 from roc-lang/fix-more-type-stuff
Support record extensions better
2025-12-10 07:55:38 -05:00
Luke Boswell
38c474176c
initial implementation 2025-12-10 15:37:13 +11:00
Richard Feldman
9226337fcc
Support record extension syntax 2025-12-09 21:48:56 -05:00
Richard Feldman
8dc837faee
Delete inspect keyword 2025-12-09 20:03:58 -05:00
Luke Boswell
433aca7548
Merge remote-tracking branch 'remote/main' into roc-build 2025-12-08 11:37:35 +11:00
Richard Feldman
325ca2b6e1
Merge remote-tracking branch 'origin/fix-inspect' into ranges 2025-12-04 11:24:53 -05:00
Richard Feldman
799dada6a0
Delete a ton of unused arguments 2025-12-04 01:45:48 -05:00
Richard Feldman
a0171786bb
Fix range bug 2025-12-03 08:03:24 -05:00
Luke Boswell
6fcecc5e77
Merge remote-tracking branch 'remote/main' into roc-build 2025-12-03 16:33:47 +11:00
Luke Boswell
77e3bc388a
support parsing of platform targets section 2025-12-03 11:12:46 +11:00
Richard Feldman
bc0b4e4067
Finish getting inspect working 2025-12-02 01:31:17 -05:00
Richard Feldman
8e8e3756ea
Add inspect keyword and tests 2025-12-02 01:19:32 -05:00
Richard Feldman
adfa93d77e
Add List.for_each! 2025-12-01 11:25:47 -05:00
Richard Feldman
5f6d5719e1
Make a nicer "return outside function" error 2025-11-24 10:25:41 -05:00
Richard Feldman
7e352a06d6
Merge pull request #8405 from roc-lang/if-without-else
Add if-without-else
2025-11-20 18:37:58 -05:00
Richard Feldman
4e2ee4e38c
Add if-without-else 2025-11-20 16:49:48 -05:00
Richard Feldman
82287dbd3a
Add support for while loops 2025-11-20 16:48:18 -05:00
Anton-4
824c243d06
more Result>Try updates (#8382)
* more Result>Try updates

* [WIP] Fix typo in Try variable names (#8383)

* Initial plan

* Add exception for 'Trys' to typos.toml

Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* not this one

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-11-14 17:10:55 +01:00
Fabian Schmalzried
a55b048dad
Change the handling of invalid single quote to improve error messages. (#8370)
* add value_not_exposed report

* Change handling of invalid single-quote.

* fix typo
2025-11-11 13:42:35 +01:00
Richard Feldman
41c6615077
Fix formatting bug 2025-11-10 23:10:30 -05:00
Jared Ramirez
dd31487702
Remove czer anytypes 2025-11-09 09:37:54 -05:00
Richard Feldman
c5d5c57377
Format backticks in misspellings as styled 2025-11-08 13:39:33 -05:00
Richard Feldman
fd8ae4c53b
Add common misspellings feature 2025-11-08 12:39:47 -05:00
Richard Feldman
c1b7650029
Improve platform modules 2025-11-03 18:53:09 -05:00
Richard Feldman
c9e269844c
Fix source location 2025-10-30 11:19:56 -04:00
Richard Feldman
356b1ffca4
Tweak error message 2025-10-28 07:09:35 -04:00
Richard Feldman
641390a400
Warn for $ in the middle of identsDisallow 2025-10-27 21:12:34 -04:00
Richard Feldman
3de2ca0729
Merge remote-tracking branch 'origin/main' into import-syntax 2025-10-24 10:41:36 -04:00
Fabian Schmalzried
0c9f85aeb5
Replace ArrayListUnmanaged with ArrayList 2025-10-23 14:21:30 +00:00
Richard Feldman
f51202709a
Rename some things 2025-10-21 21:35:47 -04:00
Richard Feldman
0df54f478f
Add support for import foo.Bar.Baz 2025-10-21 21:35:46 -04:00
Anton-4
aea973e12c
fix zig build roc 2025-10-17 13:41:28 +02:00
Anton-4
ea45b7f99f
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-0.15.1 2025-10-17 11:38:36 +02:00
Joshua Warner
5d0167b776
Remove line/col info from snapshots by default 2025-10-16 07:00:23 -07:00
Anton-4
f701a32503
fix all the things 2025-10-15 14:03:23 +02:00
Richard Feldman
5242796fe2
Update where syntax 2025-10-14 15:12:20 -04:00
Anton-4
e5fed613ce
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-1.15.1 2025-10-14 15:48:33 +02:00
Richard Feldman
f265318700
Add nested types 2025-10-06 16:44:17 -04:00
Richard Feldman
0c189b93cf
Add type modules 2025-10-04 14:44:54 -04:00
Richard Feldman
bc2946f3b3
Add associated items 2025-10-04 13:16:56 -04:00
Anton-4
b127b29d24
get rid of all deprecated things 2025-10-01 15:52:56 +02:00
Anton-4
d791285e11
Merge branch 'main' of github.com:roc-lang/roc into upgrade-to-zig-0.15.1 2025-09-22 16:55:15 +02:00
Luke Boswell
cb42d26e11
Roc platform host shim (#8214)
* use zig Builder to generate LLVM bc for platform host shim

* WIP

* Working embedded LLVM compilation

* lints

* Update test_shared_memory_system.zig

* Update main.zig

* Refactor out builder into separate file

* remove clang fallback, remove -Dllvm build flag

* WIP change platform header

* WIP no hardcoded platform entrypoints

* WIP no hardcoded entrypoints

* remove hardcoded interpreter shim entrypoint

* WIP multiple entrypoints

* WIP multiple entrypoints

* WIP alignment issue

* it's working!!

* cleanup

* fmt

* fix tests and snapshots

* fix cross-compile

* WIP fix linking linux

* improved debug logging in rocRun

* WIP fix linux segfaults

* cleanup stray dbgs

* fix Windows linking

* WIP remove std.debug.print in prebuilt shim

* remove libc stubs, try C shim for platform host main

* WORKING ON LINUX!!!

* WIP fixing int platform

* prevent double mapping of shared memory

* WIP

* remove clang fallback

* cleanup test platforms

* vendor linux object files for musl and gnu in test platforms

* fix windows __main export

* typo

* avoide hardcoding libc path and dynamic linker on linux

* some fixes

* try CI fix for linux ARM64

* try use system CRT for ARM64

* use absolute pats for vendored CRT

* minimal roc build

* use target os for filename not host os

* implement app stubs for test platforms

* fix glibc

* WIP cross compilation

* fix run, fix build for native

* Merge remote/main

* fix macos

* add bookends

* remove hosts

* fix cross-compile for linux on macos

* fix files paths for Windows

* Update main.zig

* test ubu 24.04 too

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* debug: log all used instructions

* fmt

* get bad instruction with gdb

* install gdb

* Revert last 4 commits

* simpler cross-compile arm64 runtime files

* add minimal cross-compilation for glibc

* simplify stub generation

* Update test_int_platform.sh

* Update ci_cross_compile.yml

* Update ci_cross_compile.yml

* try alpine3.18 x64musl files

* Claude's fix + removed CPU instructions

* fix fuzz crash empty after merge

* update snapshot

* restore full CI

* some cleanup

* remove debugging from CI - print all supported CPU instructions

* try using generic when LLVM compiles app stub

* enhanced error handling for app stub compilation using LLVM

* check machine ABI on linux

* try more debugging

* update test script to inidicate truncated error logs, temporarily display everything for arm64 linux errors

* fix missing arm64 libc search paths

* back to normal CI

* try without .git 

See https://github.com/ziglang/zig/issues/21316#issuecomment-2408071050

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* undo .git change

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* retry zig build command

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* different retry strategy

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 13:15:23 +02:00
Isaac Van Doren
3bd2a07cd2
rename std.ArrayListUnmanaged to std.ArrayList 2025-09-06 20:48:49 -05:00
JRI98
18f72dbed6
Fix fuzz crash by correctly handling incomplete imports
zig build repro-parse -- -b bW9kdWxlW11lPSIiIgppbXBvcnQjXA== -v
2025-08-28 18:42:08 +01:00
Fabian Schmalzried
1d1837d239 first draft to parse multiline strings
TODO: Can and fix fmt
2025-08-18 20:44:11 +00:00
Richard Feldman
a0a5d81bdc
Fix missing newline 2025-08-16 21:48:33 -04:00
Richard Feldman
124fc81300
Drop some unnecessary blank lines 2025-08-16 13:59:09 -04:00