Sonotsugipaa

joined 1 year ago
[–] [email protected] 10 points 1 month ago (3 children)

You can set some browser-unrelated program or script as your desktop environment's default browser, for example I wrote a Zsh script that creates a KDE dialog and asks me to copy the URL to the clipboard.

I'm not currently at my PC, but if you want it I can paste it in a comment here when I get to it - it shouldn't be too hard to translate it to Bash, either.

Other than that? /usr/bin/true is a pretty nice default browser for applications to start without your consent, very minimal and lightweight.

[–] [email protected] 2 points 1 month ago

Also gamers when any scene at any point has less than 500000 polygons and UINT32_MAX particles, each with its own material

[–] [email protected] 2 points 1 month ago

Oh, std::enable_if is straight up worse, they're unreadable and don't work when two function overloads (idk about variables) have the same signature.

I'm not even sure enable_if can do something that constraints can't at all...

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago) (2 children)

I imagine reflections would make the process more straightforward, requires expressions are powerful but either somewhat verbose or possibly incomplete.

For instance, in your example foo could have any of the following declarations in a class:

  • void foo();
  • int foo() const;
  • template <typename T> foo(T = { }) &&;
  • decltype([]() { }) foo;
[–] [email protected] 16 points 1 month ago

No, that's Vim

[–] [email protected] 1 points 1 month ago (1 children)

Spaces between paragraphs should work, you have to use two new lines for them.

They seem to work on my instance's web interface and on Jerboa...

[–] [email protected] 2 points 1 month ago (3 children)

Tip:
you can replace your periods with three dashes to get a horizontal separator, which I think is what you were going for. It's markdown syntax, it should work for most clients.

[–] [email protected] 45 points 1 month ago (1 children)

Huh, the 3 letters on the right seem to use a different font, I wonder why that may be...

[–] [email protected] 2 points 1 month ago

Yeah, that's what I was thinking of. I don't know how C++ could reasonably have Java-like reflections anyway...

[–] [email protected] 2 points 1 month ago (2 children)

Wouldn't compilers be able to optimize runtime things out? I know that GCC does so for some basic RTTI things, when types are known at compile time.

[–] [email protected] 12 points 1 month ago (9 children)

I can see the footguns, but I can also see the huge QoL improvement - no more std::enable_if spam to check if a class type has a member, if you can just check for them.

... at least I hope it would be less ugly than std::enable_if.

[–] [email protected] 7 points 1 month ago (1 children)

With how Halo has been rammed into the ground, Halo vs. Copilot is a fair fight

view more: ‹ prev next ›