Hacker News new | ask | show | jobs
by jstummbillig 1384 days ago
Historically up to this point, I don't see anything that would have prevented you from doing most excellent things in this world, if PHP was the last and only programming language you had ever learned or known about.
1 comments

Has anyone made FFI bindings so we can write kernel modules in PHP yet?

I mean all this push for "Rust in the kernel" is nice and all, but do we really need fancy things like "transitive equality"? They have played us for absolute fools.

Sometimes you just want a language that really puts in the work to find a reason why "0x10" == "16z" should be true, no matter what kind of improbable implicit casts have to be done to get there.

PHP makes the impossible possible, and you've got to keep life interesting or it would be too predictable!

  $ php -r 'var_dump("0x10" == "16z");'
  bool(false)
  
  $ php -r 'var_dump(0x10 == "16z");'
  bool(false)
  
  $ php -r 'var_dump(0x10 == (int)"16z");'
  bool(true)
True! Apologies for the mistake :)