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)
IF cost_of_settlement < cost_of_court_action THEN pay_up(); /* ? */
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.
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.
(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 )
Nothing stopped you from implementing them yourself.
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.
https://en.wikipedia.org/wiki/Lisp_(programming_language)#Hi...
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”.
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.