HackerTrans
トップ新着トレンドコメント過去質問紹介求人

anonymous_union

no profile record

コメント

anonymous_union
·2 年前·議論
i'm with you
anonymous_union
·2 年前·議論
the obvious solution, local storage.
anonymous_union
·2 年前·議論
yes. simplify your expectations. realize that not every piece of technology is worth using. biggest benefit is they say no.
anonymous_union
·2 年前·議論
did they reinvent email threading
anonymous_union
·2 年前·議論
in some other systems the concept has become overloaded. instead of multiple real people as users, different software with different permissions are different users. its not a bad abstraction.
anonymous_union
·2 年前·議論
kubernetes is dying, isn't it?
anonymous_union
·2 年前·議論
holy shit this guy knows no shame
anonymous_union
·2 年前·議論
your personality for sure is represented in the software you write. no different than any other creative profession.
anonymous_union
·2 年前·議論
yes
anonymous_union
·2 年前·議論
[flagged]
anonymous_union
·2 年前·議論
c++ is so bad. when i see threads like this one praising it, i feel bad for all the mental energy these people have put into understanding an unorganized and unelegant garbage dump of ideas. even his coworkers at bell labs tried to convince him c++ was a bad idea.

ken thompson wouldn't use it. then he invented go to spite him.
anonymous_union
·2 年前·議論
[flagged]
anonymous_union
·2 年前·議論
native racism in the prairie provinces has been awful. in alberta indigenous population appx 7% but inmate population appx 50%. saskatchewan and manitoba likely similar.

https://en.wikipedia.org/wiki/Demographics_of_Alberta#Visibl...

https://open.alberta.ca/dataset/0238e596-4add-46ee-81eb-2dbf...
anonymous_union
·2 年前·議論
pkg-config seems like all you need these days
anonymous_union
·2 年前·議論
apple ships it
anonymous_union
·2 年前·議論
interesting that code size is important to you. hey everyone, write shorter programs :)
anonymous_union
·2 年前·議論
right yea, modern CPUs seem to have all sorts of abstract optimizations. its kind of strange how we meet in the middle with hardware ISA manufacturers. they do all sorts of tricks on their side to make code go faster, and we try to generate machine code that we think will go faster, but neither side works with the other (compiler writers and ISA developers). i bet there is easy low hanging fruit here.
anonymous_union
·2 年前·議論
oops im dumb, convert argv[1] and argv[2] to integers first.
anonymous_union
·2 年前·議論
im not sure. given a hypothetical arch with only 1 free register, which local variable do you allocate to it?

  1 int
  2 main(int argc, char *argv[])
  3 {
  4         int sum = 0;
  5         int sum2 = 0;
  6
  7         if (argc >= 2)
  8                 for (int i = 0; i < argv[1]; i++)
  9                         sum += i;
 10
 11         if (argc >= 3)
 12                 for (int i = 0; i < argv[2]; i++)
 13                         sum2 += sum + i;
 14
 15         return 0;
 16 }
anonymous_union
·2 年前·議論
its fascinating how register allocation is not a solved problem. thinking about it, it seems like optimal allocation would depend on input/workload, so any ahead of time selection will always be a compromise.