模块化设计 #64
Chronostasys
started this conversation in
Ideas
模块化设计
#64
Replies: 1 comment 1 reply
-
问题1: 现有代码 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
模块化
对应issue: #63
api
pivot lang的模块化预计会采用类似rust的语法
例子如下:
use的东西一定是模块而不能是函数之类的,使用某个模块的函数就需要
aaa::bbb()
.性能
在用户改文件的时候大部分模块的处理结果会用salsa进行cache,
关于并发: 不想干module可以并发进行处理,同module下的文件可以并发进行parse,但是不能并发进行emit。
Beta Was this translation helpful? Give feedback.
All reactions