Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 2592 articles
Browse latest View live

ReScript vs TypeScript Performance 2025: Clean Build Benchmark Shows...

For real-world build benchmarking, see Real-world ReScript vs TypeScript build performance: Complete dinero.js core rewrite - #2 by tranquilla.nathan

View Article


Real-world ReScript vs TypeScript build performance: Complete dinero.js core...

Awesome stuff! May be worth running tsgo too if possible, I’d imagine it is the first thing TS advocates are going to reach for when they get defensive....

View Article


Simple way to convert JSX to DOM

Sorry for the amateur question, but what is the simplest way to convert JSX to DOM elements? In TypeScript I am used to use a package named “JSX-dom”, which is configured in the package.json and...

View Article

Image may be NSFW.
Clik here to view.

Simple way to convert JSX to DOM

I guess it should run in the browser? Theoretically you could use many js libraries, which creates dom. React, solid, voby, xote, hyperscript,… Even jsx-dom should work. If you are lucky, you can find...

View Article

Simple way to convert JSX to DOM

Thanks for your answer, but why ReScript still needs me to import ReactDOM when I set JSX preserve option to true? I think, it should just skip the JSX translation at all. Maybe there is some way or...

View Article


Simple way to convert JSX to DOM

Ah, I haven’t used the preserve mode before. Now I got it. If you don’t use e.g. react in preserve mode, the compiler throws an error. Probably a bug? Don’t know. I have a workaround for you. It is...

View Article

Simple way to convert JSX to DOM

Much thanks! Will use this example as a starting point!

View Article

Real-world ReScript vs TypeScript build performance: Complete dinero.js core...

github.com use tsgo CI #17 Check out the benchmarks here for tsgo. ReScript wins for incremental builds, but TypeScript wins for clean builds....

View Article


What keep you guys using Rescript?

5 Reasons: It is truly sound, you can’t adjust the degree of typing in your codebase. It is nice not having to dance around null all the time or bikeshed on compiler settings. It is simple. It’s very...

View Article


Real-world ReScript vs TypeScript build performance: Complete dinero.js core...

I was a bit puzzled by the incremental build time in TypeScript being the same as the clean build. That didn’t make sense to me, so I did check out the repository locally and I verified that the...

View Article

Real-world ReScript vs TypeScript build performance: Complete dinero.js core...

Hey thanks for the review, and for correcting my oversight! Appreciated! It sounds like a benchmark for larger codebases for tsgo might be insightful.

View Article

ReScript v12 js-post-build confusion

Hello @benadamstyles, I’ve implemented the missing functionality in Initial implementation of js-post-build in rewatch by nojaf · Pull Request #8151 · rescript-lang/rescript · GitHub. One twist: it...

View Article

Optional field in a record best practice

I have: type xyz = { a: int, b: option<string> } I could also do type xyz = { a: int, b?: string } Which approach is would you use where? I my case xyz is my own code and not part of a binding....

View Article


Optional field in a record best practice

Personally I only use the optional fields for JS interop, most prominently option objects where usually everything is optional. I still prefer the strictness of explicitly defined options even if that...

View Article

Image may be NSFW.
Clik here to view.

Integrating a package manager into rescript

bob had this idea already a while back. why don’t we build a package manager into rescript, for a repo with pure rescript libraries? part of the repo could even be ready-made bindings for npm...

View Article


Integrating a package manager into rescript

Git repos suck for package managers. Ideally you host them on a DB you own. (Package managers keep using git as a database, it never works out | Andrew Nesbitt) So this probably needs resources that...

View Article

Integrating a package manager into rescript

For me, part of the appeal is that everything ReScript-related flows through the existing Node-style ecosystem. Introducing a second package manager for ReScript feels like a step back. I can see the...

View Article


Optional field in a record best practice

I think it really boils down to Is it ok if I forget to instantiate b ? If it’s ok and if you don’t need to explicitly give a value to b most of the time, then you can make it an optional field,...

View Article

Image may be NSFW.
Clik here to view.

🚀 Miriad is hiring — UX Designer / Front-End Product Engineer (ReScript)

Hi ReScript community You may know me already from this forum as a member of the ReScript Core Team. I’m also cofounding CTO at Miriad, and we’re looking to grow our small, product-driven team. Miriad...

View Article

🚀 Miriad is hiring — UX Designer / Front-End Product Engineer (ReScript)

Hello Paul, I am interested. Could you please share your email address to share the details? Thanks, Seth

View Article
Browsing all 2592 articles
Browse latest View live