ciao
php
Our great sponsors
ciao | php | |
---|---|---|
3 | 7 | |
243 | 63 | |
4.1% | - | |
8.8 | 5.7 | |
about 2 months ago | 5 months ago | |
Prolog | HTML | |
GNU Lesser General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ciao
- PHP: Prolog Home Page
-
An embeddable Prolog scripting language for Go
Some Prolog systems (like Ciao Prolog https://github.com/ciao-lang/ciao/blob/master/core/lib/forei...) implement bidirectional foreign interfaces. Once you have C bindings it is easy to write bindings from Rust, C++, or any other language (that can interoperate with C). I give here some details about Ciao because this is the system I know better but it should be similar for other popular Prolog implementations.
The tradeoffs depend on the complexity of the Prolog code and your needs for performance and features: pure LP, Prolog (search+unification+cut), garbage collection, dynamic database updates, constraint domains, etc. The Ciao Prolog engine is around 300-400KB. Adding a few libraries, compiler, etc. it goes to 2MB. Naive Prolog systems can be one order of magnitude smaller at the cost of sacrificing ISO compatibility, performance, etc. Note that "performance" can be very misleading. Some Prolog programs may run particularly fast in some Prolog system and very badly in others.
- Keeping POWER relevant in the open source world
php
-
What is your favorite programming language?
I thought you might enjoy this, if you haven't seen it already.
- PHP is Prolog implemented in C, compiled to WASM, speaking CGI, executed by a Rust runtime, interpreting PHP-style templates
-
PHP: Prolog Home Page
When I clicked the last commit message was too good. Preserving just in case they are doing rapid releases: https://github.com/guregu/php/commit/65b1e991f473d6ac0dd9de4...
-
The beauty of CGI and simple design
Recently I enjoyed some "retrofuturistic" development with WASM and CGI. Spin[1], a webserver written in Rust, can execute WASI[2] binaries that speak CGI. You can then deploy it to Fermyon Cloud or your own server and it "just works". It's a wonderful mix of old and new. I used it for PHP (Prolog Home Page): https://github.com/guregu/php
[1]: https://spin.fermyon.dev/
[2]: WASI is a POSIX-ish standard for WASM that gives you all the low level stuff like standard input and output. It includes all the bits and pieces needed for CGI to work.
What are some alternatives?
prolog - The only reasonable scripting engine for Go.
logtalk3 - Logtalk - declarative object-oriented logic programming language
Prolog-to-List-Prolog - Converts Prolog algorithms to List Prolog algorithms
quickserv - Dangerously user-friendly web server for quick prototyping and hackathons
trealla-js - Trealla Prolog for the web
trealla - A compact, efficient Prolog interpreter written in plain-old C.
go - Trealla Prolog embedded in Go using WASM
librealsense - Intel® RealSense™ SDK
packages-http - The SWI-Prolog HTTP server and client libraries
Gleemin - A Magic: the Gathering™ expert system
sozluk-cgi - one of the first versions of ekşi sözlük code as of may 1999