Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simias
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
simias
3y ago
I think there are two approaches to the issue: - You consider that the user getting their account pwnd is their problem. Let them set their password. That includes things like forums and other websites where an user losing their account is
32.
▲
by
simias
3y ago
I like to micromanage my dev environment, I have custom everything (terminal, editor, WM...) yet I'm on the same boat when it comes to fonts. DejaVu + Noto for CJK just works. DejaVu is just a good font.
33.
▲
by
simias
3y ago
For static linking quite possibly, although you could still have un-optimizeable sources of overhead because of having to indirect through pointers everywhere, for instance in nested structs. Something like a->b->c->d is going to b
34.
▲
by
simias
3y ago
I think what you say makes complete sense at module-level (as in, for a standalone lib for instance) but I never bother segregating things internally within a lib/module/exe and rely on good documentation and coding practices to a
35.
▲
by
simias
3y ago
I see where you're coming from but IMO this "Cheshire cat" idiom to hide the implementation details is not exactly like private, it fact it can do things that private can't do, and doesn't do things private does. Th
36.
▲
by
simias
3y ago
I disagree, low level exceptions rarely make sense on their on for the users, the automatic propagation of exceptions just promotes laziness by having a catchall "print(exception); exit(1);" at the top level. If you're lucky
37.
▲
by
simias
3y ago
The ability to catch exceptions is not the issue, it's knowing what to do once they're caught that's the problem. The parent apparently had exhaustive exception handling, catching all cases. A new exception is now generated,
38.
▲
by
simias
3y ago
The issue brought up by the parent is that the exception needed not be unexpected. If the compiler had generated an error because a new exception type could be thrown by the third party API, the developer could have decided that they either
39.
▲
by
simias
3y ago
> Catching the root exception is not a bad idea. If you had caught the new exception what would you have done with it? Something relevant to the error condition, probably? There may be some cases where the total set of possible errors is
40.
▲
by
simias
3y ago
My software dev mind went elsewhere, I wonder if the long term solution might not be to make all these controls inputs to some computer ("fly-by-wire") that could be toggled to some failsafe mode if the physical devices jam someho
41.
▲
by
simias
3y ago
Xev is super useful when messing with keybindings. I also use xmag (not in this list) when I want to inspect something on screen or as a makeshift color picker.
42.
▲
by
simias
3y ago
Discourse goes a bit overboard with the javascript and all the bells and whistles but I don't understand how anybody could prefer PHPbb over it, other than familiarity. That being said I always found PHPbb abysmal to use, even in the e
43.
▲
by
simias
3y ago
FPGA is probably a safer bet if you want to minimize latency. Implementation is left an as exercise for the reader.
44.
▲
by
simias
3y ago
> It's true and false at the same time. The operations C gives you map 1-to-1 with assembly. Given some C code you can quite accurately predict which loads/stores will be elided by the compiler and what the resulting assembly
45.
▲
by
simias
3y ago
>Case insensitivity is only seen as "rustic" because C is case insensitive. C is case sensitive , but it's also not seen as very modern language these days, so I'm not sure I understand your argument. I think case-in
46.
▲
by
simias
3y ago
That's gikun (義訓), a fun feature of Japanese that's often used and abused in popular culture. For those not familiar there are explanations and examples in this article: https://morg.systems/Gikun
47.
▲
by
simias
3y ago
Ditto in Russian, and in French "spring" is sometimes used as a synonymous for "year" when talking about ages, especially in more poetic contexts.
48.
▲
by
simias
3y ago
I think I can imagine how such a system came out to be, until fairly recently keeping accurate timekeeping and even datekeeping might have been difficult, especially for isolated people. You may not have known the exact date of one's b
49.
▲
by
simias
3y ago
>Easier: a device that shreds the phone onsite, in front of the customer. Given that most phone these days have non-removable batteries, can one really shred them safely? And wouldn't it make it harder to recycle if you can't i
50.
▲
by
simias
3y ago
The trick with powers of two is that you can just look at the MSB of `x XOR y` where x and y have one more bit than necessary to store the size. So for instance if you have a buffer with 8 entries you have a read pointer and a write pointer
51.
▲
by
simias
3y ago
Only if the restrictions are static and don't need to be checked dynamically, naturally. For dynamic arrays or dynamic indices it's not always possible to do that in Rust.
52.
▲
by
simias
3y ago
ex æquo and curriculum vitæ are two common examples of æ in French (although they're obviously direct borrows from Latin).
53.
▲
by
simias
3y ago
I think your guess seems plausible, although maybe it was simply an effort to widen the beam to better match the graphics? The lightning effect is rather wide and it may have been surprising for the player if the hitbox ended up too narrow.
54.
▲
by
simias
3y ago
Like TFA I only use ctrl-u and ctrl-d since it's faster than moving one line at time and not as disorienting (in my experience) as moving one full page at a time. It's also easy to learn since it's [u]p/[d]own.
55.
▲
by
simias
3y ago
gv to reselect the last selected visual mode region is also often handy in my experience.
56.
▲
by
simias
3y ago
Yeah they've been trying to kill old.reddit and third party apps for a long time. The experience degrades more and more as they add new features that are only fully supported (or supported at all) on new.reddit and the official app. Th
57.
▲
by
simias
3y ago
Sure, I should have been clearer, what I had in mind was more "do potential users of Mojo even know or care about how fast C is?" In my experience the new generation of devs haven't touched C and treat it like some kind of we
58.
▲
by
simias
3y ago
I chuckled a bit when I saw that they market themselves as "faster than C". Is it 2005 again? Do modern developers even have any notion of how fast C runs to use as a baseline? It's really minor thing but a pet peeve of mine,
59.
▲
by
simias
4y ago
I'd hope that mullvad at least wouldn't do that given how strongly they seem to value privacy. Of course, you can never be entirely sure...
60.
▲
by
simias
4y ago
I meant POSIX shell or more specifically a loosely defined subset of all these shell dialects that is reasonably portable in practice. I'm not saying that it's impossible to do, I'm saying that it's very difficult, requi
More ›