News for hackers. Stuff that matters.
Re:Onivim 2 is a retro-futuristic modal editor by nine_k on Sunday June 27, 2021 @05:22PM (#27655533)
What's most interesting for me here is Revery, the GUI framework. React-like, cross-platform, native-code, MIT-licensed.

Yes, it's not using native widgets (so no built-in accessibility), but that might be fine in many cases.

Re:Onivim 2 is a retro-futuristic modal editor by zbaylin on Sunday June 27, 2021 @07:15PM (#27656365)
I’ve actually been working on adding more support for native widgets in Revery, mostly focusing on macOS since thats my daily OS, but Windows too. You can now use native buttons and menus, and I’m looking into adding other native inputs (like text fields).
Re:Onivim 2 is a retro-futuristic modal editor by nine_k on Sunday June 27, 2021 @08:19PM (#27656742)
This is great news. Native text inputs have a lot of important affordances like navigation keys, selection, and spelling.
Re:Onivim 2 is a retro-futuristic modal editor by romwell on Sunday June 27, 2021 @05:26PM (#27655572)
Looking forward to seeing it displace Electron.
Re:Onivim 2 is a retro-futuristic modal editor by k__ on Sunday June 27, 2021 @06:23PM (#27656038)
Back in the days, I would have bet on Revery as Electron replacement.

But currently, Tauri seems like a more viable option.

Re:Onivim 2 is a retro-futuristic modal editor by nine_k on Sunday June 27, 2021 @05:33PM (#27655653)
Not soon: however I like ML-style languages, it's JS / TS what has the mass market adoption now.

It's not even the language, it's not much harder to learn than TS. It's the smaller library ecosystem of Reason / OCaml.

Re:Onivim 2 is a retro-futuristic modal editor by toastal on Monday June 28, 2021 @06:12AM (#27659917)
But they get a simpler, sounder type system in OCaml as a result which should make maintenance easier for them. Given that they want this style of programming the ergonomics should be a lot easier than TypeScript as well.
Re:Onivim 2 is a retro-futuristic modal editor by rudedogg on Sunday June 27, 2021 @11:29PM (#27657798)
Is it still running through javascript? I get confused by all the different interpretations of native.
Re:Onivim 2 is a retro-futuristic modal editor by WiiManic on Monday June 28, 2021 @05:26AM (#27659657)
Its written mostly in ReasonML (syntax for OCaml) with a bunch of C-libs wrapped in OCaml (Skia/Harfbuzz/SDL2 etc), so it compiles properly to native in the same way that normal OCaml code would.

The only JS in Revery is for some utility scripts and some aroud an option to compile to JS (which isn't functional at the moment, but the idea being you could compile to JS if you wished, with stubs to fill in the blanks for API calls that would normally hit Skia etc).