[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Subject
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]

[Catalog] [Archive]

File: everydayIsWednesday.jpg (222 KB, 1357x1281)
222 KB
222 KB JPG
/dpt/ - Daily Programming Thread

Welcome to the Daily Programming Thread. What are you working on, /g/?

Previous thread >>>107670460
182 replies and 13 images omitted. Click here to view.
>>
>>107690624
>pic
does she still kode on wednesdays?
>>
>>107701230
i can just sit around do nothing play video games and hero myself when im 40
>>
>>107702398
Guess I'm going to have try to isolate a minimal reproducible example and submit it as a bug report.

>>107702417
C doesn't have modules, as far as I know.
>>
>>107702637
>C doesn't have modules, as far as I know.
brooooo, TU's are modules, no wait, shared objects are modules, no wait, um well ackshually well ok maybe you might be technically correct but fuck you o algo.
>>
>>107702775
Hey, all I was trying to say is I don't think it's modules causing this ICE in my case.

File: 1765400827266756.jpg (1.23 MB, 3072x2713)
1.23 MB
1.23 MB JPG
Pos + VR edition

How to request advice:
>Budget
>Intended use (media, source, environment)
>Frequency response preference and music examples
>Past gear and your thoughts on them

FAQ:
>Where do I buy IEMs?
Amazon, Aliexpress, Linsoul, Hifigo, Shenzhenaudio

>Shopping Guide (IEMs, PMPs, Cables, Ear Tips, etc.):
https://rentry.org/consoomer_guide


Comment too long. Click here to view the full text.
156 replies and 33 images omitted. Click here to view.
>>
>>107702765
nope, all same kind of playing inside my head experience, nothing like full size headphones or speakers
>>
>>107694445
What DAC should I use for audio with the BSB? I used the ugreen and moondrop echo-a, but both have issues working with that port
>>
File: IMG_20251220_230040.jpg (1.91 MB, 4000x3000)
1.91 MB
1.91 MB JPG
>>107702765
At least 3 of them.
>>
>>107702531
just something to laugh at. you choose anger while defending it and it's glorious to see.
>>
>>107702819
>defending it
>brought up something unrelated out of conditioning
lmao take meds

File: file.png (71 KB, 449x296)
71 KB
71 KB PNG
Had Logitech G305 - developed doubleclicking in a year
Switched to CoolerMaster MM712 - scroll wheel started scrolling in random directions in a year, on top of shitty wireless connectivity.
And the funniest thing is that I used $5 store brand mice before and all of them lasted me much longer than that without issues.
Is there a single reliable brand of wireless mice that work and I won't have to pay through the roof to get?
9 replies and 1 image omitted. Click here to view.
>>
>>107696886
yes? the chinese $5 one
>>
>>107696886
Had G305 for 5 years and it still works as good as new only thing that changed is the logo wearing out. You're either a retarded caveman or you got a one in a million faulty model
>>
>>107696955
>>107697048
You can canibalise the spring from another mouse and replace it without any soldering.
I've done it multiple times over the years and keep a bunch of cheap old mice to have a variety of switches.
>>
>>107696886
I have also had equally bad luck with name brand mice, at this point I've just accepted that no one making mice cares.
Right now I'm using a meme mouse, the 8BitDo Retro R8, and it has developed this weird issue where the left click doesn't stay pressed consistently, updating the mouse and dongle drivers did lessen how often this happens, but this should happen at all after just a week of use.
>>
>>107701551
>a retarded caveman
I think you might be right or burger fingers pressing buttons too hard. I've only had to replace the feet on mine in 5 years. Otherwise works fine.

File: 1764381306653416.jpg (82 KB, 546x896)
82 KB
82 KB JPG
Is C still wortlh learning nowadays?

I'm studying CS but my uni's program only teaches you Python, Java and C++ so i figured I'd try to start learning C on my own over the winter break.

I already have a decent grasp on Python and Java and have always heard all the real enlightened big brain neProidians learn C to understand how a computer works beter since it's "close to the metal" unlike Python and Java but even starting out with Learn C the Hard Way, Zed Shaw says that C is a fundamentally flawed language and has many errors that later languages fixed into non-issues.

Should I keep going
5 replies omitted. Click here to view.
>>
>>107702118
It's often overstated how close it is to how the hardware works. And nowadays there are better languages for most tasks.
But it's worth knowing. It's relatively easy to learn how to understand C code (much harder to learn how to write really good C code), and there's a ton of important software written in it that you might want to read the source code of. It's also ingrained in many aspects of how operating systems and other languages work.
Do learn C but don't listen to people who say that it's the only masculine way to program a computer or whatever.

>>107702473
>null pointers are a fundamental attribute to memory systems addressed by a numerical pointer indexed at zero.
It's nice to express nullability in the type system, though this would fit poorly with the rest of C.
>what else u gon do? pascal strings?
The vast majority of languages today use either a pointer + length pair or a start and end pointer. (Notice that pointer + length is how the mem* functions work, C just doesn't make it the default or package it up into a convenient type.)
C inherited null-termination from B and B didn't support structs, that might have something to do with it. IIRC Ritchie didn't consider a length-prefix unreasonable (it's what BCPL did), he said that null-termination just seemed easier.
>and all of your points apply to C++ anyway as well. last I checked, std::string is zero-terminated (C++11 onwards guarantees [std::string] s[s.size()] == '\0')
C++ adds a null byte so that you can pass std::string pointers to functions that expect C strings. This costs it one byte of storage and nothing else because all C++-native operations still make use of the length field or the end pointer or however the STL implements it.
That means C++ can store null bytes inline, it can do bounds checking, it can find the end of the string in O(1), it can do zero-copy no-write substrings, it doesn't risk overflow by skipped terminator, it can do aggressive SIMD, and so on.
>>
>>107702118
That really only applies if you're going to get into direct memory management, multi-threading, etc... the exact specifics of how those things are done.
Definitely good to play around with to get a grasp and experience with the concepts.
You can invoke direct assembler as well, which you should test out to connect with how that works.
>>
>>107702144
>>107702160
How TF can you have a close to metal implementation with that bloat?
Implement it as a layer within the language, noob.
>>
>>107702647
>C++ adds a null byte so that you can pass std::string pointers to functions that expect C strings.
exactly
whatever else it's doing, doesnt change the fact its zero-terminated.
so what are you arguing exactly? if C's string zero-termination is an issue for you, C++ wont save you
and storing two additional pointers, plus the zero-terminator, is not always desireable either. in embedded or kernel space, the overhead of re-scanning for the null-terminator a few times often outweighs the cost of storing two additional pointers.
>>
>>107702647
>C++ can store null bytes inline, it can do bounds checking, it can find the end of the string in O(1), it can do zero-copy no-write substrings, it doesn't risk overflow by skipped terminator, it can do aggressive SIMD, and so on
Can all be done in C, noob.

File: 1766944067190.jpg (92 KB, 800x450)
92 KB
92 KB JPG
The steam frame is gonna cost like 700 dollars maybe more with the RAM issues going isn't it?
The Quest 3 was being sold for 407+100 dollar in Amazon credit a week ago.
83 replies and 6 images omitted. Click here to view.
>>
>>107699241
The quest 3 has a much worse CPU, locked down OS, half the RAM, and isnt comfortable
You an install WinlatorXR on it but it's dogshit compared to the Frame
>>
>>107702510
Because they don't want to sell it as a stand alone platform when ARM hasn't got all the kinks worked out, but we'll see a gradual shift over to ARM, I honestly expect the Deck 2 to be ARM powered now.
>>
>>107702510
Less than 16GB really isn't reasonable for a "computer" at all. I assume it also has no dedicated VRAM either, so it has to share as well. They advertise it as streaming-first because they know PCVR requires so much performance that this thing is nowhere near to being capable enough, but at the same time they want it to be capable of running lighter games by itself (probably even regular games projected on some virtual screen). Going with 8GB would be extremely tight.
>>
>>107702510
>>107702757
The software doesn't seem to be finished yet. It will work well for streaming, but the on device GUI seems to be just like Desktop SteamVR. Which isn't that great if you want to do everything through it.
>>
>>107702807
The Virtual Desktop guy is probably working on a streaming solution for the frame.
It's actually crazy that his software is the only shit that just works and doesn't feel like garbage compared to all the other one (so far).

File: file.png (1.99 MB, 1920x1080)
1.99 MB
1.99 MB PNG
Who is this dogshit piece of shit for? Who asked for it? Why would I want to install it? Even worse, why would I not want to uninstall it on preinstalled computer?
Are people at Microsoft even aware that they just killed themselves with one simple move where people actively downgrade or switch to other OS just to NOT be at Win11? They think they hold monopoly or what?
10 replies and 1 image omitted. Click here to view.
>>
it's that bad
>>
>>107698149
Share holders.
>>
>>107698176
Must be the nuGamers. I've been PC gaming since Win98, modding and breaking games since I first found out how. I did a 360 and moonwalked away from Win11 to Mint the moment support for 10 ended. I tolerated Windows 7 and 10 because of nVidia superiority, but I'm not dealing with this inbuilt AI horseshit so I can have the convenience of out-of-the-box functionality. I already hack together modded games for fun. I'll do the same to get a game to work on Linux.

Fuck M$. Fuck this AI bullshit. I will not be going back.
>>
I'm so fucking genuinely tired about w11 posting.
It's the first OS+AI, of course it's going to have a few kinks, but just the integration of Copilot alone enables the user to achieve a multiplying effect on their output.
It's not just a simple OS anymore, it will turn any piece of hardware in a future scifi machine.
I say :thumbsup: Windows 11
>>
>>107702729
>>107700284
good morning saar

File: 1762462378952.jpg (1.98 MB, 4080x2304)
1.98 MB
1.98 MB JPG
>get powerbank
>USB-C is such a mess of overlapping and conflicting power specs that my phone charges the powerbank
Do we need a new standard?
14 replies and 2 images omitted. Click here to view.
>>
>>107702676
please never have children
>>
>>107702688
>>107702718
>>107702723
least obvious samefolk ever
>>
>>107702425
To get USB PD support, presumably.
>>
>>107701774
you should plug it the other way around dummy.
>>
Iniu P63 E1 is the best model you could buy, and you should buy it.

File: 1527311315216.gif (2.06 MB, 500x281)
2.06 MB
2.06 MB GIF
My biggest hard drive a 12Tb WD JUST FAILED DURING THESe prices
27 replies and 5 images omitted. Click here to view.
>>
>>107699417
CCTV hdd ? is that enough for Data storage ?
>>
>>107699383
what's so special about your anime rips? streaming sites nowadays offers 1080p no watermark soft subs
this is coming from a huge weeb who was autistic about codec packs and player choice back in the day
>>
>>107701368
Nta but streaming sites have bitrate limits, often use broadcast/webrip versions of shows rather than bdrips, you can't use upscaling shaders with them, you don't get to choose which subs to use, and if you lose access for one reason or another you're out of luck. Plus some of us like using our home server for stuff.
>>
>WD
I'm so sorry you feel for the shilling
>>
>>107702327
>Seagate
I'm so sorry you feel for the shilling

File deleted.
>Lisp is a family of programming languages with a long history and a distinctive parenthesized prefix notation. There are many dialects of Lisp, including Common Lisp, Scheme, Clojure and Elisp.

>Emacs is an extensible, customizable, self-documenting free/libre text editor and computing environment, with a Lisp interpreter at its core.

>Emacs Resources
https://gnu.org/s/emacs
https://github.com/emacs-tw/awesome-emacs
https://github.com/systemcrafters/crafted-emacs

>Learning Emacs
C-h t (Interactive Tutorial)
https://emacs-config-generator.fly.dev
https://systemcrafters.net/emacs-from-scratch
http://xahlee.info/emacs
https://emacs.tv

Comment too long. Click here to view the full text.
62 replies and 13 images omitted. Click here to view.
>>
>>107699518
>For example, how do you run multiple instances of the same program then?
Emacs Lisp provides thread and process abstractions.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Threads.html
https://www.gnu.org/software/emacs/manual/html_node/elisp/Processes.html
Surely, a lisp machine could provide similar abstractions for running functions concurrently and asynchronously.
>>
>>107699965
The first part is not strictly true. While I agree I don’t want my web browser to be able to modify arbitrary code on my system, that’s also precisely the issue we had with Unix. But many bugs allowing unintended memory access wouldn’t have been possible on a Lisp machine, so the criticism cuts both ways. It’s too strong a claim to make that they don’t make sense at all.
>>
>>107694836
Nice, looking forward to it anon, I can contribute documentation once it's up, I've been writing docs for Lem too, haven't published any though, got sidetracked by making some org-mode packages..
>>
>>107696888
>I've implemented a lot of new features
I'm looking forward to the next iteration of 4g.el. It sounds like a good one. I'm particularly curious about how you did async thumbnail downloads.
>>
>>107701067
Would definitely appreciate that, I'll draft some docs with AI for it before putting it up online so it doesn't look barren. Ships with help mode/cheatsheets at least so should be relatively easy to discover when in the app itself. What are your main needs from emacs/lem? I'm not planning on adding org mode right now but open to other stuff.

File: IMG_5549.jpg (63 KB, 754x721)
63 KB
63 KB JPG
FOSS programmers work for free. Why?
30 replies and 3 images omitted. Click here to view.
>>
>>107698832
Subhuman jeet mind would never understand that
>>
>>107702287
They wouldn't be able to contribute if it wasn't open source. But since it's FOSS they can use it for free, study its code and further develop it to better suit their needs.
Also I was rather talking about existing FOSS software that I contributed to, that has tons of contributors. But there is some software that I've created personally that I made FOSS and to which I received bunch of bug fixes and features made by the users.
>>
>>107702390
obviously you could have closed source and more tha one contrib. the point was you were moving the goalpost from individual to group to avoid the fact that there was no benefit
>>
>>107702352
so high iq you made llms 4 free and gave indians all your jobs
>>
>>107702809
>obviously you could have closed source and more tha one contrib
It is significantly more difficult to get people to contribute to closed source program than it is to FOSS.

File: makcu_v3.png (215 KB, 499x313)
215 KB
215 KB PNG
>blows the fuck out of you're kernel level anti cheat
this is fucking hilarious. doesn't matter if apex, valorant, rust, cs2 faceit or any other league. any FPS is currently unplayable because kids run color/ML aimbots on their second pc and forward inputs to their gayming pc with this 40$ passthrough device. and all the jeet AC devs are too stupid to write an aimbot detection algo that doesn't result in 6 million false positive bans. (the valorant jeets literally used their RAT malware anticheat to check&ban players that stream a centered screen region which is smaller than 512x512 pixels).
240 replies and 29 images omitted. Click here to view.
>>
>>107688552
Because the game logic for those is basically all serverside. Think of it as editing the html on a website: you can change your bank account value to 1000000$ but it's only in your browser that the changes will show because the bank has the actual value on their servers and just sends it to be displayed in your browser, which is why it'll go back to the real value when you refresh. The reason let's say an aimbot works is because the game server has to send other player's positions and viewangles for your gpu to display them on your screen, and you can use those values to edit your viewangles on the fly directly in ram to point at the calculated position of their head.
>>
>>107688552
>How come online poker and the general online gambling industry does not have rampant cheating issues too? What are they doing different?
Because you get banned for beating the odds.

>>107702516
>Because the game logic for those is basically all serverside.
You're a total retard. All the relevant game logic for a FPS game is also on the server-side but it obviously isn't stopping people from using a machine to issue the right inputs.
>>
>>107702275
Dynamic how? If your rules are a bunch of if-else cases, then an AI can learn how to handle those. If your rules are "whatever the referee feels like at the moment", then a human wouldn't be able to master it either.
>>
>>107702696
>Dynamic how?
"Dynamic" as in "not predefined and impossible to know ahead of time".

> human wouldn't be able to master it either.
This is demonstrably false as humans do play such games reasonably well and some of them play such games brilliantly.
>>
>>107702767
>This is demonstrably false as humans do play such games reasonably well and some of them play such games brilliantly.
Such as? AI also wins overwhelmingly at games like poker now and is capable of reading tells far better than humans could ever hope to be.

File: 1735478245583142.png (478 KB, 1080x845)
478 KB
478 KB PNG
I've submitted 400 job applications this month
25 replies and 3 images omitted. Click here to view.
>>
should i ask ai to help me revive my dead career or is it like running a race from far behind which is close to being over
>>
>>107699731
The US are beyond fucked though. Not finding a job isn't even the worst thing to come
>>
>>107701070
>Trying to sound logical when the issue is unbounded corpogreed which you can't do shit against
Retarded NPC
>>
>>107701070
>What would you do with those if you were a hiring manager?
I am a manager at a small company (about 60 people, about 15 technical roles). We don't even have a hiring manager because we aren't hiring often enough for that to be a full-time position, so the CTO and the managers do the hiring collaboratively.
It is a nightmare to be hiring right now.

On one hand, there are twice the qualified applicants compared to 2020-2023, and willing to work for salaries we can actually afford, because the BigCos are spending their money on GPUs instead of SWEs.
On the other hand, it's a fucking nightmare because there are literally TWENTY TIMES more applicants to everything. So while we get 2x the good applicants, the ratio of incompetent applicants spouting outright lies are the full 20x. It's completely unmanageable. And don't even get me started on the interview dynamics. People think I can't tell when they're feeding the audio to an LLM and reading the output.
I can, it makes the interview a waste of time, and it's exhausting.

Things are breaking down for smaller companies. There are now companies trying to sell our company AI services to manage the AI-generated resume flood we get. My prediction is that hiring will become less open or fair over time, and more about referrals and recommendations than it has been, if only because it helps narrow the flood of applicants down to something you can manage.
I think it sucks for everyone, but I don't know what else we could do.
The noise is drowning out the signal, and there's only so many hours in a day to read resumes, do interviews, and still do our actual jobs.
>>
>>107702709
Yea, so what you're saying is small piece of shit companies are going to be forced into bankruptcy or bought out because they can't compete with big corporations, who give 0 fucks and will just continue using infosys for outsourcing. The main reason small companies still exist is because they managed to occupy tiny market niches that are not interesting for big players because they go for big meaty margin or volume plays.

File: adt85.jpg (3.9 MB, 4394x2760)
3.9 MB
3.9 MB JPG
>UIs to generate anime
ComfyUI:https://github.com/comfyanonymous/ComfyUI
SwarmUI:https://github.com/mcmonkeyprojects/SwarmUI
re/Forge/Classic:https://rentry.org/ldg-lazy-getting-started-guide#reforgeclassic
SD.Next:https://github.com/vladmandic/sdnext
Wan2GP:https://github.com/deepbeepmeep/Wan2GP
InvokeAI:https://www.invoke.com/

>How to Generating Anime Images
https://rentry.org/comfyui_guide_1girl
https://tagexplorer.github.io
https://making-images-great-again-library.vercel.app/
https://neta-lumina-style.tz03.xyz/

>Output cleanup

Comment too long. Click here to view the full text.
239 replies and 91 images omitted. Click here to view.
>>
File: generated_schizo.png (1.81 MB, 1024x1024)
1.81 MB
1.81 MB PNG
>>
File: 1747674320450296.jpg (327 KB, 1280x1856)
327 KB
327 KB JPG
>>
>>107701666
kek this is great
>>
File: generated_231.png (1.1 MB, 1408x768)
1.1 MB
1.1 MB PNG
>just noticed patchouli's extra finger
I let my guard down since I never expected a big model to make a mistake like that
>>
File: 1744959563617299.png (1.95 MB, 768x1280)
1.95 MB
1.95 MB PNG

File: DuK8YSFWkAEq-zr.jpg (242 KB, 2952x2049)
242 KB
242 KB JPG
***Please be civil, notice the friendly ***

Users of all levels are welcome to ask questions about macOS, Apple hardware, software, and ecosystem. Share tips, tricks, and experiences.

>>If you would like to try out macOS or Apple software, you can do one of the following:

Use a Mac at an Apple Store or a friend's place to test drive macOS.
Install macOS on a compatible PC (Hackintosh) — though this requires research and tinkering.
Run macOS in a virtual machine (e.g., VMware, VirtualBox) on a supported host.
Buy a used Mac to experiment with.

>Troubleshooting & Guides:
Apple Official Documentation: https://support.apple.com/manuals
Apple Developer Documentation: https://developer.apple.com/documentation
macOS Installation Guide (Hackintosh): https://dortania.github.io/OpenCore-Install-Guide/

Comment too long. Click here to view the full text.
>>
>>107701679
Fuck off
>>
>>107701679
it just works
>>
If I want to ask questions about Apple I'd go to reddit. Fuck off.
>>
File: 1765892225632818.png (297 KB, 640x640)
297 KB
297 KB PNG
op how do you feel about the fact that modern desktop linux is closer to the look and feel of os x than modern macos? its kinda crazy how bad the last few versions have been

/ltg/ locksreen thread general
28 replies and 14 images omitted. Click here to view.
>>
>>107701457
based, fuck chance and its glownigger shill
>>
File: file.png (3.79 MB, 1080x2640)
3.79 MB
3.79 MB PNG
>>107700410
>Z Flip?
yep
>>
File: 1754388306163937.jpg (461 KB, 1440x3088)
461 KB
461 KB JPG
>>
Good morning saar
>>
>>107702685
Is there Jio fake 5G?


[Advertise on 4chan]

Delete Post: [File Only] Style:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.