Hacker GitHub

← All repos

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

Mentions per year 16 mentions · busiest year 2017 (5)
20082026
  1. …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…
  2. …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…
  3. …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
  4. 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
  5. People who write that much math can use a reader macro for infix notation: https://github.com/rigetti/cmu-infix
    comment by vindarel · 2022-05-04 · in Why Hy?
  6. …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…
  7. 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…
  8. …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)
  9. 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
  10. …https://www.cliki.net/infix https://github.com/peey/ugly-tiny-infix-macro https://github.com/rigetti/cmu-infix http://readable.sourceforge.net
    comment by lispm · 2019-08-05 · in Hy
  11. You can use CMU-INFIX: https://github.com/rigetti/cmu-infix
    comment by reikonomusha · 2019-05-14 · in Numpy Clone in Common Lisp
  12. …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…
  13. 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
  14. …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)
  15. …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
  16. 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)