Better HN
topnewbestaskshowjobs
Log inSign up

dependenttypes

1,649 karma · joined Jan 1, 2019 (7y ago) · 1,251 submissions

Submissions

comment 6y ago · link · parent

> the lack of package manager

Just use nix or even apt. Both of them are MUCH better when compared to trash like npm or cargo which do not even check for signatures.

> common build system

Such as make? There is also Ninja/Meson if you prefer.

comment 6y ago · link · parent

> since C doesn't ... check for overflows

Because it's a language, not an implementation. An implementation is free to do so (and there are such implementations after all).

comment 6y ago · link · parent

Everything that you mentioned was already available at the time in other languages. This is not innovation.

comment 6y ago · link · parent

Java was never a form of innovation.

comment 6y ago · link · parent

You are not mandated a constant-time aes implementation either.

comment 6y ago · link · parent

Kubernetes people..

comment 6y ago · link · parent

Check the edit history of the first post.

comment 6y ago · link · parent

I find it gross that dstftw (the core youtubedl maintainer) censored the part about youtube-dlc from that issue.

comment 6y ago · link · parent

It is extremely easy even if you don't.

comment 6y ago · link · parent

desktop version: https://xkcd.com/2357/

comment 6y ago · link · parent

I heard that some services have started rejecting email addresses that contain their name.

comment 6y ago · link · parent

Hashes are not a panacea. I see them being suggested as solution for anonymization of ip addresses/domain names/urls/file names/emails all the time but these people that make said suggestions are either clueless or are arguing in bad faith. It is extremely easy to brute-force the majority of said hashes. (in addition to that I doubt that anyone is passing hashed emails as it would make it slightly inconvenient to send emails to said accounts)

comment 6y ago · link · parent

Or sue you, which is likely with shady companies such as Zoom.

comment 6y ago · link · parent

You should be able to configure a script to show you a popup whenever you click on one.

comment 6y ago · link · parent

Why though?

comment 6y ago · link · parent

https://raccoon-attack.com/

> Raccoon is a timing vulnerability ...

comment 6y ago · link · parent

Yet another timing attack. I remember reading not too long ago that the OpenSSL developers will consider side channel attacks an issue only if someone provides a way of exploiting them rather than consider them as ticking time bombs.

The easiest solution would be to only enable the X25519 and X448 key exchanges by default. (and in the future a post-quantum one)

comment 6y ago · link · parent

https://web.archive.org/web/*/snopes.com

> Sorry.

> This URL has been excluded from the Wayback Machine.

They also do not exclude the archive.org bot in https://www.snopes.com/robots.txt

comment 6y ago · link · parent

Why does the proportion matter? Yes, more casual gamers entered the scene - this is to be expected as computers before more accessible, but the number of people willing to play complex strategy games has overall gone up.

comment 6y ago · link · parent

Minecraft is another example. Until a recent version there wasn't even a build-in recipe book, you had to either discover them by yourself or search about them online.

comment 6y ago · link · parent

One of the goals for CK3 was to dumb CK2 down in order to reach a wider audience. I honestly would not describe any of the newer Paradox games as complex (yes, even Stellaris).

comment 6y ago · link · parent

At the Gates had its own share of problems that wasn't just because it changed too much.

> Firaxis's Beyond Earth has barely 1 person who played at least 1 minute for every 10 that bought the game

It is common for a lot of people to "buy" games on steam that they will never play. Especially with less popular games.

comment 6y ago · link · parent

post them regardless

comment 6y ago · link · parent

They exclude Snopes and I think Salon from archiving.

comment 6y ago · link · parent

Turning off canvas only breaks tracking. Very few sites require it to work. Firefox will ask you to enable it on a per-site bases by enabling privacy.resistFingerprinting.

comment 6y ago · link · parent

I suggest using uBlock Origin https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-...

comment 6y ago · link · parent

Do not use the input as indices, do not branch depending on the input, and do not use division, mod, and even multiplication on the input. Check how libsodium does it. Here is a safe rot13 implementation in C if it is any help (note: it assumes a safe islower and isupper implementation).

    #include <ctype.h>
    
    #define IFTHENELSE(c, t, e) ((-(!!(c)) & (t)) | (-(!(c)) & (e)))
    
    unsigned char
    mod26 (unsigned char x)
    {
      x -= IFTHENELSE(x >= 26 * 4,
        26 * 4,
        0);
      x -= IFTHENELSE(x >= 26 * 2,
        26 * 2,
        0);
      x -= IFTHENELSE(x >= 26 * 2,
        26 * 2,
        0);
      x -= IFTHENELSE(x >= 26,
        26,
        0);
      return x;
    }
    
    unsigned char
    rot13 (unsigned char x)
    {
      return IFTHENELSE(islower(x), mod26(x - 'a' + 13) + 'a',
          IFTHENELSE(isupper(x), mod26(x - 'A' + 13) + 'A',
              x));
    }
implementing base32h should be much easier as you do not need to perform mod with a non-power of 2.

comment 6y ago · link · parent

Be warned, the implementation is vulnerable to side-channel attacks. Please avoid using it to encode secrets. I would suggest using libsodium instead https://libsodium.gitbook.io/doc/helpers - although it does not offer a base32 variant.

comment 6y ago · link · parent

Or mark said sites as malicious. No need to select the most anti-user solution.

comment 6y ago · link · parent

IMO, there should be some regulation where they should be forced to mention the current and maximum allocation that they are willing to make as well as the average/median bandwidth that the active users enjoy per hour.
12345
42