HNHacker News
TopNewBestAskShowJobs

bnolsen

290 karma · joined March 14, 2012

High throughput multithreaded cross platform 64bit c++ developer doing high throughput things with digital optical and digital scanning payloads.
submissionscomments
bnolsen··on Bun 1.4: Zig vs. Rust Compile Times
buz, a fork of bun right before the rust rewrite, claims sub second incremental builds just by using what zig itself provides.

https://micrologics.org/blog/architecting-sub-second-javascr...

bnolsen··on Linux eliminates the strncpy API after six years of work, 360 patches
C++ and rust make these optionals ugly. Zig does it right. Zig also forbids null pointers and requires use of optionals.
bnolsen··on Linux eliminates the strncpy API after six years of work, 360 patches
That's called a fat pointer. Null terminated c strings is the majority of memory errors out there.
bnolsen··on Gaussian Point Splatting
I was doing this for remote sensing orthorectification work back in 2004/2005. It works very well across multiple types of imaging sensors.
bnolsen··on Journey to JPEG XL: open-source experiments shaped the future of image coding
I personally think something like the qok format is a better way to go. Make something that performs well and is dirt simple to implement.
bnolsen··on Memory has grown to nearly two-thirds of AI chip component costs
It's pretty sad it used to not be so bad in the US. This is what happens when ethics and morals are removed from the culture.
bnolsen··on Migrating from Go to Rust
I would think that you might have a better time going from go to zig. You would have to provide a pattern for implementing the interface model go uses.
bnolsen··on Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
Zig fails unit tests if there's a memory leak in those tests.
bnolsen··on Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc
One of the core design principles of zig is no implied behavior.
bnolsen··on Zig → Rust porting guide
Unit tests in zig will fail if the tested code leaks memory.
bnolsen··on Show HN: Xit – a Git-compatible VCS written in Zig
I guess the 'zit' name was already taken by something else.
bnolsen··on Every GPU That Mattered
The radeon 8500 deserves to be on that list. It still has active Linux support under mesa.
bnolsen··on Why are we still using Markdown?
HTML is not something to hold up as the standard for documentation.
bnolsen··on Show HN: Dynamod – Linux init with Erlang-style supervisor trees
Why not just use zig for the entire thing?
bnolsen··on Zig Libc
Not to be confused with zlib.
bnolsen··on Zig Libc
Except for all the baggage it carries along with it including hacks to address baggage resulting in a very bloated language.
bnolsen··on Quaternion Algebras
Quaternions are left handed spinors. Please use the correct unified math models (clidfford algebra) rather than these 3d only hacks.
bnolsen··on Lightpanda migrate DOM implementation to Zig
Having worked with c++ strings and also string views I find zigs simple fat pointer to be fairly direct and straightforward, and a bit refreshing. Ownership is being coupled in with the type..
bnolsen··on Why is calling my asm function from Rust slower than calling it from C?
And then zig shows up...
bnolsen··on Phoenix: A modern X server written from scratch in Zig
It's christmas and not april fools!
bnolsen··on Fabrice Bellard Releases MicroQuickJS
I remember seeing this a long time ago and liking it, I just didn't have a use for it at the time. How does it stack up against luahit for perf and memory, and threading? It also looks like it could be worth looking at porting the compiler to zig which excels at both compiler writing and cross platform tooling.
bnolsen··on Local AI is driving the biggest change in laptops in decades
Work gave me an m1 pro with 32gb on it. A year ago I put together one of those minisforum board+laptop apu with 64gb ram and 2tb nvme for not much money at the time, likely 500usd. For the performance sensitive software I was working on the 7935hs ran with about 50x more throughout using compilers with llvm backend.
bnolsen··on Show HN: I built a fast RSS reader in Zig
There's active work towards that (which could run as part of CI) and it looks very promising: https://github.com/ityonemo/clr
bnolsen··on Show HN: I built a fast RSS reader in Zig
Zig actually does bring some new and innovative ideas to programming. While Zig itself may not become the next big thing a lot of ideas in it most certainly will find their way into languages moving forward.
bnolsen··on Going Through Snowden Documents, Part 1
And they tried to hang him for it. I wasn't particularly pleased with some actions he took after he ran off but the government reaction was truly out of hand and forced him into full survival mode. This part of government is full of weird power crazed spooks.
bnolsen··on Thoughts on Go vs. Rust vs. Zig
they are very awkward to use in the current STL, they are part of the template definition. Back in the day EASTL did allocators much better but it never became a thing.
bnolsen··on Thoughts on Go vs. Rust vs. Zig
This confuses me. In zig null pointers are illegal, and I have yet to run into any case that should be addressed by using pointer arithmetic, that's all taken care of with slices.
bnolsen··on Thoughts on Go vs. Rust vs. Zig
you could fully redesign libc to be modern and toss out the null terminated string concept and use fat pointers and slices. But at that point why not consider moving onto a more modern language with things like explicit type conversions, modern PEG type grammar, etc.
bnolsen··on Thoughts on Go vs. Rust vs. Zig
I might buy your argument except that without corporate sponsorship for zig several projects using a very young and unfinished zig exhibit world class performance and utility, apparently without herculean effort.
bnolsen··on Thoughts on Go vs. Rust vs. Zig
'const expected: []const u32 = &.{ 123, 67, 89, 99 };' also works.
Page 1 of 12Next →