[Info-vax] OS implementation languages
plugh
jchimene at gmail.com
Mon Sep 11 19:39:43 EDT 2023
On Monday, September 11, 2023 at 4:14:46 PM UTC-7, Arne Vajhøj wrote:
> On 9/11/2023 9:42 AM, plugh wrote:
> > I'll propose an explanation for PHP's wide-spread use: websites built
> > using rented infrastructure. While you get a choice of OS, one
> > usually doesn't get to choose the toolchain for building/deploying
> > applications. It's quite rare that one can "easily" deploy an
> > application built using a compiler-based toolchain. Far easier to
> > upload (ftp> mput src/*) an application built using a script
> > language-based toolchain.
> It would probably be problematic in that regard to use languages
> that compile to native. You can't build on the web hotel and if
> you build local then it will be different OS, different OS version,
> different C RTL or different something else that prevent it from
> running when uploaded.
>
> But it is not a real problem, these kind of languages (static typed
> compiled to native) are not suited for web applications anyway.
That's not true. I use a compiled (Rust) backend to respond to various HTTP POST requests. There's much more to the web than HTML. But you know that.
>
> There are a number of languages being used for web applications.
>
> Several script ones: PHP, Python, Ruby, JavaScript (assuming we do not
> consider transpiling ES6 or TS as compilation).
I think you're making my point for me? Those are all examples of the FTP MPUT {path} deployment technique; which was what I wrote as a reason scripting languages are mostly chosen over compiled; which to you seems to mean translation to machine code/byte code before execution.That excludes PHP encoders (zend, ion cube...); which requires a toolchain build. There's also the PHAR configuration tactic; which can be deployed via FTP
Sadly, on c.o.v. you're omitting Perl. "How the mighty have fallen!"
>
> Some that are compiled to byte code and therefor with less
> dependency on the platform. This include Java and C#.
Agreed. ibid.
>
> PHP still came out on top.
Agreed. LAMP.
>
> And we can also see many large companies that runs their own data center
> still picked PHP.
I can't explain such pathological cases.
> > For reference, consider the Web developer's
> > acronym: LAMP Bemoan it all you want, but here you are.
> There are many of those LAMP, LEMP, MEAN, MERN etc.etc..
Again, making my point for me! Looks like you see the reasons fo PHP's raison d'etre
>
> Arne
More information about the Info-vax
mailing list