解释型与编译型语言

huangapple go评论90阅读模式
英文:

Interpreted and Compiled Language

问题

我听说过Python是一种解释型语言,而Java是一种编译型语言。这使得Python(通常情况下)在快速开发方面更加便利,但相比编译型语言运行稍慢。然而,Java在快速编写方面稍显困难,但由于是编译型语言,运行速度较快。因此,我的问题是,是否有可能创建一种在开发时是解释型的编程语言,但在发布时可以编译?是否已经存在这样的语言?

英文:

I have heard that python is an interpreted language, while java is a compiled language. This makes python (generally) easier to develop quickly, but makes it a bit slower than a compiled language. Java however is a bit harder to write quickly, but since it's compiled it runs faster.
So my question is, would it be possible to make a programming language that is interpreted for development, but then can be compiled for publishing? Does such a language exist already?

答案1

得分: 0

是的,请尝试Racket

这是一种可以逐步开发的编程语言,可以编译成字节码在虚拟机上运行,并且具有文档和强大的宏功能,对新手友好

附加:
您可能想阅读以下内容:

https://www.pypy.org/

https://github.com/root-project/cling

英文:

Yes, please try Racket

It is a programming language that can be developed incrementally and can be compiled into bytecode to run on a virtual machine, and has documents and powerful macros that are friendly to newcomers.

add:
you may want to read it:

https://www.pypy.org/

https://github.com/root-project/cling

huangapple
  • 本文由 发表于 2020年9月30日 01:08:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/64124429.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定