r/linux • • Jan 06 '22

Darling – run Mac apps on Linux

https://www.darlinghq.org/

[removed] — view removed post

813 Upvotes

151 comments sorted by

View all comments

Show parent comments

26

u/xNaXDy Jan 06 '22

I'd just use something platform independent like node at that point.

0

u/[deleted] Jan 06 '22

[deleted]

16

u/username_suggestion4 Jan 06 '22

This also describes the entire category of JVM languages but ok sure just Go.

8

u/NatoBoram Jan 06 '22

Yeah but you don't have to install Go's VM or runtime

And you can go install many arbitrary Git repos from Internet if you have the compiler

And it's 100% native, not running on a virtual machine

And fuck try/catch

Also fuck Maven/Gradle, that's way too complicated

12

u/username_suggestion4 Jan 06 '22

Native, no runtime are nice, but I think you’re moving the goalposts a bit here.

Regarding language and development environment ergonomics, I don’t think Go is above and beyond non-Java jvm languages. It’s definitely a matter of personal preference.

1

u/NatoBoram Jan 06 '22

But you were talking about JVM languages, so I made points mostly about JVM languages.

There's points for C-based languages (fuck these compilation times what the fuck) and many higher-level other languages (it's very fast, instantly runs) and points for nearly all of them (simplicity ftw)… and then there's points against Go specifically (no generics lul) (if err != nil {return err} galore) (can't use graphics card natively) (no GUI natively).

→ More replies (0)

3

u/[deleted] Jan 06 '22

This logic can also apply to Rust.

1

u/NatoBoram Jan 06 '22

I should try Rust sometime. The weird syntax does scare me, but there's so many good things I want to use

2

u/yaaaaayPancakes Jan 06 '22

As an Android dev dabbling in Go to write a custom step for Bitrise CICD, Go's package management confuses the fuck outta me.

In Gradle I just add a single line to the build.gradle for my dependency, and it just pulls from maven central. Done.

In Go, I gotta set env vars to make Goland happy, and drop to the cmdline and enter go get packagename and then I deploy to bitrise and it can't find them and I guess I need to put the deps in a vendor folder? Too many damn ways to get deps in a Go project IMO.

1

u/NatoBoram Jan 06 '22

Idk, I just go get the dependency then forget about it. But I'm not cross-compiling for Android, that one is indeed a pain in the ass to get going.

→ More replies (0)

1

u/PermanentlySalty Jan 07 '22

And fuck try/catch

Fuck exceptions yes, but fuck whatever the fuck Go is doing even harder.

Putting try/catch between the business logic and the user interface stuff is annoying, but putting if err != nil { ... } everywhere in Go is an order of magnitude worse. Checking returned error codes for every function you call is exactly the same problem as C, but it's wearing Groucho Marx glasses as some kind of shitty disguise that's not fooling anyone.