.NET 的编译型强类型替代品?
是否有一种适合构建 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
不知道你说的“编译”是什么意思。 那么Java呢?
Java 有很多用于 Web 开发的框架。 例如Tapestry:
Not sure what do you mean by saying "compiled". What about Java ?
Java has a lot of frameworks for web development. For example Tapestry:
Java 满足所有标准
Java meets all the criteria
如果您的意思是编译为 win32 代码,而不是中间语言,请尝试 Delphi。
If you mean compiled to win32 code, and not to an intermediate language, try Delphi.
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.
只是为了完整起见:理论上,人们甚至可以使用 Ada 来满足这些要求:
还有 Ada“aws”包,位于 http://libre.adacore.com/自由/工具/aws/
该框架包括:
请参阅 http://www.adacore.com/wp -content/files/auto_update/aws-docs/aws.html 用于 aws 文档
http://en.wikibooks.org/wiki/Ada_Programming/Libraries/Web
Just for the sake of completeness: In theory, one could even use Ada to satisfy those requirements:
There is also the Ada "aws" package available at http://libre.adacore.com/libre/tools/aws/
The framework includes:
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
你到底想要什么?
您需要编译的东西还是高性能的东西?
您是否需要强类型的东西,或者您是否需要可以轻松帮助您调试错误的东西? (单元测试有时是编译器更好的替代品)
您的客户是否要求它不是用 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.
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.
也许你的意思应该是“编译为机器代码”?
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.