logoalt Hacker News

ncrucestoday at 7:51 AM1 replyview on HN

Also can the code even be copyrighted?

For my machine translation of SQLite to Go I added this to the README as to licencing:

Most of the code here is machine translated using wasm2go. As such, the original authors retain copyright and the original licenses remain in effect. Everything else is licensed under MIT-0.

The translator (wasm2go) has a licence chosen by, and a copyright notice from, me. Makes no sense for the translated code.


Replies

wasting_timetoday at 12:32 PM

I do the same for translated code. It's not creative work which is a prerequisite for being copyrightable.

And avoid relying on direct LLM output for actual work to make sure I don't accidentally include some regurgitated snippet from an incompatible license.

It helps that LLMs struggle to write good, idiomatic code in my language of choice.