TIL, Rustc works like Bazel and also has encountered similar problems.https://www.youtube.com/watch?v=N6b44kMS6OM …
-
-
Replying to @ulfjack
do you think the bazel batch model can hold up with the world of language server style work? Like, what architecture for large scale builds would we choose if we wanted the VSCode experience to be the first class thing (but also want all the nice things: reproducibility, caching)
1 reply 0 retweets 2 likes -
Replying to @posco
I'm afraid I don't follow. Can you clarify? What are you referring to with "batch model"? What's specifically problematic about the VSCode experience?
1 reply 0 retweets 1 like -
Replying to @ulfjack
When you edit code, the build graph also changes. We want each edit to show instant feedback but with e.g. bazel we need to go edit BUILD and save. Then potentially rebuild some view of the project for VSCode.
1 reply 0 retweets 1 like -
The batch model is the bazel current model: type build to compile in batch. No notion of: here is a diff relative to the previous state, give me in 100 ms an updated state to draw for the user’s editor.
1 reply 0 retweets 1 like -
Maybe the problem is just speed, and if you can run bazel in a loop of once per 100ms everything would be fine, but users used to instant feedback are usually disappointed with the bazel experience (at stripe, which is maybe on us).
1 reply 0 retweets 0 likes -
But to me, it seems like Nikos is saying in this talk, designing for incremental UI showing feedback on each change might lead to different choices.
1 reply 0 retweets 0 likes -
Replying to @posco
What kind of feedback do you want to show in 100ms? Bazel has to integrate with compilers that don't work like rustc, and if Bazel calls a tool and the tool takes 200ms, there's not much Bazel can do about that.
2 replies 0 retweets 0 likes -
Replying to @ulfjack
I don’t know man. I code in vim. But these kids like little red squiggles showing up when they type something wrong. I’m wondering if the entire architecture of build needs to be rethought to make that experience really nice in a large scale build.
2 replies 0 retweets 3 likes
imagine red squiggles... in vim!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.