News for hackers. Stuff that matters.
Re:Lanai, the mystery CPU architecture in LLVM by wmf on Monday March 21, 2022 @03:28PM (#30758596)
The fact that they developed and upstreamed an LLVM backend indicates that they probably did something with it.
Re:Lanai, the mystery CPU architecture in LLVM by rsstack on Monday March 21, 2022 @03:31PM (#30758640)
The Google way: Force the rest of the world adjust to your new "cool thing", and then kill it because it wasn't that great.
Re:Lanai, the mystery CPU architecture in LLVM by monocasa on Monday March 21, 2022 @03:39PM (#30758730)
Google isn't really forcing anyone to do anything in this case. Another RISC backend that was made clear would be ripped out of upstream the instant the Google maintainers stopped responding isn't really an imposition.
Re:Lanai, the mystery CPU architecture in LLVM by hoten on Monday March 21, 2022 @03:46PM (#30758815)
The relevant discussion: https://lists.llvm.org/pipermail/llvm-dev/2016-February/0951...

Seems the maintainers were more than happy to accept it, and even had policies in place for such contributions. One maintainer even mentioned it's a good policy because it brings more developers into using LLVM's ToT, which is overall good for project health.

Re:Lanai, the mystery CPU architecture in LLVM by uluyol on Monday March 21, 2022 @03:45PM (#30758807)
Would something like this be accepted in open source projects that are not significantly driven by Google?

E.g. would Linux accept code for drivers / architectures that are not available to the public? I'm genuinely curious.

Re:Lanai, the mystery CPU architecture in LLVM by duskwuff on Monday March 21, 2022 @06:39PM (#30760673)
> E.g. would Linux accept code for drivers / architectures that are not available to the public?

Drivers is an unequivocal "yes". Here's an example -- from Google, in fact:

https://github.com/torvalds/linux/commit/e561bc45920aade3f8a...

Architectures is less likely. But the pendulum has swung away from "making your own architecture" anyways.

Re:Lanai, the mystery CPU architecture in LLVM by b-rian on Tuesday March 22, 2022 @01:05PM (#30768672)
But hey, even with that example, the same mechanism got adapted to Chromebooks+Coreboot and now uses that same driver here:

https://github.com/torvalds/linux/commit/d384d6f43d1ec3f1225...

Re:Lanai, the mystery CPU architecture in LLVM by JonChesterfield on Monday March 21, 2022 @04:02PM (#30759004)
xcore (mentioned in that thread) is pretty obscure and still in trunk last I looked. Extra backends don't carry that much of a maintenance cost, mostly patching them up on api changes. Weirder targets hit bugs that the common ones don't so there's a benefit from having them in tree too.

I'm not sure that generalises beyond modular compilers though.

Re:Lanai, the mystery CPU architecture in LLVM by rstat1 on Monday March 21, 2022 @04:15PM (#30759142)
Given how ridiculously strict the Linux folks are being with the DXGKRNL stuff that MS is working on (which is public as part of WSLg), I would say definitely not.
Re:Lanai, the mystery CPU architecture in LLVM by monocasa on Monday March 21, 2022 @05:26PM (#30759904)
I think that has more to do with DXGKRNL coming from Microsoft than any policy that would be applied to other contributers.
Re:Lanai, the mystery CPU architecture in LLVM by detaro on Monday March 21, 2022 @06:03PM (#30760301)
Other Microsoft contributions got into the kernel just fine.
Re:Lanai, the mystery CPU architecture in LLVM by monocasa on Monday March 21, 2022 @06:30PM (#30760586)
And other thin veneers over closed source paravirtualized VM graphics acceleration pipes get in as well, even from companies that flagrantly violate Linux's license.

I think that it's a difference of subtree maintainer as to why some Microsoft code gets in and some is fought tooth and nail; you can't treat Linux developers as a monolith, and the graphics side is significantly more Microsoft adverse.