Sonotsugipaa

joined 2 years ago
[–] Sonotsugipaa 7 points 8 months ago (4 children)

The first argument is more or less understandable (still wrong): you can't just propel yourself upwards at your earliest convenience to reach the moon, you have to play around with orbital mechanics.
If your friend's idea of a moon-worthy vessel is an unsteerable rocket with infinite fuel and a chair strapped to it... well the odds are effectively zero.

The second argument? bro, last time I checked the moon was still orbiting Earth

[–] Sonotsugipaa 3 points 8 months ago

It's funny that it complains about all of the right stuff (except the 'int' thing), but it doesn't say anything about the concept.

About the 'int' literal (which is not a string): cppreference.com has a description on this page about it, ctrl+f "multicharacter literal".

[–] Sonotsugipaa 9 points 8 months ago

Just surround your eyes with try { ... } catch(Up& up) { }, easy fix

[–] Sonotsugipaa 3 points 8 months ago

Multiple-character char literals evaluate as int, with implementation defined values - it is extremely unreliable, but that particular piece of code should work.

[–] Sonotsugipaa 15 points 8 months ago* (last edited 8 months ago) (7 children)
// C++20

#include <concepts>
#include <cstdint>

template <typename T>
concept C = requires (T t) { { b(t) } -> std::same_as<int>; };

char b(bool v) { return char(uintmax_t(v) % 5); }
#define Int jnt=i
auto b(char v) { return 'int'; }

// this increments i:
void inc(int& i) {
  auto Int == 1;
  using c = decltype(b(jnt));
  // edited mistake here: c is a type, not a value
  // i += decltype(jnt)(C<decltype(b(c))>);
  i += decltype(jnt)(C<decltype(b(c(1)))>);
}

I'm not quite sure it compiles, I wrote this on my phone and with the sheer amount of landmines here making a mistake is almost inevitable.

[–] Sonotsugipaa 13 points 8 months ago

It's just innocuous entertainment.
Listening to the Super Earth Anthem doesn't make me want to drop a 380mm barrage over everything the Illuminate hold dear, or anything...

[–] Sonotsugipaa 57 points 8 months ago (3 children)
[–] Sonotsugipaa 5 points 8 months ago

Are we used to choosing comfy things despite [...] concerns

People have been choosing convenience above everything else for a while, personally I find that doing so is even glorified at times.

[–] Sonotsugipaa 4 points 8 months ago (1 children)

No, all files are base 256

[–] Sonotsugipaa 4 points 8 months ago

I don't see any point in claiming free games from it.

If by any chance one of the games I might ever want to play becomes a freebie, then I would simply browse my backlog rather than forsake my principles.

[–] Sonotsugipaa 16 points 8 months ago (1 children)

Relax liberals, it's called "park humor"

view more: ‹ prev next ›