News for hackers. Stuff that matters.

boundchecked

Re:2 years of fiddling with Rust – critical thoughts on Monday November 07, 2022 @02:25AM (#33502328)
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

Re:Next C compiler is a D compiler: Introducing DMD's ImportC on Thursday November 03, 2022 @04:16AM (#33448315)
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

Re:Next C compiler is a D compiler: Introducing DMD's ImportC on Wednesday November 02, 2022 @10:39PM (#33446234)
D has scopeguards similar to defer.
Re:Next C compiler is a D compiler: Introducing DMD's ImportC on Wednesday November 02, 2022 @10:32PM (#33446185)
I don't think Rust will ever consider FFI'in with another language "100% safe."
Re:C++ Is the Next C++ on Wednesday November 02, 2022 @12:36PM (#33438613)
I'm rooting for Golden C++.
Re:C++ Is the Next C++ on Wednesday November 02, 2022 @11:19AM (#33437254)
>// Hard-to-read CaMeLcAsEvArIaBlE

Absolutely.

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

Re:Compilers and IRS: LLVM IR, SPIR-V, and MLIR on Sunday October 30, 2022 @01:29AM (#33391380)
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...

Re:OpenBSD 7.2 on Thursday October 20, 2022 @10:57AM (#33275741)
>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.

Re:Ali Cehreli Introduces Dlang at Northeastern U on Tuesday October 11, 2022 @08:14PM (#33171012)
To be honest, this just described your grand post.
Re:What Makes the Zig Programming Language Unique? on Thursday October 06, 2022 @12:05AM (#33104262)
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

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.
Re:Ask HN: What did Linux not do right? on Saturday October 01, 2022 @03:37PM (#33049341)
>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.

Re:Zen4's AVX512 Teardown on Tuesday September 27, 2022 @01:04AM (#32991713)
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.
Re:Zen4's AVX512 Teardown on Monday September 26, 2022 @01:44PM (#32985987)
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!
Re:Tell HN: Reddit shadowban account upon creation on Thursday September 22, 2022 @04:52PM (#32944477)
>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.

Re:Tell HN: Reddit shadowban account upon creation on Thursday September 22, 2022 @04:17PM (#32944076)
I never saw it, tricky algorithm isn't it.
Re:Tell HN: Reddit shadowban account upon creation on Thursday September 22, 2022 @03:34PM (#32943625)
same id, /u/boundchecked
Re:Tell HN: Reddit shadowban account upon creation on Thursday September 22, 2022 @03:33PM (#32943610)
Could be, the sin of dynamic IP.
Re:Tell HN: Reddit shadowban account upon creation on Thursday September 22, 2022 @03:17PM (#32943421)
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?

Re:Ask HN: What are the use cases of WASM outside the browser? on Thursday September 22, 2022 @02:26PM (#32942740)
Coupled with WebGPU it might become the cleanest cross-platform/language abstraction to GPU programming.

Tell HN: Reddit shadowban account upon creation

Sharing this funny story so that people won't feel alone when it happen to them.It seems my first and only reddit account created two hours ago is shadow-banned since the very beginning, tried one comment on /r/cpp and one post on /r/rust, nobody ever seen them other than one kind mod that confirmed there's nothing they can do.Even funnier is that there is a subreddit /r/ShadowBan dedicated to...

( Read More... | 39 comments | 43 points | on HN )