9

Arturo语言的评测

 2 years ago
source link: https://scifx.github.io/posts/1659278699/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Arturo语言的评测

Jul 31, 2022 22:44 · 419 words · 1 minute read Arturo 编程

我写了文件内容搜索的测试

用Nim、Python、Arturo、Autohotkey一共四种语言写了

测试数据:


代码量(行 Python(20+)>Autohotkey(20+)>Nim(15+)>Arturo(8

运行速度(秒 Nim(35+)>Python(45+)>Arturo(45+)>Autohotkey(2min+)


由于Arturo是用Nim写的语言

所以底层函数工作还是调用Nim的

这个walkDirRec很占内存?

而且运行速度跟内存使用有关,

所以同一程序Arturo的测试速度也忽上忽下,

Arturo的程序最快也试过45秒跑完。

有时候几乎很Python一样,但仅仅8行代码,

随手就能写出来,

无痛解决问题。

所以,结论就是Arturo真的太爽啦!


Python虽然语法简洁,但是有时候内置的函数很难用,嵌套又深,每个函数都有自己的用法。

Java之流我更是嗤之以鼻,你永远领会不到8行解决一个问题的快乐!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK