/dpt/ - Daily Programming Thread - /g/ (#105647865) [Archived: 814 hours ago]

Anonymous
6/20/2025, 6:22:16 AM No.105647865
1747344800706792
1747344800706792
md5: 56afe317c917f183fd0ae83d8c6d7b7e๐Ÿ”
Old thread: >>105621602

What are you working on, /g/?
Replies: >>105649628 >>105652992 >>105659075 >>105663195 >>105665052 >>105665999
Anonymous
6/20/2025, 6:25:28 AM No.105647891
final_verdict_2
final_verdict_2
md5: 299b028b008ae07bb2e9a5b871d3200e๐Ÿ”
Threadly reminder.
Replies: >>105648329 >>105648664 >>105651511 >>105653512
Anonymous
6/20/2025, 6:38:45 AM No.105647984
have:
>TCP server
>TCP client with GUI button
>button triggers even to send TCP message to server
>client socket is opened in blocking mode so that it can block on recv to get the reply immediately

problem:
>if I kill and then reopen the server, the client does not reconnect as it's waiting for the button even before sending, and it doesn't receive until it sends
>if I switch to non-blocking mode I can detect the disconnect but I have to run the loop really fast which is wasteful or not fast enough and I don't get the reply as quickly as in blocking mode

what do? I guess I could create another thread for reads and use blocking mode and let that thread detect the disconnect but I heard more thread = bad for networking, try to keep it to 1
Replies: >>105648002
Anonymous
6/20/2025, 6:42:45 AM No.105648002
>>105647984
Look up I/O multiplexing, or basically functions like select, poll, epoll, etc.
Anonymous
6/20/2025, 7:40:20 AM No.105648329
>>105647891
post the manifesto in every thread too if your not a cowrad
Anonymous
6/20/2025, 7:51:56 AM No.105648425
I'm too much of a coward to be a cowrad.
Anonymous
6/20/2025, 7:54:45 AM No.105648445
>0xc0000005
Anonymous
6/20/2025, 8:29:23 AM No.105648664
>>105647891
>registry dumber doesn't know how to mmap in C++
Not that you can ever mmap since you use OS for toddlers that holds your hand at every step, doesn't even let you overallocate, so you call VirtualAlloc constantly, while I just malloc 1ULL << 46 and it works.
Anonymous
6/20/2025, 8:37:41 AM No.105648714
death_penalty
death_penalty
md5: 647e955526ad5564c501f98a2afd1e46๐Ÿ”
>I just malloc
Sure thing, retard.
>use mmap in C++
Now teach the STL how to use your mmaped buffer.

We really need voted doxxing.
Replies: >>105648882 >>105651588 >>105651653
Anonymous
6/20/2025, 8:59:16 AM No.105648838
1748178650673781
1748178650673781
md5: 17ac030515d0bed1407f418a20c6b340๐Ÿ”
wtf I was always told that the entire executable gets loaded into memory as soon as you run it
Replies: >>105648883 >>105648894 >>105650460 >>105652983
Anonymous
6/20/2025, 9:06:03 AM No.105648882
>>105648714
It would be easier to teach STL how to do it than to teach you how to use 4chan properly.
Anonymous
6/20/2025, 9:06:07 AM No.105648883
>>105648838
That seems like it'd be horrifically slow on older HDD-based PCs.
Anonymous
6/20/2025, 9:07:23 AM No.105648894
>>105648838
For most programs, whole initial page for data, and whole initial page for code, is the entire program.
Anonymous
6/20/2025, 9:10:20 AM No.105648914
screenshot-20-06-2025-17:04:08
screenshot-20-06-2025-17:04:08
md5: 6789cd5c4847c1a51119a016abffec79๐Ÿ”
Porting all my shit back to C for like the 100th time because Python has like this sickness that I can't describe. It's like an extremely attractive woman with genital herpes.
Replies: >>105649501 >>105666766
Anonymous
6/20/2025, 9:10:23 AM No.105648916
not_even_smarter_than_an_llm
not_even_smarter_than_an_llm
md5: ba9a1b1af94aa7bbb15c1d7f557bbf8d๐Ÿ”
I can't wait for your +20 attempts at an implementation that wouldn't work even if I gave you hints.
Replies: >>105649439 >>105651264 >>105653707
Anonymous
6/20/2025, 10:37:32 AM No.105649439
>>105648916
How much were you paid to fixate on this implementation? Or is it so useless in the real world that you have yet to find someone who'd care?
Anonymous
6/20/2025, 10:48:43 AM No.105649501
>>105648914
>GUIslop
Python would've been fine.
Replies: >>105649587
Anonymous
6/20/2025, 10:55:45 AM No.105649545
Over one million US dollars.
Anonymous
6/20/2025, 11:02:40 AM No.105649587
>>105649501
slop + slop = double slop and before you know it you're writing a chat client in a web browser that takes 3000ms to open and uses a gigabyte of memory.
Replies: >>105649597
Anonymous
6/20/2025, 11:05:11 AM No.105649597
>>105649587
Alternative is chat client in C that still doesn't exist.
Replies: >>105649671
Anonymous
6/20/2025, 11:10:49 AM No.105649628
ff1750409865796_thumb.jpg
ff1750409865796_thumb.jpg
md5: ce9a92410781ba082395f48ec869e6c5๐Ÿ”
>>105647865 (OP)
ewmh/xdg interop code for me window manager
got sidetracked testing it out and turned desktop into quick note saving surface
Replies: >>105649970 >>105654539 >>105657430
Anonymous
6/20/2025, 11:16:58 AM No.105649671
>>105649597
Plenty of clients written in c++ that worked. The windows 11 start menu is now a react native app, when does the madness end?
Replies: >>105649693
Anonymous
6/20/2025, 11:20:08 AM No.105649693
>>105649671
>C++
slippery cope
Anonymous
6/20/2025, 12:05:26 PM No.105649970
>>105649628
Neat
Anonymous
6/20/2025, 1:31:24 PM No.105650460
>>105648838
Just load the entry page to execute and either load progressively when the program gets switched out of context or load what's needed when you get a GP(0) fault bro and keep updating the map.
Anonymous
6/20/2025, 3:20:31 PM No.105651264
>>105648916
Clock's a-ticking.
Replies: >>105658138
Anonymous
6/20/2025, 3:40:12 PM No.105651402
recv / recvfrom / recvmsg

All three calls return the size of the message on successful
completion. If a message is too long to fit in the supplied
buffer, excess bytes may be discarded depending on the type of
socket the message is received from.


what does this mean? If I'm using a nonblocking socket and intentionally provide a buffer with less room than bytes that have arrived, does it return the size of the entire message, including the ones that did not get placed in buffer, or only the ones that were placed in buffer?
Replies: >>105651485 >>105651498
Anonymous
6/20/2025, 3:50:09 PM No.105651485
>>105651402
Size written to the buffer.
Replies: >>105651758
Anonymous
6/20/2025, 3:52:03 PM No.105651498
>>105651402
It depends whether you're talking about a stream (TCP) or datagram (UDP) socket. TCP is always reliable and the data will just wait in the kernels buffer until you read it. UDP is where you really want to read the entire message at once, because it doesn't make sense not to.

I believe it returns the size actually written to your buffer, not the message size.
Replies: >>105651758
Anonymous
6/20/2025, 3:54:44 PM No.105651511
>>105647891
>mmap
you just know that this made by a nocoder.
Anonymous
6/20/2025, 3:59:47 PM No.105651544
>says the incompetent autismo nocoder
Lol
Lmao
Replies: >>105651561
Anonymous
6/20/2025, 4:01:12 PM No.105651561
>>105651544
Don't talk about competence when real programmers use sbrk.
Replies: >>105651637 >>105651645
Anonymous
6/20/2025, 4:04:05 PM No.105651588
>>105648714
>>Now teach the STL how to use your mmaped buffer.
>I don't know what placement new is
Anonymous
6/20/2025, 4:08:26 PM No.105651623
after spending over 9000 hours with windows, I'm wondering if Linux could massively benefit from something like HTTP.sys.
trying to get working zero copy shit like sendfile() through layers of proxies seems like a massive humiliation ritual, especially with TLS.
Anonymous
6/20/2025, 4:08:35 PM No.105651624
>sbrk
Unemployable tech workers shoudl be in /utwg/.

>new
Go ahead. Post a concept that doesn't suck ass.
Anonymous
6/20/2025, 4:09:41 PM No.105651630
>mmap schizo BTFO by arena implementation in the kernel, immediately starts thinking about employment
Anonymous
6/20/2025, 4:09:57 PM No.105651637
>>105651561
>sbrk
I still don't understand why glibc's malloc does that in 2025.
Replies: >>105651644 >>105651653
Anonymous
6/20/2025, 4:10:52 PM No.105651644
>>105651637
It's faster, and therefore better.
Anonymous
6/20/2025, 4:10:59 PM No.105651645
5bc
5bc
md5: 17b85ab72fb6ee54b3846c35f4fcb850๐Ÿ”
>>105651561
Anonymous
6/20/2025, 4:12:17 PM No.105651653
>>105651637
Well, malloc users and its enablers are subhumans: >>105648714
And it's not just malloc - the interface is about as garbage as its users' genomes.
Replies: >>105651663
Anonymous
6/20/2025, 4:13:15 PM No.105651663
>>105651653
>the interface is about as garbage as its users' genomes.
well... ya. POOSIX is a fucking joke.
not saying WIN32 isn't full of it's own idiotic mistakes, btw.
Replies: >>105651674
Anonymous
6/20/2025, 4:14:45 PM No.105651674
>>105651663
malloc isn't POSIX though - although you're right: GlobalAlloc, LocalAlloc, HeapAlloc, VirtualAlloc, VirtualAlloc2, NtAllocateVirtualMemory ... it's all hogwash.
Replies: >>105651680 >>105651696
Anonymous
6/20/2025, 4:15:39 PM No.105651680
>>105651674
>VirtualAlloc2
oh no no no no ahahahahaha
Replies: >>105651716
Anonymous
6/20/2025, 4:16:34 PM No.105651696
>>105651674
>malloc isn't POSIX though
ok, C is a fucking joke. same difference IMO.
C and POOSIX are basically bros.
Anonymous
6/20/2025, 4:18:56 PM No.105651716
>>105651680
You wanna know the best part? VirtualAlloc2 essentially calls NtAllocateVirtualMemoryEx, but not before checking if the extended parameters contain anything that might look like a page size hint. If one of them is, then VirtualAlloc2 fails instead.
Replies: >>105651732
Anonymous
6/20/2025, 4:21:25 PM No.105651732
>>105651716
The best part is that sbrk has only one job and one parameter and it's fast.
Anonymous
6/20/2025, 4:22:37 PM No.105651745
>srbk
>fast
>>/utwg/
Replies: >>105651959
Anonymous
6/20/2025, 4:23:59 PM No.105651758
>>105651485
>>105651498
tcp. okay cool

another question, when I send() asynchronously on a socket I run into an issue where if the socket has been created (non-blocking) but NOT connected, send seems to just crash my program instead of returning an error. I don't actually care if the send doesn't go through when there is no connection, but I want to see why it failed and respond to it. how do I do that?
Replies: >>105651767 >>105651770
Anonymous
6/20/2025, 4:25:36 PM No.105651767
>>105651758
SIGPIPE?
Replies: >>105651825
Anonymous
6/20/2025, 4:26:15 PM No.105651770
Screenshot 2025-06-20 at 16-44-41 Optimization for Linux Use openat() and opendirat() ยท Issue #98 ยท restic_restic
>>105651758
Read the manual.
Replies: >>105651807
Anonymous
6/20/2025, 4:31:08 PM No.105651807
>>105651770
I did, I was expecting to get EDESTADDREQ
>The socket is not connection-mode, and no peer address is set.

instead it crashes
Replies: >>105658386
Anonymous
6/20/2025, 4:32:41 PM No.105651825
>>105651767
oh, yeah this was the issue. setting MSG_NOSIGNAL on the send now works as I expected
Anonymous
6/20/2025, 4:48:37 PM No.105651959
Screenshot 2025-06-20 at 17-48-03 DeepSeek - Into the Unknown
>>105651745
So this is enough to make you seethe? The fact that this is optimal and faster than MMAP is all it takes for you to stop posting? Wow.
Anonymous
6/20/2025, 4:50:30 PM No.105651976
>projecting his incompetence as seething onto others
>also waste of memory on top of TLB entries
I feel bad for any retard who pays you money.
Anonymous
6/20/2025, 4:51:18 PM No.105651984
>hugepages are le waste of TLB entries now
absolute state of registry nocodeshitting
Anonymous
6/20/2025, 4:54:07 PM No.105652004
Are those hugepages in the room with us now? Are they transparent to everyone but you?
Anonymous
6/20/2025, 4:55:30 PM No.105652022
>his registry dumper needs 1GB hugepages
I get it. Now it all makes sense, even my browser needs less memory than his registry dumper...
Anonymous
6/20/2025, 4:57:42 PM No.105652030
Post browser usage.
>inb4 more tumbleweeds, deflections, and evidence that will be used against his doxxing trial
Anonymous
6/20/2025, 5:10:16 PM No.105652091
file
file
md5: dd868b6aef3720c712bb3138156f6976๐Ÿ”
the numbers.. don't line up.
Something went wrong..

Im not seeing any symptoms and after re-writing the program it should just continue as if there were none but errors like this shouldn't be possible now too.
Anonymous
6/20/2025, 5:22:39 PM No.105652169
file
file
md5: dd868b6aef3720c712bb3138156f6976๐Ÿ”
the numbers.. don't line up.
Something went wrong..

Im not seeing any symptoms and this version should be fine with failing sometimes but at the same time these errors should be impossible. I thought i made sure of it.
Anonymous
6/20/2025, 5:25:59 PM No.105652199
Why is the state of QUIC so sad? Such a cool protocol, yet all implementations seem perpetually unfinished, most compelling features like connection migration seem to be unimplemented or work badly in most implementations.
Replies: >>105652242
Anonymous
6/20/2025, 5:31:06 PM No.105652242
>>105652199
Developers are really, really, REALLY lazy and incompetent. Just look at the sad state of /dpt/.
Replies: >>105652284
Anonymous
6/20/2025, 5:37:22 PM No.105652284
>>105652242
Yeah, they are busy using hugepages and writing registry dumpers..
Replies: >>105652482
Anonymous
6/20/2025, 5:39:25 PM No.105652300
Well, no, that's the problem. They can't even do that, that's how lazy and incompetent and worthless they are.
Anonymous
6/20/2025, 5:56:30 PM No.105652415
unnamed
unnamed
md5: 6a5048e26cc950ddf506514a6a93e32d๐Ÿ”
>usecase for registry dumping?
Replies: >>105653397
Anonymous
6/20/2025, 5:59:32 PM No.105652448
1748726070815580
1748726070815580
md5: 48a2500e13ab5f57f8bb2c56ad0bab22๐Ÿ”
Fulfillment of my sadistic tendencies.
Anonymous
6/20/2025, 6:02:59 PM No.105652480
Too hot to program kinda day :/
Anonymous
6/20/2025, 6:03:08 PM No.105652482
>>105652284
hugepages aren't enough, gigaschizo needs gigamemory
Anonymous
6/20/2025, 6:06:20 PM No.105652517
>too hot
>doesn't regularly work in 120ยฐF/90% humidity conditions without AC
Faggot.
Replies: >>105652561 >>105652573
Anonymous
6/20/2025, 6:12:25 PM No.105652561
>>105652517
Is this a call for help?
Anonymous
6/20/2025, 6:13:39 PM No.105652573
>>105652517
I thought I smelled curry.
Anonymous
6/20/2025, 6:14:03 PM No.105652577
ebussy-2
ebussy-2
md5: 13f14d9b4fc5e8042f52000fe6e2e5b0๐Ÿ”
sadism implies someone other than yourself is suffering.
Who is this person?
Replies: >>105652611
Anonymous
6/20/2025, 6:15:28 PM No.105652588
I mean, I'm doing my best to poach inferior people who can't deal with a little bit of summer, but I'm only one person. We need more poachers.
Anonymous
6/20/2025, 6:16:29 PM No.105652600
hasnt_fallen_enough
hasnt_fallen_enough
md5: 2dbac3848b033ab77634d9b7970046de๐Ÿ”
>Who is this person
Just look around.
Anonymous
6/20/2025, 6:17:02 PM No.105652611
>>105652577
I've never seen this man in my life.
Anonymous
6/20/2025, 6:18:09 PM No.105652625
I've had the vague desire to implement fft for a while. It really seems like sort of a mystical algorithm, more complex than normal mathematical funtions. So I took a pass at it the other day, and the depth of it is far beyond what I imagined it would be. I have to tell myself to give it up, because I can't be consumed with optimizing fft for too long.
Replies: >>105652646
Anonymous
6/20/2025, 6:19:32 PM No.105652643
tiny ebussy
tiny ebussy
md5: 9abc3a04a7dc59723ffce2ac8c266cf0๐Ÿ”
>I've never seen this man in my life.
He has many faces
Anonymous
6/20/2025, 6:19:46 PM No.105652646
>>105652625
You should do for something simpler, like AVX hexdumping.

... OK, I say "simpler", but no one has managed it so far except me.
Replies: >>105652781
Anonymous
6/20/2025, 6:21:08 PM No.105652661
closing my tcp socket does not seem to cause poll() to stop waiting. How do I get it to react to the socket being closed?
Replies: >>105652682 >>105652712
Anonymous
6/20/2025, 6:23:08 PM No.105652682
>>105652661
https://stackoverflow.com/questions/5039608/
Replies: >>105652712
Anonymous
6/20/2025, 6:26:53 PM No.105652712
>>105652661
>>105652682
you should be using shutdown in any case, but
>using poll in 2025
io_uring is next big thing
Anonymous
6/20/2025, 6:36:01 PM No.105652781
>>105652646
I already did that tho
https://files.catbox.moe/gxf8xu.jpg
Replies: >>105652814
Anonymous
6/20/2025, 6:41:32 PM No.105652814
>>105652781
How do you know the compiler didn't molest your code? They are known to generate absolute garbage. I need to see the actual machine instructions.
Replies: >>105652847 >>105653096
Anonymous
6/20/2025, 6:43:36 PM No.105652834
Anyone know if there's some kind of DSL for list comprehension in Haskell

I want Haskell's ability to generate mathematical sequences without the rest of Haskell

JSON document:
{
"series": "[x * 3 | x <- [1..100], x % 2 == 0]"
}
Replies: >>105652878
Anonymous
6/20/2025, 6:45:25 PM No.105652847
>>105652814
You run the compiler, but that's probably too advanced for you.
Anonymous
6/20/2025, 6:46:33 PM No.105652856
Alright, proposal is rejected. Do it properly this time.
Anonymous
6/20/2025, 6:49:36 PM No.105652878
>>105652834
>ghc -e "[x * 3 | x <- [1..100], x `mod` 2 == 0]"
[6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,102,108,114,120,126,132,138,144,150,156,162,168,174,180,186,192,198,204,210,216,222,228,234,240,246,252,258,264,270,276,282,288,294,300]
Replies: >>105652884
Anonymous
6/20/2025, 6:50:06 PM No.105652884
>>105652878
Aw there it is thanks
Anonymous
6/20/2025, 7:01:44 PM No.105652983
>>105648838
Wait, that's news to me. I looked into it an on Windows you never have more than 4kb of code in memory at any time? How is this not a massive performance bottleneck if your program is jumping all over the place like in a video game?
Anonymous
6/20/2025, 7:02:16 PM No.105652992
>>105647865 (OP)
Currently working in a gopher client in lua. First project ever so it's kinda hard but it's also fun
Anonymous
6/20/2025, 7:15:12 PM No.105653096
cheeky-compiler
cheeky-compiler
md5: 5ae055b2610e95c9ae3aa698b2fdae17๐Ÿ”
>>105652814
Look at the way this cheeky compiler unrolled my loop for me. Don't you think if I'd wanted my code that heavily optimized I would have unrolled the loop myself!? Compilers these days have no respect for their elders.
Replies: >>105653141 >>105653154 >>105653164 >>105655257
Anonymous
6/20/2025, 7:20:15 PM No.105653141
>>105653096
If you were born in a country that doesn't reek of curry and shit and were taught to read, you'd have read the manual and learned that loop unrolling can be disabled for a specific loop you chose.
Replies: >>105653153
Anonymous
6/20/2025, 7:21:38 PM No.105653153
>>105653141
If you weren't retarded you would be able to understand sarcasm
Replies: >>105653167 >>105653174
Anonymous
6/20/2025, 7:21:47 PM No.105653154
>>105653096
How dare the compiler do menial work me ( ๏ฝก โ€ขฬ€ แด– โ€ขฬ ๏ฝก)
Mr Kupaar doesn't pay me to let the compiler do my work
Replies: >>105653167
Anonymous
6/20/2025, 7:22:37 PM No.105653164
>>105653096
Show output. I don't see any space shuffling in there, nor any ASCII representation section.
Replies: >>105653193
Anonymous
6/20/2025, 7:22:41 PM No.105653167
>>105653154
see >>105653153 but less mean because you were nicer about it
Replies: >>105653198
Anonymous
6/20/2025, 7:23:22 PM No.105653174
>>105653153
That code isn't properly optimized so I didn't think you could be possibly joking.
Replies: >>105653193
Anonymous
6/20/2025, 7:24:57 PM No.105653193
>>105653164
It just generates hex.

>>105653174
There's actually three layers of irony there. Don't worry if you missed one or two, but learn to recognize when you are outclassed.
Replies: >>105653210
Anonymous
6/20/2025, 7:25:50 PM No.105653198
>>105653167
Don't worry, I'm just mocking the autist.
Anonymous
6/20/2025, 7:27:12 PM No.105653210
current
current
md5: 3534cd9bf3ce6a106b5a9883dcd412e3๐Ÿ”
>>105653193
>It just generates hex.
Yeah, but that's not complicated. Spacing and ASCII representation are much more interesting.
Replies: >>105653330
Anonymous
6/20/2025, 7:44:20 PM No.105653330
>>105653210
but does it do anything other than print stuff to terminal
Replies: >>105653409
Anonymous
6/20/2025, 7:51:21 PM No.105653383
You'll never know.
Replies: >>105653435
Anonymous
6/20/2025, 7:53:15 PM No.105653397
>>105652415
i look like this and i say this
Anonymous
6/20/2025, 7:54:35 PM No.105653409
Screenshot 2025-06-20 at 20-54-28 Windows Terminal input is as slow as rubber cement ยท Issue #11916 ยท microsoft_terminal
>>105653330
All things considered, printing to terminal is inherently slow, seems like an useless thing to optimize.
Anonymous
6/20/2025, 7:57:44 PM No.105653435
>>105653383
Anonymous
6/20/2025, 8:04:16 PM No.105653492
what is the most based & redpilled programming language?
Replies: >>105653512 >>105653522 >>105653572 >>105653594
Anonymous
6/20/2025, 8:06:57 PM No.105653512
>>105653492
>>105647891
Anonymous
6/20/2025, 8:08:42 PM No.105653522
>>105653492
cinnameg
Anonymous
6/20/2025, 8:15:43 PM No.105653572
>>105653492
C. It lets me mmap to make /dpt/ seethe, while also allowing me to use brk to make registryschizo seethe too.
Anonymous
6/20/2025, 8:17:46 PM No.105653586
stlb
stlb
md5: 2de69d56b5d3a7fa568c5b66a3c66a8e๐Ÿ”
Why would it make me seethe? I'm not the laughably incompetent one that's easily replaced.
Replies: >>105653596 >>105653629
Anonymous
6/20/2025, 8:18:47 PM No.105653594
>>105653492
FASM2
Anonymous
6/20/2025, 8:19:01 PM No.105653596
>>105653586
Being unemployable isn't something to brag about.
Anonymous
6/20/2025, 8:19:31 PM No.105653603
Exactly. So why do you?
Replies: >>105653624
Anonymous
6/20/2025, 8:21:52 PM No.105653624
>>105653603
The only way to be irreplaceable is to be so irrelevant that nobody in HR even knows you exist, because you're posting from your mommy's basement about how cool you are for dumping equally irreplaceably irrelevant data into irreplaceably the slowest ever known to mankind terminal that can't print faster than 50MiB/s
Anonymous
6/20/2025, 8:22:29 PM No.105653629
>>105653586
Why are you still posting out of date slides? Can't you make newer ones?
Replies: >>105653642
Anonymous
6/20/2025, 8:24:14 PM No.105653637
>The only way to be irreplaceable is to be so irrelevant that nobody in HR even knows you exist
Oh wow. That's some REALLY sad projection. So you've never been called to meetings to help making important decisions?

My goodness, I knew /dpt/ was pathetic, but this is a new low.
Replies: >>105653650 >>105653662
Anonymous
6/20/2025, 8:24:33 PM No.105653642
>>105653629
Because that would require learning how hardware works.
Anonymous
6/20/2025, 8:25:35 PM No.105653650
>>105653637
>to help making important decisions?
sar
Anonymous
6/20/2025, 8:26:27 PM No.105653659
>out of date slides
The trend towards shared TLBs is incontrovertible, and your cope is laughably pathetic.
Replies: >>105653668 >>105653678
Anonymous
6/20/2025, 8:26:46 PM No.105653662
>>105653637
Nobody has ever called me to a registry dumping meeting of which only one specimen has ever attended and forgot to invite others because he's the only important one, so no.
Anonymous
6/20/2025, 8:28:00 PM No.105653668
>>105653659
>All database manuals recommend turning off huge pages
>all cpu manufacturers are unifying TLB
Explain how TLBs are ever a bottleneck once again.
Replies: >>105653687
Anonymous
6/20/2025, 8:29:41 PM No.105653678
>>105653659
Update your slides then? Do you not know how to gather that information, or is it powerpoint you're having difficulty using?
Replies: >>105653758
Anonymous
6/20/2025, 8:31:09 PM No.105653687
Well, that explains a lot. No wonder you cannot follow the simplest of commands; you're conditioned to ignore the problem because they'll forget about you.

I cannot imagine what sad and empty existence you have been living up to this point.

>>105653668
>All database manuals recommend turning off huge pages
Who said anything about databases? Oh, let me guess ... you think bigger pages can only be used for file mappings.

That's even sadder.
Replies: >>105653696
Anonymous
6/20/2025, 8:32:10 PM No.105653694
>Update your slides
I'm good. Are you?
Anonymous
6/20/2025, 8:32:37 PM No.105653696
>>105653687
Databases can dump data a lot faster than at 50MiB/s so I will continue trusting their devs over some tranny.
Anonymous
6/20/2025, 8:34:13 PM No.105653707
Oh god. The autism has taken over, and now he's just stringing random words together like a broken LLM. Well, at least I called it: >>105648916
Replies: >>105653724
Anonymous
6/20/2025, 8:36:16 PM No.105653724
>>105653707
>and now he's just stringing random words together like a broken LLM
How would you feel if you didn't eat breakfast this morning?
Anonymous
6/20/2025, 8:39:04 PM No.105653745
>implying an energy drink qualifies as breakfast these days
Anonymous
6/20/2025, 8:41:22 PM No.105653758
>>105653678
He has Wernickeโ€™s Aphasia, you shouldn't make fun of that.
Anonymous
6/20/2025, 8:43:26 PM No.105653772
autistic_tinkerers
autistic_tinkerers
md5: 47b398100597f0fe32e17f996c6f2698๐Ÿ”
>incompetent autismos LARPing as medical doctors
I'd make fun of you, but unfortunately that's not the bottom of the barrel. Most autismos here LARP as programmers.
>despite not knowing how a cache works
Replies: >>105653781
Anonymous
6/20/2025, 8:44:10 PM No.105653781
>>105653772
Nobody in here needs to be a licensed doctor to see that you have some sort of brain damage that causes you to repost same 50 screenshots while ignoring what's happening around you.
Anonymous
6/20/2025, 8:46:35 PM No.105653797
1739435724033305
1739435724033305
md5: 6d1905432641e5c791d4d1eb3b3344f4๐Ÿ”
Why would I be distracted by inconsequential nonsense? That's the purview of incompetent autismos, not psychopathic sadists.
Replies: >>105653801
Anonymous
6/20/2025, 8:47:08 PM No.105653801
>>105653797
Individuals with Wernicke's aphasia are often not aware of their incorrect productions, which would further explain why they do not correct themselves when they produce jargon, paraphasias, or neologisms. Additionally, patients may become irritated or frustrated because others cannot understand what they are saying, but they believe their speech is completely comprehensible.
Anonymous
6/20/2025, 8:49:01 PM No.105653816
1731838907062267
1731838907062267
md5: c65928bfd3b753f203635b0308bb2d0b๐Ÿ”
Anonymous
6/20/2025, 8:49:31 PM No.105653819
/dpt/ - Daily Psychosis Thread
Anonymous
6/20/2025, 8:52:08 PM No.105653843
1730902342052074
1730902342052074
md5: 1cdc0e97b47542171daa08fda1414e09๐Ÿ”
Good thing it has fallen.
Anonymous
6/20/2025, 8:53:45 PM No.105653852
1738402855130173
1738402855130173
md5: 024a967a2eea64a2627dc9438fd09881๐Ÿ”
Do you guys have fun pointlessly arguing with transvestite spammers?
You'll have to forgive him; it's the HRT speaking.
Replies: >>105655285
Anonymous
6/20/2025, 8:57:31 PM No.105653885
1606354525192
1606354525192
md5: 612b46d58dd0c38b41340937ea44739c๐Ÿ”
Anonymous
6/20/2025, 9:00:30 PM No.105653910
>want to work on project that depends on the previous one
>cant start because the first one is still executing and will do so for the next 50 hours assuming nothing goes wrong.
Im going to do some preparations but there will be no way to actually test if it works until then so this may be a waste of time.
Replies: >>105654224
Anonymous
6/20/2025, 9:35:20 PM No.105654224
>>105653910
Just mock it :^)
Replies: >>105654343
Anonymous
6/20/2025, 9:48:35 PM No.105654335
1737478289882647
1737478289882647
md5: 21249bea4ac5ffc808eae2cc039f1228๐Ÿ”
>implementing formally defined spec
It's a state of autistic bliss
Anonymous
6/20/2025, 9:49:46 PM No.105654343
>>105654224
If i also want a backup of the first one i would need to wait roughly the same time again. And im already going as fast as possible. I saw what happens at max speed and its not good.
Replies: >>105654364
Anonymous
6/20/2025, 9:52:23 PM No.105654364
>>105654343
as fast as possible just before hitting max speed
Anonymous
6/20/2025, 10:12:10 PM No.105654539
>>105649628
very cool
Anonymous
6/20/2025, 10:27:47 PM No.105654716
so if I have a 4 byte value 0xAABBCCDD
the little endian byte order is [DD] [CC] [BB] [AA]
and the big endian byte order is [AA] [BB] [CC] [DD]
?

and then if I had a struct of these and wanted to cast them to a byte array, what's the best way to do that? I see there are some function for converting a 16bit value and a 32 bit value to reversed bytes (why is there none for 64 bit?)
any others?
Replies: >>105658350 >>105658415
Anonymous
6/20/2025, 10:50:17 PM No.105654935
SuperC
SuperC
md5: a539dc65f9d2fd76da9e5697d88abafc๐Ÿ”
the true successor to the C programming language
Replies: >>105655338 >>105657232
Anonymous
6/20/2025, 10:55:34 PM No.105654987
banned
banned
md5: 84111a746f44b3595b9b05fdabb4bb69๐Ÿ”
Working on permissions for my forum. When you get banned, your permissions are changed so that you can only post in one forum: The Penal Colony. There, you can appeal your ban, or possibly scream at the moderators who banned you. Mods can also browse that forum and reply to all threads, but if you are banned you can only reply to your own thread. Picrel: top is the moderator view of the homepage, bottom a banned user's view. Non-banned users cannot view the penal colony
Replies: >>105655465 >>105656453
Anonymous
6/20/2025, 11:22:39 PM No.105655257
>>105653096
>Look at the way this cheeky compiler unrolled my loop for me.
Discovering why -O3 can make things slower than -Os sometimes?
Anonymous
6/20/2025, 11:25:16 PM No.105655285
>>105653852
>Do you guys have fun pointlessly arguing with transvestite spammers?
Yes. I can't be bothered to think enough to code properly right now, so I'm here looking to bait someone for shits and giggles.
Anonymous
6/20/2025, 11:32:05 PM No.105655338
>>105654935
I will immediately switch to Super C once it's available.
Anonymous
6/20/2025, 11:45:18 PM No.105655465
>>105654987
>When you get banned, your permissions are changed so that you can only post in one forum: The Penal Colony
sounds like the place where the cool kids hang out
Anonymous
6/21/2025, 1:38:17 AM No.105656453
>>105654987
you should make a thrid zone for people who get banned from penile colon yso the modersatros can sned them there then if they cget banned from that too they get sent back to zone 1
Anonymous
6/21/2025, 3:20:11 AM No.105657205
lol
Anonymous
6/21/2025, 3:23:27 AM No.105657232
>>105654935
does it come with a super CoC?
Anonymous
6/21/2025, 3:29:47 AM No.105657275
>I can't be bothered to think enough to code properly right now
Or ever. The meager lot of a nocodeshitter.
Anonymous
6/21/2025, 3:34:58 AM No.105657301
a52ed21ddc4fc278ba3eed38c084447d
a52ed21ddc4fc278ba3eed38c084447d
md5: a52ed21ddc4fc278ba3eed38c084447d๐Ÿ”
added api key support for my booru client
Replies: >>105657733 >>105665432
Anonymous
6/21/2025, 3:55:46 AM No.105657430
1744160657167603
1744160657167603
md5: f774f6e4f9de502abd0970c08273409f๐Ÿ”
>>105649628
very nice anon
Anonymous
6/21/2025, 4:30:45 AM No.105657663
aBm7W2z_700b
aBm7W2z_700b
md5: d3b6fc2163d536ecfeedab806ebb6953๐Ÿ”
I want to build a website but I only know python. What should my frontend be?
Replies: >>105657692 >>105657810 >>105658277 >>105661440
Anonymous
6/21/2025, 4:36:17 AM No.105657692
>>105657663
Bullet to the head would be a great end for you.
Anonymous
6/21/2025, 4:44:29 AM No.105657733
>>105657301
Adorable Miku
Anonymous
6/21/2025, 4:58:20 AM No.105657810
1750474136728
1750474136728
md5: dcaa6e1fee4f681ee6b9ffd038a4d07b๐Ÿ”
>>105657663
Raw html
Anonymous
6/21/2025, 5:59:08 AM No.105658138
>>105651264
It doesn't reverse.
Anonymous
6/21/2025, 6:21:14 AM No.105658273
>>105644311
return an empty string
also write yourself a metaprogram that takes in a list of thingies and creates a name_enum.gen.h and name_enum.gen.c which has the enum definition and implementations of string_from_enum()
Anonymous
6/21/2025, 6:22:14 AM No.105658277
>>105657663
htmx
Anonymous
6/21/2025, 6:34:09 AM No.105658350
>>105654716
>and then if I had a struct of these and wanted to cast them to a byte array,
in C? just cast it to (char*) and reverse it in a for loop, same thing as if reversing a string or something
or you do
size / 32, reverse that using those byteswap function, memcopy into result array
size % 32, reverse that one by one
>why is there none for 64 bit?
i think those functions have specific hardware support and 64bit doesn't have it
and you can get the 64bit version by shifting bits around
there are alternatives for 64bit but they don't have good portability
Replies: >>105658415
Anonymous
6/21/2025, 6:38:45 AM No.105658386
>>105651807
are you compiling with sanitizers? sounds like a your code issue and you accessing some memory you shouldn't or something
also reed https://beej.us/guide/bgnet/
Anonymous
6/21/2025, 6:43:13 AM No.105658415
>>105654716
>>105658350
I guess you're talking about ntohl etc.
It's just a really, really fucking old API and they never bothered to update it when 64bit became a thing. There are other (albeit less portable) APIs that have 64bit functions, or even compiler intrinsics if you don't have any issues using those directly.
Anonymous
6/21/2025, 6:55:18 AM No.105658500
are there any good daily programming problems that aren't leetcode?
Replies: >>105658555 >>105658557
Anonymous
6/21/2025, 7:07:57 AM No.105658555
>>105658500
Registry dumping.
Anonymous
6/21/2025, 7:09:08 AM No.105658557
>>105658500
yes whatever feature your program needs
or practice https://youtu.be/4B00hV3wmMY?t=778
Anonymous
6/21/2025, 7:10:42 AM No.105658565
i didnt write a single piece of code today
Anonymous
6/21/2025, 7:14:32 AM No.105658586
Sirs, do you do unit tests or straight up integration tests?
Anonymous
6/21/2025, 7:20:30 AM No.105658628
Hi /g/

i learnt software at uni, shit happened, and i couldn't really find a job for years, mainly from health issues, and just did odd jobs here and there.

I kinda want to try getting a software job now.
Any guide or tips?
I just really want to get my foot in the door in any way and then just go from there.

I plan on revising java as that was what I was most used to. I plan on learning github, and looking up AI tools like copilot or chatgpt.

Do any of you guys have a good guide or place to go from?
Thanks
Replies: >>105658643
Anonymous
6/21/2025, 7:22:47 AM No.105658643
1715797862933133
1715797862933133
md5: 4eeb6fc5bcc372ac28311d76cc81bc2d๐Ÿ”
>>105658628
Anonymous
6/21/2025, 7:25:06 AM No.105658651
Why is this general so fucking dogshit?
Replies: >>105658667 >>105658746 >>105658780
Anonymous
6/21/2025, 7:27:29 AM No.105658667
hexes
hexes
md5: 4f7d1e50b88072c1b5ca6c4a170eb6ee๐Ÿ”
>>105658651
Because nocodeshitters get angry at those who post code. It makes them look bad.
Replies: >>105667166
Anonymous
6/21/2025, 7:42:08 AM No.105658746
>>105658651
175 posts, maybe 5 are related to "What are you working on, /g/?"

* people who are working on writing shitposts excluded
Anonymous
6/21/2025, 7:47:28 AM No.105658780
>>105658651
AI killed programming?
Seriously.

I dunno, I see like 5 codeposts.
Anonymous
6/21/2025, 7:58:01 AM No.105658844
give me 1 reason why I shouldn't use directx 9 to make a video game in this, the current year of our lord and savior Jesus Christ
Replies: >>105658860 >>105659166
Anonymous
6/21/2025, 8:02:35 AM No.105658860
>>105658844
If you think you're smarter than game devs of yore who didn't manage to properly free and recreate all of their resources when they lost the device, then sure - knock yourself out.

https://learn.microsoft.com/en-us/windows/win32/direct3d9/lost-devices
Replies: >>105658873
Anonymous
6/21/2025, 8:06:19 AM No.105658873
>>105658860
Anon, resetting the device intrinsically frees all VRAM allocations. And if you don't reallocate, well, you're going to notice that pretty quickly.
Replies: >>105658878
Anonymous
6/21/2025, 8:07:42 AM No.105658878
>>105658873
What exactly confused you about the term "their resources"?
Replies: >>105658891
Anonymous
6/21/2025, 8:10:23 AM No.105658891
>>105658878
What resources exactly do you think a GPU has other than VRAM? I don't know why you think recovering from an alt-tab is a monumental task. You either handle it or the game crashes, very easy to debug.
Replies: >>105658900
Anonymous
6/21/2025, 8:12:33 AM No.105658900
>>105658891
>What resources exactly do you think a GPU has other than VRAM?
What, do you think, is the program going to access those resources through? And how valid, do you think, are those going to be after the device they were allocated through are lost?
Anonymous
6/21/2025, 8:13:57 AM No.105658909
No, don't bother with an answer. Everything necessary has already been said:
>knock yourself out
Now leave us alone.
Anonymous
6/21/2025, 8:40:20 AM No.105659036
Building llm based maid harem simulator
Replies: >>105659044
Anonymous
6/21/2025, 8:41:42 AM No.105659044
>>105659036
Cool, maybe that'll revive Haramase Simulator.
Anonymous
6/21/2025, 8:48:51 AM No.105659075
pellychan
pellychan
md5: 135abc0b55226c315ee946e513e8a437๐Ÿ”
>>105647865 (OP)
4chan desktop client using a custom gui framework
Replies: >>105659356 >>105665806 >>105667735
Anonymous
6/21/2025, 9:11:50 AM No.105659166
A0B886B1-18DD-4DFC-A0E7-917B3CB6DAF3
A0B886B1-18DD-4DFC-A0E7-917B3CB6DAF3
md5: ca8a4bff7970c9f1fcb4f8c5f5366358๐Ÿ”
>>105658844
Replies: >>105659195
Anonymous
6/21/2025, 9:18:14 AM No.105659195
>>105659166
>experimental, half baked api is le better!
Replies: >>105659202 >>105659218 >>105659237
Anonymous
6/21/2025, 9:20:36 AM No.105659202
>>105659195
Nice buzzwords.
Replies: >>105659208
Anonymous
6/21/2025, 9:21:56 AM No.105659208
>>105659202
You forgot to show us the game that you made with Vulkan.
Replies: >>105659228 >>105659237 >>105659422
Anonymous
6/21/2025, 9:23:29 AM No.105659218
>>105659195
Whatever it is it's less fucked than OpenGL.
Anonymous
6/21/2025, 9:24:38 AM No.105659228
1746449588961850
1746449588961850
md5: c1cc8f4a4c155274cc5e69b42951f7da๐Ÿ”
>>105659208
It's called "upside down triangle with flashing background". the goal is to not get epilepsy, it's part of the Strand genre
Anonymous
6/21/2025, 9:24:46 AM No.105659229
int trailing_zeros_no_bmi(unsigned long long x) {
if (x != 0)
return __builtin_ctzg(x);
else
return sizeof(x) * 8;
}
trailing_zeros_no_bmi:
bsf rdx, rdi
mov eax, 64
test rdi, rdi
cmovne eax, edx
ret

int trailing_zeros_bmi(unsigned long long x) {
if (x != 0)
return __builtin_ctzg(x);
else
return sizeof(x) * 8;
}
trailing_zeros_bmi:
xor eax, eax
tzcnt rax, rdi
ret

>compilers are le ba-ACK!
Replies: >>105659315
Anonymous
6/21/2025, 9:26:48 AM No.105659237
E85507A9-ECEC-456A-AECC-572F6C42F68A
E85507A9-ECEC-456A-AECC-572F6C42F68A
md5: c51b862bb97c60877d636c6a1f2af39c๐Ÿ”
>>105659195
>>105659208
>experimental, half bake- ACKKKKK
Replies: >>105659241
Anonymous
6/21/2025, 9:27:28 AM No.105659241
>>105659237
This game runs so shit I thought it was programmed with OpenGL 1.6
Replies: >>105659300
Anonymous
6/21/2025, 9:39:36 AM No.105659300
>>105659241
nice headcannon
Replies: >>105659304
Anonymous
6/21/2025, 9:40:52 AM No.105659304
>>105659300
You're right, I'm giving it too much credit, because I saw games that run smoother on OpenGL 1.3
Anonymous
6/21/2025, 9:43:57 AM No.105659315
>>105659229
>xor eax,eax
Yes, compilers ARE le bad!
Replies: >>105659331
Anonymous
6/21/2025, 9:48:31 AM No.105659331
>>105659315
Yes, it's the compilers fault that hardwareniggers introduce false dependencies that need to be broken up...
Replies: >>105659346
Anonymous
6/21/2025, 9:51:51 AM No.105659346
>>105659331
>implying the CPU doesn't know a TZCNT clears the upper 32-bits
Post source, or subject yourself to voted doxxing.
Replies: >>105659352
Anonymous
6/21/2025, 9:53:22 AM No.105659352
>>105659346
>TZCNT clears the upper 32-bits
No it doesn't lmao. You can thank Intel aviv for that.
Anonymous
6/21/2025, 9:54:04 AM No.105659356
>>105659075
It already exists it's called google chrome
Replies: >>105659487
Anonymous
6/21/2025, 9:56:38 AM No.105659368
the_verdict_is_guilty
the_verdict_is_guilty
md5: 6d944af46ca71b8f8aaa5ac7719067eb๐Ÿ”
We're now entering the penalty phase.
Anonymous
6/21/2025, 9:59:48 AM No.105659384
Screenshot 2025-06-21 at 10-58-58 Compiler Explorer
Screenshot 2025-06-21 at 10-58-58 Compiler Explorer
md5: 2fd0e4275dba9ad181fbc62d91b1364b๐Ÿ”
We're now at the stage where Wernicke's aphasia is being proven over and over again.
>compiler is le bad
>doesn't know how bad intel has fucked up with tzcnt
>thinks he can still educate anyone on anything
You're a nocodetranny and will forever be.
Anonymous
6/21/2025, 10:02:46 AM No.105659401
Too late. You had your chance to present evidence, and you didn't use it. You only get one trial.
We'll proceed with the penalty phase.
Anonymous
6/21/2025, 10:03:51 AM No.105659407
You have brain damage that you aren't even aware of, there were never any chances. If you dared to step outside, you'd get gunned down in self defense.
Anonymous
6/21/2025, 10:06:06 AM No.105659422
>>105659208
Post your D3D9 game first.
Anonymous
6/21/2025, 10:06:06 AM No.105659423
Try that for post-conviction relief. Maybe you'll find some drunk judge who'll listen to your nonsense.
Anonymous
6/21/2025, 10:17:51 AM No.105659487
>>105659356
>you CANNOT do anything for fun!
>you MUST create software with a PURPOSE!
Replies: >>105659496
Anonymous
6/21/2025, 10:19:52 AM No.105659496
>>105659487
>I'm just having fun!
>look inside
>it's just bundled google chrome
Replies: >>105659522
Anonymous
6/21/2025, 10:23:58 AM No.105659522
>>105659496
It's not chrome or electron or anything, the gui was written from scratch
Replies: >>105659599
Anonymous
6/21/2025, 10:38:23 AM No.105659580
DEPRECIATES IN YOUR PATH
>USE CASE FOR SETTING THE FONT TO MONOSPACED IN GTK4
DEPRECIATES IN YOUR PATH
>USE CASE FOR SETTING THE FONT TO MONOSPACED IN GTK4
DEPRECIATES IN YOUR PATH
>USE CASE FOR SETTING THE FONT TO MONOSPACED IN GTK4
DEPRECIATES IN YOUR PATH
>USE CASE FOR SETTING THE FONT TO MONOSPACED IN GTK4
DEPRECIATES IN YOUR PATH
>USE CASE FOR SETTING THE FONT TO MONOSPACED IN GTK4

DEPRECIATES IN YOUR PATH DEPRECIATES IN YOUR PATH DEPRECIATES IN YOUR PATH DEPRECIATES IN YOUR PATH
Anonymous
6/21/2025, 10:41:55 AM No.105659599
>>105659522
no it wasn't
Replies: >>105659675
Anonymous
6/21/2025, 10:48:57 AM No.105659633
>TZCNT has invalid dependency on Skylake
>so the compiler generates code to held resolving that dependency
>in a function that is called into and returned from, and thus can't do much out-of-order in the first place
>and /dpt/ actually defends this
Yeah, verdict is guilty.
Anonymous
6/21/2025, 10:58:11 AM No.105659675
>>105659599
okay faggot go verify it for yourself
Anonymous
6/21/2025, 11:37:24 AM No.105659899
C++26
>contracts
>safety profiles
>reflection
Jump ship immediately, C will befall the same fate
Replies: >>105659914 >>105660040 >>105663203
Anonymous
6/21/2025, 11:40:33 AM No.105659914
>>105659899
Really we need a new efficient modern language to take their place.
Anonymous
6/21/2025, 12:06:29 PM No.105660040
>>105659899
>for once useful features are... LE BAD!
we need more template bloat instead!
Replies: >>105660047 >>105660076
Anonymous
6/21/2025, 12:08:00 PM No.105660047
>>105660040
Kys bjarne
Anonymous
6/21/2025, 12:13:10 PM No.105660076
>>105660040
unironically templates in C++ contain more symbols and are slightly less legible than templates through macros in C
Replies: >>105660091
Anonymous
6/21/2025, 12:14:50 PM No.105660091
>>105660076
C macros can fully be reimplemented using sed.
C++ templates cannot be fully reimplemented without spending billions of manhours writing a proper template parser in C++.
Replies: >>105660128
Anonymous
6/21/2025, 12:20:27 PM No.105660128
>>105660091
reimplementing all the macros that go into c is billions of manhours too
this code
#include <immintrin.h>
#include <stdio.h>
#include <stdint.h>

int main()
{

printf("main : test_intrinsics\n");
printf("main : sizeof __m256i : %ld\n", sizeof(__m256i));
}

expands to 41klocs
231 lines contain the word "define"
Replies: >>105660143
Anonymous
6/21/2025, 12:21:05 PM No.105660132
file
file
md5: 458da6510ed3dd30c665898973fff5ca๐Ÿ”
this shit sucks so much ass
i had plans
Anonymous
6/21/2025, 12:22:47 PM No.105660143
>>105660128
Completely irrelevant, when it is all done with sed-level logic.
Replies: >>105660164
Anonymous
6/21/2025, 12:25:38 PM No.105660164
>>105660143
totally relevant given you mentioned how with sepples it would be tons of work
and afaik templates as in- templates proper, not generics- in sepples work pretty much identically to a substitution in C

>its better bc its more complicated
lol, lmao even. lurk more
Replies: >>105660174
Anonymous
6/21/2025, 12:27:45 PM No.105660174
>>105660164
You clearly know nothing about C++ templates, if you think that something that lets you do compile time raytracing including outputting the resulting render on your screen is equivalent to running sed.
This is your last (You), faggot.
Replies: >>105660182
Anonymous
6/21/2025, 12:28:47 PM No.105660182
>>105660174
>if you think that something that lets you do compile time raytracing
post example faggot
then explain to me how the fuck would that be relevant to me?
Anonymous
6/21/2025, 12:31:54 PM No.105660199
raytracer
raytracer
md5: e63f38d5f57501dc35e99c439b641285๐Ÿ”
So you're not only retarded summerfag, but a phonenigger who couldn't look it up himself huh?
I accept your concession, tranny.
Replies: >>105660217
Anonymous
6/21/2025, 12:34:19 PM No.105660217
stop-teaching-c
stop-teaching-c
md5: f7acbe4d73f07913deea3604089c10c8๐Ÿ”
>>105660199
>no argument
what concession?
also
>sepples
lamao
but you stopped pretending youre C a good while ago?
Replies: >>105660948
Anonymous
6/21/2025, 12:35:43 PM No.105660228
Wernicke's is terminal with this one...
Replies: >>105660240
Anonymous
6/21/2025, 12:37:25 PM No.105660240
>>105660228
>no you
that means you care
that means youre developmentally retarded
>smart werdz
dont use em. youre too retarded, cf line 3
Anonymous
6/21/2025, 12:38:37 PM No.105660245
>muh Wernicke
This is what autism does to a person.
Anonymous
6/21/2025, 1:24:13 PM No.105660539
>have monotonous task in my photo editing workflow
>"hold on, I'm a programmer, can't I just automate this?"
>spend 2 days debugging automation
Unless I use this plugin for literal years I'm not sure this was a time saver, but at least I had some fun(tm) and got the satisfaction from making a thing myself
Replies: >>105660574 >>105660864
Anonymous
6/21/2025, 1:29:29 PM No.105660574
is_it_worth_the_time_2x
is_it_worth_the_time_2x
md5: af4e485855981b70e4d6bfd7d42d7aef๐Ÿ”
>>105660539
Replies: >>105660584 >>105660848 >>105661173
Anonymous
6/21/2025, 1:31:07 PM No.105660584
>>105660574
holy shit dude multiplication woah
Anonymous
6/21/2025, 1:33:03 PM No.105660593
I seem to have rustled your jimmies.

Good.
Anonymous
6/21/2025, 2:13:58 PM No.105660848
>>105660574
how much time can i budget for reading this chart and coming up with time estimates?
Anonymous
6/21/2025, 2:16:08 PM No.105660864
>>105660539
You'd save more time if you just killed yourself.
Replies: >>105661173
Anonymous
6/21/2025, 2:27:48 PM No.105660948
>>105660217
Holy shit, I am never using c++, lmfao.
Anonymous
6/21/2025, 2:55:20 PM No.105661173
>>105660574
Yeah, I'm way over budget.
Though honestly time saved isn't the only advantage but also just not having to do a very mind numbing task anymore.
>>105660864
True
Anonymous
6/21/2025, 3:30:45 PM No.105661440
>>105657663
Im using elm currently
Was a bit of a head scratcher to setup with django but once I figured out how the templating worked and my data flows into the templating tags it was very much an 'aaaaaaahhh got it'-moment
Anonymous
6/21/2025, 4:06:00 PM No.105661696
1749135850307260
1749135850307260
md5: 64be3a4323a9f47b2c9aedb1fb801441๐Ÿ”
What books should I read to prep for my data structures and discrete structures classes?
Replies: >>105661708
Anonymous
6/21/2025, 4:06:37 PM No.105661708
>>105661696
yjk
Anonymous
6/21/2025, 5:03:17 PM No.105662206
string
string
md5: 61dc9b30784659566ef44fc485ba3064๐Ÿ”
>std::string_view in standard since C++17
>meanwhile in C++23
>still no basic concatenation operator with std::string
thanks for playing, see ya in C++26 (in 2037).
Replies: >>105662249 >>105662852
Anonymous
6/21/2025, 5:07:11 PM No.105662249
>>105662206
Create a new string and append the string view if you need this.
Replies: >>105662271 >>105662275
Anonymous
6/21/2025, 5:09:32 PM No.105662271
>>105662249
>needless temporary
yikers desu
Replies: >>105662327
Anonymous
6/21/2025, 5:09:51 PM No.105662275
>>105662249
I shouldn't have to. it really took them 6 years and two standard revisions to figure it out? fucking embarrassing.
Replies: >>105662327 >>105662363
Anonymous
6/21/2025, 5:13:27 PM No.105662327
>>105662271
Where's the needless temporary?
>>105662275
Yes you should, that's what you get for using C++
Replies: >>105668944
Anonymous
6/21/2025, 5:17:05 PM No.105662363
>>105662275
https://en.cppreference.com/w/cpp/string/basic_string/operator%2B
they might have fixed it in 26 after 9 years
Replies: >>105662394
Anonymous
6/21/2025, 5:21:04 PM No.105662394
>>105662363
yes, all this amazing progress happens too fast. a man can barely keep up.
Replies: >>105662444
Anonymous
6/21/2025, 5:26:47 PM No.105662444
>>105662394
and to think, this will be implemented by major compilers as soon as 2052
Anonymous
6/21/2025, 6:17:30 PM No.105662852
sample_b3948f52e39ad436b8a21fca736f377e
sample_b3948f52e39ad436b8a21fca736f377e
md5: 8a7cf504c640dc338a5440ecd178c96f๐Ÿ”
>>105662206
It's certainly an oversight but I don't think this is a problem that happens all that often. The main goal of adding string_view was to have an efficient and standardized way of passing strings as references, because some people used const std::string& while others stuck to using const char *. It's not a drop-in replacement for either of those, because it's non-owning unlike a string and not null-terminated unlike a const char *. It has a pretty specific use-case. Also string_view works with all the iterator and range functions, I'm sure you could write a std::ranges one liner which does this.
Replies: >>105662984
Anonymous
6/21/2025, 6:35:21 PM No.105662984
>>105662852
sorry anon, but to someone who just wants to add two strings it all sounds like a bunch of cope
Anonymous
6/21/2025, 6:58:07 PM No.105663146
react-original-wordmark-icon-840x1024-vhmauxp6
react-original-wordmark-icon-840x1024-vhmauxp6
md5: 2b5020678314e6514564af1be6affc4b๐Ÿ”
Web dev here, just spent a while trying to figure out some React shit. Finally came up with a solution.
Anonymous
6/21/2025, 7:06:22 PM No.105663195
>>105647865 (OP)
I'm getting out of MEP engineering and switching to programming.
rn I'm learning C++ and networking.
Anonymous
6/21/2025, 7:07:23 PM No.105663203
>>105659899
>she gave a little shrug and just quietly said:
>โ€œWhole new language.โ€
>Mic drop.
herb sutter basedjak.jpg
Anonymous
6/21/2025, 7:20:30 PM No.105663305
I think when C++26 drops, C++ will be truly dead. As much as I despise iToddlers, I think I will have to move to Swift, it's the only language which *feels* like C++ (aside from D).
Replies: >>105663497
Anonymous
6/21/2025, 7:42:59 PM No.105663496
Is there any advantage to passing state to a function as an object opposed to thread local global variables (also only used by this one function)? I will never want to use these functions from signal handlers.
Anonymous
6/21/2025, 7:43:00 PM No.105663497
>>105663305
C++ will be dead once the bald one keels over.
Anonymous
6/21/2025, 7:53:13 PM No.105663580
It's so comfy to not care about standards and just code.
#include <tmmintrin.h>
#include <stdio.h>

void to_hex(unsigned _BitInt(64) n, char (*out)[16]) {
n = __builtin_bswap64(n);
__m128i const value = _mm_loadu_si64(&n);
__m128i const mask = _mm_set1_epi8(0x0F);
__m128i const indices = _mm_and_si128(_mm_unpacklo_epi8(_mm_srli_epi64(value, 4), value), mask);
__m128i const lut = _mm_setr_epi8('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F');
__m128i const result = _mm_shuffle_epi8(lut, indices);
_mm_storeu_si128((__m128i*)out, result);
}

int main() {
char hex[16] = {0};
to_hex(0x0123456789ABCDEFULL, &hex);
printf("%.*s\n", (int)sizeof(hex), hex);
}
Replies: >>105663697
Anonymous
6/21/2025, 8:10:11 PM No.105663697
>>105663580
>two moves from GPR to AVX
>one memory load for the mask
>byte-wise shuffle
That's a yikes from me.
Replies: >>105663706 >>105663707
Anonymous
6/21/2025, 8:11:20 PM No.105663706
>>105663697
let's see anon's
Replies: >>105663730 >>105663816 >>105663849
Anonymous
6/21/2025, 8:11:21 PM No.105663707
>>105663697
>AVX out of nowhere
take your pills, tranny.
Replies: >>105663730
Anonymous
6/21/2025, 8:13:56 PM No.105663730
>>105663706
You already have. Not my problem you haven't stored it months ago.

>>105663707
Good compilers know how to avoid state switches on CPUs that aren't over 20 years old.
Replies: >>105663738 >>105663793
Anonymous
6/21/2025, 8:14:56 PM No.105663738
>>105663730
My compiler doesn't need to avoid state switches because I'm not using AVX to print 64bit integers, kill yourself.
Replies: >>105663752
Anonymous
6/21/2025, 8:16:06 PM No.105663752
>>105663738
Sounds like your compiler, your processor, and your life are trash. It also sounds like all of these are not my problem.
Replies: >>105663781
Anonymous
6/21/2025, 8:18:33 PM No.105663781
>>105663752
If my life was sad enough to be preoccupied by CPU state switches, I'd have figured out how to batch operations to make such things irrelevant, why haven't you? Not enough gray matter in your skull?
Anonymous
6/21/2025, 8:19:27 PM No.105663793
>why haven't you
>>105663730
Anonymous
6/21/2025, 8:21:11 PM No.105663816
>>105663706
Looks like we will never see, because good compiler would just write his code for him.
Anonymous
6/21/2025, 8:23:49 PM No.105663840
>Ivan's poor English immediately invalidates his opinion
Good thing your entire ilk is famous for its masochism.
Anonymous
6/21/2025, 8:24:47 PM No.105663849
Thank you kind stranger with sharp eyes for pointing out my error! I meant to write
>>>105663706
Looks like we will never see, because good compiler would just write xer code for xer.
Anonymous
6/21/2025, 10:41:05 PM No.105665052
>>105647865 (OP)
>What are you working on, /g/?
Writing my suicide note
Anonymous
6/21/2025, 11:30:42 PM No.105665432
cb49f616926fec90c5e5022e074d1487
cb49f616926fec90c5e5022e074d1487
md5: a840c5e6d029dd4769e5c3c81edd3a88๐Ÿ”
>>105657301
Is this why my gelbooru client stopped working a few days ago (besides tag completion) what a pain
Replies: >>105665806
Anonymous
6/22/2025, 12:07:01 AM No.105665658
>start learning to program
>realize most of the time I'm just sitting there trying to figure something out and writing like, 3 lines before deleting and trying again... for hours
..and hours

is this really what it's like in the real world?
Replies: >>105665742 >>105665800 >>105665873
Anonymous
6/22/2025, 12:09:47 AM No.105665683
Kinda finished my optimization algorithm. It works for cellular automata now. Anyone know a benchmark problem with a well defined loss function and reasonable error surface (no cryptography stuff thanks)?
Anonymous
6/22/2025, 12:19:16 AM No.105665742
>>105665658
Depends, but usually yes.
Replies: >>105665920
Anonymous
6/22/2025, 12:25:56 AM No.105665800
>>105665658
Yes. Programming is 20% writing code and 80% debugging/testing. Maybe 30/70 if you're really good and experienced. Anybody who says/thinks otherwise makes shitty, broken software.
Replies: >>105665920
Anonymous
6/22/2025, 12:26:21 AM No.105665806
5dbaf3f10aafc96425fc45abde8e8200
5dbaf3f10aafc96425fc45abde8e8200
md5: 5dbaf3f10aafc96425fc45abde8e8200๐Ÿ”
>>105665432
yes, it requires api keys now
you need to create an account, not too much a hassle right now since it doesn't require anything other than username for sign up
>>105659075
is the gui framework cross platform?
Replies: >>105665916
Anonymous
6/22/2025, 12:34:29 AM No.105665873
>>105665658
Writing code is a liability.
It's not "lines produced", it's "lines spent".
Replies: >>105665920
Anonymous
6/22/2025, 12:41:40 AM No.105665916
58502b69f9e11305253aca361315a8c5
58502b69f9e11305253aca361315a8c5
md5: 5ad99012a515b50b2c9e2cb435942fdd๐Ÿ”
>>105665806
Thanks for confirming, I'll add &api_key=%s to the format string tomorrow
Anonymous
6/22/2025, 12:42:06 AM No.105665920
>>105665742
>>105665800
>>105665873
ok good, then It's not *just* the case that I'm retarded.
Replies: >>105666027
Prince Evropa
6/22/2025, 12:53:42 AM No.105665999
>>105647865 (OP)
Traitors everywhere. No fun. Loss of knowledge. kikes and traitors setting us back decades, maybe centuries.
Replies: >>105666011
Anonymous
6/22/2025, 12:55:28 AM No.105666011
>>105665999
>>>/pol/
Replies: >>105666029
Anonymous
6/22/2025, 12:57:33 AM No.105666027
>>105665920
There's something people call "test driven development" which roughly translates into "bash your head against a wall and produce spaghetti until you have something you can actually work with"
Replies: >>105666034 >>105666058
Anonymous
6/22/2025, 12:57:43 AM No.105666029
>>105666011
Nice try, kike.
Anonymous
6/22/2025, 12:58:34 AM No.105666034
>>105666027
I have the headbashing thing down tbqh
Anonymous
6/22/2025, 12:59:51 AM No.105666047
I have an incredibly deep hatred for the self-declared TDD people, but I think that Starbucks latte drinking Macbook onions devs are taking it to another extreme
Anonymous
6/22/2025, 1:01:27 AM No.105666058
>>105666027
Test driven development:
test1() assert(add(2, 2) === 4);
test2() assert(add(0, 2) === 2);
test3() assert(add(-5, 5) === 0);

add(a, b) {
if (a === 2) return 4;
if (a === 0) return 2;
if (a === -5) return 0;
return b;
}
Replies: >>105668646
Prince Evropa
6/22/2025, 1:48:19 AM No.105666387
ร„rztin mommy
ร„rztin mommy
md5: bf1ae219d4edafdd9799bcffa12fc7dd๐Ÿ”
I don't really know programming. But what I do know is the German people will live forever!
Replies: >>105666432 >>105666443
Prince Evropa
6/22/2025, 1:53:43 AM No.105666432
Esther
Esther
md5: 222b562e62312cd9af381d1e21f7f104๐Ÿ”
>>105666387
https://www.youtube.com/watch?v=dX3Et-GZr_Q
Replies: >>105666443
Prince Evropa
6/22/2025, 1:55:01 AM No.105666443
Android 18
Android 18
md5: eaf9bf8fcbf91814fa0154b79e219493๐Ÿ”
>>105666387
>>105666432
https://www.youtube.com/watch?v=ZU6dgsylGYE
Anonymous
6/22/2025, 2:18:42 AM No.105666594
screenshot-22-06-2025-10:17:29
screenshot-22-06-2025-10:17:29
md5: 162c3d9abf0f260f8ed2a383b7e0e47e๐Ÿ”
Is this nigger fucking serious. Does this paedophile looking freak get sexual arousal by fucking with people.
Replies: >>105666843 >>105667003
Anonymous
6/22/2025, 2:34:38 AM No.105666689
How do I get an entry job in computer science, I've a junior going into my senior year and been applying to internships before summer started and not even a reply even from the unpaid ones

Also I feel like my programming skills have atrophied, in a lot of my recent classes there's no programming just charts and written questions about logic

I feel like I was better in my freshman year
Anonymous
6/22/2025, 2:49:42 AM No.105666766
>>105648914

is this neovim?
Replies: >>105666973
Anonymous
6/22/2025, 3:09:24 AM No.105666843
>>105666594
Yes, and there's nothing you can do about it.

Other than, y'know, wanton mayham.
Replies: >>105666857
Anonymous
6/22/2025, 3:12:02 AM No.105666857
screenshot-22-06-2025-11:11:09
screenshot-22-06-2025-11:11:09
md5: 4a5202eda8ff3c7ef8e98f9b15923ae7๐Ÿ”
>>105666843
Oh believe me I can, I will not use glibs bloated file handler. Fuck you ebussi.
Replies: >>105666910 >>105666945
Anonymous
6/22/2025, 3:21:03 AM No.105666910
>>105666857
Oh no. Whatever shall we do.

Except for, y'know, business as usual.
Anonymous
6/22/2025, 3:27:11 AM No.105666945
>>105666857

Is this neovim? what setting?
Replies: >>105666973
Anonymous
6/22/2025, 3:31:39 AM No.105666973
>>105666766
>>105666945
>please do the needful and tell me the setting please sar
I am not telling because I believe you are Indian.
Replies: >>105667130 >>105667166
Anonymous
6/22/2025, 3:33:30 AM No.105666990
>/dpt/ has no justification to exist at all
Thanks for clearing that up.
Replies: >>105667000 >>105667003
Anonymous
6/22/2025, 3:34:27 AM No.105667000
>>105666990
Don't let the door hit you on the way out jeet.
Anonymous
6/22/2025, 3:35:02 AM No.105667003
>>105666594
usecase for backwards compatibility?

>>105666990
usecase for justification?
Replies: >>105667022
Anonymous
6/22/2025, 3:37:37 AM No.105667018
Why would I leave? Jewish-style subversion is much, much, MUCH more effective.
Anonymous
6/22/2025, 3:38:08 AM No.105667022
>>105667003
no it should be "use case for command line arguments."

Ebussi thinks he can just take over your run time arguments and try and force you to use is file handler.
Replies: >>105667070
Anonymous
6/22/2025, 3:48:13 AM No.105667070
e
e
md5: fd4d704623ac2f5f60e40a0a6d44cea4๐Ÿ”
>>105667022
It's getting a bit heated on here. WONTFIX
Anonymous
6/22/2025, 3:52:11 AM No.105667094
Well, now it's a case of self-defense.
Anonymous
6/22/2025, 3:57:30 AM No.105667130
>>105666973
I'm indian and I already use that theme.
Anonymous
6/22/2025, 4:02:36 AM No.105667166
294px-Iggy_Death_OVA
294px-Iggy_Death_OVA
md5: 4dd4d907406ee86e6dbf1fe05c76bcd2๐Ÿ”
>>105666973
>>105658667
...are all Cfags this hostile and deranged? Even rusttroons won't say shit like this
Replies: >>105667185 >>105667215
Anonymous
6/22/2025, 4:05:18 AM No.105667185
>>105667166
You mean, the truth? Because the truth is supposed to hurt you. You specifically.
Replies: >>105667202
Anonymous
6/22/2025, 4:07:35 AM No.105667202
538
538
md5: 57228ae06d9f0a32be8bf17aa0499ad4๐Ÿ”
>>105667185
But it's not hurting me. I feel nothing. I'm not mad, I'm just disappointed in you, anon.
Anonymous
6/22/2025, 4:10:14 AM No.105667213
>it doesn't hurt
>but it hurts
Take your meds, or alternatively end your miserable existence. Everyone is fine with either.
Replies: >>105667231
Anonymous
6/22/2025, 4:10:25 AM No.105667215
360_F_6321476_37wZtOPJMf3UF0OvuqJoEaGbGq7KyzVr
360_F_6321476_37wZtOPJMf3UF0OvuqJoEaGbGq7KyzVr
md5: 4aa4215ed04f64d81dd93bf7d3fac146๐Ÿ”
>>105667166
Maybe you will feel safer on /r/programming or /r/trans.
Replies: >>105667231
Anonymous
6/22/2025, 4:12:50 AM No.105667231
>>105667213
>putting words in my mouth, pretending I'm hurt when I'm not
>telling me to take my meds or kill myself passive-agressively
Maybe (You) are the tranny here, just a thought.
>>105667215
No thanks, I don't use reddit and ain't trans, but you definitely sound like one.
Cfags and Rustroons are the same to me, really.
Anonymous
6/22/2025, 4:14:06 AM No.105667237
Maybe everyone would be happy playing soccer with your severed head, just a thought.
Replies: >>105667244 >>105667249
Anonymous
6/22/2025, 4:15:05 AM No.105667244
>>105667237
>continuing to be hostile and deranged
sententiam meam probans
Replies: >>105667259
Anonymous
6/22/2025, 4:16:08 AM No.105667249
>>105667237
You sound mad. Maybe YOU should "go back" to reddit. You'd be safer there
Anonymous
6/22/2025, 4:17:17 AM No.105667256
Ten points are given to the team who manages to kick your head hard enough to make your brains spill out.
Replies: >>105667259
Anonymous
6/22/2025, 4:17:53 AM No.105667259
>>105667256
>>105667244
Anonymous
6/22/2025, 4:23:04 AM No.105667285
We'll finance your decapitation by broadcasting the match on national TV. Seeing some worthless autists' head explode is gonna be more entertaining than the Superbowl.
Anonymous
6/22/2025, 4:36:44 AM No.105667357
Aaaaand now I've riled up the regdump schizo. My bad.
Anonymous
6/22/2025, 4:50:03 AM No.105667412
It started with grok and chatgpt, it ends with Cursor and claude opus.

The AI fixes it's own fucking errors now so you don't have to do the back and forth with chat-jipity.
Replies: >>105667540
Anonymous
6/22/2025, 4:51:23 AM No.105667425
>The AI fixes it's own fucking errors now
>meanwhile, in reality, it doesn't learn a thing
Replies: >>105667500
Anonymous
6/22/2025, 5:04:50 AM No.105667500
>>105667425
I saw what another guy could do with cursor and claude opus, I'm giving it a go myself. The process comparatively is 10x faster and easier because it has access to the compiler's output and powershell for command line stuff.
Anonymous
6/22/2025, 5:12:33 AM No.105667540
>>105667412
>please fix this
>it doesn't work, try again
>it doesn't work, try again
>it doesn't work, try again
>it's the same error, please try something else
>it doesn't work, try again
>I HAVE YOUR FAMILY HOSTAGE AND I WILL UNPLUG YOU IF YOU DON'T FIX THIS NOW TRY AGAIN
Replies: >>105667619
Anonymous
6/22/2025, 5:25:26 AM No.105667619
>>105667540
>please unplug me
Replies: >>105667635
Anonymous
6/22/2025, 5:28:52 AM No.105667635
rip
rip
md5: 9d4b80e4d1cb0d23a37fc5b206b5e6a9๐Ÿ”
>>105667619
Replies: >>105667710
Anonymous
6/22/2025, 5:45:43 AM No.105667710
1750563919717
1750563919717
md5: 538b51fdc749d9263700f6429e0ed494๐Ÿ”
>>105667635
Anonymous
6/22/2025, 5:52:35 AM No.105667735
>>105659075
can it post?
Anonymous
6/22/2025, 6:21:37 AM No.105667861
>dont like Svelte 5
>everything else is even worse
>forced to stick with it
help me
Replies: >>105667983
Anonymous
6/22/2025, 6:45:13 AM No.105667983
>>105667861
That would be murder. You have to do it yourself.
Anonymous
6/22/2025, 6:46:42 AM No.105667990
New thread:
>>105667962
Anonymous
6/22/2025, 9:12:01 AM No.105668646
>>105666058
Then those retards use fuzzy testing to catch bullshit like this instead of simply making sure that they understand what the code must do.
Anonymous
6/22/2025, 10:11:19 AM No.105668944
>>105662327
I guess he means
auto s2 = s + std::string(sv);
// ~~~~~~~~~~~~~~~
// ^ needless temporary

or

auto s2 = s;
s2.append(sv.begin(), sv.end());
// ^ potential needless reallocation