You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes are listed [here](https://github.com/rescript-lang/rescript-compiler/blob/master/Changes.md#83), this is a large release, and we will go through some highlighted changes.
20
+
The changes are listed [here](https://github.com/rescript-lang/rescript/blob/master/Changes.md#83), this is a large release, and we will go through some highlighted changes.
21
21
22
22
23
23
@@ -122,7 +122,7 @@ Now user can pick up their js file extension support per module format:
122
122
123
123
## More flexible filename support
124
124
125
-
To have better integration with other [JS infrastructures](https://github.com/rescript-lang/rescript-compiler/issues/4624),
125
+
To have better integration with other [JS infrastructures](https://github.com/rescript-lang/rescript/issues/4624),
126
126
for example, Next.js/React Native, we allow file names like `404.res`,
127
127
`Button.Android.res` so that it can just be picked up by those tools
The changes are listed [here](https://github.com/rescript-lang/rescript-compiler/blob/master/Changes.md#841).
22
+
The changes are listed [here](https://github.com/rescript-lang/rescript/blob/master/Changes.md#841).
23
23
24
24
We will go through some highlighted changes.
25
25
@@ -33,11 +33,10 @@ In this release, we fix the integrity of `bsb -make-world` which allows user to
33
33
The fix is well implemented that people who don't do such modifications will not pay for it.
34
34
35
35
This is one of the highest desired feature request based on the
36
-
[user feedback](https://github.com/rescript-lang/rescript-compiler/issues/4361#issuecomment-739538789), so we will expand a bit here why it is tricky
37
-
to implement it without compromising performance.
36
+
[user feedback](https://github.com/rescript-lang/rescript/issues/4361#issuecomment-739538789), so we will expand a bit here why it is tricky to implement it without compromising performance.
38
37
39
38
In ReScript compilation scheme, dependencies as packages are treated as a black box,
40
-
changes of dependencies should be *transitive*. The is due to that we have cross module
39
+
changes of dependencies should be _transitive_. The is due to that we have cross module
41
40
optimizations and the binary interface itself is a hash of its dependencies.
42
41
So for a package dependency chain: A -> B -> C, if A changes and B does not change, C still needs get rebuilt.
43
42
Because the intermediate output of B may still change due to the change of A.
@@ -68,6 +67,6 @@ of such stale outptu, such stale `List.cmi` file will break the integrity of the
68
67
In this release, we introduced a more robust algorithm that will always remove stale output before the build so
69
68
that such integrity is not broken.
70
69
71
-
Last but not the least, we continue improving the readability, debuggability of the [generated output](https://github.com/rescript-lang/rescript-compiler/pull/4858) : )
70
+
Last but not the least, we continue improving the readability, debuggability of the [generated output](https://github.com/rescript-lang/rescript/pull/4858) : )
You can also try our new release in the [Online Playground](/try).
24
24
25
-
In this post we will highlight the most notable changes. The full changelog for this release can be found [here](https://github.com/rescript-lang/rescript-compiler/blob/master/Changes.md#90).
25
+
In this post we will highlight the most notable changes. The full changelog for this release can be found [here](https://github.com/rescript-lang/rescript/blob/master/Changes.md#90).
26
26
27
27
## Compiler Improvements
28
28
29
29
### New External Stdlib Configuration
30
30
31
-
This is a long-awaited [feature request](https://github.com/rescript-lang/rescript-compiler/pull/2171).
31
+
This is a long-awaited [feature request](https://github.com/rescript-lang/rescript/pull/2171).
32
32
33
33
Our compiler comes with a set of stdlib modules (such as `Belt`, `Pervasives`, etc.) for core functionality. Compiled ReScript code relies on the JS runtime version of these stdlib modules.
34
34
@@ -47,7 +47,7 @@ We made a small [demo repo](https://github.com/bobzhang/zero-cost-rescript) and
47
47
48
48
### Improved Code Generation for Pattern Matching
49
49
50
-
We fine-tuned our pattern matching engine to optimize the JS output even more. Here is an example of a pretty substantial optimization, based on [this issue](https://github.com/rescript-lang/rescript-compiler/issues/4924):
50
+
We fine-tuned our pattern matching engine to optimize the JS output even more. Here is an example of a pretty substantial optimization, based on [this issue](https://github.com/rescript-lang/rescript/issues/4924):
51
51
52
52
```res
53
53
type test =
@@ -87,7 +87,7 @@ function test(x) {
87
87
88
88
As you can see, the 9.0 compiler removes all the unnecessary `typeof` checks!
89
89
90
-
This is possible because our optimizer will try to analyze several predicates and get rid of redundant ones. More diffs can be found [here](https://github.com/rescript-lang/rescript-compiler/pull/4927/files?file-filters%5B%5D=.js).
90
+
This is possible because our optimizer will try to analyze several predicates and get rid of redundant ones. More diffs can be found [here](https://github.com/rescript-lang/rescript/pull/4927/files?file-filters%5B%5D=.js).
91
91
92
92
Another important improvement is that we fixed the pattern match offset issue, which lead to the consequence that magic numbers will not be generated for complex pattern matches anymore.
Copy file name to clipboardExpand all lines: _blogposts/2021-05-07-release-9-1.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ description: |
10
10
11
11
## Exciting Improvements in ReScript 9.1
12
12
13
-
Our recent few releases of ReScript contains [lots of improvements](https://github.com/rescript-lang/rescript-compiler/blob/3134392a364b70c9c172aa6c1dbaa1ac6580265d/Changes.md#91), among which are a few standout features we'd like to further promote. Hope you're as excited as we are about these! It goes without saying, our [updated editor plugin](https://forum.rescript-lang.org/t/ann-rescript-vscode-1-1-1-released/1542/3) works with the new releases.
13
+
Our recent few releases of ReScript contains [lots of improvements](https://github.com/rescript-lang/rescript/blob/3134392a364b70c9c172aa6c1dbaa1ac6580265d/Changes.md#91), among which are a few standout features we'd like to further promote. Hope you're as excited as we are about these! It goes without saying, our [updated editor plugin](https://forum.rescript-lang.org/t/ann-rescript-vscode-1-1-1-released/1542/3) works with the new releases.
14
14
15
15
### New NPM Package
16
16
@@ -159,6 +159,6 @@ let helloUnicode = (x) =>{
159
159
160
160
## Conclusion
161
161
162
-
Don't miss our various other improvements in [our changelog](https://github.com/rescript-lang/rescript-compiler/blob/3134392a364b70c9c172aa6c1dbaa1ac6580265d/Changes.md#91). As always we try to keep our changes performant, lean and robust. We hope you'll enjoy these.
162
+
Don't miss our various other improvements in [our changelog](https://github.com/rescript-lang/rescript/blob/3134392a364b70c9c172aa6c1dbaa1ac6580265d/Changes.md#91). As always we try to keep our changes performant, lean and robust. We hope you'll enjoy these.
Copy file name to clipboardExpand all lines: _blogposts/2022-08-25-release-10-0-0.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ReScript version 10 is available! Version 10 is a culmination of over a year's w
14
14
npm install rescript@10
15
15
```
16
16
17
-
All changes are listed [here](https://github.com/rescript-lang/rescript-compiler/blob/10.0_release/CHANGELOG.md). Let's take a tour of a few of the features we're extra excited about.
17
+
All changes are listed [here](https://github.com/rescript-lang/rescript/blob/10.0_release/CHANGELOG.md). Let's take a tour of a few of the features we're extra excited about.
18
18
19
19
## Faster builds with native M1 support
20
20
Users with M1 chips should see a notable speedup, as the new ReScript version has full native support for M1.
@@ -27,9 +27,9 @@ let str = "Σ"
27
27
28
28
You can also pattern match on Unicode characters:
29
29
```res
30
-
switch someCharacter {
31
-
| 'Σ' => "what a fine Unicode char"
32
-
| _ => "Unicode is fun"
30
+
switch someCharacter {
31
+
| 'Σ' => "what a fine Unicode char"
32
+
| _ => "Unicode is fun"
33
33
}
34
34
```
35
35
@@ -79,7 +79,7 @@ Version 10 brings the building blocks needed for a number of exciting new featur
79
79
80
80
## Upgrade guide
81
81
82
-
Please see the detailed [changelog](https://github.com/rescript-lang/rescript-compiler/blob/10.0_release/CHANGELOG.md) for a list of breaking changes.
82
+
Please see the detailed [changelog](https://github.com/rescript-lang/rescript/blob/10.0_release/CHANGELOG.md) for a list of breaking changes.
83
83
Each breaking change lists suggestions on how to upgrade your project.
84
84
This can be out of your control in case of dependencies. In that case, please raise issues with the maintainers of those libraries.
Copy file name to clipboardExpand all lines: _blogposts/2023-02-02-release-10-1.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ This version comes with two major language improvements we've all been waiting f
27
27
28
28
Alongside the major changes, there have been many bugfixes and other improvements that won't be covered in this post.
29
29
30
-
Feel free to check the [Changelog](https://github.com/rescript-lang/rescript-compiler/blob/master/CHANGELOG.md#1011) for all the details.
30
+
Feel free to check the [Changelog](https://github.com/rescript-lang/rescript/blob/master/CHANGELOG.md#1011) for all the details.
31
31
32
32
## New `async` / `await` syntax
33
33
@@ -293,16 +293,16 @@ Our contributors are already one step ahead and are currently working on improve
293
293
- New tooling to generate markdown from docstrings (module, type and value level). This will be super simple, but very effective.
294
294
- Explorations for a [localized documentation page](https://forum.rescript-lang.org/t/translation-project-rescript-lang-org/4022) (currently in a slowed-down exploration phase, but we will be getting there)
295
295
296
-
Check out the [v11](https://github.com/rescript-lang/rescript-compiler/issues?q=is%3Aopen+is%3Aissue+milestone%3Av11.0) milestone on our `rescript-lang` repo for more details on future improvements.
296
+
Check out the [v11](https://github.com/rescript-lang/rescript/issues?q=is%3Aopen+is%3Aissue+milestone%3Av11.0) milestone on our `rescript-lang` repo for more details on future improvements.
297
297
298
298
## Acknowledgements
299
299
300
-
As always, we want to thank our [contributors](https://github.com/rescript-lang/rescript-compiler/graphs/contributors?from=2019-11-24&to=2023-02-02&type=c) for building an amazing platform. Special thanks go out to [mununki](https://github.com/mununki) for building the new JSX v4 syntax. Amazing work!
300
+
As always, we want to thank our [contributors](https://github.com/rescript-lang/rescript/graphs/contributors?from=2019-11-24&to=2023-02-02&type=c) for building an amazing platform. Special thanks go out to [mununki](https://github.com/mununki) for building the new JSX v4 syntax. Amazing work!
301
301
302
302
## That's it
303
303
304
304
We hope you enjoy the newest improvements as much as we do.
305
305
306
-
In case there's any issues / problems, make sure to report bugs to [rescript-lang/rescript-compiler](https://github.com/rescript-lang/rescript-compiler) (language / syntax / jsx), [rescript-lang/rescript-react](https://github.com/rescript-lang/rescript-react) (React 16 / 18 binding) or [rescript-association/rescript-lang.org](https://github.com/rescript-lang/rescript-lang.org) (documentation) repositories.
306
+
In case there's any issues / problems, make sure to report bugs to [rescript-lang/rescript](https://github.com/rescript-lang/rescript) (language / syntax / jsx), [rescript-lang/rescript-react](https://github.com/rescript-lang/rescript-react) (React 16 / 18 binding) or [rescript-association/rescript-lang.org](https://github.com/rescript-lang/rescript-lang.org) (documentation) repositories.
307
307
308
308
Also feel free to visit the [ReScript forum](https://forum.rescript-lang.org/) to ask questions and connect with other ReScripters.
Copy file name to clipboardExpand all lines: _blogposts/2023-06-05-first-class-dynamic-import-support.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,6 @@ The most important take away of the new dynamic imports functionality in ReScrip
138
138
139
139
We hope that it will help shipping software with better end-user experience with faster load times and quicker app interaction, especially on slower network connections.
140
140
141
-
As always, we're eager to hear about your experiences with our new features. Feel free to share your thoughts and feedback with us on our [issue tracker](https://github.com/rescript-lang/rescript-compiler/issues) or on the [forum](https://forum.rescript-lang.org).
141
+
As always, we're eager to hear about your experiences with our new features. Feel free to share your thoughts and feedback with us on our [issue tracker](https://github.com/rescript-lang/rescript/issues) or on the [forum](https://forum.rescript-lang.org).
Copy file name to clipboardExpand all lines: _blogposts/2023-09-18-uncurried-mode.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,6 @@ Many thoughts have led to this decision, but we think this change is a great fit
145
145
146
146
We hope that this new way of writing ReScript will make it both easier for beginners and also more enjoyable for the seasoned developers.
147
147
148
-
As always, we're eager to hear about your experiences with our new features. Feel free to share your thoughts and feedback with us on our [issue tracker](https://github.com/rescript-lang/rescript-compiler/issues) or on the [forum](https://forum.rescript-lang.org).
148
+
As always, we're eager to hear about your experiences with our new features. Feel free to share your thoughts and feedback with us on our [issue tracker](https://github.com/rescript-lang/rescript/issues) or on the [forum](https://forum.rescript-lang.org).
0 commit comments