Better HN
topnewbestaskshowjobs
Log inSign up

boundchecked

71 karma · joined Sep 22, 2022 (4y ago) · 24 submissions

Submissions

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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

comment 4y ago · link · parent

D has scopeguards similar to defer.

comment 4y ago · link · parent

I don't think Rust will ever consider FFI'in with another language "100% safe."

comment 4y ago · link · parent

I'm rooting for Golden C++.

comment 4y ago · link · parent

>// Hard-to-read CaMeLcAsEvArIaBlE

Absolutely.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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...

comment 4y ago · link · parent

>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.

11.

Defensive Coding for C/C++/Java/Python/Bash/Go/Vala(docs.fedoraproject.org ↗)

1 points · by boundchecked · 4y ago · discuss

comment 4y ago · link · parent

To be honest, this just described your grand post.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

>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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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!

comment 4y ago · link · parent

>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.

comment 4y ago · link · parent

I never saw it, tricky algorithm isn't it.

comment 4y ago · link · parent

same id, /u/boundchecked

comment 4y ago · link · parent

Could be, the sin of dynamic IP.

comment 4y ago · link · parent

Believe it or not this is my first account on HN as well, despite regular visit for years.

All artists must have debuted sometime long after they've been hearing music, aren't they?

comment 4y ago · link · parent

Coupled with WebGPU it might become the cleanest cross-platform/language abstraction to GPU programming.

24.

Tell HN: Reddit shadowban account upon creation

43 points · by boundchecked · 4y ago · 39 comments