News for hackers. Stuff that matters.

Ask HN: Is pseudocode copyrightable?

Can you for example implement an algorithm from pseudocode in a Wikipedia article without worrying about copyright issues?

What exactly is pseudocode in this context? Is English text combined with math formulas considered pseudocode? What if it is highly suggestive of how it would be implemented?

And what if the pseudocode looks a lot like a real implementation (e.g., say in python)?

( 7 comments | 5 points | on HN )
Re:Ask HN: Is pseudocode copyrightable? by russell on Tuesday May 19, 2009 @12:01AM (#616219)
IANAL, but nearly any recorded/written down is copyrightable. However ideas are not. If you implement from pseuso-code, it is another expression of the same idea. Different forms of expression have different rules on how different the new work must be to be unique. If you copied a function and just changed the variable names, it could be argued that it was an infringement.

If you copy a compilable function and give attribution, probably no one will care. If you copy a whole enterprise system, they might. If the original author cares, there should be a rights notification in the code. In particular Wikipedia articles have the GNU Free Documentation license, so you are pretty safe there.

Re:Ask HN: Is pseudocode copyrightable? by amichail on Tuesday May 19, 2009 @12:08AM (#616226)
The Wikipedia license is a copyleft license, which may present problems for software that is not open source.

I would also rather not credit a Wikipedia article in my closed source software unless it's really necessary.

Re:Ask HN: Is pseudocode copyrightable? by spectre on Tuesday May 19, 2009 @01:51AM (#616342)
Somehow I don't think Wikipedia would sue you for implementing their pseudocode.
Re:Ask HN: Is pseudocode copyrightable? by adelle on Tuesday May 19, 2009 @03:04AM (#616396)
I would rather credit Wikipedia as the source of a common "well-known" algorithm than leave the door open to claims from some third party.
Re:Ask HN: Is pseudocode copyrightable? by micks56 on Tuesday May 19, 2009 @01:17AM (#616305)
Copyrights protect original works of authorship fixed in any tangible medium of expression. Copyright protection also extends to derivative works. If a new work is transformative when compared to a parent work, the child work is not considered derivative. In that case copyright doesn't extend to the child work. In the opposite case the opposite would be true.

So the issue is whether an algorithm implementation is transformative when compared to the pseudocode.

The answer to your main question is fact specific. Each case is different and a court of law will look at the specific facts and make a ruling.

Talk to a lawyer for counsel that relates to your specific facts.

Re:Ask HN: Is pseudocode copyrightable? by indexzero on Tuesday May 19, 2009 @10:11AM (#616809)
Pseudocode is an informal representation of an algorithm using informal language. Not only is that copyrightable since it is an original work, but I would also argue that it could be patentable because the underlying algorithm is patentable.
Re:Ask HN: Is pseudocode copyrightable? by erlanger on Tuesday May 19, 2009 @12:25AM (#616247)
Scribbles are copyrightable.