@seanbax
Sean Baxter
1 year
I wrote a proposal for memory safety in C++. It's in this month's WG21 mailing. https://t.co/aeh9Q9YCeP
23
86
508

Replies

@DarrylMiles
Darryl Miles
1 year
@seanbax The work you are doing is great for the future of C++ even if the form ends up committeed into ugliness. Did I understand correctly the Itanium ABI on x86_64 is used by circle? Is there a write up on the rationale/pros/cons? When are you next due to live cast an interview?
1
0
1
@seanbax
Sean Baxter
1 year
@DarrylMiles The whole linux ecosystem uses itanium abi. Crucial to support it.
1
0
7
@is_losy
b
1 year
@seanbax are we matching freak with rust? they got unsafe blocks, now we have safe blocks?
1
0
1
@seanbax
Sean Baxter
1 year
@is_losy That's the gist of it.
0
0
10
@static_assert_0
static_assert(false)
1 year
@seanbax Sean I noticed for the safe context you say “the following make the program ill-formed” but you also list that each unsafe action is “undefined behavior” I thought a program was either ill-formed or UB? Can it be both?
2
0
0
@seanbax
Sean Baxter
1 year
@static_assert_0 It's ill-formed in the safe context. In the unsafe context it could raise UB. The unsafe context is all existing C++ code. It's full of operations that can't be checked for soundness.
0
0
12
@motonarola
Ilia Averianov
1 year
@seanbax Awesome! How does it compare to cpp2
1
0
0
@seanbax
Sean Baxter
1 year
@motonarola Cpp2 isn't memory safe.
0
0
12
@GpMueller
GPMueller
1 year
@seanbax Why prescribe panic on out of bounds for builtin types etc, instead of making it an implementation-defined choice of exception or panic? For testing & debugging I’d probably want to have exceptions thrown. Or maybe my safety requirements preclude me from abrupt termination
1
0
0
@seanbax
Sean Baxter
1 year
@GpMueller Went back and forth but didn't want to put conditional noexcept-specifiers on the accessors and everything downstream of those. That just makes a mess.
0
0
1
@Saamur_ai
Samurai
1 year
@seanbax I feel too much borrowed from Rust :)) I like how Rust's default behavior is to move values, I wish C++ had that
1
0
0
@seanbax
Sean Baxter
1 year
@Saamur_ai Why is it too much borrowed from Rust? Rust solves the safety problem.
1
0
10
@nikc_12
nick12
1 year
@seanbax were you surprised by the poll results you mention at the end? “We should promise more committee time on borrow checking?” — SF: 20, WF: 7, N: 1, WA: 0, SA: 0
1
0
0
@seanbax
Sean Baxter
1 year
@nikc_12 Hard to say what the poll means. Somewhat should ask the direction group what the safety strategy is.
1
0
1
@migueldeicaza
Miguel de Icaza ᯅ🍉
1 year
@seanbax Congratulations!
0
0
6
@jfbastien
JF Bastien
1 year
@seanbax Nice 😎
0
0
6
@makemake_kbo
makemake
1 year
@seanbax i gotchu fam
0
0
0
@odinthenerd
Odin Holmes
1 year
@seanbax Your work ethic is impressive. 💪
0
0
6
@PeterRindal
peter rindal
1 year
@seanbax Recently I've been thinking "where have Sean Baxter's c++ Twitter updates gone? Hope he's ok. " I know see you've been hard at work. Thank you!
0
0
6
@krisjusiak
Kris Jusiak
1 year
@seanbax Simply amazing stuff @seanbax! Congrats!
0
0
4
@JakeTuero
Jake Tuero
1 year
@seanbax Congrats, its a huge milestone 🥳
0
0
2
@progtools
Progtools
1 year
@seanbax It looks great, looking forward how it goes.
0
0
1
@agoodney
Andrew Goodney
1 year
@seanbax Good luck with the standards process! Reading @__phantomderp makes me think the process is… challenging 😥
1
0
1
@FrodeFrafjord
frode
1 year
@seanbax I love to be able to restrict my code with "feature on safety". However, I'm worried that it will take forever to agree on what "safety" should be. I think it would be beneficial to have a version number, allowing us to get started sooner.
0
0
0
@joebosah
Joe Bosah
1 year
0
0
0
@lolzareverser
SLooo7e
1 year
@seanbax boring... just use Rust
0
0
0
@kazum93
kazum93🇪🇺💜
1 year
@seanbax Nice work! Hope not to many complains. The only thing that's a bit confusing is that the examples are made in circle which might be miss leading otherwise great
0
0
0
@HonorataKw82289
Honorata Kwęk
1 year
@seanbax A link to 2024-09 WG mailing is still not available at
0
0
0
@MarkusWerle
Enola Mastodon 💧 (Clearly Specified Parody) 㡹
1 year
@seanbax Can you please generate a version with a Sans Serif font? Asking for a friend.
0
0
0