Re:Ultralisp: A fast-moving Common Lisp software distribution
by quotemstr on Monday June 17, 2019 @02:45AM
(#20200486)
I really wish someone would put together a new standardization of Common Lisp. The language could be much better with a few minor tweaks: for example, (function +) should be a generic function --- that it is isn't is a silly oversight. Compiler macros should have access to type inference information so that they can do a better job: right now, they're purely syntactic and give up lots of optimization potential as a result.
[ Parent
| on HN ]
Re:Ultralisp: A fast-moving Common Lisp software distribution
by flavio81 on Monday June 17, 2019 @01:18PM
(#20205181)
We already have all of the above in the form of libraries.
Common Lisp is extensible.
Re:Ultralisp: A fast-moving Common Lisp software distribution
by quotemstr on Monday June 17, 2019 @01:41PM
(#20205439)
We don't have any of those. #'+ is part of the core and can't be extended. There's also no facility for type propagation in library form.
Re:Ultralisp: A fast-moving Common Lisp software distribution
by vindarel on Saturday June 22, 2019 @10:56AM
(#20249924)
To extend #'+, equality functions and much more, see https://github.com/alex-gutev/generic-cl/. See also https://github.com/pnathan/generic-comparability
Re:Ultralisp: A fast-moving Common Lisp software distribution
by kgwgk on Monday June 17, 2019 @02:40PM
(#20206064)
You can shadow + and use your own implementation in your code, falling back to cl:+ when appropriate. Changing the existing language may be difficult, but building a modified language on top of it is possible: see Shen.