Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust 吐槽贴 #14

Open
Praying opened this issue Nov 20, 2020 · 5 comments
Open

Rust 吐槽贴 #14

Praying opened this issue Nov 20, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@Praying
Copy link
Owner

Praying commented Nov 20, 2020

大家可以在此贴下面发表对Rust的各种爱恨情仇。

@Praying Praying added the bug Something isn't working label Nov 20, 2020
@Pure-Peace
Copy link
Contributor

编译慢到爆炸!!!
改动一小行等个一两分钟才能debug,我还是直接执行的cargo run...没有开启优化(大型actix-web项目)

果然还是拆成微服务好点。。刚开始写的时候感觉还好啊,编译没有想象中那么慢啊,写到后面卧槽,太慢了吧

@Pure-Peace
Copy link
Contributor

编译慢到爆炸!!!
改动一小行等个一两分钟才能debug,我还是直接执行的cargo run...没有开启优化(大型actix-web项目)

果然还是拆成微服务好点。。刚开始写的时候感觉还好啊,编译没有想象中那么慢啊,写到后面卧槽,太慢了吧

可能我是写python、js这种解释语言写多了被惯的~~但是解释型语言开发起来真的舒服

@wyhhh
Copy link

wyhhh commented Nov 22, 2020

语言语法有待精简, 人工parse还是太累了点, 满屏点信息量铺过来。 其次对数组支持还不好, 缺少动态数组, 很多时候我并不是想要一个容器(String -> Box<str>, PathBuf -> Box<Path>), 而是一个在堆区的不变的数据, 而Rust中主流字符串是String, 这是容器, Pathbuf等等。 还是精简, 有些名字也许可以精简下, 比如Opition(Opt), Result(Res), 还有什么PhatomData这些我强迫症还是觉得名字太长太丑了。。(有人喷我我就删回答, 看着办)。 哦, 当然还有生命周期不够精准, 还有很大提升空间, 期待新borrowck。异步是大杀手锏, 银弹, 据说Rust的异步速度非常快, 期待快速发展吧

@MATRIXKOO
Copy link
Collaborator

没必要 过分强调rust的安全性 其实还是有不少漏洞的 。看成一个有整合在编译器的“cppcheck"的语言就好了

@shenshouer
Copy link

cargo run 慢到令人发指

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants