HackerTrans
TopNewTrendsCommentsPastAskShowJobs

boundchecked

no profile record

Submissions

Defensive Coding for C/C++/Java/Python/Bash/Go/Vala

docs.fedoraproject.org
1 points·by boundchecked·4 lata temu·0 comments

Tell HN: Reddit shadowban account upon creation

43 points·by boundchecked·4 lata temu·39 comments

comments

boundchecked
·4 lata temu·discuss
If you count optimizing your ill-formed function into an inlined panic [1] as "bug eliminated at compile-time", then it may be true!

https://godbolt.org/z/M7Gr3TazE
boundchecked
·4 lata temu·discuss
Reminds me of this post just from few days ago[1]. I wish HN had a rule or two dedicated to PL tribalism.

https://news.ycombinator.com/item?id=33382003
boundchecked
·4 lata temu·discuss
D has scopeguards similar to defer.
boundchecked
·4 lata temu·discuss
I don't think Rust will ever consider FFI'in with another language "100% safe."
boundchecked
·4 lata temu·discuss
I'm rooting for Golden C++.
boundchecked
·4 lata temu·discuss
>// Hard-to-read CaMeLcAsEvArIaBlE

Absolutely.
boundchecked
·4 lata temu·discuss
Have you tried converting iterations to SIMD and using vector extension to target x86, ARM, Webassembly and compile for Linux/Windows/MacOS with a simple piece of code? It's a pretty significant speed up and it only work with Clang.
boundchecked
·4 lata temu·discuss
I don't know what motivate you to keep repeating this narrative, Clang currently have good support of C++23 while MSVC have none[1], if your emphasis is on the standard library side, Clang is the only one that is compatible to all three major implementations and do use libstdc++ and MS STL on their respective "main" platforms.

Also, why isn't Microsoft in the "profit from Clang" list? Is Clang-CL not shipped in Visual Studio Installer? Did they find a way to compile Edge with VC++?

https://en.cppreference.com/w/cpp/compiler_support/23
boundchecked
·4 lata temu·discuss
I'm also curious, especially they seem to be gearing towards analysis as well.

https://github.com/llvm/clangir/blob/main/clang/lib/CIR/Dial...
boundchecked
·4 lata temu·discuss
>Direct Rendering Manager and graphics drivers

>Updated drm(4) to Linux 5.15.69

>inteldrm(4): support for Alder Lake, Raptor Lake

I have fond memory of booting OpenBSD the first time last year on an AMD RDNA GPU, after installation a simple "fw_update" got me a hardware accelerated graphic environment going. Very impressive in my book.
boundchecked
·4 lata temu·discuss
To be honest, this just described your grand post.
boundchecked
·4 lata temu·discuss
Zig's comptime variables had this fairly bonkers behavior that basically evaluate by themselves regardless of the underlying runtime controlflow[1], I thought it was cool, but seems to be disabled on trunk build.

[1]https://godbolt.org/z/dbnG9eev7
boundchecked
·4 lata temu·discuss
C++20 coroutines demonstrated one side of committee-led modern C++ that left an impression of it is ultimately designed-by and -for library writers; instead of being suggested third-party library or "wait for C++23" for better experience, I'd love to see these related machinery released the same time in the standard library.
boundchecked
·4 lata temu·discuss
>Not Linux, but Systemd

Or maybe it is Linux's choice to not build an official default init system like BSDs that led to all the drama.
boundchecked
·4 lata temu·discuss
Skylake-X on X299 can be configured to not downclock at all, the light and heavy stages are referred in BIOS as AVX2- and AVX512-offsets, but of course that comes with extra heat and power draw. The voltage transition period can't be mitigated AFAIK.
boundchecked
·4 lata temu·discuss
Not many people realize is that recent glibc brought AVX-512 optimized str* and mem* functions to the ifunc dispatch table, your C code may have been using fancy mask registers on someone's Intel laptop!
boundchecked
·4 lata temu·discuss
>Reddit previously accepted accounts with no email address

They still do, I registered without an e-mail. That may have worsened my credibility according to their algorithm, however. I considered adding an e-mail to the account but feared the possibility of my e-mail being blacklisted as well.
boundchecked
·4 lata temu·discuss
I never saw it, tricky algorithm isn't it.
boundchecked
·4 lata temu·discuss
same id, /u/boundchecked
boundchecked
·4 lata temu·discuss
Could be, the sin of dynamic IP.