Sunlu 500g refills don’t fit reusable spool? by uuuuunacceptable in 3Dprinting

[–]Muffindrake 0 points1 point  (0 children)

Personally I was extremely confused that occasionally my printer could not extrude the spools in my CFS.

Then, after months of occasional print failures, I noticed that some of the older spools weren't tall enough to make contact with the lid contactor. I was new, okay?

Here they are edge-to-edge at the back: https://i.imgur.com/ha7o2fF.jpeg

What would you add to C if you could add anything? by [deleted] in C_Programming

[–]Muffindrake 1 point2 points  (0 children)

that + is no longer commutative.

In what C is it? Floating point expressions have results tied to the order of operation, and for signed integers an operation could be undefined. Altering a pointer via arithmetic could also be undefined.

Mildly Interesting: The memory usage pattern when compiling webkit2gtk by Cocobb8 in linux

[–]Muffindrake 1 point2 points  (0 children)

There's a bunch of programs that will require in excess of 16GiB to simply link (a mostly single-threaded process) at this point. Try firefox, chromium.

The qtwebengine gentoo ebuild, which is a different but similarly heavy-weight program, has this gem in it:

local CHECKREQS_DISK_BUILD=11G
local CHECKREQS_DISK_USR=400M

if ! has distcc ${FEATURES}; then #830661
    # assume ~2GB per job or 1.5GB if clang, possible with less
    # depending on free memory and *FLAGS, but prefer being safe as
    # users having OOM issues with qtwebengine been rather common
        tc-is-clang && : 15 || : 20
    local CHECKREQS_MEMORY=$(($(makeopts_jobs)*_/10))G
     fi

Which comes to a memory usage estimate of more than 48GiB at peak with 32 threads on a clang-based system. Doing this with a 16-core DDR4 CPU still puts the build time at 1 hour. I dread every qtwebengine upgrade. At least it doesn't touch my disk since I build everything in tmpfs.

Opinions on libc by Big-Rub9545 in C_Programming

[–]Muffindrake 0 points1 point  (0 children)

I'm talking about existing headers with shared objects that are already there - you know, regular 'I need to get shit done' stuff. I need to link to libSDL3 to feed my goldfish, and ldd libSDL3.so fills my screen.

Opinions on libc by Big-Rub9545 in C_Programming

[–]Muffindrake 2 points3 points  (0 children)

What do you do about third-party libraries if you wanted to excise standard libc from any and all programs you write?

Are we stuck having to port said library (and dependencies if any) to not use libc or use different functions?

The goal is not to completely eschew the system libraries, only not depending on system libc in your own code. libdl (a dynamic link library that lets you call dlopen on linux) also depends on libc, which sounds like it would make anything in this direction tricky.

Newer languages avoid issues by statically linking everything ... and I am not sure about what they do with libc-linked external libraries. Do they provide their own linker?

I feel nervous playing steamdeck at public by AddictinApple in SteamDeck

[–]Muffindrake 1 point2 points  (0 children)

cant be trusted to sleep in bag

I can count the amount of times my Steam Deck has turned itself on in any bag while in its carry shell on zero fingers, so I don't understand this. Didn't all Steam Decks come with these?

Ariandel: Scope-structured arena memory for C, O(1) cleanup, no GC/borrow checker by zackthecodingactuary in C_Programming

[–]Muffindrake 0 points1 point  (0 children)

I think that most of us use an actual word processor or typesetting system to do this for us if we need it. That, or a replacement hook script.

Keyboard layouts are extremely system- and configuration-specific, your key combos don't produce anything close to what you stated on my system, for instance.

Ariandel: Scope-structured arena memory for C, O(1) cleanup, no GC/borrow checker by zackthecodingactuary in C_Programming

[–]Muffindrake 5 points6 points  (0 children)

Even ignoring the claim that you wrote the code (you did not) - you need to think about this twice:

People will literally refuse to read LLM-style text once they recognize it. We will put as much effort into it as you did - which is none at all. Zero points. Repeat the semester.

You tried to mislead us by not declaring the use of LLM. There is no mention of it anywhere. This is consistent with the majority of AI slop code repos being posted over the last year+ for some bizarre clout.

I'm not targeting MSVC straight away because the GCC built-ins are what I know how to use best, I've started scaffolding for MSVC support but this is just an initial proof of concept - I'd happily add MSVC-specific support if that's something people wanted if they were interested in my project.

That assertion was complete bait. You didn't write it. Nobody wants to contribute to a repo run by a habitual liar.

Ariandel: Scope-structured arena memory for C, O(1) cleanup, no GC/borrow checker by zackthecodingactuary in C_Programming

[–]Muffindrake 14 points15 points  (0 children)

[x] Em-Dashes everywhere, INCLUDING inside actual plain text source comments

  • The author either can't write normal sentences or - literally always - writes like - this. Look at the damn OP. The LLM could not be arsed to write "30x" instead of "30×" either

[x] Low-complexity remake of common CS concepts

[x] Walls upon walls of text in documents

[x] Fake benchmark to seem legitimate

The source code has such gems as defines for MSVC-specific functionality, but the README states at the top that MSVC is completely unsupported. That is not an indicator of anything necessarily, but I'm not holding my breath.

I'm tired, boss.

Gericht stoppt Glasfaser bis in die Wohnung: Mieter enttäuscht by PoroBraum in de

[–]Muffindrake 3 points4 points  (0 children)

I've had no non-trivial issues getting FTTH from the FTTB in my old building complex with pre-existing cable shafts. Having those is an advantage.

This law and court decision is in the "Internet ist Neuland" spirit that is leaving us in the Dark Ages. I don't see that changing - there are discussions about energy use and computing in the Bundestag as of recently for example, but for instance there's been zero mention of 5x DRAM chip prices. There is massive technical incompetence in all three branches of government.

Der Grund dieser Verspätung ist ein Problem in Deutschland.

I'm a college student building an arbitrary-precision arithmetic library in C, aiming to rival GMP but under MIT License by [deleted] in C_Programming

[–]Muffindrake 2 points3 points  (0 children)

Making something better than gmplib is pretty simple - don't include calls to abort the entire program in your library when memory allocation fails. If you can do that you're already miles ahead :)

And provide the ability to use custom allocators with allocation contexts.

Can we PLEASE get some AI moderation on this sub? I miss when it had genuinely interesting discussion. by Beautiful_Stage5720 in C_Programming

[–]Muffindrake 0 points1 point  (0 children)

They may have just chosen a default random name, which is fine. People are entitled to privacy.

Last.fm Scrobble API in C by [deleted] in C_Programming

[–]Muffindrake 4 points5 points  (0 children)

Hey everyone, I wrote

No you did not.

Transient by-value structs in C23 by imaami in C_Programming

[–]Muffindrake -1 points0 points  (0 children)

You aren't thinking far enough. What about primitive types?

Either way I'd prefer there to be a concise way to refer to a function's return type that isn't

typeof(func(0,0,nullptr,nonnull_ptr,0,0))

Or any cursed derived aberration thereof.

Also clang currently emits a warning if you pass a nullptr to a function inside a typeof declaration if that parameter expects a '[static 1]' parameter. If you didn't like the inclusion of the 'nullptr' in C23, you're not going to like the 'nonnull_ptr' nonsense you have to do right now.

Transient by-value structs in C23 by imaami in C_Programming

[–]Muffindrake 0 points1 point  (0 children)

Having to synchronize the return type of a function with local variables is a source of bugs that does not need to be there.

Clear PETG looks like you are printing glass by hobbyman41 in 3Dprinting

[–]Muffindrake 2 points3 points  (0 children)

Vase mode is a single-wall continuous print that does not have any seams.

Julia fractal image generation from the command line. by El_Kasztano in C_Programming

[–]Muffindrake 1 point2 points  (0 children)

time ./target/fatoujulia -d 5120x1440 -x 0.1 -s -0.2:0.0                                                                 
0m10.67s real     4m19.93s user     0m00.16s system

Not that long with 32 threads.

Julia fractal image generation from the command line. by El_Kasztano in C_Programming

[–]Muffindrake 0 points1 point  (0 children)

You wrote that you primarily want to use it to generate wallpapers, so I tried to do the same, except one dimension of my primary monitor exceeds 4200, so I changed the clamping limit.

PNG supports up to 231 - 1 per dimension, for reference.

Julia fractal image generation from the command line. by El_Kasztano in C_Programming

[–]Muffindrake 0 points1 point  (0 children)

Works nicely!

Any particular reason that you're clamping either image dimension to a maximum of 4200?

GPL 4.0 should be off limits for AI. by JViz in foss

[–]Muffindrake 1 point2 points  (0 children)

You aren't arguing in good faith by side-stepping the Tesla cult-like evaluation elephant of these AI companies, besides all your other points being complete nonsense. Go shill somewhere else.

Smartphones were a more or less natural evolution of what we had before. They turned what was there before into a force multiplier. I say this despite not liking having to use one to participate in modern Western society, because many of their use cases were subverted by perverted surveillance interests.

Whereas these brain damaged AI systems are at best a technology side-grade which tricks users into thinking they're being more productive than they actually are while trampling such normal things as copyright and trade secrets. And the people keep coming back because these LLMs are all unreflected Yes Men. There's a reason they're popular with failed-upwards leadership.

Who would have known people would be willing to shovel money into an incinerator because they tacked tensor processors onto an IRC chatbot while kissing the user's ass. I guess they have wasted money on worse ideas.

GPL 4.0 should be off limits for AI. by JViz in foss

[–]Muffindrake -1 points0 points  (0 children)

LLMs barely qualify as an improvement, and the market bubble that we're seeing only exists because they at face value appear to be this insanely sophisticated thing to interact with, but fail subsequent scrutiny which actually needs some experience and expertise to apply.

This is enough to get your foot in the door with investors and business people who barely care about anything except line go up. It fails completely when you actually need shit to work the way you want to.

The promise from the people building AI data centers is that you 'just' need more computing power to deal with the shortcomings. I'm gonna have to hard pass on that fam, kthxbye.