sci

Lone Ranger 2022-10-27T12:27:54.050599Z

Python finally invented #sci! https://peps.python.org/pep-0554/

🥁 1
😁 1
teodorlu 2022-10-28T08:33:25.596829Z

> Looks like the stdlib might support it: https://docs.python.org/3/library/ast.html > Yeah, there's support for going text->ast and back, plus interpretation of the ast. But writing that ast is such a chore compared to a quoted sexp (I tried)

Lone Ranger 2022-10-28T13:06:04.581979Z

there is some really brilliant AST code out there though

👀 1
Lone Ranger 2022-10-28T13:09:04.207629Z

https://github.com/gilch/hissp#examples

👀 2
Lone Ranger 2022-10-28T13:11:31.907329Z

https://docs.hylang.org/en/stable/interop.html

👀 1
Lone Ranger 2022-10-28T13:11:45.263579Z

Both of those kinda blow my mind at their ability to extend Python

🔥 1
teodorlu 2022-10-28T13:12:17.680699Z

Yeah - it's amazing how dynamic Python is when you start digging

Lone Ranger 2022-10-28T13:12:20.023369Z

One of those uses the AST directly to modify the interpreter live

Lone Ranger 2022-10-28T13:12:37.129669Z

yeah the kit certainly comes with enough rope to hang yourself haha

teodorlu 2022-10-28T13:12:44.340279Z

😁

teodorlu 2022-10-27T13:12:48.081359Z

I'd say lots of languages deserve a sci! So much simpler to provide a flexible userspace when there's an interpreter isolated from side effects.

teodorlu 2022-10-27T13:14:42.788789Z

Shame they don't have code as data and have to rely on passing strings around :(

respatialized 2022-10-27T17:17:55.674859Z

Can you pass a Python AST as an argument to a function? Would be a nice alternative to strings alone.

respatialized 2022-10-27T17:24:12.834349Z

Looks like the stdlib might support it: https://docs.python.org/3/library/ast.html

Lone Ranger 2022-10-27T18:09:56.672689Z

hehh I'm pretty interested in some nightmare combination of these subinterpreters + sci + libpython-clj and see how much damage we can do there

2
😁 1
Lone Ranger 2022-10-27T18:10:14.116099Z

I bet we can pass a libpython-clj form into a libpython-clj subinterpreter

Lone Ranger 2022-10-27T18:10:25.944219Z

and just bypass the AST thing altogether