Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
amiga386
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
271.
▲
by
amiga386
5mo ago
That line allocates nothing. The function is their version of explicit_bzero(). The line casts an existing pointer passed in (e.g. pointing to something on the stack, or allocated by you) to a volatile pointer, which prevents the compiler
272.
▲
by
amiga386
5mo ago
I note that Dunsinane Hill isn't on the map. You know the line "Macbeth shall never vanquished be until / Great Birnam Wood to high Dunsinane Hill / Shall come against him"? Or "I will not be afraid of death an
273.
▲
by
amiga386
5mo ago
I wouldn't trust any generated map unless the human author has good knowledge themselves... and made the map themselves. As an example, this is a map from a SEOing spammer who knows absolutely fuck all and let an LLM hallucinate the ma
274.
▲
by
amiga386
5mo ago
https://archive.is/ZVazE
275.
▲
by
amiga386
5mo ago
> It sounds like the first franchise collapsed owing money. It did not, the franchisees simply wanted out because they were offered better paid work overseas. They told corporate they wanted to sell the franchise back to them, as they
276.
▲
by
amiga386
5mo ago
> It seems like their franchisee went bust, and they bailed him out to some $ value. Not what happened, according to a legal commentator: https://youtu.be/14ktgvoH4Mc?t=590 > The seizure. November 14th, 2024. The [ori
277.
▲
by
amiga386
5mo ago
https://www.youtube.com/watch?v=qg9IMJKnIAA
278.
▲
by
amiga386
5mo ago
The ending credits show her patched back up with needle and thread, but they know what they did. https://www.youtube.com/watch?v=0bnKr0M1Tzs
279.
▲
by
amiga386
5mo ago
Other than the meta-answer that the game designers made it that way, or that you may need to farm kills for something in future, there is also the Zerg Rush answer: some creatures are literally bred to swarm their enemies, that's how
280.
▲
by
amiga386
5mo ago
I think we're just seeing different sides of the same coin. Go's idiomatic code would be: user_is_valid := validate_user(u) i.e. you have no special handling needed, it fits anywhere. You don't even know async is or
281.
▲
by
amiga386
5mo ago
I think you're missing something. Go's functions are all blue , not all red. As far as I know, the callers of async functions with Rust's Tokio and C#'s Tasks themselves need to be async; not the case for Go. Concurre
282.
▲
by
amiga386
5mo ago
I'm fairly sure the author was making reference to the famous article What Color Are Your Bits? https://ansuz.sooke.bc.ca/entry/23 which is even more abstract, because some large numbers are coloured "legal
283.
▲
by
amiga386
5mo ago
What you really need: http://1amstudios.com/2014/12/07/c64-smooth-scrolling/ https://www.c64-wiki.com/wiki/Scrolling * The top 4 bits of $D018 (VM10-VM13) control the base of graphi
284.
▲
by
amiga386
5mo ago
If you'd like a real one, try the occasion in 2000 of Caledonian Thistle beating Celtic 3-1, sparking the headline SUPER CALEY GO BALLISTIC, CELTIC ARE ATROCIOUS
285.
▲
by
amiga386
5mo ago
TIL there's a whole rabbithole of "why vs why not intuitionist logic": https://en.wikipedia.org/wiki/Brouwer%E2%80%93Hilbert_contro...
286.
▲
by
amiga386
5mo ago
Not to detract from your point, but the French tax system is defined as code. https://rmonat.fr/talk/impots_gallium19/
287.
▲
by
amiga386
5mo ago
https://www.waterdictionary.net/water/edinburgh > Edinburgh water is hard, with notably high sulphate No it isn't. Where did they get this? > Calcium 100 mg/L Magnesium 20 mg/L Hardness: 332 as CaC
288.
▲
by
amiga386
5mo ago
You jest, but a central feature of C is that void* is a universal pointer, and can be used as the basis of polymorphism and context passing. That's why you can do things like: void qsort(void *base, size_t nmemb, size_t size,
289.
▲
by
amiga386
5mo ago
I get that it's defined that way, but I'd really like to know why. I can see the value in saying that struct x* isn't compatible with struct y*, because they could have different alignment or packing rules. But struct x* and
290.
▲
by
amiga386
5mo ago
Tell me why struct* is incompatible with void* when it's such a standard case in C that you don't need a cast: struct foo *x = malloc(sizeof(struct foo)); /* malloc returns void* */ Or rather, tell me why the C1
291.
▲
by
amiga386
5mo ago
Can anyone explain why this is undefined behaviour? UBSan calls it "indirect call of a function through a function pointer of the wrong type" struct foo {int i;}; int func(struct foo *x) {return x->i;} int main()
292.
▲
by
amiga386
5mo ago
That's a very visible Ken Thompson style attack. The modern expectation is that PyPI would be evaluating this build-system section and would only accept build-systems that they trust to turn package distributions into wheels, and the
293.
▲
by
amiga386
5mo ago
That appears to be an exploitable feature of the language, not the package manager per se. We could then add the philosophical question of asking what's the difference between: 1. Adding malicious code to a package's .pth file tha
294.
▲
by
amiga386
5mo ago
> Python packages traditionally use setup.py But nowadays prefer pyproject.toml, and most people use pre-built distributions (wheels) for their architecture from PyPI, so don't execute arbitrary code to install packages. > PHP Co
295.
▲
by
amiga386
5mo ago
I run Jellyfin because I want my media on my network and I don't want some intermediary getting any data about me or my friends or controlling what I can do.
296.
▲
by
amiga386
5mo ago
With Windows and AutoHotkey and https://www.nirsoft.net/utils/control_my_monitor.html You can add this .ahk script to run at startup: ^F4:: Run C:\Users\YourNameHere\Documents\AutoHotkey\ControlMyMonitor &#
297.
▲
by
amiga386
5mo ago
I think you're missing the elephant in the room. The IBM PC existed. That was it, that's all that mattered. Nobody got fired for buying IBM. Every computer for "business" collapsed because the IBM PC was here. Macs only
298.
▲
by
amiga386
5mo ago
Having used AmigaOS, Mac OS, RISC OS, MS-DOS and Windows in the 1980s, I can say that Amiga definitely had the smoothest experience. Even the most basic things like reading/writing a floppy disk could make all but AmigaOS unusable. I r
299.
▲
by
amiga386
5mo ago
Awesome! As an aside, the only code I know that uses Paula's attached mode (where one channel can modulate the volume or pitch of another) is the sound effect used in X-Copy. It sounds like this: https://youtu.be/2OG2tP
300.
▲
by
amiga386
5mo ago
> Notice that all these countries are English speaking countries? It looks more like you only read English-language news which is concerned about the happenings in English-speaking countries. https://www.numbeo.com/proper
More ›