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

64 points
1/21/1970
6 days ago
by Chemaclass

Comments


TazeTSchnitzel

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?

2 days ago

[deleted]
2 days ago

midnight_eclair

"inspired by clojure" - is there a better signal for good taste and quality?

6 days ago

manytimesaway

Inspired by PHP :^)

Just kidding, even though I both love Clojure & PHP.

3 days ago

bitwize

"inspired by Scheme"

"inspired by CL"

3 days ago

bmacho

"inspired clojure" ?

2 days ago

masijo

I've been following this project for a while, congratulations on the release!

Even though I don't have much use for PHP at the moment, I wish it finds a niche in the market and becomes widely used. Good luck!

2 days ago

Chemaclass

Phel compiles a Clojure-flavoured Lisp to PHP. v0.36.0 ships exact rationals (1/2 literals), arbitrary-precision BigInteger with overflow auto-promotion, BigDecimal, first-class Vars (#'sym, alter-var-root, with-redefs, watches), and new value types (UUID, Queue, MapEntry). Plus REPL and test boot are notably faster.

6 days ago

isaisabella

Great work on this release! Glad to see the dot-separated namespace syntax being standardized in the core.

6 days ago

pkphilip

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

3 days ago

Chemaclass

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.

3 days ago

ahmed1hsn

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

2 days ago

segmondy

Love this!

2 days ago

nz

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/).

2 days ago

__alexs

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

2 days ago