有没有一种编译语言像python一样方便高效?
巴扎黑
巴扎黑 2017-04-18 10:30:32
0
4
654

现在用到的python 开发效率很快,但是存在执行效率较慢的问题。这毕竟只是一种脚本语言。

有没有其他语言,有这种开发效率和大量的三方库做支持,但是是编译语言,因为,我觉得编译语言会比脚本这种语言快很多 !

不对之处还请指正!!!

巴扎黑
巴扎黑

reply all(4)
黄舟

编译性的概念应该相对于解释性python除了语法上比较友好,另外一个特点就是大量三方库.

Based on your requirements, it probably matches:

  • Golang是静态强类型编译语言。性能和开发效率都不错,语法比C/C++现代,比Python/RubyIt’s still far behind. The third library is not as good as python, and there are also commonly used basic libraries.

  • Swift is a statically strongly typed compiled language. The syntax is also relatively modern, and both the client and server can hold it. The number of third-party libraries is okay and the community is active.

  • Erlang is a dynamically typed compiled language. The syntax is slightly weird and suitable for distributed IO-intensive operations. Third-party libraries, their own OTP platform is incredibly powerful.

  • Elixir is a dynamic compiled language based on Elrang VM and ruby-like syntax. It can be interpreted and executed as a script or compiled into a binary executable file. In the words of the old man: it has the joy of ruby ​​and the performance of Erlang. There are not too many third-party libraries, but the community is active.

If you are doing projects, I recommend Golang and GolangErlang,毕竟用的人多。学习编程范式和自己玩的话推荐Elixir, after all, many people use them. Recommended if you want to learn programming paradigms and play by yourself

🎜
黄舟

The key is to look at your application scenario

Working on web backend,Go是最符合的,学起来快,库也很成熟,最大的缺点可能是社区较小,碰到问题不知道问谁。当然,你也可以去学tornado.

For data, Python就不用换了,一大堆C extension’s library is definitely efficient enough for non-BAT level applications.

As for scala容易学的那位同学,你知道下划线_, are there four ways to use it (escape

迷茫

js: It is not a compiled language, but node.js has a good JIT. Using TypeScript again is very close to a compiled language.

The library is not worse than py and is a fully compiled language. At this stage, it may only be JVM. If you are willing to pay the learning cost, scala can save a lot of code.

洪涛

Scala!

  1. Elegant syntax!

  2. Supports all Java libraries

  3. I am also learning... I recommend a book "Learn Scala Quickly"

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!