Skip to content

Commit

Permalink
Move Core into compiler repo (#7108)
Browse files Browse the repository at this point in the history
* Add Core sources

* Remove @rescript/core from playground bundle

* Move ocaml compat modules into tests

* Remove Core__ prefix from file names

* Remove Core__ prefix from module names

* make artifacts

* __ -> _

* Fix tests

* Add Array.unsafe_get for compatibility

* CHANGELOG

* Improve cleaning in runtime build script

* Js_exn -> Exn

* Move Core Global into Pervasives
  • Loading branch information
cknitt authored Oct 20, 2024
1 parent d924f63 commit a3dee73
Show file tree
Hide file tree
Showing 275 changed files with 25,568 additions and 7,107 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
- Use FORCE_COLOR environmental variable to force colorized output https://github.com/rescript-lang/rescript-compiler/pull/7033
- Allow spreads of variants in patterns (`| ...someVariant as v => `) when the variant spread is a subtype of the variant matched on. https://github.com/rescript-lang/rescript-compiler/pull/6721
- Fix the issue where dynamic imports are not working for function-defined externals. https://github.com/rescript-lang/rescript-compiler/pull/7060
- Allow pattern matching on dicts. `switch someDict { | dict{"one": 1} => Js.log("one is one") }` https://github.com/rescript-lang/rescript-compiler/pull/7059
- Allow pattern matching on dicts. `switch someDict { | dict{"one": 1} => Js.log("one is one") }`. https://github.com/rescript-lang/rescript-compiler/pull/7059
- "ReScript Core" standard library is now included in the `rescript` npm package. https://github.com/rescript-lang/rescript-compiler/pull/7108

#### :bug: Bug fix

Expand Down
Loading

1 comment on commit a3dee73

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntax Benchmarks

Benchmark suite Current: a3dee73 Previous: e1b7fb7 Ratio
Parse RedBlackTree.res - time/run 1.2384610133333334 ms 1.2123143266666667 ms 1.02
Parse RedBlackTree.res - allocs/run 199057 words 199057 words 1
Print RedBlackTree.res - time/run 2.31604892 ms 2.3104395133333333 ms 1.00
Print RedBlackTree.res - allocs/run 236403 words 236403 words 1
Print RedBlackTreeNoComments.res - time/run 2.0969133133333333 ms 2.10057036 ms 1.00
Print RedBlackTreeNoComments.res - allocs/run 249186 words 249186 words 1
Parse Napkinscript.res - time/run 39.2105714 ms 39.28006235333333 ms 1.00
Parse Napkinscript.res - allocs/run 8670066 words 8670066 words 1
Print Napkinscript.res - time/run 73.00906005333333 ms 77.00100409999999 ms 0.95
Print Napkinscript.res - allocs/run 9776327 words 9776327 words 1
Parse HeroGraphic.res - time/run 5.28719412 ms 5.13472718 ms 1.03
Parse HeroGraphic.res - allocs/run 1219326 words 1219326 words 1
Print HeroGraphic.res - time/run 8.641284046666666 ms 8.775952553333333 ms 0.98
Print HeroGraphic.res - allocs/run 1396466 words 1396466 words 1

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.