Quantcast
Channel: ReScript Forum - Latest posts

How to Resolve Export Format Conflicts Between ReScript and React Router v7...

The most basic client-side React Router approach that can be executed normally. let default = () => { <strong> {"hi"->React.string} </strong> } import * as JsxRuntime from...

View Article


How to Resolve Export Format Conflicts Between ReScript and React Router v7...

I tried writing a vite transformation plugin to enable code written in ReScript to run properly in SSR mode with React Router v7 in Vite. However, I still haven’t found the reason why it doesn’t...

View Article


Interest in Shadcn UI?

shadcn has started supporting base-ui as an alternative to radix-ui, so I’d say it’s still a pretty stable foundation. An AI could indeed generate the bindings to base-ui (using ReScript Bindings...

View Article

How to Resolve Export Format Conflicts Between ReScript and React Router v7...

It’s tricky to work around, but the rescript doc site is using react router v7 with loaders and HMR works for the most part. There are a lot of files with multiple components that can be broken up,...

View Article

How to Resolve Export Format Conflicts Between ReScript and React Router v7...

I can’t find where I read it, but there afaik there is a difference between these two exports and how they work in ESM and tree shaking. // option one export const foo = 42 // option two const foo =...

View Article


[ANN] ReScript 12 is out!

Just here to say I just migrated to 12 at my current job and have been using it for a couple of days now. I really like what you folks have done! Ergonomics are now clearly better than before.

View Article

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

I’m vibing/steering a rather large test file. open Vitest open TodoEvent module Fixtures = { let mockUser: User.t = { id: UserId.fromString("user-test-1"), first_name: "Test", last_name: "User",...

View Article

Image may be NSFW.
Clik here to view.

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

Thanks for reporting. I can reliably get an “unexpected error” in the playground as well with this example: ReScript Documentation ReScript Playground Try ReScript in the browser

View Article


Image may be NSFW.
Clik here to view.

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

And I might have a fix github.com/rescript-lang/rescript Fix Parmatch crash on empty record head patterns rescript-lang:master ← fhammerschmidt:fix-parmatch-dict-error opened 11:08PM - 13 Feb 26 UTC...

View Article


Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

please try installing npm i https://pkg.pr.new/rescript-lang/rescript@8246 and see if it fixes your error.

View Article

Image may be NSFW.
Clik here to view.

Compiler crash in complex test file. Fatal error: Parmatch.all_record_args

@fham Awesome! I haven’t been able to use https://pkg.pr.new/rescript-lang/rescript@8246 without having other issues; but your fix pointed me to a workaround: ReScript Documentation ReScript...

View Article

How to successfully use `reanalyze`?

I trying to setup dce analysis for a project. I have added this to our rescript.json "reanalyze": { "analysis": ["dce", "exception"], "suppress": ["test", "src/libs"] } Rescript’s new build system...

View Article

How to successfully use `reanalyze`?

What version of Rescript do you use? This false warning was removed in the latest version if I remember correctly.

View Article


How to successfully use `reanalyze`?

@tsnobip I’m using 12.1.0: $ rescript --version rescript 12.1.0 $ rescript [1/3] 🧹 Cleaned previous build due to compiler update [1/3] 🧹 Cleaned 0/0 in 0.26s [2/3] 🧱 Parsed 896 source files in 1.15s...

View Article

How to successfully use `reanalyze`?

Can you try with 12.2.0-rc.1?

View Article


Image may be NSFW.
Clik here to view.

Rescript vs ZScript

Hi guys. I wrote a language with help of Jules in many things. It is really fully designed by me and required me months in designing. Rescript is also mature and much powerful than ZScript. But just...

View Article

How to successfully use `reanalyze`?

@fham With version 12.2.0-rc.1 the warning in the compilation is gone. Good. However, it still shows DCE warnings for files under test and src/libs; which I have in the suppress list: "reanalyze": {...

View Article


How to successfully use `reanalyze`?

@cristianoc this should work, right?

View Article

Rescript vs ZScript

Just curious, what are your goals and plans with ZScript?

View Article

Rescript vs ZScript

Actually ZScript is quite powerful giving comptime execution and variables. Powerful macros. I want to make ZScript next cross runtime allowing from one codebase writing libs for bun and deno both...

View Article

Rescript vs ZScript

Some examples of comptime power: The fetch in this one is amazing: zscript/examples/advanced/comptime_power.zs at main · zscriptlang/zscript · GitHub zscript/examples/advanced/comptime_multiline.zs at...

View Article


Rescript vs ZScript

Is it fully typed without annotations like ReScript? I could not get the arm64 macos binary to run btw. Not sure if it’s a security issue or if the binary is indeed corrupted.

View Article


Rescript vs ZScript

There is a lot to love here comptime – Execute arbitrary async logic during compilation. Inline API data or Platform-Specific code or pre-calculate complex math before the code even reaches the user....

View Article

Rescript vs ZScript

I would recommend to check trying baseline version once if your os dont support avx2 or modern cpu things bun use so once try baseline version.

View Article

Rescript vs ZScript

Sorry you were saying about arm sorry. I am really alone developing ZScript and I don’t have os or vps to check the binaries even they are compiled using GitHub actions so I will make a testing action...

View Article


Rescript vs ZScript

So I will reply one by one to your message: 1)Macro: I read the doc you showed of rescript it is good design. My macro are somewhat different like they are function like and even they can be exported...

View Article

Rescript vs ZScript

Sorry, spam detection does not like it when you link to too many github links, apparently.

View Article