-->

نوظف

نقدم اخر أخبار الوظائف في المملكة العربية السعودية مباشرة من المؤسسات الحكومية والقطاع الخاص

New Show Hacker News story: Show HN: SSO – Small String Optimization

Show HN: SSO – Small String Optimization
2 by feelamee | 0 comments on Hacker News.
I wrote this just for fun when saw article about sso in Rust[1]. My string can store up to 23 (excluding null-terminator) 8-bit chars without calling allocator. Here I can mistake, but.. Curious fact: both - libstdc++[2] and libc++[3] - do access to union member without any check that it is active now. AFAIK, this is UB in C++. But I assume that they just rely on theirs compiler features. I tried to avoid this using `std::byte[]`. But I'm still sure that there are several UB's in my code :) [1] https://ift.tt/aQXK5ut... [2] https://ift.tt/lhHLsgk... [3] https://ift.tt/BzIoT6u...

تعليقات

New Show Hacker News story: Show HN: SSO – Small String Optimization

Show HN: SSO – Small String Optimization
2 by feelamee | 0 comments on Hacker News.
I wrote this just for fun when saw article about sso in Rust[1]. My string can store up to 23 (excluding null-terminator) 8-bit chars without calling allocator. Here I can mistake, but.. Curious fact: both - libstdc++[2] and libc++[3] - do access to union member without any check that it is active now. AFAIK, this is UB in C++. But I assume that they just rely on theirs compiler features. I tried to avoid this using `std::byte[]`. But I'm still sure that there are several UB's in my code :) [1] https://ift.tt/aQXK5ut... [2] https://ift.tt/lhHLsgk... [3] https://ift.tt/BzIoT6u...

تعليقات

Advertisement Center [Setting]

var setting = { taghtml: "br", index: "3" };

Count Viewer

Contact Static Page

الاسم

بريد إلكتروني *

رسالة *