.NET 的编译型强类型替代品?

发布于 2024-07-06 08:47:28 字数 232 浏览 9 评论 0原文

是否有一种适合构建 Web 应用程序的编程语言,它是经过编译的、强类型的,并且不是 ASP.NET?

我想过使用 Mono (http://www.mono-project.com/),但是我想知道是否还有其他替代方案。

(如果语言和框架是开源的,那就是一个很大的优势!)

Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET?

I thought of using Mono (http://www.mono-project.com/), but I wonder if there are any other alternatives.

(If the language and framework are open-source, that's a big plus!)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

那一片橙海, 2024-07-13 08:47:28

不知道你说的“编译”是什么意思。 那么Java呢?

Java 有很多用于 Web 开发的框架。 例如Tapestry

Tapestry是一个开源框架
用于创建动态、稳健、高度
Java 中的可扩展 Web 应用程序。

Not sure what do you mean by saying "compiled". What about Java ?

Java has a lot of frameworks for web development. For example Tapestry:

Tapestry is an open-source framework
for creating dynamic, robust, highly
scalable web applications in Java.

╰つ倒转 2024-07-13 08:47:28

Java 满足所有标准

Java meets all the criteria

扛刀软妹 2024-07-13 08:47:28

如果您的意思是编译为 win32 代码,而不是中间语言,请尝试 Delphi

If you mean compiled to win32 code, and not to an intermediate language, try Delphi.

说谎友 2024-07-13 08:47:28

spring框架和java语言。

http://www.springframework.org/ 开源并在业界广泛使用。

特别是检查 spring-mvc 和 spring web-flow 模块,它们使创建 Web 项目变得更加简单。

The spring framework and the java language.

http://www.springframework.org/ opensource and extensively used in the industry.

In particular checkout spring-mvc and spring web-flow modules which make creating web projects a lot simpler.

墨离汐 2024-07-13 08:47:28

是否有一种适合构建 Web 应用程序的编程语言,它是经过编译的、强类型的,并且不是 ASP.NET?

只是为了完整起见:理论上,人们甚至可以使用 Ada 来满足这些要求:

AdaCGI 是“通用网关接口”(CGI) 的 Ada 95 接口。 AdaCGI 可以更轻松地创建可由万维网 (WWW) HTTP 服务器使用标准 CGI 接口调用的 Ada 程序。 使用它,您可以创建 Ada 程序,根据 WWW 用户的请求执行查询或其他处理。 AdaCGI 以前称为“Package CGI”。AdaCGI 是开源/免费软件,并使用 LGPL(“Lesser General Public License”)许可证发布。

Ada for the Web:本网站致力于推广 Ada95 的使用用于对 Web 和 Internet 小程序以及应用程序、服务器和浏览器进行编程的主要语言。

还有 Ada“aws”包,位于 http://libre.adacore.com/自由/工具/aws/

首先,AWS 代表 Ada Web Server,但它不仅仅是另一个 Web 服务器......

AWS 是一个用于开发基于 Web 的应用程序的完整框架。 该框架的主要部分是嵌入式Web服务器。 这个小型但功能强大的 Web 服务器可以嵌入到您的应用程序中,以便您的应用程序能够与标准 Web 浏览器(例如 Microsoft Internet Explorer 或 Netscape Communicator)进行通信。 围绕这个 Web 服务器开发了很多服务。

该框架包括:

* A Web parameters module. This module takes care of retrieving the forms or URL parameters and to build an associative table for easy access.
* A session server, this is a very important module to be able to keep client’s data from page to page.
* Support SOAP to develop Web Services.
* A tool (based on ASIS) to generate a WSDL document from an Ada spec.
* A tool to generate Web Services stubs/skeletons from a WSDL document.
* A template parser, this module makes it possible to completely separate the Web design from the code. No more scripting into your Web page. This template engine is amazingly fast due to its concurrent cached compiled templates support.
* An Ajax runtime based on templates hiding javascript.
* Support for Secure Sockets (HTTPS/SSL), this is based on OpenSSL library.
* Support for large servers using dispatchers based on URI, request methods, timers.
* Support for virtual hosting (dispatchers based on the host name).
* Support for server push.
* A directory browser ready to be used in any application.
* A status page to get many information about the current AWS server.
* A log module. Log files keep information about all resources requested to the server.
* Hotplug modules which can be loaded/unloaded dynamically to add specific features to a server.
* A light communication API to exchange data between applications using the HTTP protocol.
* A configuration API to tune/change the server parameters without recompilation.
* A client API to retrieve any Web page from a Web site.
* A Web Page service to build a simple static page server.
* Support for SMTP, LDAP and Jabber protocols.
* And more…

使用AWS构建的服务器非常容易部署。 您只需要复制并启动一个可执行文件。 无需执行 Web 服务器安装和配置步骤。

请参阅 http://www.adacore.com/wp -content/files/auto_update/aws-docs/aws.html 用于 aws 文档

http://en.wikibooks.org/wiki/Ada_Programming/Libraries/Web

Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET?

Just for the sake of completeness: In theory, one could even use Ada to satisfy those requirements:

AdaCGI is an Ada 95 interface to the "Common Gateway Interface" (CGI). AdaCGI makes it easier to create Ada programs that can be invoked by World Wide Web (WWW) HTTP servers using the standard CGI interface. Using it, you can create Ada programs that perform queries or other processing by request from a WWW user. AdaCGI was formerly named "Package CGI".AdaCGI is open source/free software, and is released using the LGPL ("Lesser General Public License") license.

Ada for the Web: This website is dedicated to promoting the use of Ada95 as a major language for programming Web and Internet applets and applications, servers and browsers.

There is also the Ada "aws" package available at http://libre.adacore.com/libre/tools/aws/

First of all, AWS stands for Ada Web Server but it is more than just another Web server…

AWS is a complete framework to develop Web based applications. The main part of the framework is the embedded Web server. This small yet powerful Web server can be embedded into your application so your application will be able to talk with a standard Web browser like Microsoft Internet Explorer or Netscape Communicator for example. Around this Web server a lot of services have been developed.

The framework includes:

* A Web parameters module. This module takes care of retrieving the forms or URL parameters and to build an associative table for easy access.
* A session server, this is a very important module to be able to keep client’s data from page to page.
* Support SOAP to develop Web Services.
* A tool (based on ASIS) to generate a WSDL document from an Ada spec.
* A tool to generate Web Services stubs/skeletons from a WSDL document.
* A template parser, this module makes it possible to completely separate the Web design from the code. No more scripting into your Web page. This template engine is amazingly fast due to its concurrent cached compiled templates support.
* An Ajax runtime based on templates hiding javascript.
* Support for Secure Sockets (HTTPS/SSL), this is based on OpenSSL library.
* Support for large servers using dispatchers based on URI, request methods, timers.
* Support for virtual hosting (dispatchers based on the host name).
* Support for server push.
* A directory browser ready to be used in any application.
* A status page to get many information about the current AWS server.
* A log module. Log files keep information about all resources requested to the server.
* Hotplug modules which can be loaded/unloaded dynamically to add specific features to a server.
* A light communication API to exchange data between applications using the HTTP protocol.
* A configuration API to tune/change the server parameters without recompilation.
* A client API to retrieve any Web page from a Web site.
* A Web Page service to build a simple static page server.
* Support for SMTP, LDAP and Jabber protocols.
* And more…

A server built with AWS is very easy to deploy. You just need to copy and launch a single executable. There is no Web server installation and configuration steps to do.

See http://www.adacore.com/wp-content/files/auto_update/aws-docs/aws.html for the aws documentation

http://en.wikibooks.org/wiki/Ada_Programming/Libraries/Web

隱形的亼 2024-07-13 08:47:28

你到底想要什么?

您需要编译的东西还是高性能的东西?
您是否需要强类型的东西,或者您是否需要可以轻松帮助您调试错误的东西? (单元测试有时是编译器更好的替代品)
您的客户是否要求它不是用 ASP.Net 编写的?
是否存在.Net 代码无法运行的技术要求?

您正在寻求一种技术来解决您尚未正确定义的问题。

What exactly are you asking for?

Are you asking for something compiled, or something performant?
Are you asking for something strongly typed, or are you asking for something that will easily help you debug errors? (unit testing is sometimes a better subtitute for compilers)
Is there a requirement from your customer that it's not written in ASP.Net?
Is there a technical requirement that .Net code cannot be run?

You are asking for a technology to solve problems you haven't properly defined.

最美不过初阳 2024-07-13 08:47:28

Mono 并不是一种不同的编程语言,它只是 Unix 系统(也包括 Mac)的 .NET 框架的开源实现。 它的目标是与 .NET 完全兼容,因此您最终会以同样的方式使用 C# 和 ASP.NET。

Mono is not a different programming language, it's just an open source implementation of the .NET framework for Unix systems (and Macs too). It aims to be totally compatible with .NET, so you'd end up using C# and ASP.NET just the same.

八巷 2024-07-13 08:47:28

也许你的意思应该是“编译为机器代码”?

C# 和 Java 被编译为中间语言,然后在运行时进行解释。

大多数不错的解释器在运行时将其编译为实际的机器代码以加快速度(即时编译)。

当然,它的效率不高,但许多语言功能将很难实现(例如垃圾收集)。

拥有中间语言还允许您编译的代码在不同平台上运行。

Maybe you should meant "compiled to machine code"?

C# and Java are compiled to an intermediate language which is then interpreted at run time.

Most decent interpreters compile this to actual machine code at runtime to speed up (Just In Time compiling).

Of course it is not as efficient, but many language features would be extremely hard to implement otherwise (for example Garbage Collection).

Also having an intermediate language allows your compiled code to run on different platforms.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文