HNHacker News
TopNewBestAskShowJobs

boundchecked

71 karma · joined September 22, 2022

submissionscomments
boundchecked··on Two years of fiddling with Rust
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··on Next C compiler is a D compiler: Introducing DMD's ImportC
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··on Next C compiler is a D compiler: Introducing DMD's ImportC
D has scopeguards similar to defer.
boundchecked··on Next C compiler is a D compiler: Introducing DMD's ImportC
I don't think Rust will ever consider FFI'in with another language "100% safe."
boundchecked··on C++ is the next C++
I'm rooting for Golden C++.
boundchecked··on C++ is the next C++
>// Hard-to-read CaMeLcAsEvArIaBlE

Absolutely.

boundchecked··on A Tour of C++ (Third edition)
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··on A Tour of C++ (Third edition)
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··on Compilers and IRs: LLVM IR, SPIR-V, and MLIR
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··on OpenBSD 7.2
>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··on Introduction to Dlang [video]
To be honest, this just described your grand post.
boundchecked··on What Makes the Zig Programming Language Unique?
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··on C++20 coroutines: “The bug is in the C++ standard, not GCC.” (2020)
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··on Ask HN: What did Linux not do right?
>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··on Zen4's AVX512 Teardown
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··on Zen4's AVX512 Teardown
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··on Tell HN: Reddit shadowban account upon creation
>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··on Tell HN: Reddit shadowban account upon creation
I never saw it, tricky algorithm isn't it.
boundchecked··on Tell HN: Reddit shadowban account upon creation
same id, /u/boundchecked
boundchecked··on Tell HN: Reddit shadowban account upon creation
Could be, the sin of dynamic IP.
boundchecked··on Tell HN: Reddit shadowban account upon creation
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?

boundchecked··on Ask HN: What are the use cases of WASM outside the browser?
Coupled with WebGPU it might become the cleanest cross-platform/language abstraction to GPU programming.