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

ReScript on the developer voices podcast

Oh no, we missed it. I think it will be May. But we will release the first beta very soon. And v11.2 in April.

View Article


ReMonkey: An implementation of the Monkey Langauge written in ReScript

Hello friends, I wrote an implementation of the Monkey Language (a toy language designed to teach interpreters) using ReScript. It includes Lexer, Parser and Interpreter. As my first ReScript project,...

View Article


ReMonkey: An implementation of the Monkey Langauge written in ReScript

Cool! Did you try using the char datatype for it before? It’s at least very convenient if ASCII is sufficient to your needs, since you can check ranges, e.g.: let isLetter = char => switch char { |...

View Article

Is there an AI model that can convert JavaScript to ReScript?

My manager is familiar with JavaScript and he was inquiring if the AI models have matured enough to the point where it can emit ReScript code for the JavaScript code he is writing, and maybe generate...

View Article

Is there an AI model that can convert JavaScript to ReScript?

Make some experiments and you’ll see! I use copilot to generate my bindings and it’s correct 95% of the times. Don’t expect anything perfect but it can definitely help reduce the needed workload.

View Article


Is there an AI model that can convert JavaScript to ReScript?

I’m curious to learn about your process there. Do you use any specific prompt? Do you pass the llm.txt from the docs?

View Article

Is there an AI model that can convert JavaScript to ReScript?

Same, kindly elaborate on your process. Maybe this should be on a meetup streamed on YouTube.

View Article

Image may be NSFW.
Clik here to view.

Is there an AI model that can convert JavaScript to ReScript?

what I do usually is that I start typing the first bindings in the style I like and then copilot autocomplete suggests me correct bindings, it’s not a silver bullet but it saves a lot of time and it’s...

View Article


ReMonkey: An implementation of the Monkey Langauge written in ReScript

Thanks, I didn’t know that. The blog post is part of an ongoing series, https://marioarias.hashnode.dev/comparing-implementations-of-the-monkey-language-ix-a-monkey-and-his-bun-typescript

View Article


Image may be NSFW.
Clik here to view.

ReMonkey: An implementation of the Monkey Langauge written in ReScript

Looking forward to the next episode

View Article

Image may be NSFW.
Clik here to view.

Writing a codemod to migrate ReactDOM.Style.make calls to style records

Hello rescript-react 0.13.1 deprecates usage of ReactDOM.Style.make. I’ve got ~1400 calls to that function in my codebase, so I’m trying to find ways to automate the migration to style records a bit...

View Article

Image may be NSFW.
Clik here to view.

Neovim blink and latest rescript language server

Hi there, I just upgraded my dotfiles with the latest lazyvim version and wanted to try Blink.cmp. I noticed the “dot” and “pipe” completion are not working . Someone did encounter this already ? I’m...

View Article

Writing a codemod to migrate ReactDOM.Style.make calls to style records

Hello @remitbri, it’s definitely something that is lacking right now. We’re cleaning up a lot of APIs for ReScript v12 and having tools to automate the migration would be very nice but I guess no one...

View Article


Image may be NSFW.
Clik here to view.

Neovim blink and latest rescript language server

Hey, using blink as well (custom config, no lazyvim) and it works. blink v0.12.4 lsp v1.62.0 vim-rescript rescript v12.0.0-alpha.9

View Article

Image may be NSFW.
Clik here to view.

Neovim blink and latest rescript language server

After digging, I just remembered that I have rescript-language-server installed through Mason (and is prior than the npm version), so it was not up to date. After updating the mason version, it works...

View Article


Image may be NSFW.
Clik here to view.

Make lenses-ppx supporting uncurried mode

Hi ! I’m preparing our codebase to support the next ReScript version and noticed an issue with lenses-ppx (we use it a lot with our form system) producing curried code. I tried (naively) to just force...

View Article

Type redundancy between module signature .resi and modules .res

Currently types defined in signature file .resi are not accessible from modules .res with same name, this forces code duplication by forcing to define the type twice for the same module, which feels...

View Article


Type redundancy between module signature .resi and modules .res

I don’t think .d.ts files are a fair comparison to OCaml’s signature files (.mli). They serve different purposes, as far as I can tell. ReScript has its roots in OCaml, and signature files are a...

View Article

RFC: private by default for values

A shower thought here is that when using an export keyword to make something public, you are also required to fully type annotate. This means we could implement a shallow parsing phase to detect the...

View Article

Type redundancy between module signature .resi and modules .res

This is likely an area that’s best solved by improving the editor tooling (making it easy to see what’s missing between res/resi, and making it easy to update/copy types).

View Article
Browsing all 1751 articles
Browse latest View live