briskml / brisk

✨Cross-platform set of tools for building native UIs with Reason/OCaml
MIT License
554 stars 9 forks source link

Possible strategy for Windows development ? #24

Open harsh-vardhhan opened 6 years ago

harsh-vardhhan commented 6 years ago

Is there is any roadmap for Windows desktop development? Since there is no content for WPF development in C, not possible to reuse the cocoa binding concept.

the one possibility I see is ReasonML <==> C <==> C#. Since majority of WPF development community is on c#.

rauanmayemir commented 6 years ago

Tbh, I have no idea about the current state of Windows environment. I thought there was win32 api?

harsh-vardhhan commented 6 years ago

Yeah my approach seems to be overcomplicated. Win32 using C seems approachable. I'll give it a try and see.

wokalski commented 6 years ago

I suggest we bind to the “most modern“ API so that we have full api surface in our hands in the future. I just noticed https://github.com/LexiFi/csml/blob/master/README.md. Maybe it’s also possible to bind directly to C sharp? I’d do some research. There are quite a few OCaml on windows users. You might want to ping people from opam-cross-windows repo.

harsh-vardhhan commented 6 years ago

Looks like a good possible solution. They have a really neat mapping between OCaml <==> C#.

harsh-vardhhan commented 6 years ago

@wokalski can you try running the getting_started example. I tried but facing this issue when running the make file

$ make
\../../src/csml.exe getting_started.csml
make: ../../src/csml.exe: Command not found
make: *** [../../Makefile.examples:50: build_addin_byt] Error 127

The project doesn't seem to have any active contributor to help.

wokalski commented 6 years ago

It seems like you need to run make in src first. Sorry for the delayed responses but I’m on a vacay. I’d also ask on discuss OCaml. A lot of folks are hanging out there.