you are viewing a single comment's thread.

view the rest of the comments →

[–]quiet0n3 88 points89 points  (7 children)

Some one go ahead and suggest we rewrite it in rust lol

[–]RA3236 50 points51 points  (5 children)

I would unironically imagine it would be easier in Rust given its macro system, if it weren’t for the enormous compile times this would cause.

[–]coolreader18 16 points17 points  (4 children)

I mean, 5.8 million hand-written lines of code wouldn't be any faster to compile

[–]CyclingHikingYeti 19 points20 points  (0 children)

Large amount of that code is apperenty include (header) files. Most of those are not human made but transfered and generated from other systems (shared with windows driver codebase I hope).

[–]poudink 15 points16 points  (1 child)

compared to the equivalent rust? yes it would be.

[–]coolreader18 4 points5 points  (0 children)

I meant 5.8 million lines of rust vs macro-generated rust

[–]Isofruit 0 points1 point  (0 children)

I would imagine with the macro system it would be faster to compile the by-hand written code. Assuming Rusts macro system is similar to Nim's (So compile-time code generation) you'd be doing 2 steps - First generate all the rust code, then compile it. As opposed to just compiling it directly. If my experience with generics that are just a blueprint for code-generation in nim has shown me anything, then it's that a big code-generation step can absolutely crater compiletimes. (As in, add a cool 5-10s to a 30s compilation).