Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kragen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
451.
▲
by
kragen
1y ago
How can a communications network with 700,000 users not be culturally meaningful? Are they all just re-tooting the same Willy Wonka meme and possessed of the memory of a goldfish? Or do they all live in the same suburb of Lagos and not us
452.
▲
by
kragen
1y ago
Yes, I agree.
453.
▲
by
kragen
1y ago
Function pointers in C++ are "objects", and the difference between static methods and C-style functions which are not methods seems purely syntactic to me, or at best a question of namespacing. Regardless, static methods are no
454.
▲
by
kragen
1y ago
I'm reading the Kuznetsov and Ravi paper https://www.researchgate.net/publication/272194871_Why_Trans... now; I assume that's the one you mean? Its definition of "obstruction-freedom" is that every
455.
▲
by
kragen
1y ago
Yeah, the people who hate him. That's what I mean.
456.
▲
by
kragen
1y ago
There is surely some sense in which that's true; the choice of concurrency primitives, even among such radically different choices, won't change literally every design decision in your system. But it is very pervasive, and it r
457.
▲
by
kragen
1y ago
It's not minor at all. For a ground-source heat pump to work at all, you need to sink the pipes deep enough that the soil temperature is pretty stable year-round, which means the heat it can exchange with the aboveground air is minor
458.
▲
by
kragen
1y ago
That doesn't provide the same functionality, because it requires a global transformation of your program, changing every caller of .fhqwhgads() (possibly including code written by users of your class that they aren't willing to sh
459.
▲
by
kragen
1y ago
The Aircraft Reactor Experiment https://en.wikipedia.org/wiki/Aircraft_Reactor_Experiment , yielding 2.5 megawatts, was about two meters tall and one meter in diameter; the fuel was 15kg of U-235, but I think the reacto
460.
▲
by
kragen
1y ago
The open internet, open-source software, and federated protocols allow people to manage their own affairs without any experts in the state. You may have to pay a capitalist firm for access to the internet to run your Mastodon server, but y
461.
▲
by
kragen
1y ago
The 01925 dime is worth about US$3 as bullion (see https://news.ycombinator.com/item?id=45907742 ) even without getting into collectors' value, so a couple of dimes or a quarter will pay for a hamburger. You may just h
462.
▲
by
kragen
1y ago
Well, fuck. Cue community-destroying drama and infighting, right?
463.
▲
by
kragen
1y ago
No, in C++ it's literally impossible. The language provides no way to define a proxy class you can call arbitrary methods on. You have to generate a fresh proxy class every time you have a new abstract base class you want to interpos
464.
▲
by
kragen
1y ago
Gitlab, Forgejo, Gitea, Gogs, ... or you can just push to your own VPS over SSH, with or without an HTTP server. We had a good discussion of this last option here three weeks ago: https://news.ycombinator.com/item?id=457107
465.
▲
by
kragen
1y ago
SSH works fine for me. I'm using it right now. Just not to GitHub!
466.
▲
by
kragen
1y ago
Eliminating the durability constraint doesn't make it any easier to program, just easier to get good performance on. Distributing accounts among different actors, without two-phase commit or its moral equivalent, enables check kiting.
467.
▲
by
kragen
1y ago
You avoid livelock, as I understand the term in an STM, if the only thing that can prevent a transaction from committing when it tries to commit is some other transaction having committed. That way, forward progress is guaranteed; as long
468.
▲
by
kragen
1y ago
I don't think C++ is object-oriented, and it is certainly way less OO than Java in most ways. Its "classes" aren't the same kind of thing as classes in OO languages and its "objects" aren't OO objects. In
469.
▲
by
kragen
1y ago
On the problems with STM in C#, see https://joeduffyblog.com/2010/01/03/a-brief-retrospective-on... (I can't believe nobody else has posted this link yet). As with the Chris Penner article, there are a
470.
▲
by
kragen
1y ago
Ground-source heat pumps (with a few exceptions and borderline cases like those mentioned in the article) are not sources of heat, so you can only "get heat from" them in the short term; as with a battery or an interest-free check
471.
▲
by
kragen
1y ago
Maybe, but on a 64-core machine, a single-threaded task can't even use 2% of the computer. Even interpreted Python wastes only 97% of the computer.
472.
▲
by
kragen
1y ago
Purely optimistic STM implementations that abort transactions early and don't permit other transactions to read uncommitted data can guarantee forward progress, and I believe that both Haskell's STM and Fraser and Harris's
473.
▲
by
kragen
1y ago
I don't agree that whether you're using TM, shared-memory monitors, or actors with message queues is an implementation detail or that there is a better programming model that hides the differences between them. You can implement
474.
▲
by
kragen
1y ago
You can read Stroustrup's books and interviews, if the language design itself doesn't convey that message clearly enough; you don't have to guess what his intentions and motivations were. And, while I strongly disagree with
475.
▲
by
kragen
1y ago
I wish people would comment about transactions, optimistic synchronization, CSP, actors, priority inversion, Fraser's astounding code ( https://www.cl.cam.ac.uk/research/srg/netos/projects/archive..
476.
▲
by
kragen
1y ago
It's not some minor point of terminology. The entire design of C++ is built around eliminating all distinctions between primitive "entities" and user-defined "entities" in a way that Java just isn't. It's
477.
▲
by
kragen
1y ago
It can be meaningful, depending on how much context there is, but statements like that often suffer a kind of context collapse where they are transplanted from contexts where they are clearly true to contexts where they are debatable or e
478.
▲
by
kragen
1y ago
The specific thing you can do in Smalltalk (or Ruby, Python, Objective-C, Erights E, or JS) that you can't do in C++ (even Qt C++, and not Simula either) is define a proxy class you can call arbitrary methods on, so that it can, for ex
479.
▲
by
kragen
1y ago
That's true, and in Smalltalk it's not true. In Cedar there is no inheritance. At any rate it's not a case of Java making more things objects than its forebears.
480.
▲
by
kragen
1y ago
There are some different approaches, but that's definitely one of them. However, it's not without its tradeoffs; you're sacrificing atomicity, in the sense that if updating some account throws an error, the already-updated a
More ›