4 ms·
The hello world example takes 2.5s to compile on a 2.6GHz i7 + SSD. Adding 9 new routes bumps the compile time to 4.5s. 30 routes = 10s compile time. Seems like
by reubenmorais 11y ago
The hello world example takes 2.5s to compile on a 2.6GHz i7 + SSD. Adding 9 new routes bumps the compile time to 4.5s. 30 routes = 10s compile time. Seems like this would get out of hand quickly for any moderately complex project.
Other than having to deal with complex templates, I personally wouldn't choose this for web development because the advantages of the strongly typed routing are dwarfed by the dangers of writing C++, especially when alternatives like Rust exist today if you really need the low level performance advantages.
- matt42 11y agoIndeed, compile time is a currently a problem for API with a large number of routes. It'll probably get better with the C++17 Module TS. What do you mean by the dangers of writing C++?
- reubenmorais 11y agoI mean the memory safety pitfalls of C and C++, mostly.
- matt42 11y agoYou can write Silicon APIs without the use of any pointer, which save you from most of the segv you can get with these languages.
- deleted 11y ago[deleted]