Live data from Hacker News

Phel v0.36.0 – Lisp on PHP, now with numeric tower and first-class Vars

github.com

11–17 of 17 posts

Re: Phel v0.36.0 – Lisp on PHP, now with numeric tower and first-class Vars

#11
post #6

It would be great if the Phel repl could connect to a running PHP process

Phel has deep PHP interop built into the language: call any PHP function, instantiate classes, access globals via the php/ namespace from anywhere in your code. We also ship a Phel nREPL: a bencode-over-TCP server (phel nrepl) compatible with editor tooling like Calva, CIDER, and Conjure. Connect your editor and evaluate Phel code against a running process directly.

as for interop with PHP, does it support Attributes: https://www.php.net/manual/en/language.attributes.overview.p... ?

Re: Phel v0.36.0 – Lisp on PHP, now with numeric tower and first-class Vars

#12
post #10

Could not help but notice that this project has no explicit policy on whether AI contributions are allowed or not (i.e. nothing analogous to https://ziglang.org/code-of-conduct/ ).

Culture wars are not worth anyones time participating in. Stop it.

Re: Phel v0.36.0 – Lisp on PHP, now with numeric tower and first-class Vars

#13
This is fun to see. I wonder how they handle the fact that PHP puts every type of thing in its own namespace (names of classes, functions, constants, methods, variables, member variables, static variables and class constants don't conflict with eachother) and how not all namespaces have case-sensitivity. That's very un-lisp, maybe it just uses its own lisp-specific namespace?

Re: Phel v0.36.0 – Lisp on PHP, now with numeric tower and first-class Vars

#15

This is fun to see. I wonder how they handle the fact that PHP puts every type of thing in its own namespace (names of classes, functions, constants, methods, variables, member variables, static variables and class constants don't conflict with eachother) and how not all namespaces have case-sensitivity. That's very un-lisp, maybe it just uses its own lisp-specific namespace?

[deleted]

Re: Phel v0.36.0 – Lisp on PHP, now with numeric tower and first-class Vars

#17
post #6

It would be great if the Phel repl could connect to a running PHP process

Phel has deep PHP interop built into the language: call any PHP function, instantiate classes, access globals via the php/ namespace from anywhere in your code. We also ship a Phel nREPL: a bencode-over-TCP server (phel nrepl) compatible with editor tooling like Calva, CIDER, and Conjure. Connect your editor and evaluate Phel code against a running process directly.

That is cool! thank you.
Post reply on HN