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.
[ Parent
| on HN ]
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