jtrueb

Joined 3 years ago

Karma
227
Submissions
67
Member since
Oct 15
Rust, C++ full full-stack (embedded wearables to ML)
View on Hacker News

Recent submissions

Comment · 1 month ago
Lol, thinking the exact same thing. No, we don’t read next to 0.0001% of the code we run.
Comment · 3 months ago
The callout about auditing inline and comptime reminds exactly of the C++ point made about how you have to follow the style guide. Whoosh?
Comment · 6 months ago
Call me crazy, but jj is more confusing than git.
Comment · 7 months ago
RTOS can be used a lot looser than you describe. Like a build system, scheduling, and interrupt framework that allows you to program an MCU like you describe. Zephyr RTOS and Free RTOS provide easy enough ways to write code that uses blocking APIs but probably runs your code according to the timing constraints if you hold it right. As an alternative, you could write for “bare metal” and handle the control flow, scheduling, interrupting, etc. yourself. If you are writing to “random” addresses according to some datasheet to effect some real world change, you are probably reaching for an RTOS or bare metal unless you are writing OS driversn. If you look at the linux drivers, you will see a lot of similarities to the Zephyr RTOS drivers, but one of them is probably clocking in the MHz while the other in the GHz
Comment · 7 months ago
I kinda quit using it. The tab feature is useful when making minor or mundane changes, but I quite prefer the codex GUI if I am going to be relatively hands off with agents.
Comment · 7 months ago
Is there a new version or news related to this? v0.9 was Nov 2024, and Leptos and Dioxus have been a lot more active.
Comment · 7 months ago
AI-assisted research is a solid A already. If you are doing greenfield then. The horizon is only blocked by the GUI required tooling. Even then, that is a small enough obstruction for most researchers.
Comment · 9 months ago
Yes! I’m not sure how many people arguing for one or the other have tried both, but it is clear that you know the pain.
Comment · 9 months ago
Have you been in a self driving car? There are some quite annoying hiccups, but they are already very safe. I would say safer than the average driver. Defensive driving is the norm. I can think of many times where the car has avoided other dangerous drivers or oblivious pedestrians before I realized why it was taking action.
Comment · 9 months ago
I don't need nanosecond accuracy. I just know there are a lot of scripts expecting it.
Comment · 9 months ago
I would describe it as the huge majority, reflecting on my pandas use over the years. Pretty much all of the data worth exploring in pandas over excel, some data gui, or polars involves timestamps.
Comment · 9 months ago
That timestamp resolution discrepancy is going to cause so many problems
Comment · 9 months ago
Heard of `#![forbid(unsafe_code)]` ?
Comment · 1 year ago
simd was one I thought we needed. Then, i started benchmarking using iter with chunks and a nested if statement to check the chunk size. If it was necessary to do more, it was typically time to drop down to asm rather than worry about another layer in between the code and the machine.
Comment · 1 year ago
I mainly use Rust in embedded now. I don’t always rely on encoding all of the correctness in the Rust type system. To a degree all the old ways of enforcing correctness are still in play, I am just choosing when to take use idiomatic Rust or escape hatch out via shim to C-style Rust. It reminds me quite a bit of how C and C++ shops require another layer of macros or templates be used for containers, resources, etc.

The build time of Zig seems like the most desirable piece worth deciding over. Developer time is money, but it isn’t weird to have multi-hour build times in a mature project either C, C++, or Rust. The correctness suite is a bigger time sink than the build though. When building a database, you could drive the build time to 0 and still have hours in CI.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton