7 ms·
This reminds me of a book called "numerical recipes in C", full of algorithms that were very useful except you couldn't really use them because the authors prot
by amelius 7y ago
This reminds me of a book called "numerical recipes in C", full of algorithms that were very useful except you couldn't really use them because the authors protected their use with a very restrictive license.
- jarekkruk 7y agoOn the other hand I haven't seen red black tree implementation that isn't based on Cormen (in most cases quoted).
- martincmartin 7y agoYou could use the algorithms, just not their implementation of the algorithms. If you rewrote it from scratch, following their text (not their source code), you were fully allowed to use it.
- hackinthebochs 7y agoI'm curious how this works in the case of reinvention. Some algorithms are so simple that there is basically one canonical way of writing it. I'm assuming copyright doesn't cover the independent implementation in such cases?
- ww520 7y agoReinvention is ok in term of copyright. Patent would prohibit it.
- SteveNuts 7y agoWhat would happen if I patented "left pad" in a bunch of languages?
- thayne 7y agoit would be an invalid patent (or at least should be), because 1. There is prior art 2. it is obvious to a domain expert But given the US patent office's track record, I wouldn't be too surprised if you were able to get a patent. Just don't expect it to hold up in court.
- OOPMan 7y agoThe patent would get thrown out on review
- rurban 7y agoNot if you avoid the common names and invent a new name for it. Nowadays they are just doing some searches and patent granted.
- pnw_hazor 7y agoBehold the three pillars of IP protection. Copyright protects the What (tangible creative works, such as, printed publications, movies, sound recordings, source code, and so on) Trademark protects the Who (who made this service or product) Patent protects the How (how does this widget do what is does)
- matharmin 7y agoCode cannot be patented - copyright covers that. Patents on software are not that simple - it needs to describe an entire physical system that gives value to a user, not just an abstract function that does computation.
- CryptoBanker 7y agoYour patent would be rejected presumably
- jrochkind1 7y agoHypothetically, until we get to Google v. Oracle, and now really nobody has any idea what the hell is going on.
- ska 7y agoThey protected their code. If I recall correctly you could license it separately. Nothing stopped you from implementing them yourself.
- nabla9 7y agoThe implementations are short and simple for easy reading, so they are not the most efficient or practical. Early versions of the code had bugs, so you should not use the old versions of the book.
- mhh__ 7y agoThe key is to do what Steven Muchnick did for his Compiler textbook: Write the algorithms in a made up programming language so no one can run them and find the bugs. I'm not being facetious, it's called ICAN, and as far as I can tell no compiler exists for it. Other than that it's a great book though, although maybe showing its age in that there isn't much discussion of OOO and ILP etc. And SSA.
- nabla9 7y agoDonald Knuth did it first. First with MIX, then with MMIX. http://mmix.cs.hm.edu/ http://mmix.cs.hm.edu/
- Dylan16807 7y agoIt's a fun reference, but it's very different. It's a CPU rather than a language, he implemented it, and it was designed to be easy to implement.
- analog31 7y agoAs I understand it, Lisp was originally expected to be a teaching or proof language with no implementation, then it got implemented. https://en.wikipedia.org/wiki/Lisp_(programming_language)#History https://en.wikipedia.org/wiki/Lisp_(programming_language)#Hi...
- lispm 7y agoNo, Lisp was developed from 1958 onwards as a list processing language for the IBM 704. http://jmc.stanford.edu/articles/lisp/lisp.pdf http://jmc.stanford.edu/articles/lisp/lisp.pdf Page 7: > The implementation of LISP began in Fall 1958. The original idea was to produce a compiler, but this was considered a major undertaking, and we needed some experimenting in order to get good conventions for subroutine linking, stack handling and erasure. Therefore, we started by hand-compiling various functions into assembly language and writing subroutines to provide a LISP ”environment”.
- chrisseaton 7y agoDid you know that you can't use copyright to protect an algorithm?
- dsl 7y agoBut you can copyright the most efficient implementations.
- chrisseaton 7y agoYou can only copyright the text of the source code, as if it was literature. Write your own source code to implement the same algorithm using the same efficient techniques, and you're fine (as long as it isn't patented.)
- FalconSensei 7y agoso... rename the variables?
- smnrchrds 7y agoOn a more serious note, this: https://en.wikipedia.org/wiki/Clean_room_design https://en.wikipedia.org/wiki/Clean_room_design
- deleted 7y ago[deleted]
- chottocharaii 7y agoIt depends on the jurisdiction. e.g. Such a thing would not be copyrightable under Australian law. That could be a way around it.
- taneq 7y agoAs mentioned above, some algorithms are so simple that there's only one canonical way to write them. (Take 'looping through an array' for example - in each language there's generally one canonical way to do it.) You could argue that the text of that canonical way is copyrightable. (It's similar to the early days of heat engines, where a guy called James Pickard managed to patent the crank, preventing other engine manufacturers from using cranks and forcing them to use a sun-and-planet gear arrangement instead: https://en.wikipedia.org/wiki/Sun_and_planet_gear https://en.wikipedia.org/wiki/Sun_and_planet_gear )
- analog31 7y agoAmusingly, I had the old "Numerical Recipes" before there were versions for the different languages. Since I was writing in BASIC and then Pascal, I had no hope but to re-write the code myself anyway, and I couldn't afford to update when the new editions came out. Not too long ago, a colleague asked me if I had a good code for linear regression, and I sent him a copy of the page from my undergraduate data analysis textbook, which had it in FORTRAN IV.
- fredophile 7y agoI have that book sitting on my bookshelf and would never dream of copying anything verbatim from it. Writing the code out yourself can significantly improve readability of the code.
- endgame 7y agoI have been to briefings about source code licensing that specifically call that book out as "do not open".
- castratikron 7y agoI started out a project by copying RK4 verbatim. Over several months it morphed and took on a life of its own as I integrated it into other parts of the program and smoothed out the inefficiencies. At what point does it stop being a derivative work I wonder?
- Danieru 7y agoNever. Derivation is not a property which can be "lost". Deriving more things through the process of derivation at not point stops the derivation connection. You should not include code at any point if you do not have the proper license for it. The copyright pollution spreads and any attempt to "clean room it" would be more expensive than re-writing from scratch.