C++17 progress update
reddit.com
reddit.com
It's probably possible to do serialization code generation at compile time in Rust.
struct pnt {
float x;
float y;
bool valid;
};
pnt p;
and then have auto s = serialize(p);
expand into auto s = serialize_field("x", p.x, serialize_field("y", p.y,
serialize_field("valid", p.valid)))
then serialization could be implemented by defining serialize_field for each
type. > It's probably possible to do serialization code
> generation at compile time in Rust.
This is precisely how it's generally done. See https://crates.io/crates/serde for an example.And to be fair, the competition is still getting there where it really matters that you write C++ code. Go is starting to be supported on ARM, but given that it had issues with i386 I'm not sure what kind of issues might show up. Swift is for now Apple only, not sure about Rust
Many of us only use first class support languages, regardless of other options might exist out there.
Yes, that's the reality unfortunately
There are very few options for small embedded hardware. Or even for desktop applications, as forgotten as they are today (though Java plays in this field)
Honestly, if modules alone make it into C++17, I will be a happy camper.
It looks like this change could reduce build times... but are there any benchmarks published yet? Sounds like clang has some support already.
See the CppCon videos:
https://www.youtube.com/watch?v=RwdQA0pGWa4
And the Microsoft proposal that is part of the Core C++ Guidelines:
https://github.com/isocpp/CppCoreGuidelines/tree/master/talk...
You get rid of rvalue references except for universal references.
bool t = false; bool t2 = true cout<<++t<<endl; cout<<++t2<<endl; ... 1 1
I had no idea you could do that. That's just odd.