Readit News logoReadit News
hyperbrainer commented on A deep dive into Rust and C memory interoperability   notashes.me/blog/part-1-m... · Posted by u/hyperbrainer
sesm · 21 days ago
Section named "The Interview Question That Started Everything" doesn't contain the interview question.
hyperbrainer · 21 days ago
That's the first thing on the page.

> Interviewer: “What happens if you allocate memory with C’s malloc and try to free it with Rust’s dealloc, if you get a pointer to the memory from C?”

> Me: “If we do it via FFI then there’s a possibility the program may continue working (because the underlying structs share the same memory layout? right? …right?)”

hyperbrainer commented on My Ideal Array Language   ashermancinelli.com/csblo... · Posted by u/bobajeff
nromiun · 21 days ago

  ⊢×0≠∧˝˘∧⌜∧˝           # Marshall & Dzaima (tacit!)
  (≠⥊∧´)˘{×(⌾⍉∧)0≠} # Dzaima & Rampoina
  {×(∧˝˘∧≢⥊∧˝)0≠}     # Dzaima
Call me old fashioned and stuck in C style syntax but I can't imagine anyone describing this as beautiful art.

hyperbrainer · 21 days ago
I see it as beautiful the same way Galadriel would be beautiful as the Dark Queen. Utterly captivating and powerful, and yet something that should never be.
hyperbrainer commented on Seed7 – Extensible Programming Language   seed7.net... · Posted by u/0x54MUR41
msie · 22 days ago
I’ve never liked the idea of the syntax where functions are declared and then assigned to variables. I guess it’s supposed to be elegant?
hyperbrainer · 22 days ago
If functions are first class, then they must be stored as variables. I mean, consider any FP Language.
hyperbrainer commented on This Month in Ladybird   ladybird.org/newsletter/2... · Posted by u/net01
mrob · 23 days ago
120Hz limit for high refresh rate support seems strange. The most common refresh rate for high refresh rate monitors is 144Hz, and faster refresh rates are available. If you run a 120fps animation on a 144Hz monitor you'll get duplicated frames, which negates a large part of the benefit.
hyperbrainer · 23 days ago
My first thought was that this was done with consideration for mobile phones, since many higher-end models use 120 Hz displays, but Ladybird does not seem to support mobile for now.

> Websites using requestAnimationFrame now render at up to 120Hz on supported hardware

But the phrasing of it about "can now" suggests to me that this may simply be a performance issue too. They changed it from 60 to 120. Perhaps in the future they can go from 120 to 144 or even 240.

hyperbrainer commented on Long Term Support   sqlite.org/lts.html... · Posted by u/rishikeshs
arp242 · 24 days ago
I've sometimes wondered what their plan for this is wrt. people. Richard Hipp is 64, and I don't think he plans to continue working on SQLite until he's 90. I know two other people work on SQLite, but AFAIK he owns the company(?)

That said, I think the future of SQLite is basically guaranteed on account of being open source (as much as anything in this world can be guaranteed anyway). Look at Rust: it's done fine since Mozilla stopped sponsoring it. Go will be fine when/if Google stops sponsoring it. etc.

hyperbrainer · 24 days ago
> the future of SQLite is basically guaranteed on account of being open source

I am not concerned with whether it has a future. But I do fear that the absolute manic focus on code quality, testing and support may take a dive when other programmers take the helm. I am not claiming that there are no developers who are equally careful and/or skilled, but whether the culture of SQLite will persist is, to me, still an open question.

hyperbrainer commented on SQLx – Rust SQL Toolkit   github.com/launchbadge/sq... · Posted by u/stmw
hyperbrainer · a month ago
I have never used SQLx, but the best SQL integration I can think of is LINQ. How does this compare to that?
hyperbrainer commented on Ask HN: What are you working on? (July 2025)    · Posted by u/david927
hyperbrainer · a month ago
I have been experimenting with rendering fonts in Rust lately. I was pleasantly surprised by how simple reading the ttf file format is. The hard part, of course, is actually doing everything with the bezier curves and contours and filling the insides etc. But if I were to just be working with straight lines, I already have everything I need. Indeed, I used MATLAB's `patch` to quickly check my progress and see the major bugs in my rendering implementations, and got there within a couple hours.

u/hyperbrainer

KarmaCake day788June 19, 2023View Original