🐘 PHP Digest

14 result(s) for β€œscalar”

1
Quick local API docs with Scalar

Today I’m sharing a quick-and-dirty script to take an OpenAPI description, spin up a docs server locally, and copy the URL into your clipboard. I also use a bit of glob expansion in my script to find the right folder, because I have a lot of APIs with long and formulaic di…

Blogs lornajane.net <span class='p-author h-card'>lornajane</span> 9mo ago
2
Simple Dic With Object Typehint

Following the raging success of PHP 7.0 additions scalar type hints and return types, there is also place for object typehint and return type. That feature can replace double is_object() validation inside function/method. I decided to write an RFC:Object-typehint. Why do we need…

Blogs brzuchal.com MichaΕ‚ Brzuchalski 120mo ago
3
LLVM: Scalar evolution

Scalar evolution (SE or SCEV) models how values change inside loops. It can answer questions like “how many iterations does this loop perform?” and “What value does this variable have on the Nth iteration?” As such, it is the main building block for loop optimizations. Scalar ev…

Blogs npopov.com NikiC 33mo ago