wayland? more like GAYland hahahahaha
/dpt/ - Daily Programming ThreadWelcome to the Daily Programming Thread. What are you working on, /g/?Previous thread: >>107575071
>>107646158>UB exists because C is anemic.holy autismo retarddereferencing a number is UB in C, ok?because a valid pointer is supposed to be emitted by malloc for ex.but when you write an os, youre implementing malloc and youre working with numbers as pointers.which is UB. but the whole OS is built on thatUB is deterministic, and it only means "hasnt been defined in the standard"dont talk about c, anon, you know shit from fuckyour autism makes it so that any amount of fuzziness confuses youand since youre a retard, you start hating what you dont understand instead of upgrading your knowledge.
>>107646158>>107646573also>hurr durr use ATSdid you only look up what that is?its an experimental/research languageits not something youre supposed to be using outside of academic pursuitsyou heard a fancy name and you repeat it around like a namedrop or somethingwithout even paying attention to the actual thing.thats autism, everyonea serious mental handicap.
grep -R -I --exclude-dir=.git '^$' . | wc -l0Vertical space is bloat. I know how to read code and I want to see all of it. Books don't have empty lines, so why should code have them?
grep -R -I --exclude-dir=.git '^$' . | wc -l0
>>107646868>Books don't have empty linesYes they do, books have paragraphs.Empty lines are useful in code for the same reason.
>>107646868>Books don't have empty linesthey sure doand when they don't they're tiring to read because you have to keep track of where you are in the half-page block of textbut they're also better formatted, as long as you have that
>Use KDE gayland, everything is slow, low fps, input lag, weird frame pacing that doesnt feel smooth even with a smooth frametime graph in games>Use X11 with Xmonad Tiling window manager, It just werks, everything werks, no latency or input lag>High FPS, gaming just werks and I get 20fps+ more than gayland for some reason and its buttery smooth>Fast with zero bloat, Configure everything to my likingAt this point, I wont even use any desktop environment on linux if it isn't X11. Even XFCE is dead to me because it has wayland support. I will never support anything wayland based on linux.I'm X11 pilled.
>>107643396>buggy multi monitor setup >no VRR Switching to Wayland fixed all these issues for me, same for several people. Unless xlibre fixes this shit I won't switch back.
>>107645902Xmonad supports multimonitor flawlessly even up to 6+I dont need multi monitor VRR besides my front gaming monitor also HDR is meme tech
>>107644006sure, just enter a fullscreen application and disable vsync
>>107645998>I dont need multi monitor VRR>also HDR is meme techWhen you say this you sound completely raped. I guarantee you're some destitute 1366x768 zigger on a TN panel lmao
>>107645998>I dont need multi monitor VRRyou don't even understand what the limitation is anon
mornin' retards and alikeprev >>107602756
>>107645783>>107643315at least for me, nothing "broke" so far due to my resolution or aspect ratioSince I prefer single monitors aswell, I love the added real estate horizontally
>>107646476not her but I recommend community as a more persistent form of ego death
I decided I had a functional purpose for a PAPE (specific inspiration/meditation material for my writing) so figured out out how to make one set by feh persist across reboots.1/∞
>>107642301
most dedicated community in FOSS?
>>107639976this and fpga devs too
>>107640314yeah because it got like 7 users, and all of them are contributors
>>107639976this guy fuckin GETS IT
>>107639976Emulating CPU bugs isn't the difficult part, they're well documented, it's more so making sure things are accurate to the physical components of the console. Software is deterministic and predictable but real life hardware can be more unstable. As an interesting example, Super Bonk on the SNES has a gameplay demo where there's a chance that the inputs of the demo will become desynced and that it'll mess up because of variance in the clock speed of the graphics chip and the CPU. However it never happens on emulator, because emulators don't bother to emulate the physical clock component. Therefore, a more stable result is less accurate than actual hardware... now you see, true accuracy is hard to achieve. Of course, you could argue that the more stable result is preferable to the behavior of the actual hardware, but then you have other games like the SNES Speedy Gonzalez game where a level cannot be cleared *unless* a specific hardware edge case is emulated.
>>107639976>>107639976Another emulator development tidbit that may interest you are illegal opcodes. This is mostly a 6502 specific thing AFAIK, but I think the 8086 may have some as well. You might know about their existence, but why they work is pretty interesting too. The 6502 (The CPU used in the NES) had a flawed instruction decoder. Instructions were decoded by looking up entries in a table of microcode depending on which bits of the opcode are on and off. Nothing wrong with that, but there's also nothing stopping you from using opcodes that mix properties of completely unrelated instructions. Some can be useful but most just jam the CPU. Even some official NES games used unofficial opcodes, for instance, Aladdin uses a SLO instruction which shifts the contents of a byte of memory left and then compares it against the accumulator register. Anyways, apparently some of these instructions are unstable and don't work the same way all of the time due to analog variance. A truly accurate NES emulator would have to emulate all the undocumented opcodes and then account for the hardware being used. Accuracy is a total nightmare.
So now that I have a "Ryzen AI™" laptop, what can I actually use it for? All of the marketing was about adobe slop, but I really don't care about generative ai.
>>107646261>lust provoking image
https://www.thurrott.com/dev/330980/microsoft-to-replace-all-c-c-code-with-rust-by-2030>Our North Star is ‘1 engineer, 1 month, 1 million lines of code.’ To accomplish this previously unimaginable task, we’ve built a powerful code processing infrastructure. Our algorithmic infrastructure creates a scalable graph over source code at scale. Our AI processing infrastructure then enables us to apply AI agents, guided by algorithms, to make code modifications at scale. The core of this infrastructure is already operating at scale on problems such as code understanding.”LOL
>>107645901When this doesn't work, you can bet they'll simply try to rewrite the kernel in react.
>>107640777he didnt even try
>>107640674Is 2030 going to be the year of linux desktop?
>>107643431They'll have to use so many unsafe blocks to try and keep things together that it will be riddled with CVE's. That is if the OS even runs at that point.
>>1076453141000 million kloks
>>107646546SuSE Linux 7.2It's showng the X server config tool called sax2
>>1076371082 more years and the best RPG of all time comes out.
>>107637356Bill before he choose the dark side.Now he's just old pdf file and genocidal maniac. Sad.
>>107646897>made billions by buying DOS for cheap and selling its license to IBM>not evil
Would this solve to hiring crisis?
>>107643058>"Please hire anon he really likes gay furry porn."
>>107644036>women stay at home and raise family>>107644614>remigrationThis is is racist and bigoted and orange though
>>107642789Microsoft jeet outed himself again
>>107645935>LLM uses its massive data sets to find novel correlations with job productivity>finds that number of favorites on furaffinity has a correlation of 0.65 with economic productivity
>>107643058Carmack really fell off when he jumped into the AI money mosh pit
Devil's Technology EditionDiscussion of Free and Open Source Text-to-Image/Video ModelsPrev: >>107634126https://rentry.org/ldg-lazy-getting-started-guide>UIComfyUI: https://github.com/comfyanonymous/ComfyUISwarmUI: https://github.com/mcmonkeyprojects/SwarmUIre/Forge/Classic/Neo: https://rentry.org/ldg-lazy-getting-started-guide#reforgeclassicneoSD.Next: https://github.com/vladmandic/sdnextWan2GP: https://github.com/deepbeepmeep/Wan2GPComment too long. Click here to view the full text.
>>107643343The new captcha is primarily the result of one dude who mass ban evaded with a tool he made so much that grape had to add in a captcha that couldn't be auto AI solved. And yes, I know he released the tool on discord or some shit and a lot of mass spammers started to use it. Point is, don't underestimate the autistic rage of some faggots here. I said a few threads back, but /owg/ on /vg/ has it's own dedicated janny AND posting restrictions because of one third world silver shitter spic with a BBC obsession. To the point where mods mass banned a bunch of image MD5s to try and avoid his porn spergouts, only for him to mass add noise to all of his spam images and go right back to spamming. Bans and deletes don't stop these mentally ill fucks. They ban evade as easily as they breathe. I've just never seen anyone be so bad at trying to thread hijack before.
>>107646180AMD works fine on linux and comfyui, and are actually very good value for the VRAM and the superior Linux drivers. I use a 7900 XTX and can run all of the models people use ITT, with speeds comparable to a 3090. There are a few areas where AMD requires a bit more tweaking/troubleshooting, but it's been getting a lot easier, and AMD is actively fixing and optimizing it.>inb4 screeching nvidia+windows shillseveryone knows nvidia is the standard for AI, but why do you fags want to convince people they have no choice/options?
>>107640910i don't like the algorithm that the collage maker uses it gives too much real estate to landscape images
>>107646805I've been considering getting one as my next GPU since I'm using Linux now and the PC building thread recommends it. It's much cheaper than an NVIDIA card too. I forgot to mention in my other post I was looking at the GPU benchmarks specifically in the OP post where the AMD GPUs rank really low there, I guess they weren't fair to AMD with setting it up correctly.
>>107646805>>107646905>but why do you fags want to convince people they have no choice/optionsif you want the headache of dealing with an amd card then go ahead but if you wanted a card specifically for AI it doesn't make sense to choose the inferior option
Recounting the threads edition/gedg/ Wiki: https://igwiki.lyci.de/wiki//gedg/_-_Game_and_Engine_Dev_GeneralIRC: irc.rizon.net #/g/gedgProgress Day: https://rentry.org/gedg-jams/gedg/ Compendium: https://rentry.org/gedg/agdg/: >>>/vg/agdgGraphics Debugger: https://renderdoc.org/Requesting Help-Problem Description: Clearly explain your issue, providing context and relevant background information.-Relevant Code or Content: If applicable, include relevant code, configuration, or content related to your question. Use code tags.Previous: https://desuarchive.org/g/thread/107546157/#107546157
>>107646753Is there anywhere else to go?
>>107646741>goes off on a rant about IQ, alpha/beta males, basedboys, and gun cultureI can't even blame you for being mentally ill, I'd be as well if I had to work in C++ outside of work.
>>107646842not him but whats wrong with C++? I use it for my hobbies and I much prefer it to the alternatives
>>107645712atomics are fun. the only slightly painful thing is the memory order semantics. luckily on x64 they dont matter, though that means im not 100% sure im using the correct ones
>>107646842>picking up a 3-5kg pipe and pointing it away from your feet, or better, away from yourself entirely, is "culture" and supposedly "extremely difficult and an intellectual task that majority of people cannot do"Please explain to me, which part of this isn't about low IQ, beta males, basedboys and you being brown?>>107646871His skin color is what's wrong. Every. Single. Time.
What makes minecraft so flexible in how you can mod the game? The reason it is still holding strong as the highest selling game after 15 years is because of the freedom it offers with modding. You can make an infinite number of new minigames in multiplayer servers. You can make an endless variations of new parkour maps or modpacks that will never feel repetitive. No game comes close in how much you can change the vanilla version to make new stuff. What allows minecraft to have this ability?
Simplicity, amazing community and lack of censorship.
>The reason it is still holding strong as the highest selling game after 15 years is because of the freedom it offers with moddingIs it? Actual gameplay mods are almost completely dead. Most never made it out of 1.7.10 and the rest never made it out of 1.12.2. People only use mods these days to load cancer shaders and somewhat reduce the awful post-1.13 lag. And most modders these days are less aspiring game dev and more fosstard. It's a completely different environment bottom to top. Don't get me started on the speedrunning. Ruins all games but hit minecraft especially hard.
>made full offline backups of all my video games and software>canceled Spotify and went back to downloading music>forgot I already have ~6000 songs that are completely unsorted, some have low bitrates, ripped from Youtube, downloaded from Kazaa, screen recorded, etc. and need to be renamed, metadata'd, and in some cases redownloaded in higher qualityFuck. How was your detransition back to the old ways?
>>107643089would you be kind to elaborate, my dear anon? :3
>>10764558312*spotify sub*5 years = $500+ which could have been spent on an HDD storing those. the reason people sub is to support the music machine, also it comes with a huge library etc.
>>107640773>downloading music from youtubeWhat is wrong with you retards? Use Soulseek.
>>107640773Lidarr or MusicBrainz Picard
>>107643300>Cum
Sam is based for this.Post yours.I love ChatGPT.I hope it wins the AI war.
>oh, heh. t-thanks
>>107646836>troonfoxremember to dilate
>>107646852based ladybird enjoyer
>>107640770I gave mine a look yesterday and I was liek "ooh that's lovely, thank you OpenAI uWu"
>>107646675>get tkl keyboard now you need tkl keyboard everyone has tkl keyboard why don't you have tkl keyboard reeeee>just use this obscure alt keycode oh you can't type that with your cool tkl keyboard that's too bad
>mpv constantly gets shilled>"aight I'll try it">see picrelYeah nah, I'll pass.
>>107634923Brb changing all my profile pics to pictures of rainbow dash to piss off spastics like you.
>>107640478>>107640618Haven't seen so many gigachads in one pic in a long time.
>>107646643Wow how based "woah mods=gods" posts to jerk off their ego instead of actually ban people causing problems, do nothing to combat obvious shitposting spam and worse of all literal child porn dumb agp tranny retard
>>107646684>brb spraying diarrhea shit all over myself in public to piss you off transphobic neurotypicalsOkay lol? Tranimetroons lack any sort of self awareness it seems.
>>107646888You have your cause and effect backwards. People with gender dysphoria like anime because they have gender dysphoria, they don't have gender dysphoria because of anime. How would that even make any sense, anime girls don't look like real people. You wouldn't say anime causes autism but autists like anime for several reasons, one big one being it's very easy to read the emotions of girls with animal ears on top of their head compared to a normal person. I think you can figure out what trannies like about it.