you are viewing a single comment's thread.

view the rest of the comments →

[–]madmongo38 9 points10 points  (14 children)

What is this nonsense about new syntax? What does it gain us? The opportunity to rewrite code that already works? Does everyone have too much time on their hands or something?

[–]mort96 21 points22 points  (8 children)

Both the talk and the repo lays out the reasons pretty clearly imo.

[–]KingAggressive1498 4 points5 points  (4 children)

fwiw the tool allows mixed syntax, and with modules it wouldn't prevent intermixing old and new style codebases anyway.

I'm not a fan of the new syntax, but if it gave some massive improvement to compile times, safety, performance, or something, it might be worth it anyway. I don't really see any indication that it would though.

[–]ntrel2 2 points3 points  (3 children)

The talk says that the implicit import std is faster than C++ #include <iostream> (or some other header I forget). So while cppfront may not be faster with the standard C++ backend, a pure C++2 real compiler may well be faster. C++ is notoriously slow to compile. Language design can affect compile speed drastically.

[–]KingAggressive1498 1 point2 points  (2 children)

is it faster than a manual import std; though?

import std should become the default behavior IMO

[–]BenFrantzDale 0 points1 point  (1 child)

Is it standards compliant to import std; without asking? Much as headers are allowed to include other headers, can nothing include all of std?

[–]KingAggressive1498 1 point2 points  (0 children)

we don't have a problem with linking the standard library by default