开发者

Is there some lispy language that seamlessly integrates with Python?

开发者 https://www.devze.com 2023-02-03 08:06 出处:网络
Is there a langu开发者_如何学Cage based on S-expressions with powerful macros that allows as seamless integration with Python as Clojure with JVM?

Is there a langu开发者_如何学Cage based on S-expressions with powerful macros that allows as seamless integration with Python as Clojure with JVM?

I want to try using such syntax and features while having access to all usual python libraries (including PyQt).


I've been working a project to do this: psil. I have a series of blog posts talking about what I've done. Here's the short manifesto:

Psil is a new general-purpose programming language in the Lisp family of languages. Psil is implemented on top of Python, allowing easy access to existing Python libraries.

  • Best features from Lisp and Scheme
  • Complete language in its own right
  • Built upon the Python standard libraries
  • Strong interoperability with Python code

The reality hasn't quite caught up to the vision; for example I don't think there is a way to declare new classes in Psil code that can be used from Python. But at least for functions, it's mostly there.

Note that Psil is built completely on Python 3, and there is no Python 2 version. I don't know whether there is a PyQt for Python 3.


While these aren't exactly what you're looking for, check:

CLPython - an implementation of Python in Common Lisp

(An ((Even Better) Lisp) Interpreter (in Python))


Check out Boo; it's a python-inspired language that runs on the CLR, with built-in support for full macros. If that's what you're missing from Lisp, give it a shot. A friend swears by it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号