Skip to content

Will Val take as long to compile as Rust? #730

Answered by kyouko-taiga
C-BJ asked this question in Q&A
Discussion options

You must be logged in to vote

Good questions.

The compiler for Val is written in Swift, does this affect compilation time significantly?

I don't think having the compiler written in Swift instead of Rust makes a significant impact. Rust is a fast language, so it should have very little impact on the speed Rust compiler. Instead, I think the compilation times in Rust have everything to do with the language design.

I don't know enough about Rust compiler to give an informed answer. I've heard Rust folks blaming LLVM, which would be an issue for Val too, but somehow I'm doubtful LLVM is the only culprit. Named lifetimes are probably hard to verify and it's possible they putting some heavy burden on the compiler. If I'm…

Replies: 0 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@kyouko-taiga
Comment options

@AbhinavK00
Comment options

@kyouko-taiga
Comment options

@matklad
Comment options

@kyouko-taiga
Comment options

Answer selected by C-BJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants