quil-lang/cmu-infix
View on GitHub ↗ ★ 39 Common Lisp
Updated infix.cl of the CMU AI repository, originally written by Mark Kantrowitz
16 mentions on Hacker News by 4 people: 0 stories, 16 comments · first 2017-05-02 · latest 2025-02-26
20082026
-
…we have to have a space surrounding the "->". One thing I like about the infix reader macro package https://github.com/quil-lang/cmu-infix is that it doesn't care about spaces, I can write #I(1+1 + 4) and get 6.) I'm quite happy putting my…
comment by Jach · 2025-02-26 · in These years in Common Lisp: 2023-2024 in review -
…contrary (while I'm here might as well link for the nth time, the solution available since 1993: https://github.com/quil-lang/cmu-infix ). It was such education years ago from a HN comment that made me give CL another look and then never…
comment by Jach · 2024-06-05 · in Ask HN: 30y After 'On Lisp', PAIP etc., Is Lisp Still "Beating the Averages"? -
…orbital dynamics of the solar system, then perhaps having the above library would be useful. [1] https://github.com/quil-lang/cmu-infix
comment by reikonomusha · 2022-11-08 · in From Common Lisp to Julia -
Fortunately doing infix math in CL has since the 90s been one small library include away: https://github.com/quil-lang/cmu-infix
comment by Jach · 2022-11-08 · in From Common Lisp to Julia -
…from trivial things. But this is Lisp, and my worries were solved when I was still just a toddler: https://github.com/quil-lang/cmu-infix Being in my .sbclrc file I can always use infix math whenever I need, and it's trivial to add it as a…
comment by Jach · 2022-04-21 · in New blog about my journey to develop a Common Lisp 3D software -
The Lisp version can also be more readable with a macro (like https://github.com/quil-lang/cmu-infix ): #I(a*(1.0-t) + b*t). Or something else that would let you write GP's preferred syntax. One of the things that makes Lisp Lisp is that…
comment by Jach · 2022-01-17 · in Failing to Learn Zig via Advent of Code -
…and manipulate just like any other lists. Another cool macro that's been around since 1993 is https://github.com/quil-lang/cmu-infix which lets you write math in infix style, e.g. #I( C[i, k] += A[i, j] * B[j, k] ) where A, B, and C are…
comment by Jach · 2021-10-27 · in Why Lisp? (2015) -
You don't have to give up on anything, that's the beauty of Lisp. Here's a library from 1993: https://github.com/quil-lang/cmu-infix Though personally I don't particularly find (+ 1 2 3 4 5) less readable than 1+2+3+4+5, and since most of…
comment by Jach · 2021-05-28 · in An Intuition for Lisp Syntax -
You can use CMU-INFIX: https://github.com/rigetti/cmu-infix
comment by reikonomusha · 2019-05-14 · in Numpy Clone in Common Lisp -
…at compile time to save some function calls at runtime. Want infix math? You can have infix math: https://github.com/rigetticomputing/cmu-infix Going crazy with lexical nesting (similar to callback hell, but imagine each callback needs to…
comment by Jach · 2017-12-09 · in Lisp at the Frontier of Computation [video] -
CL-INFIX [0] gives you infix syntax in Lisp a la carte. [0] https://github.com/rigetticomputing/cmu-infix/blob/master/RE...
comment by reikonomusha · 2017-10-15 · in Switching from Common Lisp to Julia -
…for those curious I like linking to this gem dating back to '93 since it's part of quicklisp now https://github.com/rigetticomputing/cmu-infix The rest of the syntax being somewhat alien-ish is also a problem, but it goes away with…
comment by Jach · 2017-09-06 · in Lisp Machine Manual (1984) -
…suddenly started sporting infix operator notation? You mean like this? (I linked it the other day.) https://github.com/rigetticomputing/cmu-infix But one might argue that the prefix notation + macros being able to support such a library is…
comment by Jach · 2017-05-04 · in I tried Haskell for 5 years -
Fortunately with Lisp this isn't an unsolvable problem. https://github.com/rigetticomputing/cmu-infix
comment by Jach · 2017-05-02 · in Not Lisp again (2009)