Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Asooka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
57 ms
·
571.
▲
by
Asooka
6y ago
> Take a look and see. What do you think this BigInteger math does? The problem for me is it's not clear if a.add(b) is "a+b" or "a+=b". With the regular operators it's always obvious which mutate the value
572.
▲
by
Asooka
6y ago
That's weird. At my company our performance improved with everyone working from home. Some peoples' individual performance deteriorated slightly, but it's made up for by the rest.
573.
▲
by
Asooka
6y ago
I did notice something similar. We brought on one junior last year and I had to schedule about 5 in-person days with him to do actual pair programming to teach him some stuff. That said, I think what stopped me the most with being productiv
574.
▲
by
Asooka
6y ago
Some of the best friends I have, I met online and haven't actually seen face to face. Still, you can have a workplace with a reduced (not eliminated) physical presence. I know of people who do flexible office visitation, so they have t
575.
▲
by
Asooka
6y ago
Could you do return Area(Float (Left) * Float (Right));
576.
▲
by
Asooka
6y ago
Yes. It looks wrong and feels wrong. I can adjust to indentation styles, programming styles, etc. but 1-based indexing is an absolute deal-breaker for me. It's one of the few things the programming community has settled on - indexing s
577.
▲
by
Asooka
6y ago
Circadian rhythms are fixed to the sun, not to the number on a dial. For a concrete example on how permanent DST will mess up people, look at Spain. The entire country should be on GMT+0, instead it's on GMT+1 because of Hitler not wan
578.
▲
by
Asooka
6y ago
See kid => hit brakes. This is already way better than a driver who doesn't notice the kid and doesn't hit the brakes. The inside of the car is very well designed to keep the occupant alive in case of collision, the car should
579.
▲
by
Asooka
6y ago
I'm fairly confident that since the lookup table fits comfortably in L1 cache, both algorithms will be about equally fast. You may see a difference if you have to case-fold the entire Library of Congress several times per user operatio
580.
▲
by
Asooka
6y ago
In Vim you can achieve something quite similar with gundo plugin. Vim tracks all your changes in a tree by default and you can also use the "earlier" and "later" commands with a time delta to go back and forward a specif
581.
▲
by
Asooka
6y ago
From GI Joe.
582.
▲
by
Asooka
6y ago
It can be both. Jezero was named Jezero because it's next to the jezero. Edit: Same as e.g. Volgograd (wet town), which is next to the Volga river, named Volga because it's wet.
583.
▲
by
Asooka
6y ago
Nope, it's less. You can use "less few" if a naked less bothers you. "Fewer" is not a real word - if it were, then we would also use "manyer" as its antonym. And before you go off saying I'm wrong, le
584.
▲
by
Asooka
6y ago
You could restrict how much one stock can be shorted. This situation should have never arisen - it only happened because one firm was holding on to a ridiculous amount of risk. They gambled, someone noticed and posted about it. Either you r
585.
▲
by
Asooka
6y ago
>Do schools [...] not teach You haven't been to school this century, have you.
586.
▲
by
Asooka
6y ago
The similarity is that you are insuring against a specific event with a lot of caveats. As a silly example, if you insure your house against fire damage and then light it on fire yourself intentionally, you're not getting anything. The
587.
▲
by
Asooka
6y ago
Qt can trivially offer a C ABI if they want. Glib can't be type safe no matter how hard they try. People don't seem to have any trouble making Qt bindings for languages like Go, Python, Java, all of which you could say strongly pr
588.
▲
by
Asooka
6y ago
> But it's crazy to suggest that this somehow invalidates democracy. I wouldn't say it's crazy. Your employer can just schedule you to work on election day, forcing you to choose between participating in democracy and not
589.
▲
by
Asooka
6y ago
The tiger is not evil, but it will eat you all the same when hungry.
590.
▲
by
Asooka
6y ago
Oh, I ran into the same problems, so in the end I decided to treat the Dropbox repo as a remote - create a bare repository in your Dropbox, clone it to a local folder, push/pull as you would any other repo. It's not optimal, but i
591.
▲
by
Asooka
6y ago
Reminds me of the virus that encrypts your home folder and requires you to 1cc PCB on Lunatic to get the decryption key.
592.
▲
by
Asooka
6y ago
A better algorithm than marching cubes is surface nets, which doesn't have ambiguous cases and isn't patented AFAIK. See: https://0fps.net/2012/07/12/smooth-voxel-terrain-part-2/
593.
▲
by
Asooka
6y ago
It should be possible to compile wxWidgets with Cosmopolitan, one variant per platform (win32, POSIX/X11, MacOS) and initialise the correct one at runtime depending on where you're launched, no?
594.
▲
by
Asooka
6y ago
The easy option always wins in the end. You could do all that, or you could write one Dockerfile and not care. Obviously this is not the goal of Docker, but it fulfills a need that many big companies have and will fund its continued devel
595.
▲
by
Asooka
6y ago
Proton - Valve's branch of Wine is probably your best option for running Windows games on Linux right now. That is of course unless you also want all the security that comes with Qubes. If you want to use a VM, VMware had a reasonably
596.
▲
by
Asooka
6y ago
Could this be used to make torrenting a felony then? In the case that you're sharing a commercial work, obviously. You sharing a torrent is essentially you providing a service (being in the swarm, sending chunks), which exists entirely
597.
▲
by
Asooka
6y ago
> that would be stealing No, that would be copyright infringement, which is not theft.
598.
▲
by
Asooka
6y ago
Personally I just compile my code with "-fwrapv -fno-strict-aliasing". It's not standard C, but every compiler supports an analogue to those class and it saves so many headaches from UB-optimising passes, the tiny loss in per
599.
▲
by
Asooka
6y ago
This is amazing, thanks! It's a bit different though - it executes a cleanup function when the variable goes out of scope, rather than a statement at the end of the enclosing guard block. It might be better though - it avoids some foot
600.
▲
by
Asooka
6y ago
I view it as another element of structured programming. It can be expressed as a series of "goto" statements, same as for, while, do, switch. It's just one they didn't think of back when C was being designed. If it was i
More ›