News for hackers. Stuff that matters.
Re:Benchmarking 20 programming languages on N-queens and mat... by habibur on Wednesday January 03, 2024 @12:26AM (#38851058)
I put the pure math codes in C extension of PHP. Building C extension for PHP is easier than most of the other high level languages. And then things get blazingly fast.
Re:Benchmarking 20 programming languages on N-queens and mat... by brrrrrm on Wednesday January 03, 2024 @01:31AM (#38851375)
doesn't look that easy... zend_parse_parameters? pre-baked configure + make scripts?

check out how a modern language deals with this stuff https://bun.sh/docs/api/ffi#usage

Re:Benchmarking 20 programming languages on N-queens and mat... by rafark on Wednesday January 03, 2024 @03:45AM (#38851998)
Checkout what? PHP also has support for FFI. Or am I missing something?