News for hackers. Stuff that matters.
Re:Ask HN: Modern Alternatives to C by cpach on Sunday May 01, 2022 @05:42PM (#31228965)
Is Go really suitable…? I love Go, but so far I haven’t seen any desktop applications written in it. I guess that’s for a reason?

BTW, if you want some inspiration, have a look at the browser bundled with SerenityOS. It’s written in C++.

https://github.com/SerenityOS/serenity/tree/master/Userland/...

https://www.youtube.com/watch?v=Gbvhmt9EdfI

Re:Ask HN: Modern Alternatives to C by leakbang on Sunday May 01, 2022 @07:41PM (#31229810)
> Is Go really suitable…? I love Go, but so far I haven’t seen any desktop applications written in it. I guess that’s for a reason?

I have deviated away from both Go and Rust. Some people in this thread have recommended the Zig programming language and it looks very promising. Right now I'm experimenting with that.

> BTW, if you want some inspiration, have a look at the browser bundled with SerenityOS. It’s written in C++.

This is so awesome, thanks for sharing it. I'm going to love checking out the video and the source code!

One similar thing I know about is a Rust port of the Netsurf browser [1] to Redox OS [2] an OS written in Rust. But this is even better!

[1] https://www.netsurf-browser.org/

[2] https://en.wikipedia.org/wiki/Redox_%28operating_system%29

Re:Ask HN: Modern Alternatives to C by Tozen on Monday May 02, 2022 @09:39PM (#31243367)
You could use Go, and there is fyne for cross-platform GUIs, but I think part of the issue is not having a RAD IDE (like say Lazarus or Delphi as in Object Pascal). There is the convenience factor of using Go to build such, and then there is also the direction of where Google takes the language (which isn't about desktop apps).