英文:
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://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:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论