Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Asooka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
Asooka
10mo ago
It does seem needlessly complex. I think a better idea is to just have a type that is a pair of pointer-sized words. That pattern crops up again and again - context pointer and function pointer, array and its size, memory allocation and eff
62.
▲
by
Asooka
10mo ago
In that case you can use bit fields in a union: union slot { uint64_t keyvalue; struct { uint64_t key: 32; uint64_t value: 32; }; }; Since both members of the union are effectivel
63.
▲
by
Asooka
10mo ago
I never interacted with any of that, to me Perl was always "Bash with text processing built-in and no string interpolation pitfalls". I reach for it when I need to write one to two page long utility scripts. Python is too willing
64.
▲
by
Asooka
10mo ago
Back when those machines existed, UB meant "the precise behaviour is not specified by the standard, the specific compiler for the specific machine chooses what happens" rather than the modern "a well-formed program does not i
65.
▲
by
Asooka
10mo ago
There really ought to be a subset of C that lets you write portable assembly. One where only a defined set of optimisations are allowed and required to be performed, "inline" means always inline, the "register" and "
66.
▲
by
Asooka
11mo ago
Reads like paid copypasta. In the unlikely case you're sincere, have you tried testosterone blockers medication? I checked out SLAA (SA and SAA yielded no results) and while learning to control yourself is nice, why should you have tho
67.
▲
by
Asooka
11mo ago
You add draconian client-side enforcement via parent controls. You can even mandate that stores ask for whom the device will be and provision it accordingly with the flag being automatically removed in the future when the person is of age.
68.
▲
by
Asooka
11mo ago
> Actually I cannot believe that the voters, or at least most of them, are so stupid The majority of USAians voted for Trump. It would be the height of hubris to think of our average voter as noticeably smarter than one from the USA.
69.
▲
by
Asooka
11mo ago
Mass surveillance is far more damaging. Also there are several porn block solutions on offer for parents to install on their children's devices. There is absolutely zero need for the government to be regulating mass surveillance on eve
70.
▲
by
Asooka
11mo ago
Well, things have to be named something. At least "Bottles" are related to "Wine" in a way that makes sense for a name for isolated Wine environments. It is also unique enough that Google will give you the answer quickly
71.
▲
by
Asooka
11mo ago
The best option for me would be to release it in whatever format preserves the most of the original colour data without modification, then let the viewer application apply colour grading. Give me the raw renders in a linear 16bpc colour spa
72.
▲
by
Asooka
11mo ago
I do believe the C standards committee got it completely backwards with regards to undefined behaviour optimisations. By default the language should act in a way that a human can reason about, in particular it should not be more complicated
73.
▲
by
Asooka
11mo ago
If you can afford a function call, you can just borrow LISP's names for these functions, as these are literally LISP lists, e.g.: def cons(head, tail=()): return (head, tail) def snoc(pair): '''
74.
▲
by
Asooka
11mo ago
I have no pre-existing reason, I just like the way nettles taste. Though since we have eaten them for a long while, they are available in bags in the grocery store every summer, which makes the whole thing a lot easier.
75.
▲
by
Asooka
11mo ago
I wonder how long until terminals support half of the XWindows protocol (as some weird combination of Markdown, HTML and escape codes, most probably). This is not a diss, I would actually be pretty happy with a pared-down GUI protocol in th
76.
▲
by
Asooka
11mo ago
They could have at least put the types on the left. Types on the right are a good fit for mathematics, where everything is single-letter symbols, so your eyes do not have to go across the line to see the entire definition, but in programmin
77.
▲
by
Asooka
1y ago
How is this different from a every other bytecode interpreter (albeit a very convoluted one using x64 for its bytecode)? Am I missing something?
78.
▲
by
Asooka
1y ago
That's a problem within the EU already, no need to travel across the globe. A Bulgarian family moving to Germany would face that exact problem. I hope we can eventually lobby the EU to recognise and allow gendered surnames across the U
79.
▲
by
Asooka
1y ago
Because all the heavy number-crunching code is already written in C or Rust or as CUDA kernels, so the actual time spent running Python code is miniscule. If it starts to matter, I would probably reach for Cython first. PyPy is an extremely
80.
▲
by
Asooka
1y ago
>The thing is, after years of doing it, learning new languages, making friends all over, and then leaving knowing you might not see them again for ever or for long stints, you start to feel the yearning to be able to connect with people
81.
▲
by
Asooka
1y ago
Oh so I can just carry a phone with a dead battery and don't have to go through their idiotic app.
82.
▲
by
Asooka
1y ago
The part where he sustained a head injury during arrest and was denied medical help is definitely a violation of his rights. The rest ... yeah
83.
▲
by
Asooka
1y ago
While the abuse by the system needs to be dealt with, if you are going to be a TOR exit node operator (or a thorn in the FBI's side in general), don't do the above. I sympathise with him in spirit, but this is a severe tactical bl
84.
▲
by
Asooka
1y ago
Yeah, WFH doesn't work because you can't smell each other over the network. We can transmit video and audio, but so far we can't replicate touch and smell over Zoom calls. Now, touch is obviously not needed, because touching
85.
▲
by
Asooka
1y ago
Not entirely. Valorant's anti-cheat tries hard to detect DMA cards, which eventually led to one of their largest banwaves. See: https://playvalorant.com/en-gb/news/dev/vanguard-hits-new-ba... Of course t
86.
▲
by
Asooka
1y ago
The cat and mouse game between cheat devs and anti-cheat devs is quite interesting. I saw a nice video [1] a year ago about the state of the art in cheat development, which at that point was having a PCIe device that can issue DMA requests
87.
▲
by
Asooka
1y ago
Now go and find how much opposition there was to such laws when the Democrats were in power. Spoiler: it's negative. Whenever Democrats inherit a law like that from Republicans they expand its scope with giddy abandon as the media and
88.
▲
by
Asooka
1y ago
> Especially in the current political climate I am forever thankful that Trump won the last election. If it were a Democrat party at the helm it would be practically impossible to have opposition to this, as most of the left would simply
89.
▲
by
Asooka
1y ago
They require higher manufacturing costs and aren't compatible with the standard Cherry keyswitch that every Chinese mechanical keyboard manufacturer uses. I know a while ago someone tried to produce a buckling spring keyswitch in a Che
90.
▲
by
Asooka
1y ago
Well, there are only so many ways to design a split mirrored keyboard that fits the shape of the human hand. The other "natural" keyboards that are a standard PC keyboard cut down the middle seem entirely pointless to me - you are
More ›