php-generics
phel-lang
php-generics | phel-lang | |
---|---|---|
7 | 16 | |
206 | 396 | |
- | 1.0% | |
4.3 | 9.1 | |
about 1 month ago | 6 days ago | |
PHP | PHP | |
MIT License | 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.
php-generics
-
How come there is no such thing as an equivalent to TypeScript in PHP?
Hi. I'm the author of the library which brings generics into PHP like TypeScript https://github.com/mrsuh/php-generics. Libraries like this have a few big problems to start using them freely:
-
Parsing with PHP, Bison and re2c
I used this knowledge to create the PHP generics library.
-
Comparing PHP Collections
Hi! I don't think so. Is used this library to translate generics syntax into regular PHP syntax. It's not equal to real PHP generics (like Hack did). IDE doesn't support PHP generic syntax yet. You can read about it here.
If you are only using simple collections you can use array - it is very fast and requires little memory. PHP doesn't support generic syntax and IDE can't make hints about the type of objects in a collection (yet), but if you want PHP to do type checks at runtime you can test the php-generics library.
-
PHP type erasure generics
A few months ago I created a PHP generics library with monomorphic generics. Today I released version 1.2.0 with type erase generics.
-
Generics implementation approaches
This approach has a big memory effect. PHP doesn't support native generics, but you can test monomorphized generics with my library.
-
PHP Generics. Right here. Right now
} ``` Library: https://github.com/mrsuh/php-generics Example repo: https://github.com/mrsuh/php-generics-example Have a nice day!
phel-lang
- Phel - a Clojure-like language that transpiles to PHP
- Go with PHP
- How come there is no such thing as an equivalent to TypeScript in PHP?
-
Phel, a native LISP for PHP
You can discover everything about this language in the official website: https://phel-lang.org/
-
Gacela helps you to split the logic of your app into different modules
Then sorry because I wasn't clear or the project itself is not clear enough. Maybe this other project using Gacela can help illustrating how it is connected to the infrastructure of the architecture: https://github.com/phel-lang/phel-lang/tree/master/src/php (check, for example, the modules Compiler or Run).
- I honestly code in php 4 since that's when i learned. I dislike the new php.
- Phel 0.5 has been released
-
Interesting or distinctive lisps?
Phel (https://phel-lang.org/) - built with PHP. Works with PHP ecosystem. Compiles down to php.
-
Favorite Lisp project? Shameless plugs welcome & encouraged!
Shameless plug: I'm working on the Phel language. A lisp that compiles to PHP: https://phel-lang.org/
- Inspired by Clojure, we created Phel as a dialect of Lisp that compiles to PHP
What are some alternatives?
php-generics-rfc - Mirror of https://wiki.php.net/rfc/generics for easier collaboration
coalton - Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.
php-var-sizeof - Function for getting size of any PHP variable in bytes
kandria - A post-apocalyptic actionRPG. Now on Steam!
shim - Shim version of PHP CS Fixer
cakelisp - Metaprogrammable, hot-reloadable, no-GC language for high perf programs (especially games), with seamless C/C++ interop
php-collections-comparison - https://dev.to/mrsuh/comparing-php-collections-5cca
hissp - It's Python with a Lissp.
ruby - The Ruby Programming Language
pgloader - Migrate to PostgreSQL in a single command!
php-generics-example
web-ctf-container - A training platform with different Scenarios of CTF Web Challenges