Comparing programming languages XIII: Retaking this series with ReScript
Fantastic, I’ll have a look and update the post. My theory wasn’t far off then, overhead due to Option operations. Update 1: Interesting; in Scala, map is faster than match/switch, partially due to...
View ArticleComparing programming languages XIII: Retaking this series with ReScript
It is not ideal that using operators included in the stdlib would result in a ~20% performance overhead. These are mostly native features of JavaScript, but we can selectively avoid them. Once we...
View ArticleComparing programming languages XIII: Retaking this series with ReScript
Merged. Sorry if my code wasn’t easy to work with. Thanks. I’ll update the blog soon.
View ArticleComparing programming languages XIII: Retaking this series with ReScript
Not at all. Actually it was pretty nice for exploring And a ReScript codebase that can be directly compared to TS is an essential resource for compiler improvement. Thanks again for trying ReScript!
View ArticleWelcome Sury - successor of ReScript Schema
Finished writing down a full changelog for existing users: Releases · DZakh/sury · GitHub
View ArticleComparing programming languages XIII: Retaking this series with ReScript
i was about to respond initially but i felt i was being to criticizing so i never did. i appreciate almost any exposure rescript gets, and so i appreciate your article as well. there are a few things...
View ArticlePanda CSS doesn't style components
Why are my styles not applied? Check that the @layer rules are set and the corresponding .css file is included.
View ArticleGuidance for nested data types
Disclaimer: just a random impractical advice, you can safely ignore I think I don’t necessarily change my view, the most good principles can be applied to ReScript as well. A really good principle...
View Article[Feedback] Preserve JSX mode
Hello, During the ReScript Retreat, we achieved an initial (rough) version of preserving JSX code in the JavaScript output. This is not the final version we plan to ship in v12, and we welcome your...
View ArticleI'll deprecate rescript-json-schema
In the latest Sury release I added S.fromJSONSchema and made Sury support all rescript-json-schema API. So I’m going to deprecate it soon. If you need JSON Schema in ReScript, please use sury instead....
View Article[Feedback] Preserve JSX mode
I can’t wait to test this out when I get home from Vienna!
View Article[Feedback] Preserve JSX mode
Nice looking forward to hear more about the retreat. Currently, all files share the same extension. Changing to .jsx might seem unusual if your file doesn’t contain any React components. In large...
View Article[Feedback] Preserve JSX mode
That is an interesting idea! No, I didn’t think of that yet.
View ArticleCode generation from OpenAPI spec or similar
@TomiS did you start looking at this in any form?
View Article[Feedback] Preserve JSX mode
Similar one, but not for modules github.com/rescript-lang/rescript Allow to build hyphenated filename opened 02:23PM - 24 Jan 23 UTC cometkim I know that's not a valid module name. Nonetheless,...
View ArticleImport errors on .gen.tsx files
I’m using gentype. This is typical output and errors are produced for EVERY .gen.tsx file. To suppress the error, there should be a // @ts-ignore before the import statement. Or maybe my typescript...
View ArticleEnforce the same generic type between two functions
I’m writing bindings for a function that takes a string. @send external scene: (t, string, 'a => unit) => unit = "scene"; @send external go: (t, string, ~data: 'a=?) => unit = "go"; Usage is...
View ArticleEnforce the same generic type between two functions
The best I can think of would be to use a module function, whose argument provides the underlying type. For example: module MakeScene = (Specification: {type scenes}) => { type t external make:...
View ArticleComing back to ReScript!
I have been building a web app using Typescript for a few months. I strayed from ReScript because I wanted to keep my tech stack simple. Didn’t want to have to write bindings for test framework and...
View Article