Seems kind of annoying to have to write your own bindings for the source code. Is there no way to automate that process? I'd like to try PureScript, maybe with React, for UI apps but this feels like doing double the work. I get that writing business logic in a more tightly constrained language like PureScript is beneficial over TypeScript, but this seems like you have to maintain two implementations almost.
@@GallowsofGhent it is annoying. But, in theory, only has to be done once: you can share this between project, share the code with friends, and also publish it (most popular libraries have the purescript wrappers already). It’s getting come to use AI tools for this, they spit out the whole boilerplate in seconds. A couple of people are/were working on the tools for automatic generating. But even in worst case, you shouldn’t be doing the work twice. Someone else does the work on js/ts side and you only do FFI boilerplate on ps side. If by double work you mean declaring types/interface twice (on ts and on ps side), yeah, it’s technically double the work and it is more work than using js/ts from js/ts directly, but I’d argue it’s only a short term saving. Most of the time the most consuming work is body/logic-related. That’s why I tried to emphasize that it’s a case by case thing.
When you do this work, you understand how the component works (its props/options) much better. I always find it fun to make FFI bindings, as I explore the original thing and scope API to my particular needs.
@@impurepics I see what you mean, you kind of expect these bindings to b community-supplied. These types of 1 to 1 bindings seem easy to automate though, thinking about something like a monorepo code generator feature. I guess you also rely on other devs to have done the work once and kindly add it to the giant repo in the sky.
This demo would not be here without github.com/rowtype-yoga/purescript-react-basic-dom-beta and the author of the library
More videos on this topic would be welcome. Preferably more structured
😂 so pretentious
Seems kind of annoying to have to write your own bindings for the source code. Is there no way to automate that process? I'd like to try PureScript, maybe with React, for UI apps but this feels like doing double the work. I get that writing business logic in a more tightly constrained language like PureScript is beneficial over TypeScript, but this seems like you have to maintain two implementations almost.
@@GallowsofGhent it is annoying. But, in theory, only has to be done once: you can share this between project, share the code with friends, and also publish it (most popular libraries have the purescript wrappers already).
It’s getting come to use AI tools for this, they spit out the whole boilerplate in seconds. A couple of people are/were working on the tools for automatic generating.
But even in worst case, you shouldn’t be doing the work twice. Someone else does the work on js/ts side and you only do FFI boilerplate on ps side. If by double work you mean declaring types/interface twice (on ts and on ps side), yeah, it’s technically double the work and it is more work than using js/ts from js/ts directly, but I’d argue it’s only a short term saving. Most of the time the most consuming work is body/logic-related. That’s why I tried to emphasize that it’s a case by case thing.
Tldr. There should not be two implementations
When you do this work, you understand how the component works (its props/options) much better. I always find it fun to make FFI bindings, as I explore the original thing and scope API to my particular needs.
@@impurepics I see what you mean, you kind of expect these bindings to b community-supplied. These types of 1 to 1 bindings seem easy to automate though, thinking about something like a monorepo code generator feature. I guess you also rely on other devs to have done the work once and kindly add it to the giant repo in the sky.
@@GallowsofGhentcould be worth starting an open source project like that
sloooooooow down 😅
Playback speed control at your fingertips ya bum
Dude chill :)
Playback speed control at your fingertips ya bum