Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, it can.

http://www.livelogix.net/logix/intro.html

Logix is built on Python and compiles down to Python bytecode, so you can use it with Python modules, but it has macros that I think are probably as powerful as Lisp's. It's meant for DSLs.



Could you give an example that's more powerful? From the 60-second intro you linked to, these look no more powerful than C's macros.

http://en.wikipedia.org/wiki/C_preprocessor#Macro_definition_and_expansion


I don't use it myself; I just had it in my bookmarks.

I am also not very familiar with Lisp's macros. You may find something of interest in the more complete documentation.

Sorry.


I agree, thanks for the link. Unfortunately, I find the complete lack of syntax to make it even harder to read than Lisp macros (which I don't personally find difficult, but some do). Additionally, having to use numbers to indicate operator precedence seems a bit strange. Of course, Lisp solves this by always using parentheses, but I would be curious to see if there is a more elegant way of handling this than the numeric approach (or even the approach suggested in their proposed changes to Logix).


I agree with you. The lack of parentheses makes that hard to read. I am trying to get head wrapped around lisp (maybe thats it, I am _looking_ for the parentheses :)).


Thanks for posting that. We're building a DSL for our users and this will get put on the stack of things to look into. We're Python hackers so it's a good find.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: