截至目前,可用的编译服务器端语言有哪些?
我听说过 ASP.NET 编译的 DLL 只能在 Windows Server 上运行,但我想知道是否还有其他编译的服务器端语言?甚至可能是用于 Apache 服务器的语言?
运行时的安装应该不是问题,因为我可以物理访问 Unix/Windows 服务器,但如果它是 CGI 插件,那么它会带来额外的好处,因为我可以仅使用 FTP 安装它。
I've heard of ASP.NET compiled DLLs which only works on Windows Server, but I would like to know if there are any other compiled server side languages?, maybe even ones for Apache server?
Installation of the runtime shouldn't be a problem because I will have physical access to the Unix/Windows servers, but if it is a CGI plugin its an added benefit since I can install it using only FTP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Java 将位居与 Apache 一起使用的编译语言列表的首位 - 特别是当您脱离 Windows 时。
此外,您还可以通过 Mono 在非 Windows 平台上使用 ASP.NET。
Java would be at the head of the list of compiled languages for use with Apache - especially when you get away from Windows.
Also, you can use ASP.NET on non-Windows platforms with Mono.
您可以使用 Mono 运行 ASP.NET,它是 Apache 的 mod_mono
You can run ASP.NET using Mono and it's mod_mono for Apache
JSP 与 Tomcat
JSP with Tomcat
PHP 与 ASP.NET 类似,在运行时编译。 或者,如果您想采取额外的步骤,您可以使用 PHP 编译器来预编译 PHP(也是 ASP.NET 的功能)。
在我看来,PHP 不像 ASP.NET 那样令人愉快,但如果我仅限于 Linux,那么它可能会是我的选择,因为它的速度、整体流行度和支持。
PHP is compiled at runtime similar to ASP.NET. Or if you want to take the extra step you can use a PHP compiler to pre-compile your PHP (also a capability of ASP.NET).
PHP is not as pleasant to work with as ASP.NET in my opinion, but if I were restricted to Linux it would probably be my choice for its speed, overall popularity and support.
“编译语言”这个术语没有任何意义。 语言没有被编译。 语言是不被解释的。 语言只是是。
特定实现是否使用编译器或解释器是实现的一个特征,与语言无关。 事实上,每种语言都可以用解释器或编译器来实现。 事实上,绝大多数现代语言实现(CPython、Perl、PHP、YARV、IronRuby、HotSpot、Mono、CLR、TraceMonkey 等)都使用解释器和 > 编译器。 例如,HotSpot 会不断地在编译器和解释器之间切换,具体取决于哪个更快。
所以,回答你的问题:每种可以访问环境变量、从标准输入读取文本并将文本写入标准输出的语言都可以与 CGI 一起使用,因此 Apache(实际上几乎是地球上的每个网络服务器) 。 并且每种语言都可以被编译。 因此,每种语言都可以按照您描述的方式使用。
The term "compiled language" doesn't make any sense. A language isn't compiled. A language isn't interpreted. A language just is.
Whether a particular implementation uses a compiler or an interpreter is a trait of the implementation and has nothing to do with the language. Indeed, every language can be implemented with either an interpreter or a compiler. In fact, the vast majority of modern language implementations (CPython, Perl, PHP, YARV, IronRuby, HotSpot, Mono, CLR, TraceMonkey and so on) use both an interpreter and a compiler. HotSpot for example constantly switches between compiler and interpreter depending on which is faster.
So, to answer your question: every language that can access environment variables, read text from stdin and write text to stdout can be used with CGI and thus Apache (and indeed pretty much every webserver on the planet). And every language can be compiled. Therefore, every language can be used in the way you describe.