Elektrine lite

← Feed

Björkus "No time_t to Die" Dorkus

thephd@pony.social

<p>🎇 Somehow Is A C Expert ✨ Smooches Unicode-kun 💕 The C Standard Cannot Be Replaced And Will Never Be Destroyed. 🧟‍♀️ Pixel Art is Cool ✨ Banner by Wus (Reckless Moss), Avatar by Kiing Kiismet!</p>

Posts

  • View post

    As I keep reading over the PHP patches I keep seeing the devastation not of people who don&#39;t know how to write secure software, but decades of people with very little resources tasked with writing the most widely used internet-facing software on earth in the programming language I am a participant in shaping. I see that the slow pace of adoption of things that we were told would help people 20, 30 years ago by security experts has not been adopted, and some of the world&#39;s most complex co...

  • View post

    Another thing AI has taken from me is just being able to use normal VPNs with a lot of services. So many crawlers use VPN and Datacenter IP addresses that even these work VPNs get ass-blasted by something as fundamental as the login page for this academic shit. I hate it here.

  • View post

    @navi I saw the patches go out on the mailing list -- lemme know if there&#39;s anything you need me to do for you w.r.t. helping it along!

  • View post

    C++ now has thread attributes and because it took me so long, they got theirs before C got ours: https://eel.is/c++draft/thread.threads#thread.attributes https://thephd.dev/_vendor/future_cxx/papers/C%20-%20Thread%20Attributes%20-%20Implementation%20Extensible%20and%20ABI-Resistant.html Just goes to show how dogshit slow I am that C++ can figure it out with more features before C does.

  • View post

    Alright, officially talking to ISO to get this turned from a draft into a real thing. Thanks to everyone for participating! https://www.open-std.org/JTC1/SC22/WG14/www/docs/n3928.pdf

  • View post

    &quot;I think I&#39;ll switch up my diet to eat more greens.&quot; I could not have worse timing.

  • View post

    Really, really cool working with these things.

  • View post

    Working on compilers is fun, I should do this for a living sometime.

  • View post

    Live now: https://www.open-std.org/JTC1/SC22/WG14/www/docs/n3550.pdfhttps://www.open-std.org/JTC1/SC22/WG14/www/docs/n3551.htm

  • View post

    Got Stun Locked Again, so it&#39;s time to dump a rant I made elsewhere: C is not a language for direct control of the hardware. C is a langauge that is coded to the semantics of an Abstract Machine specified in a document. It&#39;s no more capable of hardware control that e.g. Rust or Zig. What it has is a wide variety of pre-existing implementations that allow you to touch that hardware, but most of that control was programmed in an assembly language or worked into the hardware/firmware by so...

  • View post

    working on gcc is killing me, haha

  • View post

    Extremely important poll: what animal / anthropomorphic animal face should I try to sneak into LLVM/GCC by way of tinary binary / ascii art?

  • View post

    GCC docs. Looks nice. Both GCC and Clang patches fully completed. Could use some tweaking but tbh it&#39;s done. No point submitting to either since it&#39;s C++29 stuff but yeah, I&#39;m all set.

  • View post

    @mirabilos well guess who is a moron and doesn&#39;t work with &quot;standard&quot; mixed programs :D

  • View post

    @malwareminigun It is the most reasonable. I was trying to build more-debuggable binaries, though, and optimizations were happening that were rearranging conditionals and making me go crazy. I was trying to inject the right build flags and it turns out the stuff on the official website was incorrect (the wiki has a better run of it, so I probably should&#39;ve started there). A lot of wasted time.

  • View post

    GCC allows non-FSF contributions as long as you have signoff. I still have to separate the thing out into 3 patches but, hopefully soon, GCC will also be on the C and C++ (thephd.dev) compilers. Maybe. I sure hope I did it right / it works. https://github.com/compiler-explorer/compiler-explorer/pull/8670

  • View post

    Jumpscare a &quot;Nobody Reviews Compiler Output&quot; chump with One Simple Image.

  • View post

    It&#39;s live. https://godbolt.org/z/71f3xxcYh #include #define bar(x) _Generic(x, \ int v: v, \ struct foo v: v.name \ ) struct foo { char* name; }; int main() { struct foo f = { &quot;test&quot; }; bar(3); bar(f) = &quot;something&quot;; puts(f.name); // prints &quot;something&quot; }

  • View post

    Easier than expected, the docs for making changes are great! Thanks @mattgodbolt@hachyderm.io for making this super painless to do. https://github.com/compiler-explorer/clang-builder/pull/107https://github.com/compiler-explorer/compiler-workflows/pull/62https://github.com/compiler-explorer/infra/pull/2086https://github.com/compiler-explorer/compiler-explorer/pull/8662

  • View post

    (Clang won&#39;t accept until The Last Checkbox on that is hit, so I guess I just sit on my ass and wait a few months now.)

  • View post

    In a &quot;surprise twist&quot; that everyone with a working brain expected, it turns out shuttling variables through globals or statics is far, far more expensive than using the stack and/or registers with normal arguments and an implicit backing object. In a further upset, it turns out that Lambdas embody that pretty strongly, and the 2nd best thing is a strongly typed closure plus a thin Wide Function Pointer type. Crazy how that works. https://thephd.dev/the-cost-of-a-closure-in-c-c2y-foll...

  • View post

    RE: https://pony.social/@thephd/116466930044310525 It seems like the humble raccoon has won. Twitter also picked the Raccoon; Bluesky was more all-over-the-place. A few different discords voted overwhelmingly for the wolf. For what it&#39;s worth, I&#39;m going to do my best to get all sorts of fun animal art into all of the projects I work on. But I guess for this one, it&#39;s going to be the raccoon!!

  • View post

    What in God&#39;s Name is wrong with libstdc++ and GCC that there isn&#39;t a proper compile-time assert / compile-time abort feature??

  • View post

    How do I get the damn g++/gcc I get from make install to be properly debuggable? This shit is atrocious to step through, jumping all over the damn place and optimizing out all the fucking variables.

  • View post

    I have put so, so much work into this, on multiple implementations. I think I&#39;d truly crash out if this doesn&#39;t end up panning out.

  • View post

    @pinskia@hachyderm.io Idiot noob question about the Makefile.am in libstdc++-v3 -- I edited the Makefile.am in the include/ dir, expecting that a &quot;configure&quot; invocation (from the root dir into a build dir or from libstdc++-v3/ into a different build dir) would rebuild the Makefile.in; but when I look at the Makefile.in in the repo after configure runs, my changes aren&#39;t reflected there. Am I just fucking stupid? How do I modify the set of installation headers for libstdc++-v3/inc...

  • View post

    @cult@pony.social Thank yooou. 💚

  • View post

    I guess since I can&#39;t get GCC built on my Mac and since the damn virtual machines take forever and a day (no hyperbole) to reach the login screen, I think I&#39;m just gonna have to say Shrug to make the GCC patch.

  • View post

    @seanmiddleditch@hachyderm.io I&#39;ve noticed that a lot of people sort of forgot the power in &quot;I just have a data file I can carry around that can be safely loaded because its restriction is the point&quot; and just keep doing things like &quot;What if I gave someone access to an unrestricted python / Lua / JavaScript / {etc.} interpreter as part of my program?&quot;.

  • View post

    The gulf between what I hear regular programmers ask me for and what experts talk about we need is kind of a big gulf and I&#39;ve got to wonder what it&#39;d take to bridge that gap.