News for hackers. Stuff that matters.
Re:Native Applications with Racket by saagarjha on Sunday January 05, 2020 @05:40AM (#21960657)
> it is a completely native Cocoa application whose frontend is built with Swift, the core business logic is all in Racket

This is generally the way to go if you want to be cross-platform: write your core code in the language of your choice, but make sure you use the platform frameworks for the porcelain. If you do it well, your users won’t notice the difference!

Re:Native Applications with Racket by Klonoar on Sunday January 05, 2020 @06:13AM (#21960744)
This is easy to say for Mac, where there’s a “true” platform framework. It’s not as clear cut for Windows/Linux, and hell if I’m going to spin my wheels writing UI code for ages. It’s been beaten to death relentlessly but there’s a reason nobody actually does this anymore.

It’s also seriously funny that it’s the same accounts that argue this stuff every time it comes up on this site. ;P

Re:Native Applications with Racket by rymate1234 on Sunday January 05, 2020 @06:50AM (#21960864)
There's a true platform framework for Windows, and that's either WPF if you need to target Windows pre 10, and WinUI / UWP for targeting Windows 10

People do this all the time, there's native mobile applications using the true platform frameworks for both operating systems

Re:Native Applications with Racket by Longhanks on Sunday January 05, 2020 @08:54AM (#21961239)
Win32 is still the definition of native on Windows, it's used by Explorer, Paint, cmd, WinRar, Chrome, Firefox and many more applications. Most UWP applications did not succeed their Win32 counterparts (yet?), for example Edge (which is replaced by Chromium, which is built on Win32), Paint 3D (where Microsoft paddled back from their initial statement of removing the "old" mspaint.exe), Groove Music (basically on life support).

There's plenty of abstractions for Win32, too, such as Qt (see VLC for example, which feels native to Windows).

The only major consumer program written in WPF I know is Visual Studio, but I haven't heard of WPF development in a long time (except for the move to open source).

Re:Native Applications with Racket by catalogia on Sunday January 05, 2020 @07:24AM (#21960979)
I think at this point GTK is the de-facto "native" for Linux desktops unless you've named your application something that begins with 'k'.
Re:Native Applications with Racket by kitsunesoba on Sunday January 05, 2020 @01:15PM (#21962837)
GTK has the advantage of having fully capable bindings for every language under the sun, so I would generally agree.

Qt is harder to create bindings for since it’s C++, meaning it’s more likely that your language of choice doesn’t have bindings, in which case if said language doesn’t have C++ interop you’re stuck.

Re:Native Applications with Racket by ilammy on Sunday January 05, 2020 @08:26AM (#21961141)
Yeah, right. If you do that you are legally required to use Qt.
Re:Native Applications with Racket by tomjen3 on Sunday January 05, 2020 @12:53PM (#21962669)
Honestly, just write the front-end in Visual Studio/C# and that should be native.

Or write it in Win32 api, in C.

For GNU/Linux, write it in GTK or QT, as appropriate.

Re:Native Applications with Racket by saagarjha on Monday January 06, 2020 @12:29AM (#21966727)
It comes up quite often ;)