nicebyte's Avatar

nicebyte

@nicebyte.bsky.social

the only good anime pfp acct · http://gpfault.net · http://github.com/nicebyte · http://nice.graphics

1,379 Followers  |  312 Following  |  603 Posts  |  Joined: 29.04.2023  |  2.0209

Latest posts by nicebyte.bsky.social on Bluesky

doesn't c++ just handwave them away as undefined behavior 😁

02.02.2026 05:34 — 👍 1    🔁 0    💬 1    📌 0

Yeah, that's why I mentioned value_or_error<T>. you can't not check it (well, you can but the result will be much the same as neglecting to write a catch block).

02.02.2026 05:19 — 👍 1    🔁 0    💬 1    📌 0

yeah, from the runtime perspective well-implemented exception machinery should be almost indistinguishable from the "return the error code" pattern. I just question the whole "let's make error checking a part of the language" approach as adding unnecessary burden (see my comment in another thread)

02.02.2026 05:16 — 👍 0    🔁 0    💬 1    📌 0

as from user's perspective I don't think they're that ergonomic anyway, value_or_error<T> is a lot more understandable, predictable and easy to follow.

02.02.2026 05:08 — 👍 2    🔁 0    💬 1    📌 0

I'm not worried about their runtime cost or anything like that. But they hurt the language in two ways: 1. high-quality implementation is very nontrivial 2. the interplay between exceptions and current (and future) lang features is also nontrivial. they're a net maintenance burden on the language.

02.02.2026 05:07 — 👍 6    🔁 0    💬 2    📌 0

no sorry, I'm assign-if-ok gang.
maybe google3 standards broke my brain but not having the potential failure modes be part of the func signature feels criminal.
plus, exceptions are so much harder from the implementers pov - I just really don't see the wins from them.

02.02.2026 04:54 — 👍 1    🔁 0    💬 1    📌 0

one of my huge disappointments in swift. Its like the language authors expect the language users to be conditioned to this error handling approach and incapable of getting used to anything else.

02.02.2026 04:51 — 👍 1    🔁 0    💬 1    📌 0

so, is there by now an agreement in the c++ community that exceptions were, by and large, a costly design mistake?

02.02.2026 04:39 — 👍 7    🔁 0    💬 8    📌 0

this point came up in a discussion some months ago which made me realize that supporting proper lambdas in hlsl would mean this "anyhit shader" logic could be passed in as lambda and inlined with the "hidden" code that does bvh traversal. maybe that'll happen some day..

02.02.2026 02:03 — 👍 5    🔁 1    💬 0    📌 0
Texel Density Explained
YouTube video by Hugh Chew Texel Density Explained

www.youtube.com/watch?v=vehI...

01.02.2026 06:29 — 👍 9    🔁 0    💬 0    📌 0

"100% of claude code is written by ai" yeah i can tell by the bugs.

31.01.2026 20:54 — 👍 3    🔁 0    💬 0    📌 0

It's easy to stay on 10 and never upgrade. That's my plan until it becomes untenable, then it's Linux time.

29.01.2026 23:53 — 👍 2    🔁 0    💬 1    📌 0
Lauding a Language is Very Mid
YouTube video by Sheafification of G Lauding a Language is Very Mid

programming in llvm IR
youtu.be/dAMXxxOtJUc?...

27.01.2026 01:28 — 👍 3    🔁 0    💬 0    📌 0

lucky, the huge torii gate was closed for repairs when i went.

26.01.2026 22:57 — 👍 0    🔁 0    💬 1    📌 0
Post image

finally, sunset in kyoto.
no filters here. it was about 10 times more pretty in person. i haven't seen another sunset like that since.
might be one of my most treasured non-portrait photos.

26.01.2026 01:53 — 👍 7    🔁 0    💬 0    📌 0
Post image

tokyo imperial palace garden

26.01.2026 01:50 — 👍 4    🔁 0    💬 1    📌 0
Post image

sunset in tokyo

26.01.2026 01:48 — 👍 2    🔁 0    💬 1    📌 0
Post image

view from mt misen

26.01.2026 01:47 — 👍 2    🔁 0    💬 1    📌 0
Post image

mt misen ropeway in miyajima

26.01.2026 01:47 — 👍 1    🔁 0    💬 1    📌 0
Post image Post image

deer of miyajima

26.01.2026 01:45 — 👍 4    🔁 0    💬 2    📌 0
Post image

snoozing sea lion at osaka aquarium

26.01.2026 01:42 — 👍 4    🔁 0    💬 2    📌 0
Post image

yasaka pagoda

26.01.2026 01:38 — 👍 0    🔁 0    💬 1    📌 0
Post image

inari's messenger

26.01.2026 01:37 — 👍 2    🔁 0    💬 1    📌 0
Post image

to break up the cycle of doom scrolling for you, here's a thread of some japan travel pics from various years.

torii gate of hakone shrine at lake ashi:

26.01.2026 01:35 — 👍 19    🔁 0    💬 2    📌 0

by enabling lto I shaved off a quite hefty chunk.

22.01.2026 08:33 — 👍 0    🔁 0    💬 1    📌 0

can i do this with just compiler flags?

22.01.2026 08:16 — 👍 0    🔁 0    💬 1    📌 0

i am guessing the baseline c binary is comparatively small due to being dynamically linked with libc. rust probably links the rust std bits statically, but it _also_ depends on libc.

22.01.2026 08:10 — 👍 0    🔁 0    💬 2    📌 0

freestanding c executable also 16K but if we look at byte size it's just a tiny bit shorter than the equivalent rust one (about 170 bytes)

22.01.2026 08:03 — 👍 1    🔁 0    💬 1    📌 0

quick binary size check for a program that immediately exits:

c compiled with clang, with stdlib: 20K
rust compiled with rustc, no stdlib: 16K
rust compiled with rustc, stdlib included: 432K

all 3 have highest optimization level enabled

22.01.2026 07:55 — 👍 7    🔁 0    💬 4    📌 0

Small indies are hurting for capital so bad right now and the way for them to make money is freakin anything but a niche market like vr. I don't know which investor would even look that way as of today.

20.01.2026 23:08 — 👍 3    🔁 0    💬 1    📌 0

@nicebyte is following 20 prominent accounts