News for hackers. Stuff that matters.
Re:Debian Running on Rust Coreutils by ognarb on Tuesday March 09, 2021 @05:27AM (#26397352)
I find it a bit strange that the rewrite is licensed under MIT. Are they doing a clean room reimplement or are they rewriting the core utils by looking at the source code?
Re:Debian Running on Rust Coreutils by arp242 on Tuesday March 09, 2021 @05:39AM (#26397415)
In my experience looking at the source code of programs written in a different language is rarely helpful. It's only useful to glean some general ideas or algorithms. But rewriting with one eye on some C code? Rarely helpful and usually counterproductive.
Re:Debian Running on Rust Coreutils by justinclift on Tuesday March 09, 2021 @05:44AM (#26397458)
> It's only useful to glean some general ideas or algorithms.

Sure, but they'll also have an easier time of ensuring they're "pretty close" to fully reproducing the original.

At least, in comparison to having to reverse something black box. :)

Re:Debian Running on Rust Coreutils by nindalf on Tuesday March 09, 2021 @06:50AM (#26397936)
They're trying to be compliant to the interface of the original, not the implementation. Now whether the interface itself can be copyrighted ... the SCOTUS will weigh in on that soon (https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_...)
Re:Debian Running on Rust Coreutils by curt15 on Tuesday March 09, 2021 @09:36AM (#26399142)
If the SCOTUS says yes, would the original GNU coreutils even retain their GPL license given that they reimplemented pre-existing, non-GPL utilities?
Re:Debian Running on Rust Coreutils by codys on Tuesday March 09, 2021 @11:25AM (#26400364)
Not necessarily. The non-GPL utilities the GNU coreutils are based on are presumably licensed as MIT, ISC, Public Domain, or similar. If that is the case, those licensing regimes don't forbid adding extra restrictions, so adding the restrictions of GPL would be permitted, and the new derived (again, assuming interfaces are copyrightable) work would operate as being essentially GPL licensed. Things get murky as there are proprietary utilities too that coreutils are probably based on, but then there are also specifications of behavior (SUS, Posix) which might or might not sever the "derivation path" of the work, or might introduce further licensing constraints.
Re:Debian Running on Rust Coreutils by nojito on Tuesday March 09, 2021 @07:33AM (#26398191)
That case has no bearing on this because they aren't deciding if "interfaces can be copyrighted"
Re:Debian Running on Rust Coreutils by throwaway17_17 on Tuesday March 09, 2021 @09:05AM (#26398818)
Do you view APIs as something other than an interface? A ruling from the Supreme Court may not reach the ultimate issue, but if it does, what assumptions would you make concerning the difference between an API and a program’s interface with the user?
Re:Debian Running on Rust Coreutils by nindalf on Tuesday March 09, 2021 @09:53AM (#26399332)
An Application Programming Interface is ... an interface. As this very link points out, there are many programs that use coreutils via this interface.

Rust coreutils replacing GNU coreutils in these programs by implementing the same interface is the same issue.

I’m not sure if it’s possible to spell it out clearer than this.

Re:Debian Running on Rust Coreutils by not2b on Tuesday March 09, 2021 @07:19PM (#26406272)
They don't need the source code; they have the standards specs, the man pages, and the test suite.