Commit Graph

1725 Commits

Author SHA1 Message Date
Richard Feldman
dfcf086910
Rename decref_list 2023-03-18 18:36:30 -04:00
dankeyy
c6476ee440
Update README.md
Signed-off-by: dankeyy <dankeyy@protonmail.com>
2023-03-19 00:13:10 +02:00
dankeyy
ff154a2f42
show more examples in readme 2023-03-19 00:04:58 +02:00
dankeyy
773b5be769
stabilize roc_panic 2023-03-18 23:39:12 +02:00
dankeyy
a750084580
dont need these bytes 2023-03-18 23:37:18 +02:00
Richard Feldman
6845dae2b2
Handle seamless slices when decrementing RocStr 2023-03-18 15:14:24 -04:00
Richard Feldman
f862540c65
Account for seamless slices in C roc_str_len 2023-03-18 12:45:07 -04:00
Richard Feldman
75ca8816c3
Refactor out some C helper functions 2023-03-18 10:02:47 -04:00
dankeyy
fc52e18531
testing java exceptions 2023-03-18 15:23:40 +02:00
Richard Feldman
05f63573c2
Make some files POSIX compliant (end in newline) 2023-03-17 21:55:21 -04:00
Richard Feldman
6f8cfc6229
Free Roc heap allocations in ts interop example 2023-03-17 21:49:21 -04:00
Richard Feldman
da503a725b
Fix empty list bug in several interop examples 2023-03-17 21:42:36 -04:00
Richard Feldman
51265f16d1
Drop obsolete host.c from ts-interop 2023-03-17 21:28:41 -04:00
Richard Feldman
ea0adb211e
Fix TS interop readme typos 2023-03-17 21:26:08 -04:00
Richard Feldman
29caaf9d61
Use code formatting on gcc 2023-03-17 21:25:16 -04:00
Richard Feldman
71331cc945
Move some .gitignore entries to the root 2023-03-17 21:24:37 -04:00
dankeyy
6724475724
fix factorial segfault 2023-03-17 21:36:02 +02:00
dankeyy
4ed6609974
mistyped fac, unstable recursive call still 2023-03-17 20:39:17 +02:00
dankeyy
94f9c6712d
stabilize record usage in requires, add examples 2023-03-17 19:40:42 +02:00
Anton-4
1061b7e8c0
Merge branch 'main' of github.com:roc-lang/roc into glue-getters-rtfeldman 2023-03-17 12:02:35 +01:00
Folkert de Vries
bd3982241e
Merge pull request #5036 from roc-lang/tutorial_updates
tutorial: update to basic-cli 0.2.1, fix typos
2023-03-17 11:46:36 +01:00
Luke Boswell
c7f8ba6ded
fix subfolder generation 2023-03-17 12:58:40 +11:00
Luke Boswell
03443ec328
remove file accidentally added 2023-03-17 12:33:03 +11:00
Luke Boswell
bdca47cc54
check code before opening file 2023-03-17 12:31:31 +11:00
Richard Feldman
2347565bf0
Drop some debugging code 2023-03-16 19:22:44 -04:00
dankeyy
8e40725d25
fix comments 2023-03-16 22:28:44 +02:00
dankeyy
35560efc0a
reorganize, simplify build, multiple methods WIP 2023-03-16 22:24:29 +02:00
Richard Feldman
15e0f416d0
Call Roc from Node 2023-03-16 10:29:01 -04:00
Richard Feldman
f80e839061
Split out node and wasm in typescript-interop 2023-03-16 08:51:06 -04:00
Richard Feldman
ca900550a2
Add roc code to ts-interop example 2023-03-16 08:31:26 -04:00
Richard Feldman
7ce4d3b22f
Add examples/typescript-interop 2023-03-16 08:20:23 -04:00
Luke Boswell
239f79d26f
roc format 2023-03-15 21:17:54 +11:00
Luke Boswell
bea3a4f2f7
add static code file import for site gen 2023-03-15 20:59:58 +11:00
dankeyy
1dd46c985f
pass number straight away + renames for clarity 2023-03-14 15:56:08 +02:00
Folkert
fdf1489df6
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-03-14 01:01:26 +01:00
Folkert
af67894b95
more formatting 2023-03-13 23:29:28 +01:00
Folkert
741abe9a6d
format roc code 2023-03-13 23:06:40 +01:00
Brendan Hansknecht
dc1a7dcd12
try using roc_alloc and roc_dealloc (aka malloc and free) for buffers in false 2023-03-13 14:53:20 -07:00
Brendan Hansknecht
d88894c365
avoid zero sized allocation in false 2023-03-13 14:08:24 -07:00
Brendan Hansknecht
e32c5f6514
standardize on decref instead of deinit for name 2023-03-13 14:08:23 -07:00
Anton-4
fe066e5567
Merge branch 'main' of github.com:roc-lang/roc into tutorial_updates 2023-03-13 19:46:05 +01:00
Luke Boswell
3ce20f74d9
support recursive folders 2023-03-13 19:18:39 +11:00
dankeyy
d91a90774b
dont decref too early 2023-03-12 01:02:58 +02:00
dankeyy
1866b8845a
bad formatting 2023-03-11 23:33:20 +02:00
dankeyy
5d13288487
add clojure example 2023-03-11 23:27:44 +02:00
dankeyy
a59d65ff86
add panic comment 2023-03-11 23:22:39 +02:00
Richard Feldman
512b9361bf
Merge pull request #5077 from lukewilliamboswell/builtin-json
JSON decoder improvements
2023-03-11 15:28:07 -05:00
dankeyy
ffa26e0243
Update README.md
Signed-off-by: dankeyy <dankeyy@protonmail.com>
2023-03-11 22:20:37 +02:00
dankeyy
54d552489e
treemoji doesn't show up on browser
Signed-off-by: dankeyy <dankeyy@protonmail.com>
2023-03-11 21:51:12 +02:00
dankeyy
699f419d6d
this made the jvm segfault on a second call :p 2023-03-11 21:43:29 +02:00
dankeyy
8d501ab773
Update README.md
Signed-off-by: dankeyy <dankeyy@protonmail.com>
2023-03-11 21:33:38 +02:00
dankeyy
9eb5206bc9
added readme + renames 2023-03-11 21:29:41 +02:00
dankeyy
15252b4f8d
make it static 2023-03-11 21:29:41 +02:00
dankeyy
31195b405c
turn java code into a package 2023-03-11 21:29:40 +02:00
dankeyy
3991c334f7
remove json dep 2023-03-11 21:29:40 +02:00
dankeyy
f9974f1d32
yeet json 2023-03-11 21:29:40 +02:00
dankeyy
2d004dc57b
fixed emojis 2023-03-11 21:29:40 +02:00
dankeyy
59f815e0d3
Merge branch 'roc-lang:main' into jvm-interop 2023-03-11 12:54:22 +02:00
Luke Boswell
b1e73dc8ef
add highlighting to tutorial inline snippets 2023-03-10 13:07:50 +11:00
Folkert
fe15a2e79c
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-03-08 19:46:00 +01:00
Anton-4
5bc4881c05
Merge remote-tracking branch 'upstream/main' into docs-highlight 2023-03-08 14:35:55 +01:00
Luke Boswell
db37520a4f
Merge remote-tracking branch 'remote/main' into builtin-json 2023-03-07 17:12:47 +11:00
Brendan Hansknecht
f42f61e271
run a toml formatter and then clean it up a bit 2023-03-06 19:47:57 -08:00
Brendan Hansknecht
43224dcca9
remove less important Cargo.lock files that we probably shouldn't track 2023-03-06 13:01:07 -08:00
Folkert
8546f2c52b
fix some clippy warnings in platforms 2023-03-06 21:18:30 +01:00
Folkert
86671d659c
work around allocation of size 0 2023-03-06 21:12:04 +01:00
Luke Boswell
5e40e580cb
update docs syntax highlighting, remove unsused code 2023-03-06 22:20:49 +11:00
Luke Boswell
64a614396a
fix for ruby-interop example 2023-03-06 17:37:12 +11:00
Folkert
bedca00850
clippy in platform 2023-03-05 21:35:49 +01:00
Folkert
d224992bc1
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-03-05 17:24:05 +01:00
Folkert
769a4c415b
update remaining cli tests 2023-03-05 16:57:51 +01:00
Luke Boswell
fbc1c7af2a
support more Tokens including Idents 2023-03-05 13:23:56 +01:00
Luke Boswell
1b676ca140
fix static site 2023-03-05 13:23:56 +01:00
Anton-4
89350a1c56
Merge branch 'main' of github.com:roc-lang/roc into cli_run_race_condition 2023-03-04 14:12:02 +01:00
Folkert
bfbf1c7d4e
revert rocLovesRust to main 2023-03-01 21:57:10 +01:00
Folkert
4a9990de62
new glue example 2023-03-01 21:56:25 +01:00
Anton-4
7b5989e4ef
Merge branch 'main' of github.com:roc-lang/roc into cli_run_race_condition 2023-03-01 19:50:52 +01:00
Luke Boswell
f51aef42bb
add support for slashes 2023-03-01 19:06:15 +11:00
Luke Boswell
093f8e297d
add qmark to static-site 2023-03-01 18:40:29 +11:00
Luke Boswell
0c7bb163d5
also separate out tokens for css styling 2023-03-01 18:17:52 +11:00
Luke Boswell
1590b30b19
Add a lexing-based 'highlight' mode to the parser
basic syntax highlighting

added more syntax highlighting coverage

add example of a markdown table with styling

move FIXED_TOKEN logic into highlight

refactor highlight, add support for backpassing

escape html from source code

fix bug with <pre> tag ordering

refactor out html from roc_parse

remove test, put highlight functionality into separate file

fix typo
2023-02-28 17:03:49 +11:00
Anton-4
f07c126133
lock zig platform building 2023-02-27 18:01:32 +01:00
Anton-4
20ba7494fa
removed unused files 2023-02-27 17:21:40 +01:00
Folkert
fa05c49693
correct the name of the size() exposed function 2023-02-26 14:23:10 +01:00
Folkert
fee5e978f7
use roc_alloc to store unsized types 2023-02-25 16:45:58 +01:00
Folkert
f232bdda4f
fix some glue formatting 2023-02-25 16:32:10 +01:00
Folkert
6aa73b3b1f
implement stderr writing in the rust platform 2023-02-25 16:05:33 +01:00
Folkert
35980e50b8
fix function getters 2023-02-25 15:47:20 +01:00
Folkert
033618f3f4
fixes to get rocLovesRust to work 2023-02-22 21:17:50 +01:00
Folkert
0d4135c57a
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-02-22 21:11:39 +01:00
Anton-4
091e043168
removed rodio and deps 2023-02-21 15:38:11 +01:00
dankeyy
8510e6d8cd
ignore headers jars sos 2023-02-19 15:43:52 +02:00
dankeyy
e67645adcb
initial demo working! 2023-02-18 16:09:23 +02:00
Anton-4
431b4c2811
Merge branch 'main' of github.com:roc-lang/roc into tutorial_updates 2023-02-18 09:38:41 +01:00
dankeyy
8fec0ff7e9
Update README.md
Signed-off-by: dankeyy <dankeyy@protonmail.com>
2023-02-17 01:19:10 +02:00
dankeyy
a871ec5d4a
json loads, remove quotes 2023-02-16 17:39:10 +02:00
dankeyy
fa59c5f19f
Update README.md
Signed-off-by: dankeyy <dankeyy@protonmail.com>
2023-02-16 15:21:17 +02:00
dankeyy
6bd23b4dbf
cleanup and clarify build 2023-02-16 15:16:13 +02:00
dankeyy
e76efb49a2
end by length, not null byte 2023-02-16 14:28:51 +02:00
dankeyy
54fc0f7fb1
added readme 2023-02-16 13:48:31 +02:00
dankeyy
34c0cf1ed6
another option for string creation 2023-02-16 13:14:54 +02:00
dankeyy
69ff8b93c2
added build script 2023-02-16 11:44:42 +02:00
dankeyy
ecb8cac774
change to setuptools, remove unneeded fields 2023-02-16 11:41:42 +02:00
dankeyy
b18ea846a3
add gitignore 2023-02-16 11:40:32 +02:00
dankeyy
a080fcae27
first demo working! 2023-02-16 10:19:11 +02:00
Anton-4
cb599551de
update to basic-cli 0.2.1, fix typos 2023-02-15 19:55:30 +01:00
Folkert
b6bae82913
hello world works 2023-02-14 22:11:23 +01:00
Folkert
6c15284a8f
more wip; now we just need to generate the exposed procs at the right time 2023-02-08 22:56:38 +01:00
Anton-4
951f01eee0
better name, extra test 2023-01-30 15:54:16 +01:00
Christopher Bertels
c66bcff0a3
Use hello as app name for hello.roc example
This is to prevent a name collision with breakout.roc example located
in the same directory.
2023-01-30 14:14:48 +01:00
Brian Carroll
6fba267df1
Fix JSON encoding bug 2023-01-27 23:44:30 +00:00
Ayaz Hafiz
735d7cb4df
Address more U32 usages in place of U64 on client side 2023-01-27 17:37:12 -06:00
Ayaz Hafiz
f83ebb7bc7
Use U32 as array index 2023-01-27 17:36:32 -06:00
Ayaz Hafiz
add50f04e4
Update other Nat usages in virtual dom 2023-01-27 17:31:49 -06:00
Ayaz Hafiz
b86e4763f0
Update use of Nat encoding in virtual dom 2023-01-27 17:24:24 -06:00
Brian Carroll
dd97993219
formatting 2023-01-26 20:45:30 +00:00
Brian Carroll
8effab418d
Fix a bug in digit parser 2023-01-26 20:45:30 +00:00
Brian Carroll
550675af08
parser: remove unused import 2023-01-26 20:45:30 +00:00
Brian Carroll
19db1f6214
Parse numbers instead of strings: crash in Parser.digits 2023-01-26 20:45:30 +00:00
Richard Feldman
4dfbb689e2
Fix smart quotes in tutorial 2023-01-25 14:55:18 -05:00
Anton-4
1f2b39a521
Merge branch 'main' of github.com:roc-lang/roc into rust1_65 2023-01-23 18:27:33 +01:00
Folkert
1ba4d9d735
WIP 2023-01-22 11:53:02 +01:00
Anton-4
ff30dfaf9c
use basic-cli 0.2.0 2023-01-21 19:06:06 +01:00
Richard Feldman
6bdd51502d
Merge pull request #4936 from roc-lang/dependabot/cargo/examples/gui/platform/bumpalo-3.12.0
Bump bumpalo from 3.9.1 to 3.12.0 in /examples/gui/platform
2023-01-21 10:58:44 -05:00
dependabot[bot]
f93e03f4e3
Bump bumpalo from 3.9.1 to 3.12.0 in /examples/gui/platform
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.9.1 to 3.12.0.
- [Release notes](https://github.com/fitzgen/bumpalo/releases)
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.9.1...3.12.0)

---
updated-dependencies:
- dependency-name: bumpalo
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-21 15:05:33 +00:00
dependabot[bot]
de34176e63
Bump bumpalo from 3.9.1 to 3.12.0 in /examples/gui/breakout/platform
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.9.1 to 3.12.0.
- [Release notes](https://github.com/fitzgen/bumpalo/releases)
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.9.1...3.12.0)

---
updated-dependencies:
- dependency-name: bumpalo
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-21 15:05:33 +00:00
Folkert de Vries
541c66be7f
Merge pull request #4934 from roc-lang/dependabot/cargo/examples/cli/cli-platform/bumpalo-3.12.0
Bump bumpalo from 3.11.0 to 3.12.0 in /examples/cli/cli-platform
2023-01-21 16:04:18 +01:00
dependabot[bot]
c5c3dbeb31
Bump bumpalo from 3.11.0 to 3.12.0 in /examples/cli/cli-platform
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.11.0 to 3.12.0.
- [Release notes](https://github.com/fitzgen/bumpalo/releases)
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.11.0...3.12.0)

---
updated-dependencies:
- dependency-name: bumpalo
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-20 22:23:22 +00:00
Anton-4
978bb71316
use patched basic-cli release
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-01-20 16:09:49 +01:00
Folkert
c622cebea6
correct codegen for calling the extern 2023-01-20 15:07:49 +01:00
Anton-4
ee45107900
roc fmt 2023-01-20 14:52:25 +01:00
Anton-4
e8ac49ce11
try basic-cli 0.1.4
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-01-20 14:16:14 +01:00
Folkert
01b6d234ff
WIP 2023-01-18 23:18:09 +01:00
Folkert
bb44063419
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2023-01-18 20:06:26 +01:00
Anton-4
97cafd44cd
use basic-cli 1.3
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-01-18 15:27:18 +01:00
Luke Boswell
d14d410153
added basic parsing example to ci 2023-01-18 13:49:38 +01:00
Luke Boswell
6790848be5
remove redundant zig platform, fix tests 2023-01-18 12:52:19 +01:00
Anton-4
bbf35af8fa
Merge branch 'main' into rust1_65
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-01-17 18:14:30 +01:00
Anton-4
a97c53d7ca
1.65 changes and clippy fixes 2023-01-17 18:09:16 +01:00
Luke Boswell
048720b34f
WIP parser packaging 2023-01-16 19:06:48 +01:00
Folkert
c4e6dcff22
optimize Parser.Core
shaves 1 second off of the HTTP parser tests
2023-01-15 17:23:45 +01:00
Folkert de Vries
43a8d1e610
Merge pull request #4885 from roc-lang/weakening-4
Weakening 4
2023-01-14 17:23:40 +01:00
Ayaz Hafiz
3d0a0a4a99
Update more dict/set references 2023-01-14 15:33:54 +01:00
Folkert
2c9e2524c1
Revert "reproduce crash in expect with Lists of different length"
This reverts commit 12350410df.

issue has been resolved by intervening commits
2023-01-14 15:10:30 +01:00
Folkert
148ec3752d
fix bug with record field ordering in repl eval 2023-01-14 15:09:12 +01:00
Brian Carroll
12350410df
reproduce crash in expect with Lists of different length 2023-01-14 08:50:50 +00:00
Folkert
ee99ae2372
WIP 2023-01-13 20:42:23 +01:00
Folkert
6ead631c82
generate the RocFunction struct 2023-01-11 23:05:32 +01:00
Anton-4
05b6056d37
update README 2023-01-11 16:52:58 +01:00
Brian Carroll
f106eb8c9d
examples/parser: rename apply->keep 2023-01-10 23:02:41 +00:00