chsasank / llama.lisp

Lisp dialect designed for HPC and AI
GNU Lesser General Public License v2.1
15 stars 6 forks source link

Add support for nested macros #84

Closed chsasank closed 3 months ago

chsasank commented 3 months ago
        ,(muladd
            ,(arr-idx c ldc 0 0)
            ,(arr-idx a ldc 0 p)
            ,(arr-idx b ldc p 0))

Wouldn't have worked before, now it does. Also - in lisp are converted to _ in python.

GlowingScrewdriver commented 3 months ago

Also - in lisp are converted to _ in python.

Are you sure this is a good idea? Maybe we should just catch hyphens in the name and throw an error instead of messing with the name. Alternatively, we could change the name but issue a warning along with it.

chsasank commented 3 months ago

I want to do this, yes.