Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mwkaufma
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
211.
▲
by
mwkaufma
1y ago
I don't disagree, but the article does. RH describes an architecture where setup functions create callbacks, independent of the receiving type. If I were to steelman him, it would be something like this: "in a pedantic MVC system,
212.
▲
by
mwkaufma
1y ago
>> By RAII, I mean using destructors to unregister a callback. _Whose_ destructor, if not the receiving-type? Is there a third "binding" object, because then you have three potentially-unrelated lifetimes. >> Generall
213.
▲
by
mwkaufma
1y ago
>> Can you elaborate on your third point? What would a class need to do to affect debugging info? Common implementations are a function pointer + void* pair, which in most debuggers just show you two opaque addresses. Better to includ
214.
▲
by
mwkaufma
1y ago
Red flags for me when I see nonstandard functors in a c++ codebase (esp if the "glue" is in a setup function independent of the objects): (i) Have they thought about the relative lifetimes of the sender and receiver? (ii) Is the c
215.
▲
by
mwkaufma
1y ago
Love to see a completely made-up graph of "data points" from 2025-2030.
216.
▲
by
mwkaufma
1y ago
Distinguishing that in-hindsight Lucent was committing accounting fraud and present firms aren't is a load-bearing assumption here; for all we know the big players in the AI bubble just haven't been outed yet.
217.
▲
by
mwkaufma
1y ago
"I don't use AI Chatbots, I go to reputable sources like TrueAmericanPatriotNewsDaily.truth " [articles generated by ChatGPT]
218.
▲
by
mwkaufma
1y ago
It's not just linked lists. From the article: > The next step of course is to write your own equivalents of malloc and free to allocate and deallocate objects within the arena. A logic bug in that "allocator" - which are p
219.
▲
by
mwkaufma
1y ago
The topic is "Arenas in Rust" not "Arenas in Rust or anything other tradeoff."
220.
▲
by
mwkaufma
1y ago
Well, there's several implementations because it's a bit of a leaky abstraction, and implementation details matter/vary across use-cases, which is consistent w/ my experience of rust having heavy fragmentation in applyin
221.
▲
by
mwkaufma
1y ago
Anticipating pushback: yes, you can disallow "pointer arithmetic" on handles, and store fingerprints in the "slots" to ensure they still contain the handle's identity to detect user-after-free, but congrats, you
222.
▲
by
mwkaufma
1y ago
> Handles are deterministic. If a bug made your program crash on the last run, it will crash the same way on this run. > Given that the arena will still be subject to array bounds checking, handle bugs won't allow an attacker to
223.
▲
by
mwkaufma
1y ago
No it didn't.
224.
▲
by
mwkaufma
1y ago
(CEO in a hot dog costume): we're all trying to find the guy who did this!
225.
▲
by
mwkaufma
1y ago
"It's the term used by the infographic for, at the minimum, projects without a publisher." Term used by _whom_? Because nobody at DICE or GDC talks like that -- just peanut gallery blogs. "And it turns out that it's
226.
▲
by
mwkaufma
1y ago
"hobby project" as a label is a patronizing deflection.
227.
▲
by
mwkaufma
1y ago
Account for labor + marketing (or if you have a publisher, clawbacks on advances), and those are failure numbers.
228.
▲
by
mwkaufma
1y ago
Speaking as an independent gamedev: review-based storefronts (e.g. steam, egs, etc) select for the 1% of hits, but offers no pathway for the midrange -- everyone else gets lumped in with the slop.
229.
▲
by
mwkaufma
1y ago
A term in search of a definition, clearly.
230.
▲
by
mwkaufma
1y ago
? https://en.cppreference.com/w/cpp/memory/weak_ptr/atomic2
231.
▲
by
mwkaufma
1y ago
Lotsa detail, but not to the point: does cmov depend on branch prediction or not?
232.
▲
by
mwkaufma
1y ago
Nondominant != heterodox.
233.
▲
by
mwkaufma
1y ago
> dominant academic view of economics Chicago School is the conservative view of economics, not the dominant view.
234.
▲
by
mwkaufma
1y ago
The article's claim is that branchless code avoids branch-prediction, and therefore optimizes better on speculative CPUs for certain workloads. Jump instructions obviously incur branch-prediction; my question is is CMOV incurs branch p
235.
▲
by
mwkaufma
1y ago
You're misreading between the lines. I'm objectively on the left. As I understand things, there is no "line" and no "middle", except for media-types dispatched to hype the status-quo.
236.
▲
by
mwkaufma
1y ago
Is cmov branchless, or just branching by another name?
237.
▲
by
mwkaufma
1y ago
If you think Chicago School economics is centrist, then "centrist" is just another word for conservative.
238.
▲
by
mwkaufma
1y ago
No, just sounds like you know some dense conservatives.
239.
▲
by
mwkaufma
1y ago
Freakonomics: laundering conservative talking-points into "the npr set" for 20 years and still going.
240.
▲
by
mwkaufma
1y ago
> laid out next to each other in memory Moving goalpost. But just to follow that thought: Decoupling alloc+init via e.g. placement-new to do this introduces a host of complications not considered in your solution. If that layout _is_ a r
More ›