Live data from Hacker News

Android NDK: GCC is now deprecated, everyone should be switching to Clang

android.googlesource.com

81–90 of 259 posts

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#81
post #40

Earlier quoted context omitted.

Compiling source code you don't comprehend and aren't capable of rewriting isn't really an exercise of freedom. You could just as well distribute a closed binary with runtime configuration options, for all it matters in that case.

if you're implying that everyone who usefully modifies source code or compiles with options is able to write the code from scratch, i would advise you rethink your position. to put a finer point on it, the concept of "layers of abstraction" is fundamental to computers and software. i can know quite a bit about adjusting the pieces of a program without having the ability to build it as effectively as i modify it.

Not from scratch, perhaps, but it still takes technical acumen to do anything useful with the source code at all, which implies that a non-technical user can't really exercise the freedoms of free software, beyond simply having access to the source code.

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#82
post #15

Earlier quoted context omitted.

Cleaner, better documented, better interface, highly competitive performance, faster compiles, active development community, emscripten, better tooling/IDE integration. License is not viral.

Those are all general issues that would apply to developing GCC, aside from compile times and tooling integration they don't effect NDK users. So the question goes back to being specific, why deprecate GCC while it's still popular elsewhere and well supported on this hardware? Eddyit: Spelshing.

A), I think you mean "deprecate", it's been depreciating just fine by itself.

B) If you ever want to make a change to the toolchain, HARD SWERVE on supporting GCC. It's a liability if you need to modify it at all. This may have more to do with what Google wants to support rather than any effect on the end user.

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#83

Earlier quoted context omitted.

Compiler bugs are usually limited to a single compilation unit and are usually submitted by doing a binary search on a pre processed source file. This is certainly true for closed source as well - just redact the (few) symbol names and create something that will compile to an a.out that demonstrates the problem. God saves a puppy anytime someone filed a compiler bug with a trivial test case that demonstrates the prob…

> God saves a puppy anytime someone filed a compiler bug with a trivial test case that demonstrates the problem. The current (r10e) shipping version of clang cannot return 128bit floats from a function. #include int main(int c, char **v) { std::stringstream("1.5"); double x; s >> x; return x == 1.5 ? 0 : 1; } EDIT: You don't need "long double" in the above. double (or float) will show the problem. The standard librar…

Should that be `long double`?

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#84
post #22
post #10

Earlier quoted context omitted.

I'm curious, what's wrong with iostream?

I dunno, I think bit shifting a string to write to a file is pretty unreadable, not to mention C already has rock-solid string formatting options. It's an miasma of operator abuse built into "hello world".

> C already has rock-solid string formatting options

Don't troll.

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#85
post #63

Earlier quoted context omitted.

I wonder what kind of world we would have if GNU were completely defeated, if no one released anything under the GPL anymore. Sure, free software would still exist, but nobody would call it "free software" and no one would prevent anyone else from creating non-free derivatives. Nearly all software would be "open core", with some free software here and there but with many or most of the interesting components non-free…

We used to call that "public domain software" and it was big in the 80s from what I recall (I was a kid then). You'd release something to the public domain and people can do with it whatever they wished. Then GNU came around and ate everyone's lunch, for better or worse. I suspect for better. Maybe GNU is just a stop-gap movement to get everyone on board the FOSS train, who knows. BSD licensing hasn't caused any apoc…

It was Microsoft that came and ate public domain software's lunch, not GNU. GNU and the GPL were not needed until aggressive copyright enforcers such as Microsoft came on the scene. Bill Gates wrote a famous rant calling anyone that shares code a thief, essentially. The GPL was a reaction to that attitude and has saved the culture of sharing code.

If most people defaulted to sharing code like was done pre-Microsoft then BSD would be fine. Read RMS's rant that is linked above. He's still at defending against "adversaries" of Freedom. This is war!

OK, so even MS is now open sourcing (some of) their code. Maybe it's not "war" anymore, but you need to understand the history a little.

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#86
post #38
post #9

Earlier quoted context omitted.

> I would guess they describe their work as "open source" and do not talk about freedom. Wow, what an asshole. Maybe they consider legal restrictions on how other people may use their software to be the opposite of freedom? Maybe that is the truth and maybe RMS has a good point to make, but how tone deaf is to call anything that isn't GNU, "unfree"? To suggest that they don't even talk about freedom because their lic…

Going to fun when the developers take Clang closed sourced and add DRM support to it.

What does DRM support in a compiler tool chain even mean? The ability to develop DRM is available by the nature of the tool, but that is also true of GCC.

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#87
post #3

waits for RMS to get mad https://gcc.gnu.org/ml/gcc/2014-01/msg00247.html

> The Clang and LLVM developers reach different conclusions from ours because they do not share our values and goals.

It's hard for me to trust the values of a man who thinks sex with children should be legalized. Not ad hominem'ing here, just saying that if his bigger-picture idea of "freedom" includes freedom to have sex with children, he and I have different ideas of what freedom mean, and I can't really say I trust his judgment to understand "freedom" properly.

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#88

Earlier quoted context omitted.

RMS wants user freedom, not developer freedom That is the point people always miss. RMS believes that end user of software / hardware should be in complete control, it was/is never about developers. BSD/MIT/etc lic may provide for more developer freedom, but often they are used to restrict user freedom as the code is folded/packaged into commercial projects with non-free licenses

> RMS wants user freedom, not developer freedom And that's why we have the GNU toolchain, which is some of the most end user-friendly software ever made?

> > RMS wants user freedom...

> And that's why we have the GNU toolchain, which is some of the most end user-friendly...

Eh? User-friendliness and user freedom aren't the same properties.

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#89
post #69

Earlier quoted context omitted.

> And to preclude modifications which prevent him from effectively monetizing his labour is to infringe on his freedom. This sounds a lot like the people saying that adblocker software is infringing the freedom of people trying to monetize their websites (or maybe even "stealing" from them). And I think the same response applies: the fact that your business model isn't compatible with adblocker software, or with my c…

> Plus it seems extra presumptuous to claim some kind of inherent right to profit off derivative works of my software. Who's claiming that? On the other hand, I've met more than a few pro-FSF people who seem to think it's cromulent to claim that I don't have the right to profit off my work (which is insane; you can pick whatever license you'd like, copyleft or not, and so can I).

You aren't profiting off your work, you're piggybacking off their work with just enough tweaks to sell it. Go write your own software if you want to profit off your work. Then you won't have to deal with the copyleft licenses because you won't be using anyone else's work.

Which is the exact purpose of a copyleft license.

Re: Android NDK: GCC is now deprecated, everyone should be switching to Clang

#90
post #3

waits for RMS to get mad https://gcc.gnu.org/ml/gcc/2014-01/msg00247.html

> The Clang and LLVM developers reach different conclusions from ours because they do not share our values and goals. It's hard for me to trust the values of a man who thinks sex with children should be legalized. Not ad hominem'ing here, just saying that if his bigger-picture idea of "freedom" includes freedom to have sex with children, he and I have different ideas of what freedom mean, and I can't really say I tru…

[deleted]
Post reply on HN