Welcome to the Daily Programming Thread. What are you working on, /g/?Previous: >>107711909
>>107742360I have two tiny bash scripts called "daymode" and "nightmode" for changing brightness/bluelight filtering
>>107738379I am updating this to be more like an infographic>>107738529Any size optimization is good whether your reducing memory or hard disk footprint.
i am entering prompts into stable diffusion r8
>>107744220What does your slop have to do with this thread?
can someone explain to me what an API actually is? i get the general jist but when people referemce windows API's and API's on the web what do they actually mean?https://web.archive.org/web/20170713124108/https://bytepointer.com/resources/pietrek_in_depth_look_into_pe_format_pt1.htmim reading the above which is a good read but things like " From an API standpoint, the primary mechanism provided by Microsoft for reading and modifying PE files is IMAGEHLP.DLL." i dont understand what API means
NEW YEAR 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/107658781/#107658781
>>107744998this isn't the AI thread
>adding a custom tool build step with a .targets file is easy>adding the ui for it is impossible unless i put the xml directly into the visual studio buildconfiguration folderfuck off. i just dont want to have to keep modifying the targets file if i want change a flag
>>107744993>I don't quite understand what you mean with deserializelike the usual way save files, etc. are handled is>create a class with all the relevant data you need for a map, save file, whatever, like MapData, then you establish that MapData class as serializable>in C# that amounts to putting [System.Serializable] on top of the class name but in java it's probably different>then you use some fuckery to convert it into a pure binary string (serializing it), and make a file out of it and put it in a directorythen later>get file(s) in directory>try to read all the string and try to deserialize it into MapData again>read data out of the MapData class and use it in game
>>107744993>>107745060to make it crystal clear, serialization is a specific method you call in C#. idk how shit is done in j*va
>>107745112Jackson, protobuf, etc.
Have you ever considered the possibility that some day normal consumer won't be able to afford a computer anymore?With GPU and RAM price increases, this nightmare scenario seems likely.Wireless Internet connections might also get so full of traffic that one day fast Internet will be a luxury as well.1. Give people cheap tech so they get dependent on it.2. When they're addicted, start ramping up the price + scarcity3. WinMe? I'm already learning ways to survive without technology. In a few years you might have to live without tech.
>>107739312computers were proportionally more expensive than now up until the 2000's
>>107739312It's not that you own nothingYou will _have_ nothing
>>107741396But how? AI has taken all of our jobs already!
You basically only have a decade left at most before personal computing is erased. Remote attestation for everything, all ISPs will be required to check it, you are not sending a single byte without permission.
>>107745077please put nsfw warning before such erection inducing posts thank you for your understanding
No one cares? For decades this smooth presentation was the standard for live and taped television.
If you want to see some examples of what 60 fields per second look like there is a channel on youtube called Reely Interesting. This person preserves the motion clarity of the original tapes by uploading in 4k 60 frames per second. https://youtu.be/gDMtKrPYVjs
Is this the same homosexuality guy who thinks movies should be shot in 60FPS?
>>107744953I have no idea who you are talking about, and this is a completely separate topic. This is addressing hundreds of thousands of hours of television that have already been made in 60 fields per second, but are not being archived in a way to preserve that.
>>107743592proper deinterlacer uses previous field as if keyframe reference with motion prediction?
The fact I've never heard of "fields per second" and I have little idea what OP is talking about leads me to believe that he may be onto something and I have been the victim of a con.
“‘Learn to code’? What about ‘Learn to weld’?” EditionPrevious: >>107651951
I'm about to be unemployed in a few weeksAnyone want to work on a project with me? I have an idea for a game and also some AI stuff
>>107740587>he's never seen a "day in the life" tik tok
Hello Applicant,This is a fucking E-Mail... to some dumb FUCK on who applied named "Anon". Now, I'm tired of this fat FUCK popping up in all of my fucking Applicant Tracking Systms when I'm looking for a FUCKING server janny! I don't give a FUCK about the aftermath of ANY of you Powershell fans that feel sorry for this greasy fuck!You stupid fucking disgusting panty-line sniffing BLAWB, beer-drinking, CISCO-bathing. ball-gargling, pen-thieving, Steve Ballmer face having, Dr. Robotnik looking, Ramen eating, Welfare gorging, T-Rex arm having, Non-Dubai Chocolate eating, cook with a Coleman grill because the power been cut off, linux loader, nogame indie ""dev"", poorfag, pretending to have a fucking thyroid problem, Welfare Whale slash Free Willy, PArt bus, Yokohama Crackhead, busrider, Kirby, salad dodger, chair crusher, round meal, go to Safeway and use every fucking coupon, no driver's license, HAPPY because Enron is back in business motherfucker!I know there's gonna be a lot of people out there calling me a bully, well guess what? I'm not! I just don't feel sorry for lazy fucking people, especially fat fucks who sit there all day, gorge and eat, and make no money because they've studied absolutely nothing! While a bunch of sorry fucks like yourself play into it!You don't like what the fuck I'm saying?Then FUCK YOU!
>>107739335With 100+ applicants you'll do anything you can to whittle down the pool. If your top 2 candidates are tied with the exception that one of them got the memory management question right and the other didn't, it's the only decision that makes sense
>>107744437thats ragebait, the negativity is in the comments
you already know that for years now, big tech has been paying shills to shit-talk Linux and other FOSS projectsand with all the AI progress, most of the shilling is not done manually any more, it is mostly automated botsso why not fight fire with fire?why don't we set up something that scans internet for relevant discussions and automatically makes posts that promote Linux and digital freedom?
>>107743652>he said on 4chinslollmaoall right faggot, I'll bitewhat better ways are there countering the systemic globohomo FAGMAN propaganda?
>>107744336getting them luigi'd is the only real way I know
>>107741400Linux is not free softwareHasnt been since 1996
>>107744336>what better ways are there countering the systemic globohomo FAGMAN propaganda?
Not true, I don't even think FOSS is on their radar. Outside of servers and infrastructure no one in the professional world even thinks about FOSS. In fact based on Youtube comments I seen those sever sysadmin people refer to the Linux software community as hobbyist. so please don't spread disinfo
>here’s your trillion dollar LLM bro
>>107741577based
>>107741538lmao llms are literally r*ddit-retarded and fundamentally brokenbut I'm sure a few more trillion dollars will fix this amirite
>>107741529>>107741560>>107741590I'm amazed how faggy the replies are compared to even lighter local models.
>>107743948>In fact it is ASI for most questionsOnly if you only ever ask midwit-tier questions.
>>107744453Gotta use all that ram somehow
Stop calling AI "Slop".https://www.windowscentral.com/microsoft/microsoft-ceo-satya-nadella-really-wants-you-to-stop-calling-ai-slop-in-2026
>>107743327It's worth it for the AGI
>>107744521Apps for business is pretty much the same as ever, what do you mean? Business standard too.
If 2025 was anything to go by, the slop is only going to increase in 2026.
>>107743219sloptacle and slopstance
>>107743232kek
Discussion of Free and Open Source Diffusion ModelsMigu EditionPrev: >>107736203https://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.
I haven't been here in a couple months, does anyone have the link to download z image base?
the forbidden blunt ciggy combo
>>107744942FUCK, damn chinks, getting me hooked on that good shit and then taking it away.
>>107744895Slow gens will be the least of his worries, his new hell will consists of>the weirdest most unique maddening bugs.>shitty drivers that cause memory leaks.>tons of tweaks and hacks just to the get bare minimum runningI fell for it once and will never again.And don't get me wrong, AMD does make the best hardware out there but they still suck at making software for it which wastes its potential and makes it unusable.
>>107745048I mean, it's better now that we moved from ZLUDA, and getting comfy to run properly is just a couple of env variables to set, but yeah pretty grim. also it's not 10 to 20 times slower, it's 10 to 60 times slower lmao
This + Termux will be absolute kino.It just needs a tab button
>>107743462>ads keys>runs slop
>>107743462>front camerano thanks
>>107744093>my screenplays
>>107744124>Xitter spacing
>>107743939Dat hinge was awesome
>>107655260Don't buy anything OTHER THAN IBM/Lenovo ThinkPad T, X, and W/P Series if you want the Real Business Experience™>Other business laptops are welcome in /tpg/ (Dell Latitude/Precision, HP EliteBook/ZBook)Why ThinkPad?>Used machines are plentiful and cheap>Excellent keyboards, tactile feel and quiet + the TrackPoint>Great durability: magnesium roll cage for structural integrity, with high quality plastic body panels>Utilitarian design: e.g. indicator LEDs, 7 row keyboard layout on older models>Docking stations that easily turns your laptop into a desktop>Easy to repair (most models), upgrade & maintain thanks to readily available service manuals for every model, spare parts easy & cheap to obtain>Excellent Linux & *BSD supportThinkWiki - General info about ThinkPads/specshttps://www.thinkwiki.org/wiki/ThinkWikiComment too long. Click here to view the full text.
>>107742252>https://en.wikipedia.org/wiki/ThinkPad_X_seriesThey don't make 12" laptop anymore
>>107740850>webmjust btw, periods didn't hurt some 60 to 50 years ago, there's this chemical, atrazine it was I think, that changes the embryo and causes an abnormality when exposed to it in-vivo which makes periods hurt.
>>107743062This generation are just faggots.My mom never complained from her periods, my dad did.Blaming your bitchy behavior on your hormones and expecting your partner to deal with you like a child is borderline personality disorder.
>>107732468any insight? Is there anything approximate to this to look forward to in 2026 or being announced at CES?I don't have a degree in ThinkPad models to know what the most top-of-the-line thinkpad is.
I have 5 Thinkpad t420, and ALL of them are missing the SSD rubber rail things. I was looking at replacements and for 4 of them I'd be paying like 50 bucks. Reading this thread I'm starting to think there's no use in investing in these at all. Anyone wanna chip in and give me their opinions on this?
>Read the sticky: >>105076684>GNU/Linux questions >>>/g/fglt>Windows questions >>>/g/fwt>PC building? >>>/g/pcbg>Programming questions >>>/g/dpt>Obsolete laptops >>/g/tpg>Cheap electronics >>>/g/csg>Server questions >>>/g/hsg>Buying headphones >>>/g/hpg>How to find/activate any version of Windows?https://rentry.org/installwindowsPrevious: >>107682448
>>107743727>But how do you handle music?The same way you handle graphics and input and filesystem operations and literally anything else in programming: you find an API you want to use that works on the platforms you want to run, and use it. For every individual question like this you have to search it and do some research. In this day and age you can also ask LLMs for advice (don't use them to write code though, if it's for a learning project).If you really want a hint, look up SDL. It's one of many options for doing stuff but it's a relatively widely used one. What it does is abstract away some APIs for stuff like graphics, UI, platform-specific input management, sound etc. You can look up its APIs and use it.SDL itself just uses lower level APIs from various platforms. For graphics that would be OpenGL, DirectX, Vulcan. For sound I don't know off the top of my head but there's similar shit. And so on and so forth. You can use those directly. Or you can use another toolkit, or a variety of toolkits.
is it possible to learn electronics digitally, without hardware? are there any arduino emulators or something like that?
>>107744910>is it possible to learn electronics digitally, without hardware? are there any arduino emulators or something like that?I'm going to be a dick and say no.A large proportion on the code I've written for various controllers is there to deal with the vicissitudes of real world inputs.
>>107744806sweet that worked. appreciate itinteresting way to compress...
>>107744763>make the mouse scroll only the active windowFocus stealing prevention, I think you need to dial it up.>>107742428>excellent value for moneyThat's awful value for money.I've modded my HD429 and they sound slightly better but still shit and they fall off easily.
>puts bread on the table>makes inexperienced /g/ trannies seethe>makes C shart shills seetheYeah I'm thinking it's the best language
>>107743819ever heard of Spring sweetie
>>107739395which patterns lead to spaghetti code?
>>107744582because it is popular everywhere, before the javascript plague all low iq people (mainly jeets) were trained on java so big corpos had a pool of low cost low skill workers ready to go.>>107743818>>android status: redeeming in progress thanks to kotlin90% of android apps are webshit and 90% of android games are unity or some other engine, despite google's best efforts nobody really uses kotlin
>>107738273it's comfy. everything just werks. from the language itself to the vast and mature ecosystem.only thing it's lacking is a sizable gamedev community.
why dont other languages have something like the JVM? is this unique to java/java variants
What's the equivalent of a win32 GUI on Linux?
>>107743191i have not head of anyone who writes postscript
>>107744841>20 years ago30 years ago in many cases.Many software made for Windows 95 still run fine in Windows 11 25H2.Meanwhile I had problems trying to make 8 year old software run on Linux>binaries don't work, too outdated>packages don't install, too outdated>try to build from source>fall into dependency hell>give up
>>107743191win32(wine)
>>107744706To be fair, that password was for network logon. It was not intended to keep the local machine secure.
>>107744706you could simply ctrl+alt+del, enter Administrator in the login prompt and a blank password and press enter on Windows XP.
LeCun fucking hates Zuck's gut huh?
>>107743505They should stop masturbating about stateless mathematical models (because both symbolic AI and neural networks are about logic and math not computing or programming) and start focusing on stateful programs that are actually agentic (in the original sense of the word not in the llm corrupted marketing sense) by having internal state, internal goals and a real model of the world (LeCun is right about this part), all of this not through mathematical models but through programming. If our current languages and databases are not enough then we should make progress there, for example by researching graph databases and new languages that make expressing complex and dynamic rules about the real world possible.But corpos only want to sell their datacenter services, to them its a feature how inefficient LLMs are, and most researchers are not programmers they are stuck in their bubble of academia writing their papers in their ivory towers.
>>107743634This guy's proposed alternative to neural nets is better programming languages and databases.Absolutely fucking kek.
>>107743670The connectionist idea that the brain is an input/output stateless machine is ridiculous and an insult to life.Yes, the road to intelligence goes through stateful programming not through stateless mathematical models.And yes, computer science has barely advanced at all in the last 40 years, but that's because all the resources are used on bullshit corporate or academic shit that is not even meant to advance it.
>>107743698Apparently, actually most advanced (human like AI) Neurosama was coded in python and it didn't learn from LLMs, but from twitch chats only. Basically mogging all "AIs" while being made from scratch. It's not the same kind of "AI" but looks more like intelligence than the other ones.
>>107743634Neuromorphic models work a lot better. They use local state and local mutation only, which lets them do tricks like learning things in real time. So far, they've mostly been used to study how human senses work and integrate with the brain, rather than shooting for intelligence (because understanding sensing is more immediately useful).They're an absolute bitch to implement in normal hardware though, due to the comms bandwidth required, and GPUs are no use at all for them (it's just a different architectural model).