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

Anonymous
6/22/2025, 6:42:58 AM No.105667962
1750469698313186
1750469698313186
md5: c755159b3f7ffe6a84c513f4e6375021🔍
Old thread:
>>105647865

What are you working on, /g/?
Replies: >>105668097 >>105668114 >>105668267 >>105678952 >>105686023 >>105686725 >>105698524
Anonymous
6/22/2025, 6:44:17 AM No.105667972
cute AI slop miku
Replies: >>105668008
Anonymous
6/22/2025, 6:49:41 AM No.105668008
>>105667972
Your slop detector is way off.
Anonymous
6/22/2025, 6:58:59 AM No.105668066
final_verdict_2
final_verdict_2
md5: 5a68df76478f9f047bf6745e2650e858🔍
Threadly reminder.
Replies: >>105668077 >>105669024
Anonymous
6/22/2025, 7:01:20 AM No.105668077
>>105668066
Threadly reminder to kill yourself.
Anonymous
6/22/2025, 7:04:08 AM No.105668097
>>105667962 (OP)
This micker said trans rights.
Anonymous
6/22/2025, 7:07:54 AM No.105668114
>>105667962 (OP)
hello miku
Anonymous
6/22/2025, 7:14:07 AM No.105668144
Threadly reminder that incompetent autistmos never qualified for the status of human being, and as such killing them doesn't count for murder. Not even manslaughter.
Anonymous
6/22/2025, 7:15:39 AM No.105668156
f0e51f2d632137efade573a22ed5ae58
f0e51f2d632137efade573a22ed5ae58
md5: b6946593c255e8ce96cab6362f697098🔍
Fucked up a git command and reverted 2 days of work, was about rage quit but realised I still had the entire project open in nvim and just had to hit undo in each buffer. Nvim automatically updated the reverted files but it still had the days history.
Replies: >>105668256 >>105684482
Anonymous
6/22/2025, 7:40:29 AM No.105668256
>>105668156
https://github.blog/open-source/git/how-to-undo-almost-anything-with-git/
Anonymous
6/22/2025, 7:43:07 AM No.105668267
>>105667962 (OP)
what happened to the web dev general?
Replies: >>105668282 >>105670678 >>105680057
Anonymous
6/22/2025, 7:46:56 AM No.105668282
>>105668267
nobody posts in it
they are all writing python now
Replies: >>105668289 >>105670678
Anonymous
6/22/2025, 7:49:23 AM No.105668289
>>105668282
Let them. It's less competent competition.
Replies: >>105670678
Anonymous
6/22/2025, 9:21:27 AM No.105668702
Screenshot 2025-06-22 at 10-21-00 Paper Parsing Gigabytes of JSON per Second – Branch Free
To think that registrydumper could've been famous for over a decade if he wasn't mentally ill and wrote something of value.
Anonymous
6/22/2025, 9:39:28 AM No.105668792
To think that incompetent autismos still believe normal people wouldn't vote for them to be summarily doxxed and tortured to death in front of a cheering crowd.
Replies: >>105668817
Anonymous
6/22/2025, 9:45:49 AM No.105668817
>>105668792
Make sure to scribble that into your notebook since it will never be written anywhere else.
Anonymous
6/22/2025, 9:48:46 AM No.105668830
They will play your and my posts back into your ears at 150 dBs during your torture session, to make sure there is not a single part of your body that is pain-free. People will sing and dance, knowing that a certified subhuman receives his just desserts.
Anonymous
6/22/2025, 10:03:37 AM No.105668913
>150 dBs
I'm glad, any lower and I might be able to hear it.
Anonymous
6/22/2025, 10:09:40 AM No.105668937
We don't require your consent, but don't worry - we'll feel good about it, too.
Anonymous
6/22/2025, 10:17:47 AM No.105668983
Is it a bad idea to stringify whole shit from database and pass it as a data parameter in the script tag of the html?
Replies: >>105669006
Anonymous
6/22/2025, 10:20:37 AM No.105669006
>>105668983
No.
Replies: >>105669129
Anonymous
6/22/2025, 10:23:10 AM No.105669024
c
c
md5: 2660b029ca2a8fed4ad3ee5f7ec13210🔍
>>105668066
>safety
>explicit
Replies: >>105669053
Anonymous
6/22/2025, 10:26:54 AM No.105669053
>>105669024
It would be safer if that guy wasn't touching the ladder.
Replies: >>105669087
Anonymous
6/22/2025, 10:33:19 AM No.105669087
>>105669053
>only way it goes badly is if it slides back far enough to tip below horizontal, and it would need enough force to break the banister
>helper stands to the side instead of behind
it's probably fine either way tbqh
Replies: >>105669099 >>105675467
Anonymous
6/22/2025, 10:35:01 AM No.105669099
>>105669087
And it can't slide back because of railing, if first step was pushing on the railing, it would be perfectly safe.
Anonymous
6/22/2025, 10:39:56 AM No.105669129
>>105669006
Why not?
Replies: >>105669150
Anonymous
6/22/2025, 10:42:57 AM No.105669150
>>105669129
If it works it's not dumb.
Replies: >>105669159
Anonymous
6/22/2025, 10:44:47 AM No.105669159
>>105669150
But it could be unsafe or something, like there's a fucked up exploit lying in wait. I'm very new to this so I like to be cautious.
Replies: >>105669170 >>105669344
Anonymous
6/22/2025, 10:46:05 AM No.105669170
>>105669159
It's just text, don't worry.
Anonymous
6/22/2025, 11:09:31 AM No.105669344
>>105669159
Database to script is harmless (what's an exploiter gonna do, replace your real data with his fake one and run a local script with that?)

You should only worry about sending stuff back to the database; also you should have some server-side input validation that is independent from the client-side validation in your JavaScript
Replies: >>105669408
Anonymous
6/22/2025, 11:21:05 AM No.105669408
Screenshot 2025-06-22 at 12-20-14 Why does hosting a magnet link make a torrent index 'illegal' After all you're... Hacker News
>>105669344
>accepting user input in dystopian shithole called planet Earth
ngmi
Replies: >>105670189
Anonymous
6/22/2025, 12:25:56 PM No.105669729
Shit overflow never fails to deliver. https://stackoverflow.com/questions/3220163/how-to-find-leap-year-programmatically-in-c
Replies: >>105670330
Anonymous
6/22/2025, 1:51:19 PM No.105670189
>>105669408
>not compiling and executing user input directly
ngmi
Replies: >>105670219
Anonymous
6/22/2025, 1:58:20 PM No.105670219
>>105670189
the user's a trustworthy guy, i know him
Replies: >>105670277 >>105671063
Anonymous
6/22/2025, 2:09:48 PM No.105670277
>>105670219
>Programming for yourself:
>input is sanitary
>edge cases don't real
>segfaults are an acceptable error messages
>Work On My Machine

>programming for other people
>needs to be usable by an illiterate haitian running a 1997 version of beos and also he's trying to rob you
Anonymous
6/22/2025, 2:18:06 PM No.105670330
>>105669729
Remember that AI slop is trained on this stuff specfically.
Replies: >>105670406
Anonymous
6/22/2025, 2:32:51 PM No.105670406
Screenshot 2025-06-22 at 15-32-42 DeepSeek - Into the Unknown
>>105670330
I do.
Anonymous
6/22/2025, 3:06:42 PM No.105670600
Screenshot 2025-06-22 at 16-06-04 How to find leap year programmatically in C - Stack Overflow
What the fuck is this?
Why would adding 16000 change anything here???? That's enough for me today.
Replies: >>105686074
Anonymous
6/22/2025, 3:18:10 PM No.105670678
>>105668267
>>105668282
>>105668289
Web dev here. Everyone seems to be too lazy to post a new thread. Including myself.
>python
Disgusting. More of a TypeScript and Go man myself.
Anonymous
6/22/2025, 4:08:32 PM No.105671063
1750601126
1750601126
md5: 23e4c9ed0f91ac80dbc82d0a57dd78ee🔍
>>105670219
>the user's a trustworthy guy, i know him
Anonymous
6/22/2025, 4:18:16 PM No.105671133
Is /wdg/ dead? Is this the place to ask web dev questions now?
Replies: >>105671481
Anonymous
6/22/2025, 5:03:52 PM No.105671481
>>105671133
yes
Replies: >>105671513
Anonymous
6/22/2025, 5:08:11 PM No.105671513
>>105671481
Oh well, I may as well ask here then.

I would like to deploy a website. It can run on a docker container image.
Should I rent out a VPS on Linode or something equivalent that offers flat pricing, use the AWS/Azure equivalents that last I checked do not, or use a managed container service like Amazon Elastic Container Service?

I do not really expect much traffic and it's not something that needs scaling. I'm mainly curious about the cost.
Replies: >>105678358
Anonymous
6/22/2025, 5:38:23 PM No.105671753
1749954911437226
1749954911437226
md5: b32cd2dbb9eeabadbbb70aea41acc142🔍
made a tampermoneky script that favorites a danbooru post by clicking on it rather than having to go to the post in a new tab and then click favorite.
Replies: >>105672236
Anonymous
6/22/2025, 5:54:42 PM No.105671900
If C++ has million number of fans i am one of them . if C++ has ten fans i am one of them. if C++ have only one fan and that is me . if C++ has no fans, that means i am no more on the earth . if world against the C++, i am against the world.
Replies: >>105671917 >>105671938
Anonymous
6/22/2025, 5:56:20 PM No.105671916
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
I'm trying to learn about oracle, sql and powershell and then I'll try to learn about azure but its all a pain theres not a lot of online resources, is that a good plan
Replies: >>105671960
Anonymous
6/22/2025, 5:56:40 PM No.105671917
>>105671900
Stay away from sepples, kids
Anonymous
6/22/2025, 5:59:26 PM No.105671938
>>105671900
Bjarne, you are drunk. Go home, we hate you.
Anonymous
6/22/2025, 6:01:43 PM No.105671960
>>105671916
have you even finished reading SCIP?
Replies: >>105672107
Anonymous
6/22/2025, 6:20:30 PM No.105672107
>>105671960
I've never heard of that term before
Replies: >>105672186
Anonymous
6/22/2025, 6:28:35 PM No.105672185
Fuck yaml faggots and their retarded garbage
Replies: >>105672436 >>105672459
Anonymous
6/22/2025, 6:28:38 PM No.105672186
1750609622
1750609622
md5: 10d6bccd2dc403150eeb8d185dff42be🔍
>>105672107
Structure of Computer and Interpretation Programs is a sequel to the widely acclaimed SICP
Replies: >>105672648
Anonymous
6/22/2025, 6:34:22 PM No.105672236
>>105671753
I need to do this but for downloading images from X with the artist's @ in the filename.
Anonymous
6/22/2025, 6:56:47 PM No.105672436
>>105672185
>2 spaces off
>suddenly you're in a different section
Replies: >>105672459
Anonymous
6/22/2025, 7:00:07 PM No.105672459
>>105672185
>>105672436
ini won, TOML is getting popularity and it's just ini + bloat
Anonymous
6/22/2025, 7:08:16 PM No.105672529
hockey
hockey
md5: 9e1664d2b90b1f41674a6ccfb3d8f176🔍
while (fscanf(file, "%s = %s", &k, &v))
set_option(k, v);

you dont need more
Replies: >>105672559 >>105672714
Anonymous
6/22/2025, 7:11:44 PM No.105672559
>>105672529
I need less.
Replies: >>105672621
Anonymous
6/22/2025, 7:18:37 PM No.105672621
>>105672559
if you mean environment variables and switches you are truly a master of the blade
Replies: >>105672983
Anonymous
6/22/2025, 7:22:13 PM No.105672648
>>105672186
I don't think I was ever assigned that
but to be honest I never used my text books, the teachers always just post the information thats going to be on the exam as a powerpoint
Replies: >>105672756
Anonymous
6/22/2025, 7:30:08 PM No.105672714
1740150877418520
1740150877418520
md5: 244bb3c3fcb1cb0bf2ca51a81e48ff86🔍
>>105672529
It's all hardcoded.
Anonymous
6/22/2025, 7:34:34 PM No.105672756
1750570467810057
1750570467810057
md5: 600e78e25f3f7b5d80726d75da07a9a8🔍
>>105672648
>guy assigns you his own book
Anonymous
6/22/2025, 7:54:53 PM No.105672983
>>105672621
I mean config.h
Replies: >>105673061
Anonymous
6/22/2025, 8:04:33 PM No.105673061
image
image
md5: 957a5614fb7fb3f8d286597b654a3b45🔍
>>105672983
but daaaaadddddd i don't want to recompile just to change font size
Replies: >>105673079
Anonymous
6/22/2025, 8:06:15 PM No.105673079
>>105673061
Stop changing fonts.
Replies: >>105673152
Anonymous
6/22/2025, 8:13:12 PM No.105673152
brat
brat
md5: d6fb981006586cfed75179bdb3789ecf🔍
>>105673079
i need to change font size so badly i hate you
Replies: >>105673193 >>105673203 >>105673254 >>105673358
Anonymous
6/22/2025, 8:16:59 PM No.105673193
>>105673152
just like make it watch a file with inotify and reload fonts if it changes or use ipc to set the font.
It really is that simple.
Anonymous
6/22/2025, 8:17:55 PM No.105673203
>>105673152
You can patch it to make font size adjustable with keybinds, st font can be resized without patches even.
Anonymous
6/22/2025, 8:23:50 PM No.105673254
>>105673152
change your monitor resolution if you want a different size
Anonymous
6/22/2025, 8:33:57 PM No.105673358
m
m
md5: a9b70fccb666e211b3cf4785ee27cd80🔍
>>105673152
usecase?
use a magnifying glass
Anonymous
6/22/2025, 9:31:17 PM No.105673870
I never knew how much I hate unix until I had to iterate over char*[] envp just to grab a pointer to the auxilliary vector before I could proceed to parse the ELF just so I could access the pointer to __vdso_time.
Replies: >>105674450
Anonymous
6/22/2025, 10:31:53 PM No.105674450
>>105673870
>Wahh!
>Why won't this portable API provide a way to do something super unportable!
>WWWAAAAAHHHHHH!!!!
Replies: >>105674810
Anonymous
6/22/2025, 10:36:12 PM No.105674488
1748191052079631
1748191052079631
md5: dd2711e632aab9fec54f3f41eaa3585e🔍
what's a good project idea to learn docker?
Replies: >>105674767
Anonymous
6/22/2025, 11:11:28 PM No.105674767
1730207492060740
1730207492060740
md5: a7b1f920b46ba1b5dbdb4f5aff190cbb🔍
>>105674488
microservices
Anonymous
6/22/2025, 11:15:34 PM No.105674810
>>105674450
The irony in your retardation is palpable.
You know that the envp is found by mere rsp+argc*8+8, right? I guess I'm lucky that I don't also have to scan through argv just to get to the envp, because unixfaggot retardation has no bounds.
Replies: >>105674988
Anonymous
6/22/2025, 11:30:12 PM No.105674971
Convince me to drop Rust and go backt o C or C++
Replies: >>105675020 >>105675023 >>105675274
Anonymous
6/22/2025, 11:32:23 PM No.105674988
>>105674810
>WWWWWWWWWAAAAAAAAAAAHHHHHHHHHHH!!!
Damn, the schizo troon is in meltdown, yet again.
Replies: >>105675043
Anonymous
6/22/2025, 11:35:14 PM No.105675011
>Spend multiple days trying to figure out why my shit isn't working
>Turns out its been working all this time but it runs so fucking fast only specialised benchmarking tools were able to catch it
Fucking Christ I want to die, I thought microcontrollers are supposed to be slow bros.
Anonymous
6/22/2025, 11:36:11 PM No.105675020
>>105674971
>convince me to stop being retarded
We aren't your parents.
Anonymous
6/22/2025, 11:36:33 PM No.105675023
401e0e494bc2d30dfd7603d2241326b3
401e0e494bc2d30dfd7603d2241326b3
md5: b9ef00fdd8421ebf59342f0567af524c🔍
>>105674971
Why drop Rust when you can drop your balls instead?
Replies: >>105675262
Anonymous
6/22/2025, 11:38:46 PM No.105675043
>>105674988
Stop writing in 3rd person, it's uncanny.
Anonymous
6/23/2025, 12:02:29 AM No.105675262
>>105675023
i dont get it
Anonymous
6/23/2025, 12:03:36 AM No.105675274
>>105674971
meson and cmake exists
Replies: >>105675285 >>105675287
Anonymous
6/23/2025, 12:04:37 AM No.105675285
>>105675274
>cmake
meant to say xmake. so much easier
Anonymous
6/23/2025, 12:04:38 AM No.105675287
>>105675274
Why does Cargo still feel infinitely better?
Replies: >>105675355 >>105675449
Anonymous
6/23/2025, 12:12:38 AM No.105675355
>>105675287
Because it is infinitely better.
Anonymous
6/23/2025, 12:16:49 AM No.105675388
screenshot-23-06-2025-07:53:33
screenshot-23-06-2025-07:53:33
md5: e05ce9f7975ddc11a5d1c6fa6acae855🔍
Thoughts?
Replies: >>105675439 >>105675450 >>105677483 >>105686122 >>105688289
Anonymous
6/23/2025, 12:22:32 AM No.105675439
>>105675388
gay and retarded just use malloc like everyone else
Replies: >>105675460
Anonymous
6/23/2025, 12:24:06 AM No.105675449
>>105675287
because you aren't a drive bloating with garbage
Anonymous
6/23/2025, 12:24:07 AM No.105675450
>>105675388
I've done this before, but without a macro hiding it.
As long as you know the inputs can't be stupidly large, but you could even put a truncation into %s if it's a concern.
Anonymous
6/23/2025, 12:25:03 AM No.105675460
>>105675439
The whole point is to avoid the slow heap.
Replies: >>105675474 >>105675475 >>105675517
Anonymous
6/23/2025, 12:25:58 AM No.105675467
>>105669087
>Very dangerous usage
>Current setup works every time because of underlying structure
>It wont change anytime soon
>Years later a reform happens and the gap widens / the position of the pillars change
>Ladder falls
Computer moment.
But no the solution is not to use tranny reddit language, it's just to code properly
Anonymous
6/23/2025, 12:27:38 AM No.105675474
>>105675460
Heap isn't slow, schizo.
Replies: >>105675489
Anonymous
6/23/2025, 12:27:39 AM No.105675475
>>105675460
>slow
you're using printf
Replies: >>105675478
Anonymous
6/23/2025, 12:28:21 AM No.105675478
>>105675475
That's just for debugging.
Replies: >>105675517
Anonymous
6/23/2025, 12:29:50 AM No.105675489
>>105675474
Memory allocation on the heap is slow as fuck.
Replies: >>105675494 >>105675640 >>105675649
Anonymous
6/23/2025, 12:30:38 AM No.105675494
>>105675489
Fast on my machine.
Anonymous
6/23/2025, 12:33:59 AM No.105675512
>cniles still stuck with debugging through printing
don't you have any IDEs with a debugger?
Replies: >>105675554
Anonymous
6/23/2025, 12:34:24 AM No.105675517
>>105675460
>>105675478
are you schizophrenic? is this one of those "i don't know why I did that and my brain has synthesised a false reason"?
Replies: >>105675554
Anonymous
6/23/2025, 12:40:08 AM No.105675554
>>105675512
>he uses an IDE
fucking jeet, I use nvim and gdb for real debugging.

>>105675517
How the fuck do you not understand that the stack is faster than the heap by multiple magnitudes?
Replies: >>105675558
Anonymous
6/23/2025, 12:41:04 AM No.105675558
>>105675554
>nvim
hello, reddit
Replies: >>105675569
Anonymous
6/23/2025, 12:42:38 AM No.105675569
>>105675558
It has better syntax highlighting than vim.
Replies: >>105675703
Anonymous
6/23/2025, 12:53:50 AM No.105675640
>>105675489
benchmark it, this is one of the things that the malloc schizo doesn't do, so if you did it, you would already be miles ahead of him.
the problem is that you could just google it (Im sure mimalloc has benchmarks), and it turns out that the first malloc call is slow because it uses mmap / VirtualAlloc (in the scope of microseconds), but afterwards it runs at a few hundred nanoseconds/cycles (depending on the size of the allocation).
This thread is also lazy as hell, nobody here does any fact checking, I think I have posted here like 10 times that mingw + clang (msys2) has address sanitizer, but it doesn't, I had to correct myself by testing it.
also won't compile on msvc due to VLA's.
>msvc is shit
it has address sanitizer which is all that I need.
also I don't want to go back to linux because I use graphics libraries and they always have false positive leaks from address sanitizer, and there is no compiler flag to disable leak checks on linux, msvc just doesn't have leak checking which is great!
Replies: >>105675712
Anonymous
6/23/2025, 12:55:08 AM No.105675649
>>105675489
No, it's not. System calls are expensive.
And if you really cared about performance, you wouldn't be using VLAs everywhere.
Anonymous
6/23/2025, 1:02:07 AM No.105675703
>>105675569
No it doesn't, redditor.
Anonymous
6/23/2025, 1:03:09 AM No.105675712
>>105675640
malloc schizo benchmarks on godbolt's servers and doesn't even bother to account for jitter.
He also was very quiet ever since the tzcnt incident.
Anonymous
6/23/2025, 1:12:56 AM No.105675770
screenshot-23-06-2025-09:07:24
screenshot-23-06-2025-09:07:24
md5: d8c40f4e1c98ad5dec1d2a579fefd1db🔍
WHAT THE FUCK, I AM A SCHIZO,
Why the fuck does g_data_input_stream_read_line, g_strsplit, g_string_printf and g_compute_checksum_for_string grind my program to a halt then?
Replies: >>105675864
Anonymous
6/23/2025, 1:15:34 AM No.105675788
Watching the schizos argue about memory all day makes me wonder if this how retards feel when they make bloated 3GB electron todo apps. The yin and yang of shit devs.
Anonymous
6/23/2025, 1:26:43 AM No.105675864
>>105675770
I expect half of the time is spent formatting (glibc locale stuff), the other half of the time is spent with terminal buffering (I don't know if it's the implicit flush from the newline or if it's from the fact you are putting so text into stdout that write() actually blocks because the reader AKA the terminal isn't reading fast enough, or something).
You could pipe stdout into a file or use fprintf if you want to test if it's the terminal's fault.
Also the reason why the speed is identical is because of optimizations (the malloc is never called).
Please get a PHD in writing benchmarks before posting here, start with reading assembly.
Replies: >>105675939 >>105675939 >>105675941
Anonymous
6/23/2025, 1:39:54 AM No.105675939
screenshot-23-06-2025-09:38:05
screenshot-23-06-2025-09:38:05
md5: e1e84fc493f910c6613124367dad6332🔍
>>105675864
>>105675864
I have so many glowies in my head right now,

mfw you try to optimise away dynamic memory allocation and it actually performs worse.
Replies: >>105675967
Anonymous
6/23/2025, 1:40:00 AM No.105675941
>>105675864
*actually nevermind, malloc never gets optimized out, only C++'s new and delete do.
you always learn something new every day...
Replies: >>105676012
Anonymous
6/23/2025, 1:43:24 AM No.105675967
>>105675939
benchmarking without optimizations is not a useful benchmark, but optimizations tend to optimize away everything, so you need to use tricks to avoid optimization (don't use hardcoded numbers, parse args through argc/argv) or just read the assembly (godbolt) so that you understand what the compiler is actually doing.
Replies: >>105676178 >>105678288
Anonymous
6/23/2025, 1:43:37 AM No.105675968
1727243556408197
1727243556408197
md5: 8341b7fe2c20a349223c1acf06815a4e🔍
will I git gud if I grind leetcode?
Replies: >>105676015 >>105676066 >>105676079
Anonymous
6/23/2025, 1:46:22 AM No.105675984
I can do any leetcode easy and most leet code medium, and I have done one leetcode hard. But I have no idea how to make anything or do anything that I thing a company would be intrested in. And online all they say is they want you to know azure or some AI shit
Replies: >>105676066
Anonymous
6/23/2025, 1:50:01 AM No.105676012
>>105675941
nevermind, I scrolled down accidentally and didn't read the assembly :)
Anonymous
6/23/2025, 1:50:14 AM No.105676015
>>105675968
Maybe, but unless you stick to a curated subset of problems ("neetcode" or whatever) it will just make you hate programming.
Jeets love it because they have no qualms about cheating, they use it to show off their "solved" problem count to recruiters.
Replies: >>105676066
Anonymous
6/23/2025, 1:58:44 AM No.105676066
>>105675968
>>105675984
leetcode is memorization. It is much better to learn and memorize the algorithms and when to use them instead of trying to divine the answer every single time. I did for almost a year and it helps with day to day code, the brain gets smarter and faster

>>105676015
True, I used a curated list where I would do the same theme many times in a row to burn the patterns in my mind. Stopped when things got too complex because I simply don't work nor need complex algorithms. Also true about jeets.

So do it for you, but unless FAANG memes are true it won't help with finding a job.
Anonymous
6/23/2025, 1:59:55 AM No.105676079
>>105675968
It teaches you to solve small problems but it can't teach you how to put everything together to solve real life problems.
Anonymous
6/23/2025, 2:25:30 AM No.105676178
>>105675967
I think it is most certainty because 2 calls to snprintf is more expensive than 1 call to asprintf.
Replies: >>105680053
Anonymous
6/23/2025, 6:02:57 AM No.105677483
>>105675388
>not `if` safe
poison. it's actually more flexible if you take an already declared char*, and that lets you pack it in a do while (0)
Anonymous
6/23/2025, 8:06:53 AM No.105678035
1738608273171861
1738608273171861
md5: 23bc17f8f5b35744b0125ab0fd378a6f🔍
just made an LLM workflow where i prompt it with
>enemy team
>my characters potential builds
and ask it to recommend me the build to best deal with them, as well as sorting the enemy team into scored targeting info
the LLM responds in JSON then i have an html page to render it nicely
might see it as an exploit and it probably is but im using it to learn better as a new player
Anonymous
6/23/2025, 8:58:47 AM No.105678288
>>105675967
Or you can just tell your compiler not to optimize code.
#define false_dependency(expr) (asm volatile ("" : "+m" (expr) :: "memory"))

Usually works on my machine.
Anonymous
6/23/2025, 9:13:05 AM No.105678358
>>105671513
S3 + Cloudfront or lambda
Anonymous
6/23/2025, 11:06:49 AM No.105678922
Are you guys smart enough for algotrading
Replies: >>105678940
Anonymous
6/23/2025, 11:10:46 AM No.105678940
>>105678922
All relevant trades are done manually, you'd know this if you were intelligent.
Replies: >>105679143 >>105684351
Anonymous
6/23/2025, 11:12:48 AM No.105678952
1568831519149
1568831519149
md5: 54be9a34d76bbddeda598f1d200cd861🔍
>>105667962 (OP)
can anyone explain to me the concept of rendering multiple objects using vulkan? do i need different uniform buffers for each object? currently i can load a bunch of models but they all share the same position and rotation etc they move as one object.

i understand push constants are a thing but i would like to just understand what exactly differentiates one object from the other in terms of when you apply a transform how do you make that transform apply to one object but not the others? i can't seem to figure this out or get the right mental model about it.
Replies: >>105679058
Anonymous
6/23/2025, 11:24:58 AM No.105679007
I'm coooding in ASPNET, and tried to make a view component that i could use as a wrapper for html content. But this is not possible? Wtf?
Anonymous
6/23/2025, 11:33:35 AM No.105679058
>>105678952
>do i need different uniform buffers for each object?
You have a LOT of flexibility over how it's done but yes, you typically would. Remember, you can have many uniform buffers bound at once, so you can have one for all of your global stuff, and then all of your per-object shit in another.

There is another specific use-case that relates to your question, which is instancing, i.e. drawing the same mesh/model multiple times in a single draw call.
In that case, you then have per-instance attributes (as opposed to the typical per-vertex attributes) which could then contain your stuff like transforms.
But you're probably not doing that.
Anonymous
6/23/2025, 11:47:56 AM No.105679143
>>105678940
Post portfolio
Anonymous
6/23/2025, 2:38:13 PM No.105680053
>>105676178
This. Format printing is expensive because the code has to go through every single byte, check for format specifiers (very branchy), and keep track of its internal state.
Replies: >>105680177 >>105680349
Anonymous
6/23/2025, 2:39:42 PM No.105680057
poker_face
poker_face
md5: 80ffd404be206617208aac975f725b0c🔍
>>105668267
Was just looking for it.

My company had its biggest project cancelled and I lost my job.
I used to do fullstack PHP+MySQL+jQuery stuff, mostly slop code supporting and expanding an ancient huge system. Now I'm learning Laravel, Blade, Doctrine, trying to be more object oriented.

Has the AI mindvirus hit webdev company managers yet? Should I learn enough about that to be able to lie about it in interviews?
Anonymous
6/23/2025, 2:57:08 PM No.105680177
>>105680053
Every non-toy language does this at compile time.
Replies: >>105680400
Anonymous
6/23/2025, 3:15:18 PM No.105680298
reasons why printf is king
low code size, fast build, typechecks with i18n format (non-shit compiler only)
Replies: >>105680334
Anonymous
6/23/2025, 3:20:25 PM No.105680334
>>105680298
Delusional.
Anonymous
6/23/2025, 3:22:48 PM No.105680349
>>105680053
they're both format printing m8. the difference is snprintfs are pretty fucking lazy internally and snprintf(0,0, ...) winds up doing things like
buf = asprintf(...);
result = strlen(buf);
free(buf);
return result;


https://github.com/gcc-mirror/gcc/blob/master/libiberty/vsnprintf.c
Replies: >>105680370
Anonymous
6/23/2025, 3:26:03 PM No.105680370
>>105680349
Why would it do something different?
Replies: >>105680468
Anonymous
6/23/2025, 3:31:30 PM No.105680400
>>105680177
So any non-toy language is unusable for code in production, got it.
Replies: >>105680431
Anonymous
6/23/2025, 3:35:05 PM No.105680431
>>105680400
Format strings can trivially be parsed at compile time, turn on your brain, schizo.
Replies: >>105680555 >>105681390
Anonymous
6/23/2025, 3:38:53 PM No.105680468
>>105680370
perhaps you would like to skip the copy operations and the conversions on fixed-width fields.
Replies: >>105680469
Anonymous
6/23/2025, 3:39:15 PM No.105680469
>>105680468
Feel free to do it yourself then.
Replies: >>105680480
Anonymous
6/23/2025, 3:40:51 PM No.105680480
>>105680469
another terminal case of cnility.
Replies: >>105680490
Anonymous
6/23/2025, 3:41:55 PM No.105680490
>>105680480
>noooo, why is "import generic solution" slower than my specific problem?
Anonymous
6/23/2025, 3:49:36 PM No.105680555
>>105680431
Sure, if you turn on the optimizer. Which, if your non-toy language does so automatically, makes it unusable for anything that has to be deployed offline, and you can go and wipe your ass with that garbage.
Replies: >>105680572
Anonymous
6/23/2025, 3:52:01 PM No.105680572
>>105680555
Keep your nocoder delusions to yourself.
Replies: >>105680576
Anonymous
6/23/2025, 3:52:57 PM No.105680576
>>105680572
If you hang yourself on stream, sure. I'd pay money for that footage.
Replies: >>105680590
Anonymous
6/23/2025, 3:54:59 PM No.105680590
>>105680576
You will never be a woman.
Replies: >>105680609
Anonymous
6/23/2025, 3:57:43 PM No.105680609
1730823377454308
1730823377454308
md5: 1fa195af9c80bdea54a7cdcededc379b🔍
>>105680590
Noted, incel.
Replies: >>105680621
Anonymous
6/23/2025, 3:58:58 PM No.105680621
>>105680609
You must live the rest of your days entirely as a man and you will only grow more masculine with every passing year. There is no way out.
Replies: >>105680637
Anonymous
6/23/2025, 4:00:28 PM No.105680637
1728065404379153
1728065404379153
md5: 55d97c73f0e68d8cafbd97a88642bf3e🔍
>>105680621
OK, weirdo.
Anonymous
6/23/2025, 4:16:58 PM No.105680740
1724022593396794
1724022593396794
md5: 201069f4f7fb5a871f8b82b7f499ac58🔍
Finally figured out the GitLab CI/CD stuff to get my site up
Anonymous
6/23/2025, 5:44:10 PM No.105681390
1750604515110662
1750604515110662
md5: 89a21df19c6d0f66cc29c08b94283b51🔍
>>105680431
>Format strings can trivially be parsed at compile time, turn on your brain, schizo.
tmp $ cat a.c
#include <stdio.h>

int main()
{
printf("test %d\n", 1);
return 0;
}
tmp $ gcc -s -O3 a.c
tmp $ strings a.out | grep test
test %d
Additionally the string address is just loaded normally in r0, relative to pc
<.text>:
ldr r0, [pc, #20]
mov r1, #1
push {r4, lr}
add r0, pc, r0
bl 3e4 <printf@plt>
No compile-time format string parsing appears to have taken place on -O3
Replies: >>105681474
Anonymous
6/23/2025, 5:55:34 PM No.105681474
>>105681390
>C
This is commonly done by the programmer.
Replies: >>105681550
Anonymous
6/23/2025, 6:06:06 PM No.105681550
>>105681474
Further up the reply chain the context is C at compile time, is there an example of this optimization elsewhere?
Replies: >>105681578
Anonymous
6/23/2025, 6:09:33 PM No.105681578
>>105681550
Yes, check languages that weren't obsoleted yet, such as Rust.
Replies: >>105681774
Anonymous
6/23/2025, 6:16:22 PM No.105681627
And this is why we need voted doxxing.
Anonymous
6/23/2025, 6:32:10 PM No.105681774
17506962613721
17506962613721
md5: 3182439099783bd89a024f9cf6c9198e🔍
>>105681578
pub fn f() {
print!("test {}\n", 1);
}
Does indeed evaluate the format string at compile time:
example::f::h7734f15653ec49e3:
sub rsp, 56
call core::fmt::rt::Argument::none::hc065e58ad5eb8a68
mov rdi, rsp
lea rsi, [rip + .Lanon.716986cbd744513a3d704c9aedd6c96f.4]
lea rdx, [rsp + 48]
call qword ptr [rip + core::fmt::Arguments::new_v1::h6fe4f7f03708fd6d@GOTPCREL]
mov rdi, rsp
call qword ptr [rip + std::io::stdio::_print::h83d703bcf3ee60d9@GOTPCREL]
add rsp, 56
ret

.Lanon.716986cbd744513a3d704c9aedd6c96f.3:
.ascii "test 1\n"
That's pretty cool
Replies: >>105681786 >>105682001
Anonymous
6/23/2025, 6:33:28 PM No.105681786
>>105681774
>Rust won yet again.
Many such cases.
Anonymous
6/23/2025, 7:00:12 PM No.105682001
>>105681774
cool you sacrifice a billion years of productivity and jobs to get compile time printf good work craboids you solved it
Replies: >>105682034
Anonymous
6/23/2025, 7:04:20 PM No.105682034
>>105682001
Rust is the productive white man's choice.
I just rewrote my nostdlib in Rust, and executable is smaller. Lmao, cniles can't defend this anymore, I'm transitioning to Rust.
Anonymous
6/23/2025, 7:27:33 PM No.105682196
Why arent you a rockstar 10x saas founder yet? Are you a loser or something?
Replies: >>105682242 >>105682774 >>105683983
Anonymous
6/23/2025, 7:34:22 PM No.105682242
>>105682196
I hate paperwork.
Anonymous
6/23/2025, 7:41:45 PM No.105682287
Does EJS syntax feel disgusting to you guys too?
Replies: >>105682876
Anonymous
6/23/2025, 8:41:10 PM No.105682774
>>105682196
too dumb and lazy. also, no motivation (don't care for money much).
Anonymous
6/23/2025, 8:52:25 PM No.105682876
>>105682287
it's really about tooling. If your IDE manages it nicely then it's nice.
But most (every) "templating" languages or libraries are fucking ugly.
Anonymous
6/23/2025, 11:00:14 PM No.105683936
I'm writing some C# code to interoperate with a C library that uses a large union.
What's the pro strat here? Store the value I extract from the union in a class as a generic object with a type tag and use accessors like the SQL library does (GetString, GetInt, etc)? Or is there a smarter way of doing it?
Anonymous
6/23/2025, 11:06:10 PM No.105683983
wallhaven-73pg7y
wallhaven-73pg7y
md5: 96a3c22945daff49c0bf1dbe4ceda4a6🔍
>>105682196
I work at a startup where I am increasingly given responsibilities, promotions, raises, and stock options (that I think will probably never be worth anything). I hate it so much. I don't want to be a project manager, I don't want to be in charge of a team, I don't want to tell people what they need to code. If these people were competent, then it would be easier because I wouldn't have to manage them as much, but many of them can barely write typescript. I just want to get tickets assigned to me, I code them, and I go home to work on my hobby projects. Business shit sounds like pure hell to me
Replies: >>105683995
Anonymous
6/23/2025, 11:07:26 PM No.105683995
>>105683983
is this painting real is this h0ow all the cows left eearth
Replies: >>105684194
Anonymous
6/23/2025, 11:30:55 PM No.105684194
>>105683995
>left earth

This is how they arrived
Anonymous
6/23/2025, 11:52:28 PM No.105684351
>>105678940
i don't think people give a fuck about their trades being 'relevant'....
Replies: >>105684366
Anonymous
6/23/2025, 11:54:02 PM No.105684366
>>105684351
Reminder: if you ever paid for autotrading, you lost money manually.
Replies: >>105685082
Anonymous
6/24/2025, 12:09:50 AM No.105684482
>>105668156
literally the point of git is to fix git mistakes with git, but I'm glad this worked. that being said, please study more.
Anonymous
6/24/2025, 1:33:29 AM No.105685082
>>105684366
I literally pay others to worry about that shit for me.
Replies: >>105685419
Anonymous
6/24/2025, 2:25:47 AM No.105685419
>>105685082
if they knew what they are doing, they wouldn't need your money.
Anonymous
6/24/2025, 4:18:48 AM No.105686023
1750731491865
1750731491865
md5: 1e01d0a9b732d33f37e09d1af5c55e8c🔍
>>105667962 (OP)
https://ayasequart.org/fts?boards=g&media_hash=I3mAi2JrDtE3fbovucrc%2BQ%3D%3D

Added file picker -> auto MD5 on my site.
Anonymous
6/24/2025, 4:29:56 AM No.105686074
>>105670600
Mathematically, the addition should be washed away, as 16000 % 400 is 0, so I assume this is something to trick the compiler more than an operation
Anonymous
6/24/2025, 4:39:48 AM No.105686122
>>105675388
If you're using GCC and a newer standard, you can wrap that macro in `({})` and add `name;` at the end to make it behave better, provided you don't return that from a function

#define FMT(name, format, ...)\
({\
__auto_type __name = (name);\
int __size = snprintf(nullptr, 0, format __VA_OPT__(,) __VA_ARGS__) + 1;\
char __buffer[__size];\
snprintf(__name, __size, format __VA_OPT__(,) __VA_ARGS__);\
__buffer;\
})
Replies: >>105686215
Anonymous
6/24/2025, 4:57:21 AM No.105686215
>>105686122
The optimizer will destroy this code
just use alloca.
Anonymous
6/24/2025, 6:29:34 AM No.105686725
3AAA9DE8-1C45-48B2-949F-F3DB3B7C0EF8
3AAA9DE8-1C45-48B2-949F-F3DB3B7C0EF8
md5: b2b08d1a1536fb646ac26c5bf78cfeee🔍
>>105667962 (OP)
What is the 90% in programming?
Replies: >>105686769 >>105686810 >>105687916 >>105697113
Anonymous
6/24/2025, 6:38:29 AM No.105686769
>>105686725
Memory.
Anonymous
6/24/2025, 6:46:23 AM No.105686810
>>105686725
designing the thing you're programming
Anonymous
6/24/2025, 8:07:43 AM No.105687257
what's the best language that can help me land a job the fastest or i guess the easiest to learn?
Replies: >>105687308 >>105688277
Anonymous
6/24/2025, 8:15:27 AM No.105687308
>>105687257
Anything that is easy is going to be done by geepeetee. There are no easy routes for you anymore.
Replies: >>105687382 >>105688863
Anonymous
6/24/2025, 8:28:32 AM No.105687382
>>105687308
okay so how do i start or get into it?
Replies: >>105687462
Anonymous
6/24/2025, 8:40:36 AM No.105687462
>>105687382
Perl.
Anonymous
6/24/2025, 10:02:32 AM No.105687916
>>105686725
Politics.
Anonymous
6/24/2025, 11:13:22 AM No.105688277
>>105687257
How old are you? Right now it is probably R*st, but in 10 or so years, Hare will be the next big thing.
Anonymous
6/24/2025, 11:15:16 AM No.105688289
>>105675388
Isn't this allocated on the stack?
Replies: >>105688357
Anonymous
6/24/2025, 11:21:31 AM No.105688319
I'm working on my sanity.
Anonymous
6/24/2025, 11:27:54 AM No.105688357
>>105688289
Yes, and?
Anonymous
6/24/2025, 1:01:04 PM No.105688852
I feel like everything is becoming web based.
I'm in engineering and even the finite element analysis software is migrating pre and post-processing of analysis to web based interfaces.

might just start webshitting.
Replies: >>105688870
Anonymous
6/24/2025, 1:02:05 PM No.105688863
>>105687308
gpt can barely build plain html sites mate.
Replies: >>105689173
Anonymous
6/24/2025, 1:03:12 PM No.105688870
>>105688852
not surprising, web interfaces are just simpler to implement and more versatile than native GUIs
Anonymous
6/24/2025, 1:56:04 PM No.105689173
>>105688863
Then it's Copolit, or Cloud, or whatever they're called these days.
Anonymous
6/24/2025, 2:04:29 PM No.105689223
This may sound weird: I want to learn but I can't start programming. Everyday I open my PC and start browsing the internet instead of coding. Anyone else having the same problem?
Replies: >>105689231 >>105689311 >>105689436
Anonymous
6/24/2025, 2:05:46 PM No.105689231
>>105689223
ADHD.
Anonymous
6/24/2025, 2:15:14 PM No.105689311
>>105689223
you need a project.
Replies: >>105689352
Anonymous
6/24/2025, 2:20:40 PM No.105689352
1710364822212524
1710364822212524
md5: a7f549cb3251a3b3328f58785e0904e5🔍
>>105689311
No.
Replies: >>105689433
Anonymous
6/24/2025, 2:27:47 PM No.105689426
>project over deadline and budget
>working off the clock to get things done
programming was a mistake
Replies: >>105689474
Anonymous
6/24/2025, 2:28:40 PM No.105689433
>>105689352
pic related is exactly why you need a project, you get sucked back into thinking about it instead of scrolling all day.
Anonymous
6/24/2025, 2:29:13 PM No.105689436
>>105689223
pretty sure it'd be weirder/rarer to find someone that doesnt do that.
overcome your mediocrity.
Anonymous
6/24/2025, 2:33:01 PM No.105689474
>>105689426
That's every industry.
Replies: >>105689483
Anonymous
6/24/2025, 2:34:48 PM No.105689483
>>105689474
>work in trades
>do 08:00 - 16:00
>no after thoughts
Replies: >>105689495
Anonymous
6/24/2025, 2:36:03 PM No.105689495
>>105689483
>be plumber
>get a leak at 15:59
>wait 1 minute
>home time, night all, im off to the pub
yeah, doesn't work like that.
Replies: >>105689505 >>105689509 >>105689521
Anonymous
6/24/2025, 2:38:14 PM No.105689505
>>105689495
Yes it does.
Replies: >>105689508
Anonymous
6/24/2025, 2:38:42 PM No.105689508
>>105689505
retard
Anonymous
6/24/2025, 2:38:46 PM No.105689509
>>105689495
next in shift will take it
for programmers there's nobody in the queue
Replies: >>105689521 >>105689522
Anonymous
6/24/2025, 2:39:47 PM No.105689521
>>105689495
>>105689509
also the plumber gets paid extra for being on call
Anonymous
6/24/2025, 2:39:55 PM No.105689522
>>105689509
site plumbers don't work in shifts.
Anonymous
6/24/2025, 2:49:23 PM No.105689582
>not shitting in sacks instead of relying on plumpers
Weak.
Replies: >>105689611
Anonymous
6/24/2025, 2:52:43 PM No.105689611
>>105689582
>being indian in japanese anime image board
Replies: >>105689711
Anonymous
6/24/2025, 3:04:36 PM No.105689711
>>105689611
Indians shit on the street, not in sacks.
Replies: >>105690188
Anonymous
6/24/2025, 3:57:26 PM No.105690188
>>105689711
Indian here, I can do both.
Replies: >>105690260
Anonymous
6/24/2025, 4:04:21 PM No.105690260
>>105690188
Then why don't you? That'd be an improvement.
Replies: >>105690318
Anonymous
6/24/2025, 4:04:26 PM No.105690263
Indian here, I poo in loo and I am top 3% in leetcode (C programming language only), the project of my life is a registry dumper that prints at 50MiB/s.
Anonymous
6/24/2025, 4:11:02 PM No.105690318
>>105690260
I use a toilet like most people do, but go off. I'm not getting in the way of your seethe against disgusting subhumans that shit in the streets.
Anonymous
6/24/2025, 4:15:56 PM No.105690354
>the project of my life is a registry dumper that prints at 50MiB/s
Funny, because you can't even do that. Which is exactly why everyone would be happy to see you hanging from a tree with your legs shoved inside your throat.
Replies: >>105690371
Anonymous
6/24/2025, 4:17:30 PM No.105690371
>>105690354
India doesn't have trees.
Replies: >>105690381
Anonymous
6/24/2025, 4:18:09 PM No.105690381
>>105690371
wat
Anonymous
6/24/2025, 4:21:09 PM No.105690404
teak
teak
md5: 70abc07703b91dccb5380798c944f80c🔍
>india doesn't have trees
Then let's give it all to Pakistan, shan't we.
Anonymous
6/24/2025, 4:56:58 PM No.105690706
Just found out about the remote SSH extension in vscode. God it's so nice.
Combined with gemini extension i am going to cum
>make a change to my discord bot gemini
>hit apply all
>hit save all
>nodemon restarts server
I never have to touch a terminal again
Anonymous
6/24/2025, 5:48:21 PM No.105691147
a = input("are u a black man? 1- yes 2- no")
if a == "1":
print ("kys nigga")
elif a == "2":
print("you're human")
else:
print("you typed a wrong key")
input()
Anonymous
6/24/2025, 5:58:53 PM No.105691243
https://lief.re/doc/latest/extended/intro.html
>Have to log in via Github to access enhanced version of FOSS library
Huh? What's the point.
Anonymous
6/24/2025, 6:17:36 PM No.105691434
Oh nevermind it's so only sponsors can access. Gay.
Anonymous
6/24/2025, 6:51:13 PM No.105691738
any cpu design expert here ? (vhdl)
Anonymous
6/24/2025, 6:59:50 PM No.105691804
i hate the style and syntax of all existing languages but to make something better, i'd have to use one.
life is suffering.
Replies: >>105691889
Anonymous
6/24/2025, 7:10:58 PM No.105691889
>>105691804
If even raw assembly triggers your autism you can always write your program in a hex editor.
Anonymous
6/24/2025, 7:17:11 PM No.105691956
147515482654
147515482654
md5: 11d7ba990fa997d767f7ef8ebc26ed12🔍
WHY DOES EVERY LANGUAGE HAVE TO DO ELSE IF DIFFERENTLY????????
>else if
>elseif
>elsif
>elif
WHAT THE FUCK IS THIS SHIT JUST BE CONSISTENT YOU FAGGOT FUCKS AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Replies: >>105691974 >>105691975 >>105691986 >>105692020 >>105692043 >>105692051 >>105692068 >>105697949 >>105698120 >>105698513
Anonymous
6/24/2025, 7:19:06 PM No.105691974
>>105691956
lol every language with if and else keywords should do else if i mean come on why add more keywords
>captcah : 420N'T
lmao
Anonymous
6/24/2025, 7:19:27 PM No.105691975
>>105691956
Lack of fear of death.
Anonymous
6/24/2025, 7:21:24 PM No.105691986
>>105691956
in Haskell this is just
case cond of
False -> b
True -> a
Anonymous
6/24/2025, 7:26:43 PM No.105692020
>>105691956
dude
DUDE
dude, what if
what if
dude
dude what if there was only one programming language, the human programming language
brooooo
Replies: >>105692172
Anonymous
6/24/2025, 7:30:54 PM No.105692043
>>105691956
>else if
based and straight to the point

>elseif
>elsif
>elif
mental illness
Anonymous
6/24/2025, 7:32:22 PM No.105692051
>>105691956
>else if
this is not "else if" this is an else statement with an if statement inside of it abusing single line statements without braces to masquerade as a unique keyword
Replies: >>105697918
Anonymous
6/24/2025, 7:34:01 PM No.105692068
>>105691956
ti should be
>maybe
>or maybe
>or
Anonymous
6/24/2025, 7:47:48 PM No.105692172
>>105692020
that's just lisp
Anonymous
6/24/2025, 8:01:56 PM No.105692291
I did nostd C and it just werks.
I did nostd Rust and it only requires gigabytes of bloat to have same feature parity on minimalism side.
Will C++ pass? Let's find out over next 2 weeks
Anonymous
6/24/2025, 8:16:00 PM No.105692392
I hate sepples. Well not really the language, but anybody who wants to use it.
See, I'm C developer.
They will ride with c/c++, but they have very little in common. No C developer will say c/c++.
They will tell you that they are compatible and c++ is just superset. In reality (((they))) will never provide C compatible API and will end up filling your C headers with
#ifdef __cplusplus
extern "C" {
#endif

They willl tell you that pointer + offset is not safe but their type casting class initialization rules will just leave you confused. "Why would anybody write that shit".

They introduce their std container but they have no returns values on error, you need exceptions, except in your work you can't use exceptions.
They will still bring them and disregard any the requirements of the hardware and your environment.

In the end they can't even build the project.
They will force cmake over gnu make but they don't can't operate neither.
You are left to figure out what the sepples developer did and tried do because there is no documentation and nothing he made makes sense.

The language attracts flies like a trap.
Replies: >>105692492
Anonymous
6/24/2025, 8:27:00 PM No.105692492
screenshot
screenshot
md5: 55d3a07b82ac2ae0ce8e1b6bd4979a9f🔍
>>105692392
C++ is an actual zero cost abstraction over C, if it's not to you, it says more about your intellect and ability as a programmer than it says about your compiler.
Replies: >>105692700
Anonymous
6/24/2025, 8:28:01 PM No.105692502
Makefile for reference:
override CFLAGS += -Wl,--entry=_start
override CFLAGS += -Wl,--gc-sections
override CFLAGS += -fdata-sections
override CFLAGS += -ffreestanding
override CFLAGS += -ffunction-sections
override CFLAGS += -fno-asynchronous-unwind-tables
override CFLAGS += -fno-builtin
override CFLAGS += -fno-exceptions
override CFLAGS += -fno-rtti
override CFLAGS += -fno-unwind-tables
override CFLAGS += -masm=intel
override CFLAGS += -nostdlib
override CFLAGS += -static
override CFLAGS += -std=gnu23
override CXXFLAGS := ${CFLAGS} -std=gnu++23 -nostdlib++
override MAKEFILE_DEPS := Makefile

SRC.c := ${wildcard *.c}
SRC.cpp := ${wildcard *.cpp}

c.out: ${patsubst %.c,%.c.o,${SRC.c}}
${LINK.c} -o $@ $^ ${LDLIBS}
strip -sR .comment $@

%.c.o: %.c ${MAKEFILE_DEPS}
${COMPILE.c} -o $@ $< -MMD -MP

cpp.out: ${patsubst %.cpp,%.cpp.o,${SRC.cpp}}
${LINK.cpp} -o $@ $^ ${LDLIBS}
strip -sR .comment $@

%.cpp.o: %.cpp ${MAKEFILE_DEPS}
${COMPILE.cpp} -o $@ $< -MMD -MP

.PHONY: clean
clean:
@git clean -dfX

-include ${wildcard *.d}

Ceethe and C++ope C--niles.
Anonymous
6/24/2025, 8:35:17 PM No.105692564
compilers_are_garbage_cpp_printf
compilers_are_garbage_cpp_printf
md5: 542a90bf5ace3e0b885ff41fe325aa98🔍
>C++
>zero abstractions
Good one.
Replies: >>105692579 >>105698095
Anonymous
6/24/2025, 8:37:15 PM No.105692579
>>105692564
Didn't read your cope since it's not my code. Zero abstraction in my code, dilate your axewound, nocoderina.
Anonymous
6/24/2025, 8:38:40 PM No.105692592
>stage one: denial
>bordering on stage two: anger
Call me once you're ready to bargain.
Replies: >>105692601
Anonymous
6/24/2025, 8:39:38 PM No.105692601
>>105692592
You must be very angry that someone more intelligent than you exists (literally 8 billion humanoids since you're dumber than a nigger).
Anonymous
6/24/2025, 8:40:36 PM No.105692611
>can't follow the *simplest* instructions
He's gonna be stuck on stage two for a loooong time, innit he.
Replies: >>105692625
Anonymous
6/24/2025, 8:41:52 PM No.105692625
>>105692611
And here we see typical Wernicke's aphasia sufferer in his natural habitat.
Reminder: final stages include loss of home and inevitable suicide by train.
Anonymous
6/24/2025, 8:42:44 PM No.105692633
>muh Wernicke
This is what autism does to a person.
Replies: >>105692656
Anonymous
6/24/2025, 8:45:07 PM No.105692656
>>105692633
Your diagnosis is permanent, and terminal, make sure to tell your loved ones how much you love them, while you still can, because once they find your mangled mush of a corpse on train tracks, they won't be able to find out why.
Anonymous
6/24/2025, 8:49:00 PM No.105692692
1663989195778565
1663989195778565
md5: fd19850e9a494f6056be611fd8b28e68🔍
Anonymous
6/24/2025, 8:50:25 PM No.105692700
>>105692492
>about your compiler
I wasn't complaining about compilers, I was complaining about sepples fags but of course you sepples fags will disregard it
Replies: >>105692708
Anonymous
6/24/2025, 8:51:26 PM No.105692708
>>105692700
How did you know that I didn't even read your post?
Replies: >>105692724
Anonymous
6/24/2025, 8:53:23 PM No.105692724
>>105692708
I didn't, yet you replied, like a sepples exception.
Replies: >>105692746
Anonymous
6/24/2025, 8:56:59 PM No.105692746
>>105692724
Easily solved by reading the manual, but you read manuals like I read whiny posts.
In any case, if you ever need to deal with C++ in C, it's because you aren't as elite as you imagine yourself to be.
Replies: >>105692789
Anonymous
6/24/2025, 8:58:21 PM No.105692756
030
030
md5: 2b9190b5ad43a05892d006167c89730d🔍
Anonymous
6/24/2025, 9:02:08 PM No.105692789
>>105692746
>if you ever need to deal with C++ in C, it's because you aren't as elite as you imagine yourself to be
yeah when I can't be the lead, I need to work on clients projects.
But the clients who have used C are nicer compared to anything that crawls in sepples.
Replies: >>105692802
Anonymous
6/24/2025, 9:03:27 PM No.105692802
>>105692789
Bottom feeder issue.
Anonymous
6/24/2025, 9:24:35 PM No.105692990
Trying to understand how the fuck clap works
Replies: >>105693023
Anonymous
6/24/2025, 9:27:56 PM No.105693023
>>105692990
Ah shit that wasn't so hard
Anonymous
6/24/2025, 9:51:29 PM No.105693225
C++: a * (a + b)
Rust: &a * &(&a + &b)
Replies: >>105693234
Anonymous
6/24/2025, 9:52:57 PM No.105693234
>>105693225
&(&a &* &(&a &+ &b))
Replies: >>105693526
Anonymous
6/24/2025, 9:59:31 PM No.105693297
all variables should be const
Replies: >>105693318 >>105693881
Anonymous
6/24/2025, 10:01:56 PM No.105693318
>>105693297
All memory is mutable.
Anonymous
6/24/2025, 10:27:55 PM No.105693526
1743532976338161
1743532976338161
md5: 5135c889d8c87705f4cf8e9f7a6aab3e🔍
>>105693234
unsafe { <&(&(&a &* &(&a &+ &b)) as ref &mut i64)>.unwrap() }
Replies: >>105693777
Anonymous
6/24/2025, 10:58:03 PM No.105693777
>>105693526
>unsafe { destroy the universe() }
Finally, we've solved safety in programming
Replies: >>105693797
Anonymous
6/24/2025, 11:00:11 PM No.105693797
>>105693777 (holy) (holy) (holy)
>>unsafe { destroy the universe() }
It's so over for univercels
Anonymous
6/24/2025, 11:02:08 PM No.105693805
how do I use a .vscode file that is external to my project? I would like to basically create a blank workspace with a configuration that I can load projects into and they will use the same .vscode config

I don't want to copy paste .vscode into each project because now I have to update the exact same thing across dozens of different projects, and I have to manually exclude it from git since the editor used should not leave traces in the repository
Anonymous
6/24/2025, 11:09:50 PM No.105693881
>>105693297
Rust did one (1) thing right
Anonymous
6/24/2025, 11:19:56 PM No.105693980
https://www.youtube.com/watch?v=QBzbpo6GnN0
This fucking guy
Anonymous
6/24/2025, 11:21:06 PM No.105693993
#include ""
vs
#include <>

seems kind of arbitrary for something actually implemented within the language
Replies: >>105693995 >>105694003 >>105694004 >>105696633
Anonymous
6/24/2025, 11:21:56 PM No.105693995
>>105693993
#include __FILE__
Anonymous
6/24/2025, 11:22:50 PM No.105694003
>>105693993
it's all just assigning arbitrary meanings to strings of ones and zeros, bro. what did you want them to do?
Anonymous
6/24/2025, 11:22:51 PM No.105694004
1739364651079251
1739364651079251
md5: 160207bd266b5bac57233a5d01b41ce1🔍
>>105693993
Me? I just manually copy/paste the contents of the header into the cpp file.
Replies: >>105694017 >>105694043 >>105694074
Anonymous
6/24/2025, 11:23:52 PM No.105694017
>>105694004
That sounds like something a dumb gay and retarded frogposter would do
Anonymous
6/24/2025, 11:26:38 PM No.105694043
1734393972468196
1734393972468196
md5: fdd4d7867fc3e1d0f6d73ed7d80cfdaa🔍
>>105694004
Anonymous
6/24/2025, 11:31:12 PM No.105694074
1647804503444
1647804503444
md5: cc0abc4849bf83f1fbdef861b80452e7🔍
>>105694004
cat `find -iname "*.h"` *.c | gcc -xc -
Replies: >>105694542
Anonymous
6/25/2025, 12:21:45 AM No.105694542
>>105694074
>cat `find -iname "*.h"`
Who names their cat *.h?
Anonymous
6/25/2025, 12:55:19 AM No.105694854
1732307430820277
1732307430820277
md5: 64cfb881d10cee6755e6c9b8fe27ea77🔍
i give up
Replies: >>105694871 >>105694872 >>105694921 >>105696704
Anonymous
6/25/2025, 12:57:13 AM No.105694871
>>105694854
is that some pronoun shit? we don't have that garbage in assembly dev
Replies: >>105694883
Anonymous
6/25/2025, 12:57:15 AM No.105694872
>>105694854
Literally nobody needs to know anything besides the difference between lvalue and rvalue, the rest aren't even real.
Anonymous
6/25/2025, 12:58:54 AM No.105694883
>>105694871
asm has lvalues and rvalues, you can stop posting now, fizzbuzzer
Anonymous
6/25/2025, 1:05:14 AM No.105694921
>>105694854
lvalue and rvalue are self explanatory, so really that entire graph just boils down to knowing what an xvalue is.
Anonymous
6/25/2025, 6:03:44 AM No.105696633
>>105693993
>kind of arbitrary
The intention is "local include" vs <system include>.
What that actually means depends on the compiler and its settings.
Anonymous
6/25/2025, 6:18:04 AM No.105696704
>>105694854
lvalue, this nigga has a name and you finna copy it's data
prvalue, this nigga has no name its just some busta that just popped up outta nowhere
xvalue this nigga crazy he either used to be an lvalue and you popped a cap in his azz with std::move or it's the data member of a prvalue that you are trying to access on the downlow, na what im sayin
Replies: >>105696708 >>105696709
Anonymous
6/25/2025, 6:18:39 AM No.105696708
>>105696704
u dum nigga
Anonymous
6/25/2025, 6:18:40 AM No.105696709
>>105696704
finna no cap br fr fr desu ne dayo
Anonymous
6/25/2025, 7:00:33 AM No.105696890
why are all c++ books 4800 pages long
Replies: >>105696917 >>105697131
Anonymous
6/25/2025, 7:06:24 AM No.105696917
>>105696890
Because religions require brain washing.
Replies: >>105697380
Anonymous
6/25/2025, 7:40:39 AM No.105697113
>>105686725
Reading documentation
Anonymous
6/25/2025, 7:43:57 AM No.105697131
>>105696890
C++ is designed for language lawyers and language trivia dorks to circlejerk each other every year at cppcon
Replies: >>105697141 >>105697635
Anonymous
6/25/2025, 7:45:14 AM No.105697141
>>105697131
at least they still have penises to jerk, the same can't be said for the rust convention down the hall
Anonymous
6/25/2025, 8:30:45 AM No.105697380
>>105696917
That would be a nice cope, but the only people who read the bible cover to cover are atheists.
Replies: >>105697435
Anonymous
6/25/2025, 8:41:18 AM No.105697435
>>105697380
Nah, I'm an atheist and stopped at David.
Now. zealots, those DO believe every lie Stroustrup is telling them.
Replies: >>105697468
Anonymous
6/25/2025, 8:43:23 AM No.105697443
this idea is the best idea ever -> this idea doesn't even make any sense

repeat forever


AHHHHHHHHHHHHHH
Replies: >>105697663
Anonymous
6/25/2025, 8:46:29 AM No.105697468
>>105697435
I let my campfire eat the bible cover to cover last winter.
Anonymous
6/25/2025, 9:14:05 AM No.105697591
media_Fm1u_SKXoAA_KQ_
media_Fm1u_SKXoAA_KQ_
md5: 0f5b31ef489d0bdb553dfac9afd7719e🔍
Every day my dogfood grows tastier.
Anonymous
6/25/2025, 9:21:35 AM No.105697635
>>105697131
yes, it's pretty exciting.
Anonymous
6/25/2025, 9:27:36 AM No.105697663
>>105697443
>try to make thing
>learn a lot in the process
>learning experience makes you realize how fucking stupid your thing is on every level
whatever
Anonymous
6/25/2025, 10:03:23 AM No.105697856
ocaml is truly a wonder of engineering. only the french could find a way to make FP feel ugly and inelegant
Replies: >>105698029
Anonymous
6/25/2025, 10:14:47 AM No.105697918
>>105692051
i think that's a good thing because my brain sees it as 'else + if' instead of a separate keyword. it just means else { if } whereas using 'elif' by comparison seems kind of retarded because it has no syntactic connection to else nor if, it's just it's own keyword
Anonymous
6/25/2025, 10:20:17 AM No.105697949
>>105691956
Still hard to believe nobody had the balls to use "ef"
Replies: >>105698046
Anonymous
6/25/2025, 10:33:41 AM No.105698029
poly
poly
md5: 34fa71e41916c90bdf5d4b93c4874ab3🔍
>>105697856
yeah I don't understand why don't people just use SML, it has standard and minimal use of compiler extensions cover the rest.
Anonymous
6/25/2025, 10:35:22 AM No.105698046
>>105697949
if 1 == 0 then
do_muh_thing();
ef 2 == 0 then
do_muh_thing2();
of
Anonymous
6/25/2025, 10:44:01 AM No.105698095
file
file
md5: 0beb1acb67ceb7195832e207ab3c59df🔍
>>105692564
it's a bit better with string_view. you shouldn't use std::string unless you NEED to modify it dynamically... also longer assembly doesn't necessarily mean slower. -O3 produces longer assembly for example.
Replies: >>105698125
Anonymous
6/25/2025, 10:47:40 AM No.105698120
>>105691956
These tiny subtleties set apart real programming languages and mere toys.
#include <stdio.h>

int main(void) {
if (false)
;
else
while (true)
puts("I'd just like to interject for a moment. What you're refering to as 'else if', is in fact, else/if, or as I've recently taken to calling it, else plus if. else if is not a syntactical keyword unto itself, but rather another combination of fully functioning keywords made useful by the C programming language, C programming language's compiler and vital userbase comprising a whole earth, as defined by C programming language's standard.");
}
Anonymous
6/25/2025, 10:48:26 AM No.105698125
file
file
md5: 82267fbe4d26d9dc00e92682ffdd4390🔍
>>105698095
and if you REALLY don't need to do anything to the string but use it may i suggest static constexpr const char*
Anonymous
6/25/2025, 12:00:36 PM No.105698513
>>105691956
first two are okay, latter two are deranged
why do so many people seem to think saving a keystroke is more important than readability? how shit are they at typing?
Replies: >>105698550
Anonymous
6/25/2025, 12:02:15 PM No.105698524
1234123
1234123
md5: e5342f845a4d3e767022bd5a102b92a4🔍
>>105667962 (OP)
>change one little thing
>segfaults everywhere
>add print statements "HERE1", "HERE2", etc.
>segfaults are gone
>problem solved
Replies: >>105698535
Anonymous
6/25/2025, 12:03:37 PM No.105698535
>>105698524
Uninitialized variable?
Replies: >>105698584
Anonymous
6/25/2025, 12:05:24 PM No.105698550
>>105698513
Only first one is sensible.
Anonymous
6/25/2025, 12:10:55 PM No.105698584
1747429062635333
1747429062635333
md5: 8b755b4680cc3a8139652a7627e33fe9🔍
>>105698535
i dont know but im trying to write to a file and its writing each line twice

but when i ctrl f i only see one line in my code that writes to the file
Replies: >>105698593 >>105698665
Anonymous
6/25/2025, 12:11:39 PM No.105698593
>>105698584
you are calling the function two times dumbo
Anonymous
6/25/2025, 12:24:46 PM No.105698665
>>105698584
And naturally you don't post the code because you're afraid we're going to steal it.
Anonymous
6/25/2025, 12:44:46 PM No.105698769
IMG_3338
IMG_3338
md5: 0e10653692141d63c29639e7d42728d1🔍
Posted this in sqt by accident but I think here is more appropriate:

which should I learn for the sake of productivity? Rust or C++?
I have a tool in mind that I want to make using an immediate mode gui, ie imgui or egui
other things I'll need:
http/websocket client library
JSON unmarshaling
plotting (maybe)
concurrency ideally (async/await) but it might not be necessary depending on how good single threaded performance is

It's pretty crucial that this program does not crash
to this you'll say "use rust, duh" but if rust is going to take me over a month to become productive with it then forget it
I need to balance productivity and reliability
I'm also more familiar with C++, marginally (it was my first "real" language technically but I havent used it in over a decade), so that factors into the productivity thing

Ideally I'd use Go since its uber reliable while being uber productive but I need C++ or Rust on my resume (either one)
Replies: >>105699912 >>105700727 >>105701394
Anonymous
6/25/2025, 3:24:13 PM No.105699828
I'm so confused by visual studio. VS code was so straight forward by comparison as complete beginner to coding.
Anonymous
6/25/2025, 3:35:47 PM No.105699912
1747280064151335
1747280064151335
md5: 6cbe3186eadc5528098a74a434b38400🔍
>>105698769
>It's pretty crucial that this program does not crash
How crucial?
Replies: >>105700793
Anonymous
6/25/2025, 4:48:03 PM No.105700582
>Get idea for project
>Excited and optimistic
>Start digging into the APIs and systems I'd have to deal with
>Optimism gradually turns into sadness and regret since everything feels way more complicated than it should be
>Reach breaking point when MVP is thousands of lines and extending it feels like a monumental task
>Abandon project
Every time.
Anonymous
6/25/2025, 5:02:02 PM No.105700727
>>105698769
>It's pretty crucial that this program does not crash
Don't do programming then. Programs can crash at any time for any reason,
Replies: >>105700793 >>105700952
Anonymous
6/25/2025, 5:08:04 PM No.105700793
>>105699912
If the program crashes at the wrong time I might lose a lot of money

>>105700727
Wow thanks for the platitude thats not even technically correct, you fucking retarded asshole
Replies: >>105700894 >>105701179 >>105701342
Anonymous
6/25/2025, 5:18:02 PM No.105700894
>>105700793
Then exert your energy on a fruitless effort. Like I care.
Anonymous
6/25/2025, 5:24:13 PM No.105700952
>>105700727
>,
>FATAL ERROR: Anon stopped working.
Replies: >>105700963
Anonymous
6/25/2025, 5:24:43 PM No.105700963
>>105700952
>error message instead of crash
Cute.
Anonymous
6/25/2025, 5:45:08 PM No.105701179
1731955898828547
1731955898828547
md5: 5abd11d3eeb06c8ecb882a30b23afb3b🔍
>>105700793
>If the program crashes at the wrong time I might lose a lot of money
Replies: >>105701216
Anonymous
6/25/2025, 5:48:24 PM No.105701216
>>105701179
Ada is intriguing but it lacks the libraries I need unfortunately
Replies: >>105701394
Anonymous
6/25/2025, 5:48:38 PM No.105701219
I'm thinking about making a musicbee clone with less functionality.
Since musicbee is the best music player but uses WinForms (I think?) what would be the best replacement to that?
Anonymous
6/25/2025, 6:01:12 PM No.105701342
>>105700793
>If the program crashes at the wrong time I might lose a lot of money
At that point you triple the program and make a negation if at least 2 programs give same result, then it worked.
This is pretty common in big sea vessels and space programs.
Replies: >>105701612
Anonymous
6/25/2025, 6:08:01 PM No.105701394
>>105701216
>>105698769
>http/websocket client library
>JSON unmarshaling
AWS
>plotting (maybe)
This depends on what you're doing
>concurrency ideally (async/await) but it might not be necessary depending on how good single threaded performance is
Tasks are literally built into the language since Ada83

I'm just meming, but Ada has lots of libraries. They're just harder to find and old stuff still works because of actual standards. You can check on Alire if you're really interested, but Ada is the #1 if you actually need high integrity software that doesn't run like molasses.
Replies: >>105701546
Anonymous
6/25/2025, 6:21:54 PM No.105701546
>>105701394
Its not for gui based programs
Replies: >>105701561
Anonymous
6/25/2025, 6:23:18 PM No.105701561
>>105701546
>Its not for gui based programs
If you say so, nocoder
Replies: >>105701589
Anonymous
6/25/2025, 6:26:27 PM No.105701589
>>105701561
Delusional
I wasnt shitting on ada btw just objectively it doesnt have good gui libraries because its used for backends
Replies: >>105701613
Anonymous
6/25/2025, 6:28:22 PM No.105701612
>>105701342
Interesting, thanks
Anonymous
6/25/2025, 6:28:27 PM No.105701613
>>105701589
Your statement reeks of nocoder.
There is nothing special about GUIs.
Replies: >>105701659
Anonymous
6/25/2025, 6:31:35 PM No.105701659
>>105701613
>nocoder who tries to obscure being a nocoder by preemptively calling other people nocoders
>pajeet who calls other people pajeet
>etc.
Many such cases
Replies: >>105701674
Anonymous
6/25/2025, 6:33:06 PM No.105701674
>>105701659
>There is something special about GUIs
You outed yourself
Anonymous
6/25/2025, 7:03:41 PM No.105701971
NEW THREAD
>>105701967
>>105701967
>>105701967
>>105701967