@thephd@pony.social
@thephd@pony.social avatar

thephd

@thephd@pony.social

🎇 Somehow Is A C Expert ✨ Smooches Unicode-kun 💕 The C Standard Cannot Be Replaced And Will Never Be Destroyed. 🧟‍♀️ Pixel Art is Cool ✨ Banner

This profile is from a federated server and may be incomplete. Browse more on the original instance.

thephd, to random
@thephd@pony.social avatar

Improved safety of format_to when writting to an array ().

LET'S FUCKING GOOOO I'M HITTING FMT MAINLIIINE SOOON

https://github.com/fmtlib/fmt/blob/master/ChangeLog.md

thephd, to random
@thephd@pony.social avatar

Please keep guarding C’s stated merits and goals. I’m so glad that someone as stubborn as you is doing so; I’d fear for C otherwise.

... I, uh. ...Hrm.

I feel like I've done something wrong?? If someone is saying I'm C's guardian and not the opposite?

Have I gone soft?

thephd,
@thephd@pony.social avatar
thephd,
@thephd@pony.social avatar

I'm sure they'll change their mind once I actually publish my proposals for Statement Expressions, Lambdas/Blocks, etc....

... But for now, I guess I can be C's guardian. :D

thephd, (edited ) to random
@thephd@pony.social avatar

Adding new output ranges functionality into libfmt (not guaranteed to be accepted and will probably make a lot of people sad), where do I put it:

sickeroni, to random German
@sickeroni@mastodon.social avatar

Do i know somehow with good C knowledge?
I searching for features of C versions that are originated from C++.
I know C23 got [[nodiscard]], but I'm searching also for
C99
C11
C17
(reposting is appreciate)

thephd,
@thephd@pony.social avatar

@sickeroni The entire threading model, memory model improvements, all of <threads.h> and and <stdatomic.h> came from C++.

thephd,
@thephd@pony.social avatar

@DanielaKEngert @sickeroni @erisceleste Function prototypes (aka void f(int a); that actually used types) was indeed something C stole from C++. I had a highly upvoted tweet with the screenshot and linked source but I've since cleaned out my Twitter so I'd have to find it again, but I'm willing to stake my Project Editor hat on it.

thephd,
@thephd@pony.social avatar

@sickeroni (They were standardized in-parallel but the motion of the feature was "C++ did it, then someone (P.J. Plauger/Hans Boehm) translated it into a C interface".

thephd,
@thephd@pony.social avatar

@DanielaKEngert @sickeroni @erisceleste FWIW I believe it's words from Brian Kernighan reflecting directly on C itself, but it's hard to find again since I think he's cleaned up his homepage. Plus Dennis's was turned into a memorial some time ago, so it's hard to find their writing on the C programming language and its earliest changes/standardization.

thephd, to random
@thephd@pony.social avatar

ACHIVEMENT UNLOCKED: Infodump about encodings and char8_t on the C Standard internal mailing list.

thephd,
@thephd@pony.social avatar

My niche interest activation phrase is "wchar_t is fine".

thephd,
@thephd@pony.social avatar

@lorddimwit My paper is gonna fix that exact problem in the future.

Patricia, to random
@Patricia@vivaldi.net avatar

Me in an OO language: Object Orientation is an antiquated concept!
Me in a functional language: I need a type and I need it yesterday!

thephd, (edited )
@thephd@pony.social avatar

@whitequark @Patricia I feel the same way about OCaml, even if it was the only fp lang I ever managed to write anything in.

thephd,
@thephd@pony.social avatar

@whitequark @Patricia Haskell is just straight up readonly to me. if I wrote Haskell call my friends and tell them to come look for me because something must've happened.

thephd, to random
@thephd@pony.social avatar

As a minor PSA: if I can successfully narrate your e-mail or DM in Sephiroth's voice -- dramatic music and all -- I am absolutely not going to listen to a word of it. :D

thephd, to random
@thephd@pony.social avatar

It's time.

RAII in C, and why nobody's getting it right with the increasingly "simple" juggling that keeps getting tossed to me like table scraps for a dog.

The Pasture | Why Not Just Do Simple C++ RAII in C? | https://thephd.dev/just-put-raii-in-c-bro-please-bro-just-one-more-destructor-bro-cmon-im-good-for-it

thephd,
@thephd@pony.social avatar

@antnisp Yeah, writing things in anger at 2/3 in the morning tends to fuck me up. Deploying a lot of grammar/typo fixes now!

thephd,
@thephd@pony.social avatar

@doty I'm not actually sure why it's not updating on the website itself, the local version seems to generate a proper feed.xml fine. I'll have to look into it...!

thephd,
@thephd@pony.social avatar

@gob I haven't taken a full opinion on it, because it's outside my wheel house. I am not an Optimizer Guy™, I just know enough to barely be able to not blow my own leg off (and measure when I think I might).

There's people working hard on the Memory Model and Provenance Models for C and C++ right now. Hell, someone just put out a paper about it recently: https://wg21.link/P3292R0

thephd, to random
@thephd@pony.social avatar

I'm not interested in discussing the politics of AI. Computing technology is full of odious things made by odious people in the most odious ways, and has been for as long as I've been alive. Take what's useful and recognize that every choice is a tradeoff.

Asshole.

You forced me to make the tradeoff. I didn't ask for it.

thephd, to random
@thephd@pony.social avatar

This post just ended up being depressing. :/

Patricia, to random
@Patricia@vivaldi.net avatar

@thephd I’m teaching my (In)Secure C++ class this week and I love that not only are you in it, but you took it 💕

thephd,
@thephd@pony.social avatar

@Patricia Hopefully I'm in it for Good Reasons™ and not Bad Reasons™. (But I am happy to be in it, and SUPER glad I took it!)

thephd, to random
@thephd@pony.social avatar

Well, at least I got this paper out finally: https://thephd.dev/_vendor/future_cxx/papers/C%20-%20Restartable%20and%20Non-Restartable%20Character%20Functions%20for%20Efficient%20Conversions.html

Once I finish it I hope to return to the C++ version in "Transcoding the world". It's just been too long of a journey.

thephd,
@thephd@pony.social avatar

@krans Hey, that's fine! I appreciate that you even took the time to read it at all; helped me remember to make a bunch more edits before sending it over again to be published!! 🫡

thephd,
@thephd@pony.social avatar

@hackymix Some feedback directly from implementers that implement their own stdlib on tiny devices, saying the interface was okay (and that it was nice that it didn't require any static data stored in the stdlib for the conversions). But otherwise, no other outreach.

Not sure why customization is a problem: the paper never got rid of the char/wchar_t bits. Those are implementation-defined, runtime-changed execution and wide execution encoding-based conversion routines, of which the implementation can stuff full of things (or perhaps nothing) that suits its specific needs.

thephd, to random
@thephd@pony.social avatar

Me, ignorant: "Going over CVEs is a great way to learn what exploited weaknesses C has and the things human beings truly struggle with that are at risk."

Linux kernel, snorting a fat line: "Weeeeeoohaaaaa!! What if we turned every fix commit into its own CVE using grep???"

thephd,
@thephd@pony.social avatar

They're BACKFILLING all the old commits and CVEs too Ahahahwudihausahfidnjusfkgpenglogeq

https://www.openwall.com/lists/oss-security/2024/05/01/2 (learned via @alanc)

Just gonna ignore CVEs for the next year or so, I guess. Gimme a break....

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines