> The translation is considered a derivative work of the source code. And derivative works are copyrighted.
Decompiled code isn't a translation though but a recreation. It's impossible to use freshly decompiled code for any purpose and there's zero chance any of the original code looks like this.
In music terms it's more akin to an reinterpretation and that wouldn't be a derivative either as far as I know.
The musical equivalent would be to create a music sounding similarly enough to old mario games which would make you remember the games but without being a derivative by itself as it never used any of the originals. And as far as I know, in music you are allowed to do that without being a derivative, otherwise all copycat rock bands of the 80s would be under the same copyright.
But it is not impossible to use it, otherwise you wouldn't need it. Creating a reinterpretation of software without looking at the decompiled code is fine, that's what OpenMW or Wine do.
> The musical equivalent would be to create a music sounding similarly
That's a parody or homage though. And still not the same, I'd argue cover songs are reinterpretations. Say I do a Jazz cover of a theme from Mario.
> But the goals of music reproduction is to reproduce the original artwork, in case of a decompilation it's an explicit non-goal as it's impossible anyways.
If I "decompile" a movie into a script, that won't perfectly match the original script. I'd have to add my own stage directions, set descriptions, etc. And of course the film never 100% matches the original script. Is that script now somehow not Harry Potter and the Goblet of Fire?
Individual ideas are fine, but good luck convincing a jury that your script about a boy in wizard school stealing an egg from a dragon as the first task of cross-school tournament wasn't lifted from a popular movie. In a similar vein, code that compiles to function exactly the same as a large complicated software seems suspect.
Sure that's also possible, that's also what librw (Renderware engine) has done here for GTA3 and Vice city, only the game code itself was decompiled, not the game engine.
But then again, it's not because you use the binary that it makes it a derivative of the original source code. The conversion of source code to binary loses tons of information, it's a destructive process.
> If I "decompile" a movie into a script, that won't perfectly match the original script. I'd have to add my own stage directions, set descriptions, etc. And of course the film never 100% matches the original script. Is that script now somehow not Harry Potter and the Goblet of Fire?
I'd say no, that's a different movie script.
A song recording copyright is separated into copyright of the performance, and copyright of the underlaying work.
> it's the translation of the source code to the binary because the source code is what's copyrighted at the end of the day.
The translation is considered a derivative work of the source code. And derivative works are copyrighted.
Otherwise GPL would have not be able to require source code alongside distribution of binaries.