HNHacker News
TopNewBestAskShowJobs

rq1

835 karma · joined November 12, 2016

submissionscomments
rq1··on C3 solved memory lifetimes with scopes
What core type theory is C3 actually built on?

The blog claims that @pool "solves memory lifetimes with scopes" yet it looks like a classic region/arena allocator that frees everything at the end of a lexical block… a technique that’s been around for decades.

Where do affine or linear guarantees come in?

From the examples I don’t see any restrictions on aliasing or on moving data between pools, so how are use‑after‑free bugs prevented once a pointer escapes its region?

And the line about having "solved memory management" for total functions::: bravo indeed…

Could you show a non‑trivial case where @pool eliminates a leak that an ordinary arena allocator wouldn’t?

Could you show a non‑trivial case, say, a multithreaded game loop where entities span multiple frames, or a high‑throughput server that streams chunked responses, where @pool prevents leaks that a plain arena allocator would not?

rq1··on Matt Godbolt sold me on Rust by showing me C++
Ah I see, it’s a solution too!
rq1··on Matt Godbolt sold me on Rust by showing me C++
I don’t really understand your point there.

Sound type systems are equivalent to proof systems.

You can use them to design data structures where their mere eventual existence guarantee the coherence and validity of your program’s state.

The basic example is “Fin n” that carries at compile time the proof that you made the necessary bounds checks at runtime or by construction that you never exceeded some bound.

Some languages allow you to build entire type level state machines! (eg. to represent these transactions and transitions)

rq1··on Matt Godbolt sold me on Rust by showing me C++
Just create dummy wrappers to make a type level distinction. A Height and a a Width can be two separate types even if they’re only floats basically.

Or another (dummy) example transfer(accountA, accountB). Make two types that wrap the same type but one being a TargetAccount and the other SourceAccount.

Use the type system to help you, don’t fight it.

rq1··on Whistleblower: DOGE Siphoned NLRB Case Data
Another masterclass from the DODGY department.
rq1··on What went wrong with the Alan Turing Institute?
The purpose of these institutions is to fund research, which is not necessarily profitable.

I'm pretty sure Rosenblatt was criticized back then for his non-tangible stupid ideas, and why the hell was his research was funded to begin with.

rq1··on Record-breaking neutrino is most energetic ever detected
Particle on steroids.
rq1··on Weierstrass's Monster
No mention of the Cantor set (and its variants) indicator functions?
rq1··on Looking at some claims that quantum computers won't work
The author is DJB.
rq1··on Show HN: I completed shipping my desktop app
I’ll try to not be dismissive of the labour, though it’s kind of funny (or actually natural) that the heavy lifting libraries that only a few can actually write are open and free, while the shallow wrappers that everyone can write are paid and closed.

Decades ago we were calling out these software and now it’s the norm.

Another example along the line: I wanted to extract a frame from a video on iOS, it’s impossible with the built-in tools (screenshot aside) and found that someone built a paid app only for that.

I tell you where we’re heading, we’re screwed.

rq1··on Everything I built with Claude Artifacts this week
I did just that actually to:

* build a codegen for Idris2 and a rust RT (a parallel stack "typed" VM)

* a full application in Elm, while asking it to borrow from DT to have it "correct-by-construction", use zippers for some data structures… etc. And it worked!

* Whilst at it, I built Elm but in Idris2, while improving on the rendering part (this is WIP)

* data collators and iterators to handle some ML trainings with pausing features so that I can just Ctrl-C and continue if needed/possible/makes sense.

* etc.

At the end I had to rewrite completely some parts, but I would say 90% of the boring work was correctly done and I only had to focus on the interesting bits.

However it didn’t deliver the kind of thorough prep work a painter would do before painting a house when asked for. It simply did exactly what I asked, meaning, it did the paint and no more.

(Using 4o and o1-preview)

rq1··on First images from Euclid are in
What's the data link between the telescope and the ground ?
rq1··on Math is still catching up to the genius of Ramanujan
What a kind heart!
rq1··on Large language models reduce public knowledge sharing on online Q&A platforms
People should just share their conversations with the LLMs online no?

This would blogging 5.0. Or web 7.0.

rq1··on A look at Apple's technical approach to AI including core model performance etc.
So you mean one year ago?
rq1··on ICC prosecutor seeks arrest warrants against Sinwar and Netanyahu for war crimes
For comparison, the French resistance was called a terrorist organisation by the Germans, as Algerian FLN was called terrorist organisation by the French… etc. History would be kind of funny if it wasn’t tragic.

And this whole “terrorist” word was jeopardised by Bush. There’s no “terrorism” per se as an emanation of evil.

It’s just an asymmetrical and violent extension of political expression, where dialogue failed to reach a settlement.

Otherwise you’d need to explain the ideological similarities between Al Qaeda and eg. ETA.

rq1··on ICC prosecutor seeks arrest warrants against Sinwar and Netanyahu for war crimes
The optics of equating a resistance organization on the one hand with a colonial and apartheid state with dysfunctional judicial system and no accountability for any crimes committed by settlers or its military on the other hand by putting them in the same press release is pretty bad for the court.

I'm all for investigating if there were any orders of directly targeting civilians being given to the Palestinian resistance, etc, but that's a pretty far fetched assumption in my opinion.

On the other side you have what's a pretty clear case of a large scale terror attack against innocent civilians, indiscriminately bombing schools and hospitals.

In addition, why doesn't the ICC look into US and Germany conduct of delivering weapons enabling the genocide?

rq1··on An open source initiative to share and compare heat pump performance data
This is a great initiative!

Especially now with all the integrated circuits and sensors, we can have a clear picture on the products if we could all share these data.

I’m looking to get a heat pump too and was leaning towards the NIBE make that these data seem to validate. (They’re incredibly silent too!)

rq1··on Xr0: C but Safe
What’s the difference between what you’re trying to achieve and what ATS already did?

The syntax?

rq1··on What Extropic is building
This is hype.

Someone should tell them about MCMC and alike.

Or if they want to accelerate MCMC for a particular problem, they can build a classical ASIC and scale it.

rq1··on Machine Assisted Proof [video]
Terence Tao is a machine to me. :)
rq1··on Non-code contributions to open source
Don’t you need something, like code, to write or comment on to begin with? Or do you create contributions on non existant things out of the blue?

What about documentations and other assets that can be code too? What about outdated assets?

Whenever I encounter these kind of discussions, it looks like someone’s trying to reinvent formal specs.

So big no. The most important part and the “secret” to open source success is open source code.

rq1··on I designed a cube that balances itself on a corner
Probability courses would be funny with that thing.

Roll the dice.

rq1··on Boring Python: dependency management (2022)
PDM is a better tool in general, the documentation is not great though.

The big plus is: it supports mono-repos with multiple projects, unlike poetry.

The answer to some issues by the poetry team (including monorepo one) was along the line: “deal with it”.

Fine, switch to PDM.

rq1··on OpenWrt One/AP-24.XY: new open source router board by OpenWrt and Banana Pi
That’s my use case too :-)
rq1··on OpenWrt One/AP-24.XY: new open source router board by OpenWrt and Banana Pi
Would this be able to carry a Coral mPCIe card?

I can see 2 mPCIe slots in the back of the board (meant for the WiFi 7 module they say).

rq1··on Ants recognise infected wounds and treat them with antibiotics
I hope ants won't end up copyrighted.
rq1··on Procrastination is connected to perfectionism
My take on with procrastination is just start things anyway and then eventually
rq1··on 'Like we were lesser humans': Gaza boys, men recall Israeli arrest, torture
One should read (again?) Hannah Arendt and the mechanics of dehumanisation and propaganda in genocides.

Beyond the dehumanisation of the victims by the perpetrators, one should not dehumanise the latter in response. There were no monsters.

She was recalling that, it was ordinary men killing ordinary men, and ordinary men being killed by ordinary men.

And one of these ordinary men could have been your neighbour, or yourself.

rq1··on Formalizing the proof of PFR in Lean4 using Blueprint: a short tour
Formalism and its “derivatives” died a long time ago already. Even Hilbert couldn’t do much about it.

That being said, constructive math is still a great idea.

← PreviousPage 2 of 12Next →