with algorithms you always see them written in the native language then put in somewhere, should we use the native language that an app is being developed in and use that language to call a lower-level language to make it zoom zoom zoom faster?
what
>>58983565
high-level language
-> call a low-level language algorithm file
-> get output back
-> continue using happy easy language
>>58983578
how high are you
>>58983588
pretttyyy high just want more speed in my language man
jack just wants speeed
I..... think I have a vague idea of what you're saying. Something like "why aren't non-native languages translated into machine code so they go faster." But that's what they do. I mean in order to run everything has to be translated into machine code.
Sure some translators are better than others, but it takes A LOT of work to get something like the V8 Javascript engine to work as well as it does.
>>58983546
This is exactly what a compiler does dipshit.
>>58983546
That's how software works.
The libraries you call are often written in a lower level language. Device drivers are almost always written in C, and all of your I/O depends on them.
>>58983598
BUT in php i mean a good idea would be to call a C program???
i just want SPEEEEEEEEEEEEEED
>>58983614
No one put any work into making PHP fast. Because PHP was never meant to be what a serious back-end language, it was just meant as a way to dynamically format simple websites. Use NodeJS.
>>58983627
Well PHP is a big language now, so why change the way it's programmed and rely on C more, for speed - and keep that native-backend feel that PHP gives.
>>58983627
>node
>fast
lmao if you aren't writing your entire webserver in c using sockets i dont know what to tell you
>>58983641
Someone tell me what the fuck this NodeJS shit is about and what it has to do with C, WHAT IS THIS LANGUAGE
>>58983641
Because all the programmers who got good enough to be able to optimize PHP got the hell away from PHP and never looked back.
>>58983642
All benchmarks disagree. Look, I hate Javascript too, but we're stuck with it. So you might as well live the life that has been made idiot-proof for you instead of dealing with compiling your own native apps to servers manually. Because if you're not digging into the Assembly, you're probably not getting much (if any) of a performance boost. Should be much smaller code, though, not that that really matters.
>>58983678
I felt my heart sink a little bit when I read "but we're stuck with it," like I've just accepted it.