Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
421.
▲
by
Joker_vD
7mo ago
Oh, I see, the posts got published in the reversed order. On the topic itself: wow, what a journey. And I personally fully support "come on, you should totally be able to just dump the system image onto your disk and reboot/exec i
422.
▲
by
Joker_vD
7mo ago
There's... no part 2 in the post? And it's the latest blog post on the site, as far as I can see.
423.
▲
by
Joker_vD
7mo ago
What if we remount the filesystem(s) at /dev/sda as read-only first? Then make a small ramfs with statically-linked curl in it and exec it. Hmm. Ideally, you'd also want to call reboot(2) after it's done...
424.
▲
by
Joker_vD
7mo ago
Thank you! Having a syntactical construct to reference the value of the lhs of the assignment's operator in its rhs without recalculating it is a pretty nifty trick: it works because there is only one lvalue on the lhs of an assignment
425.
▲
by
Joker_vD
7mo ago
I have 15 year old binaries made with WinForms that look just fine on Windows 10, and use native Windows 10-styled controls.
426.
▲
by
Joker_vD
7mo ago
Yeah, remember how the energy crises in the 70s served as a wake-up call and made us switch to renewable energy? Me neither. In fact, AIUI, the main consequence was the significant increase of the global oil extraction.
427.
▲
by
Joker_vD
7mo ago
> Creating a simple window in Wayland isn't much harder than in Win32. You get a wl_surface, attach a wl_buffer to it, wrap it with xdg_toplevel and handle some callbacks for resizing etc. There's some boilerplate that allows a
428.
▲
by
Joker_vD
7mo ago
> Python basically has `elif` because `else if` would make each branch nest one level deeper which isn't what one wants There are, of course, other ways to handle this. For instance, "else if <cond>:" could've b
429.
▲
by
Joker_vD
7mo ago
Perhaps having unary minus (and especially unary plus ) is just a bad idea in general; just mandate "0 - expr". To make negative constants work properly, you still have to either special case literals "256", "65536
430.
▲
by
Joker_vD
7mo ago
> I certainly hope so Then you probably should accept that proxy wars work both ways. And well, it's not really Iran's fault that its borders has crept so close to the US military bases.
431.
▲
by
Joker_vD
7mo ago
See, what you've said is precisely "structural bias against a minority", or "systemic injustice". Then again, the elites are, technically, also a minority as well, and we all know how well letting their crimes slide
432.
▲
by
Joker_vD
7mo ago
That UXN thing looks like it could be trivially jitted on-the-fly. Unless I am misreading their site, and the code doesn't have to reside in the ROM, of course.
433.
▲
by
Joker_vD
7mo ago
Of course, if you have sufficiently simple input devices that could do DMA, then you can do something e.g. IBM 1401 did: When the LOAD button on the 1402 Card Read-Punch is pressed, a card is read into memory locations 001–080, a
434.
▲
by
Joker_vD
8mo ago
> I'd argue that the "purpose" of the stock market is matching investors with companies that want liquidity. But you don't usually buy the stocks from the company itself, do you? Unless there is some shenanigans with
435.
▲
by
Joker_vD
8mo ago
> Note that "UK Security" and "safety of people in the UK" are very distinct things. "Everything in the name of man, everything for the good of man!" — The 3rd Program of the CPSU, 1961. As the joke went, &q
436.
▲
by
Joker_vD
8mo ago
It's not like a warrant can be issued ipso fact and backdated, right? That'd be gross misconduct of justice and surely, no judge would stoop so low. /s Seriously though. If you trust the law enforcement that much, why even
437.
▲
by
Joker_vD
8mo ago
double solve(double a[]) { return 0[a] + 1[a] + 2[a] + 3[a]; } solve((double[]){1, 2, 3, 4}); The cast in the invocation can be macro-ed away. And the best thing is, the actual stack layout and data movement/sh
438.
▲
by
Joker_vD
8mo ago
Well, usually we tax the landlords instead. But when the landlords make up the overwhelming majority of the legislature, this tend to not happen. The situation with apartment buildings is even more quirky because the USA has quite ridiculou
439.
▲
by
Joker_vD
8mo ago
Because there are people who live off rent (in a broad sense of this world), and there are people who live off selling their ability to work. Increased efficiency and productivity may or may not benefit the second kind of people, depending
440.
▲
by
Joker_vD
8mo ago
Not when you're talking with humans, not really. Which is one of the reasons I got into computing in the first place, dangit!
441.
▲
by
Joker_vD
8mo ago
> You have to give your name, and they know if you've voted more than once at that station that day. So you go to other stations, duh. It's called "carousel voting" [0], if done on a large, organized scale. [0] https
442.
▲
by
Joker_vD
8mo ago
> This is primarily because core is primarily a teaching ISA. That doesn't necessarily make it all that great for industrial use, does it? > One of the best parts about RiscV is that you can teach a freshman level architecture cl
443.
▲
by
Joker_vD
8mo ago
> It shouldn't really have instructions for every edge case. Depends on what the instruction does. If it goes through a four-loads-four-stores chain that VAXen could famously do (with pre- and post-increments), then sure, this makes
444.
▲
by
Joker_vD
8mo ago
> They don't have a 800-lb gorilla like Intel shoving the ISA down customers' throats Nobody really forces you to use x64 if you don't like it, just as nobody forced you to use Itanium — which Intel famously failed to &quo
445.
▲
by
Joker_vD
8mo ago
Oh, is that how MINIX did that? AIUI, the original UNIX could only hold one process in memory at a time, so its fork() would dump the process's current working space to disk, then rename it with a new PID, and return to the user space
446.
▲
by
Joker_vD
8mo ago
Well, just one step more, and we'll have "TOS may be unilaterally updated by publishing the new terms on the firm's web site, it is entirely the user's duty to keep himself up to date, continued use implies unrevocable c
447.
▲
by
Joker_vD
8mo ago
> It elegantly solves the "create a process, letting it inherit these settings and reset these other settings", where "settings" is an ever changing and expanding list of things that you wouldn't want to bake int
448.
▲
by
Joker_vD
8mo ago
I am also optimistic we will succeed in efforts to properly annotate the data on the Internet with useful and accurate meta-data and achieve the semantic web vision instead of relying on search engines and LLMs.
449.
▲
by
Joker_vD
8mo ago
Windows "figured it out sooner" because it never really had to seriously deal with overcommitting memory: there is no fork(), so the memory usage figures of the processes are accurate. On Linux, however, the un-negotiable existenc
450.
▲
by
Joker_vD
8mo ago
> Like if the FBI subpoenas my public key and I comply, that’s helping them? If you're helping the FBI to do their job (conducting federal investigations), then yes, you are helping the FBI. Unless your definition of "to help&q
More ›