News for hackers. Stuff that matters.
Re:ReScript 8.4 by chubot on Monday December 14, 2020 @11:50PM (#25427126)
Are there any good examples of open source projects written with ReScript?

I was searching for this recently and came up short... Is it mainly being used inside Facebook?

Kind of a shame as the ideas look good. I would like something like Elm, but Elm doesn't interoperate with JS.

Re:ReScript 8.4 by gdotdesign on Tuesday December 15, 2020 @02:31AM (#25427908)
> I would like something like Elm, but Elm doesn't interoperate with JS.

You can try Mint: https://www.mint-lang.com

I've created it because I wanted something like Elm but with easier JS interop and less boilerplate :)

Re:ReScript 8.4 by aarpmcgee on Tuesday December 15, 2020 @04:32AM (#25428554)
This looks very cool. Do you have a roadmap?
Re:ReScript 8.4 by gdotdesign on Tuesday December 15, 2020 @07:33AM (#25429673)
> This looks very cool.

Thanks :)

> Do you have a roadmap?

It's no written roadmap yet, currently I'm working on a UI library which is written in Mint, and these are things which the majority of people want which I'll work on next:

- Language Server

- Server Side Rendering

- Interfacing with NPM libraries

- Some new language features and cleanup of some of the existing ones

- A proper Time module

After those I think we can release 1.0 and focus on bugfixes and optimizations.

Re:ReScript 8.4 by aarpmcgee on Wednesday December 16, 2020 @12:55AM (#25439543)
Thanks! Language server sounds particularly exciting. I'll be watching this project eagerly.
Re:ReScript 8.4 by angio on Tuesday December 15, 2020 @09:16AM (#25430486)
You should give F# a try. Check out Feliz [0], it integrates flawlessly with React and you can use elmish for the internal state management of components. You can use F# on the backend as well (Giraffe, Saturn) and use Fable.Remoting for RPC.

[0] https://github.com/Zaid-Ajaj/Feliz [1] https://github.com/Zaid-Ajaj/Fable.Remoting

Re:ReScript 8.4 by rienbdj on Tuesday December 15, 2020 @02:40AM (#25427955)
Fable (F#) has interop with JS and examples using an Elm architecture.
Re:ReScript 8.4 by spyder81 on Tuesday December 15, 2020 @02:26AM (#25427885)
The TinyMCE team is building a big new feature with it

https://www.tiny.cloud/blog/tinymce-reasonml/

We aren't sure when we will be able to open source the new model, and we are still using Reason syntax with the ReScript compiler, but we will transition to ReScript syntax eventually.

Re:ReScript 8.4 by testcross on Tuesday December 15, 2020 @01:07AM (#25427503)
actually I think that it is basically not used inside facebook anymore. But it is used in a bunch of other companies.
Re:ReScript 8.4 by chenglou on Tuesday December 15, 2020 @03:25AM (#25428204)
...who are you? Everything you said in this subthread is false, and you seem to have a weird chip on your shoulder regarding this.
Re:ReScript 8.4 by testcross on Tuesday December 15, 2020 @03:45AM (#25428306)
well sorry if this isn't true, but I haven't insulted anyone. If I get those feedback and they are incorrect, I hope that you can provide my insightful ones to clear the situation.
Re:ReScript 8.4 by chenglou on Tuesday December 15, 2020 @05:53AM (#25429052)
I've replied earlier with concrete details in another place in this subthread. You indeed haven't insulted anyone, but your comment history does indicate some biased intent; if the ecosystem changes affected you, we'd like to apologize for those; let's bury the hatchet here because maybe we can both agree that drama isn't productive.
Re:ReScript 8.4 by testcross on Tuesday December 15, 2020 @09:34AM (#25430652)
I don’t see how there’s a biased intent. I’ve no shares in any tech. If anything I wish for rescript to be a big success given how much the company I am in relies on it. I’ve contributed to multiple bucklescript projects. And I’m not criticising the decisions of anyone.
Re:ReScript 8.4 by chubot on Tuesday December 15, 2020 @02:16AM (#25427828)
Hm so what does Facebook use? I saw a talk that was marketing Reason as "React as a language"?

Is that true for ReScript, or no?

Presumably Facebook still uses React? But they use it via regular JS and not Reason or Rescript?

I do have to concur with some of the comments -- the situation seems pretty confusing, and spending a bunch of time looking at docs didn't enlighten me.

Re:ReScript 8.4 by testcross on Tuesday December 15, 2020 @02:46AM (#25427986)
from what I heard, they use typescript instead of reason for some time already. I don't know if they use react or not. I also heard that they weren't always using reasonreact even when they were using reason. So they've never been 100% on the same stack than what was advertised by the reason team.

It probably explain why fb dedicates so little resources to reason too.

Re:ReScript 8.4 by chenglou on Tuesday December 15, 2020 @03:26AM (#25428207)
We did use Reason and ReasonReact. Not sure where you're getting your info. And no we don't use TypeScript on the team...
Re:ReScript 8.4 by vijaybritto on Tuesday December 15, 2020 @01:22AM (#25427568)
Not in Messenger too?
Re:ReScript 8.4 by testcross on Tuesday December 15, 2020 @02:43AM (#25427977)
from the feedback I got, they migrated to something else