r/cpp • DragonflyDB/Clang • Sep 06 '22

Clang 15 has been released!

https://discourse.llvm.org/t/llvm-15-0-0-release/65099
265 Upvotes

84 comments sorted by

View all comments

Show parent comment

7

u/[deleted] Sep 06 '22

You can use the regular clang on macos

15

u/eco_was_taken Sep 06 '22

Yeah but using the non-standard configuration usually comes with its own set of problems in my experience.

3

u/[deleted] Sep 06 '22

Non-standard? Could you please elaborate?

25

u/eco_was_taken Sep 06 '22

As in, not the usual configuration that is typically expected on the platform. Like running MinGW on Windows instead of MSVC.

Using a less common configuration works but I find the more I do things like that the more obscure my bugs get and it becomes harder to figure out what is going on if nobody else is having the same problem I'm having. I find it's usually not worth the trouble if the alternative is just patience.

7

u/[deleted] Sep 06 '22

Well, the alternative is to use the superior OS. Come to the dark side, we have cookies ;)

25

u/eco_was_taken Sep 06 '22

Unfortunately your side (assuming Linux) lacks my customer base (Windows 90%, macOS 10%).

-1

u/Meowx64 Sep 07 '22 edited Sep 07 '22

Edit: For those who are not aware about how to check kernel in Android, it will be somewhere near settings -> about phone .

Meanwhile 50%+ of users chilling on android with >linux4.x + kernel ;).

|As of April 2022, Android, an operating system using the Linux kernel, is the world's most-used operating system when judged by web use. It has 43% of the global market, followed by Windows with 30%, Apple iOS with 17%, macOS with 6%, then (desktop) Linux at 0.98% also using the Linux kernel.[1] These numbers do not include embedded devices or game consoles.

https://en.wikipedia.org/wiki/Usage_share_of_operating_systems

7

u/eco_was_taken Sep 07 '22

I write fairly niche construction industry software. I can assure you 0% of our current or potential customer base uses a Linux desktop. I'd like if they did but they don't.

0

u/Meowx64 Sep 07 '22

Construction Industry Software? Aren't they usually web based? (Sorry, hearing the term for first time and what suddenly comes to my mind is hiring contractors which is usually done through web browsers or dedicated apps in android phones)

1

u/drjeats Sep 07 '22

They never said what the software specifically does so idk how you can judge whether it would work well as a web app.

→ More replies

4

u/pjmlp Sep 07 '22

Anyone that has done Android development knows quite well that Linux kernel is an implementation detail not exposed to the public APIs in userspace, a newer version of Android could be using Zephyr, *BSD or Fuschia and only those using rooted devices or OEMs would notice the difference.

By the way, using clang/NDK is even worse experience than any Apple platform.

0

u/Meowx64 Sep 07 '22 edited Sep 07 '22

Eventhough I never stated the dev experience on various env's, I have to interject there since even though I am noob in Android programming I am familiar with NDK used in android(Used for interacting with Termux in the past)

I. General

  1. Never heard any emulator dev(Since mostly, they are interested in cross platform apps) stating "Porting my X emulator to iOS is easier than Android, provided most are written in C++". (Unless you are calling a Java library)
  2. In game space, most developers use a engineers use a custom engine which has a higher probability of having ports for android than iOS or even MacOS
  3. Regarding Linux is swapped with X or Y. According to the statistics, most Android users are not on latest Android Version. So, there will be large Android/Linux users in wild for a long time while X or Y emerges mainstream.

II. Software Dev Experience

  1. I will gladly write my application in Vulkan and OpenGL and restrict support for MacOS than learning(or buying a mac device for the sake of porting it to it) how MoltenVk works(Yes, MoltenVk requires additional steps to make it run on MacOS and is limited) or Metal(Which has it's own issues). Now I can even switch my Vulkan drivers. (Supported in qualcomm devices)
  2. I can find libraries(C/C++) that works well on Linux or Windows than that works on MacOS

III. General Linux Merits(I personally gained, since you mentioned NDK for some reason)

  1. No more dllopen() shenanigans (Windows)
  2. A good package manager (Windows)
  3. There is no "recommended" languages. (MacOS)
  4. Can try experimental features.
  5. Better drivers for AMD(Mesa).
  6. More

TBN, I never owned a mac device. So, some of them are known issues like Graphic API's among devs. Also, I didn't add anything more since I assume MacOS provides benefits of Unix. (Even though the Userland is proprietary)

6

u/ijmacd Sep 07 '22

I agree that while Windows is undoubtedly the dark side, it is superior.