现在用到的python 开发效率很快,但是存在执行效率较慢的问题。这毕竟只是一种脚本语言。
有没有其他语言,有这种开发效率和大量的三方库做支持,但是是编译语言,因为,我觉得编译语言会比脚本这种语言快很多 !
不对之处还请指正!!!
黄舟2017-04-18 10:32:32
编译性
的概念应该相对于解释性
。python
除了语法上比较友好,另外一个特点就是大量三方库
.
Based on your requirements, it probably matches:
Golang
是静态强类型编译语言。性能和开发效率都不错,语法比C/C++
现代,比Python/Ruby
It’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 Golang
和Erlang
,毕竟用的人多。学习编程范式和自己玩的话推荐Elixir
, after all, many people use them. Recommended if you want to learn programming paradigms and play by yourself
黄舟2017-04-18 10:32:32
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
迷茫2017-04-18 10:32:32
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.
PHP中文网2017-04-18 10:32:32
Scala!
Elegant syntax!
Supports all Java libraries
I am also learning... I recommend a book "Learn Scala Quickly"