/dpt/ - Daily Programming Thread
Old thread:
>>105647865
What are you working on, /g/?
Anonymous
6/22/2025, 6:44:17 AM
No.105667972
>>105668008
cute AI slop miku
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
>>105668077
>>105669024
Threadly reminder.
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
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
>>105668256
>>105684482
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.
Anonymous
6/22/2025, 7:40:29 AM
No.105668256
>>105667962 (OP)
what happened to the web dev general?
Anonymous
6/22/2025, 7:46:56 AM
No.105668282
>>105668289
>>105670678
>>105668267
nobody posts in it
they are all writing python now
Anonymous
6/22/2025, 7:49:23 AM
No.105668289
>>105670678
>>105668282
Let them. It's less competent competition.
Anonymous
6/22/2025, 9:21:27 AM
No.105668702
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
>>105668817
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.
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
>>105669006
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?
Anonymous
6/22/2025, 10:20:37 AM
No.105669006
>>105669129
Anonymous
6/22/2025, 10:23:10 AM
No.105669024
>>105669053
>>105668066
>safety
>explicit
Anonymous
6/22/2025, 10:26:54 AM
No.105669053
>>105669087
>>105669024
It would be safer if that guy wasn't touching the ladder.
Anonymous
6/22/2025, 10:33:19 AM
No.105669087
>>105669099
>>105675467
>>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
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
>>105669150
Anonymous
6/22/2025, 10:42:57 AM
No.105669150
>>105669159
>>105669129
If it works it's not dumb.
Anonymous
6/22/2025, 10:44:47 AM
No.105669159
>>105669170
>>105669344
>>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.
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
>>105669408
>>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
Anonymous
6/22/2025, 11:21:05 AM
No.105669408
>>105670189
>>105669344
>accepting user input in dystopian shithole called planet Earth
ngmi
Anonymous
6/22/2025, 12:25:56 PM
No.105669729
>>105670330
Anonymous
6/22/2025, 1:51:19 PM
No.105670189
>>105670219
>>105669408
>not compiling and executing user input directly
ngmi
Anonymous
6/22/2025, 1:58:20 PM
No.105670219
>>105670277
>>105671063
>>105670189
the user's a trustworthy guy, i know him
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
>>105670406
>>105669729
Remember that AI slop is trained on this stuff specfically.
Anonymous
6/22/2025, 2:32:51 PM
No.105670406
Anonymous
6/22/2025, 3:06:42 PM
No.105670600
>>105686074
What the fuck is this?
Why would adding 16000 change anything here???? That's enough for me today.
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
>>105670219
>the user's a trustworthy guy, i know him
Anonymous
6/22/2025, 4:18:16 PM
No.105671133
>>105671481
Is /wdg/ dead? Is this the place to ask web dev questions now?
Anonymous
6/22/2025, 5:03:52 PM
No.105671481
>>105671513
Anonymous
6/22/2025, 5:08:11 PM
No.105671513
>>105678358
>>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.
Anonymous
6/22/2025, 5:38:23 PM
No.105671753
>>105672236
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.
Anonymous
6/22/2025, 5:54:42 PM
No.105671900
>>105671917
>>105671938
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.
Anonymous
6/22/2025, 5:56:20 PM
No.105671916
>>105671960
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
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
>>105672107
>>105671916
have you even finished reading SCIP?
Anonymous
6/22/2025, 6:20:30 PM
No.105672107
>>105672186
>>105671960
I've never heard of that term before
Anonymous
6/22/2025, 6:28:35 PM
No.105672185
>>105672436
>>105672459
Fuck yaml faggots and their retarded garbage
Anonymous
6/22/2025, 6:28:38 PM
No.105672186
>>105672648
>>105672107
Structure of Computer and Interpretation Programs is a sequel to the widely acclaimed SICP
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
>>105672459
>>105672185
>2 spaces off
>suddenly you're in a different section
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
>>105672559
>>105672714
while (fscanf(file, "%s = %s", &k, &v))
set_option(k, v);
you dont need more
Anonymous
6/22/2025, 7:11:44 PM
No.105672559
>>105672621
Anonymous
6/22/2025, 7:18:37 PM
No.105672621
>>105672983
>>105672559
if you mean environment variables and switches you are truly a master of the blade
Anonymous
6/22/2025, 7:22:13 PM
No.105672648
>>105672756
>>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
Anonymous
6/22/2025, 7:30:08 PM
No.105672714
>>105672529
It's all hardcoded.
Anonymous
6/22/2025, 7:34:34 PM
No.105672756
>>105672648
>guy assigns you his own book
Anonymous
6/22/2025, 7:54:53 PM
No.105672983
>>105673061
>>105672621
I mean config.h
Anonymous
6/22/2025, 8:04:33 PM
No.105673061
>>105673079
>>105672983
but daaaaadddddd i don't want to recompile just to change font size
Anonymous
6/22/2025, 8:06:15 PM
No.105673079
>>105673152
>>105673061
Stop changing fonts.
>>105673079
i need to change font size so badly i hate you
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
>>105673152
usecase?
use a magnifying glass
Anonymous
6/22/2025, 9:31:17 PM
No.105673870
>>105674450
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.
Anonymous
6/22/2025, 10:31:53 PM
No.105674450
>>105674810
>>105673870
>Wahh!
>Why won't this portable API provide a way to do something super unportable!
>WWWAAAAAHHHHHH!!!!
Anonymous
6/22/2025, 10:36:12 PM
No.105674488
>>105674767
what's a good project idea to learn docker?
Anonymous
6/22/2025, 11:11:28 PM
No.105674767
>>105674488
microservices
Anonymous
6/22/2025, 11:15:34 PM
No.105674810
>>105674988
>>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.
Convince me to drop Rust and go backt o C or C++
Anonymous
6/22/2025, 11:32:23 PM
No.105674988
>>105675043
>>105674810
>WWWWWWWWWAAAAAAAAAAAHHHHHHHHHHH!!!
Damn, the schizo troon is in meltdown, yet again.
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
>>105675262
>>105674971
Why drop Rust when you can drop your balls instead?
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
>>105675285
>>105675287
>>105674971
meson and cmake exists
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
>>105675355
>>105675449
>>105675274
Why does Cargo still feel infinitely better?
Anonymous
6/23/2025, 12:12:38 AM
No.105675355
>>105675287
Because it is infinitely better.
Anonymous
6/23/2025, 12:22:32 AM
No.105675439
>>105675460
>>105675388
gay and retarded just use malloc like everyone else
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.
>>105675439
The whole point is to avoid the slow heap.
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
>>105675489
>>105675460
Heap isn't slow, schizo.
Anonymous
6/23/2025, 12:27:39 AM
No.105675475
>>105675478
>>105675460
>slow
you're using printf
Anonymous
6/23/2025, 12:28:21 AM
No.105675478
>>105675517
>>105675475
That's just for debugging.
>>105675474
Memory allocation on the heap is slow as fuck.
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
>>105675554
>cniles still stuck with debugging through printing
don't you have any IDEs with a debugger?
Anonymous
6/23/2025, 12:34:24 AM
No.105675517
>>105675554
>>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"?
Anonymous
6/23/2025, 12:40:08 AM
No.105675554
>>105675558
>>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?
Anonymous
6/23/2025, 12:41:04 AM
No.105675558
>>105675569
>>105675554
>nvim
hello, reddit
Anonymous
6/23/2025, 12:42:38 AM
No.105675569
>>105675703
>>105675558
It has better syntax highlighting than vim.
Anonymous
6/23/2025, 12:53:50 AM
No.105675640
>>105675712
>>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!
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
>>105675864
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?
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.
>>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.
Anonymous
6/23/2025, 1:39:54 AM
No.105675939
>>105675967
>>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.
Anonymous
6/23/2025, 1:40:00 AM
No.105675941
>>105676012
>>105675864
*actually nevermind, malloc never gets optimized out, only C++'s new and delete do.
you always learn something new every day...
Anonymous
6/23/2025, 1:43:24 AM
No.105675967
>>105676178
>>105678288
>>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.
will I git gud if I grind leetcode?
Anonymous
6/23/2025, 1:46:22 AM
No.105675984
>>105676066
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
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
>>105676066
>>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.
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
>>105680053
>>105675967
I think it is most certainty because 2 calls to snprintf is more expensive than 1 call to asprintf.
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
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
>>105678940
Are you guys smart enough for algotrading
Anonymous
6/23/2025, 11:10:46 AM
No.105678940
>>105679143
>>105684351
>>105678922
All relevant trades are done manually, you'd know this if you were intelligent.
Anonymous
6/23/2025, 11:12:48 AM
No.105678952
>>105679058
>>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.
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
>>105680177
>>105680349
>>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.
Anonymous
6/23/2025, 2:39:42 PM
No.105680057
>>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
>>105680400
>>105680053
Every non-toy language does this at compile time.
Anonymous
6/23/2025, 3:15:18 PM
No.105680298
>>105680334
reasons why printf is king
low code size, fast build, typechecks with i18n format (non-shit compiler only)
Anonymous
6/23/2025, 3:20:25 PM
No.105680334
Anonymous
6/23/2025, 3:22:48 PM
No.105680349
>>105680370
>>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
Anonymous
6/23/2025, 3:26:03 PM
No.105680370
>>105680468
>>105680349
Why would it do something different?
Anonymous
6/23/2025, 3:31:30 PM
No.105680400
>>105680431
>>105680177
So any non-toy language is unusable for code in production, got it.
Anonymous
6/23/2025, 3:35:05 PM
No.105680431
>>105680555
>>105681390
>>105680400
Format strings can trivially be parsed at compile time, turn on your brain, schizo.
Anonymous
6/23/2025, 3:38:53 PM
No.105680468
>>105680469
>>105680370
perhaps you would like to skip the copy operations and the conversions on fixed-width fields.
Anonymous
6/23/2025, 3:39:15 PM
No.105680469
>>105680480
>>105680468
Feel free to do it yourself then.
Anonymous
6/23/2025, 3:40:51 PM
No.105680480
>>105680490
>>105680469
another terminal case of cnility.
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
>>105680572
>>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.
Anonymous
6/23/2025, 3:52:01 PM
No.105680572
>>105680576
>>105680555
Keep your nocoder delusions to yourself.
Anonymous
6/23/2025, 3:52:57 PM
No.105680576
>>105680590
>>105680572
If you hang yourself on stream, sure. I'd pay money for that footage.
Anonymous
6/23/2025, 3:54:59 PM
No.105680590
>>105680609
>>105680576
You will never be a woman.
Anonymous
6/23/2025, 3:57:43 PM
No.105680609
>>105680621
>>105680590
Noted, incel.
Anonymous
6/23/2025, 3:58:58 PM
No.105680621
>>105680637
>>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.
Anonymous
6/23/2025, 4:00:28 PM
No.105680637
Anonymous
6/23/2025, 4:16:58 PM
No.105680740
Finally figured out the GitLab CI/CD stuff to get my site up
Anonymous
6/23/2025, 5:44:10 PM
No.105681390
>>105681474
>>105680431
>Format strings can trivially be parsed at compile time, turn on your brain, schizo.
tmp $ cat a.c
#include
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
No compile-time format string parsing appears to have taken place on -O3
Anonymous
6/23/2025, 5:55:34 PM
No.105681474
>>105681550
>>105681390
>C
This is commonly done by the programmer.
Anonymous
6/23/2025, 6:06:06 PM
No.105681550
>>105681578
>>105681474
Further up the reply chain the context is C at compile time, is there an example of this optimization elsewhere?
Anonymous
6/23/2025, 6:09:33 PM
No.105681578
>>105681774
>>105681550
Yes, check languages that weren't obsoleted yet, such as Rust.
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
>>105681786
>>105682001
>>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
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
>>105682034
>>105681774
cool you sacrifice a billion years of productivity and jobs to get compile time printf good work craboids you solved it
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.
Why arent you a rockstar 10x saas founder yet? Are you a loser or something?
Anonymous
6/23/2025, 7:34:22 PM
No.105682242
>>105682196
I hate paperwork.
Anonymous
6/23/2025, 7:41:45 PM
No.105682287
>>105682876
Does EJS syntax feel disgusting to you guys too?
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
>>105683995
>>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
Anonymous
6/23/2025, 11:07:26 PM
No.105683995
>>105684194
>>105683983
is this painting real is this h0ow all the cows left eearth
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
>>105684366
>>105678940
i don't think people give a fuck about their trades being 'relevant'....
Anonymous
6/23/2025, 11:54:02 PM
No.105684366
>>105685082
>>105684351
Reminder: if you ever paid for autotrading, you lost money manually.
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
>>105685419
>>105684366
I literally pay others to worry about that shit for me.
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
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
>>105686215
>>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;\
})
Anonymous
6/24/2025, 4:57:21 AM
No.105686215
>>105686122
The optimizer will destroy this code
just use alloca.
>>105667962 (OP)
What is the 90% in programming?
Anonymous
6/24/2025, 6:38:29 AM
No.105686769
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
>>105687308
>>105688277
what's the best language that can help me land a job the fastest or i guess the easiest to learn?
Anonymous
6/24/2025, 8:15:27 AM
No.105687308
>>105687382
>>105688863
>>105687257
Anything that is easy is going to be done by geepeetee. There are no easy routes for you anymore.
Anonymous
6/24/2025, 8:28:32 AM
No.105687382
>>105687462
>>105687308
okay so how do i start or get into it?
Anonymous
6/24/2025, 8:40:36 AM
No.105687462
Anonymous
6/24/2025, 10:02:32 AM
No.105687916
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
>>105688357
>>105675388
Isn't this allocated on the stack?
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
Anonymous
6/24/2025, 1:01:04 PM
No.105688852
>>105688870
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.
Anonymous
6/24/2025, 1:02:05 PM
No.105688863
>>105689173
>>105687308
gpt can barely build plain html sites mate.
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.
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?
Anonymous
6/24/2025, 2:05:46 PM
No.105689231
Anonymous
6/24/2025, 2:15:14 PM
No.105689311
>>105689352
>>105689223
you need a project.
Anonymous
6/24/2025, 2:20:40 PM
No.105689352
>>105689433
Anonymous
6/24/2025, 2:27:47 PM
No.105689426
>>105689474
>project over deadline and budget
>working off the clock to get things done
programming was a mistake
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
>>105689483
>>105689426
That's every industry.
Anonymous
6/24/2025, 2:34:48 PM
No.105689483
>>105689495
>>105689474
>work in trades
>do 08:00 - 16:00
>no after thoughts
>>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.
Anonymous
6/24/2025, 2:38:14 PM
No.105689505
>>105689508
Anonymous
6/24/2025, 2:38:42 PM
No.105689508
Anonymous
6/24/2025, 2:38:46 PM
No.105689509
>>105689521
>>105689522
>>105689495
next in shift will take it
for programmers there's nobody in the queue
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
>>105689611
>not shitting in sacks instead of relying on plumpers
Weak.
Anonymous
6/24/2025, 2:52:43 PM
No.105689611
>>105689711
>>105689582
>being indian in japanese anime image board
Anonymous
6/24/2025, 3:04:36 PM
No.105689711
>>105690188
>>105689611
Indians shit on the street, not in sacks.
Anonymous
6/24/2025, 3:57:26 PM
No.105690188
>>105690260
>>105689711
Indian here, I can do both.
Anonymous
6/24/2025, 4:04:21 PM
No.105690260
>>105690318
>>105690188
Then why don't you? That'd be an improvement.
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
>>105690371
>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.
Anonymous
6/24/2025, 4:17:30 PM
No.105690371
>>105690381
>>105690354
India doesn't have trees.
Anonymous
6/24/2025, 4:18:09 PM
No.105690381
Anonymous
6/24/2025, 4:21:09 PM
No.105690404
>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
>>105691889
i hate the style and syntax of all existing languages but to make something better, i'd have to use one.
life is suffering.
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.
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
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
>>105692172
>>105691956
dude
DUDE
dude, what if
what if
dude
dude what if there was only one programming language, the human programming language
brooooo
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
>>105697918
>>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
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
>>105692492
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.
Anonymous
6/24/2025, 8:27:00 PM
No.105692492
>>105692700
>>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.
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
>>105692579
>>105698095
>C++
>zero abstractions
Good one.
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
>>105692601
>stage one: denial
>bordering on stage two: anger
Call me once you're ready to bargain.
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
>>105692625
>can't follow the *simplest* instructions
He's gonna be stuck on stage two for a loooong time, innit he.
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
>>105692656
>muh Wernicke
This is what autism does to a person.
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
Anonymous
6/24/2025, 8:50:25 PM
No.105692700
>>105692708
>>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
Anonymous
6/24/2025, 8:51:26 PM
No.105692708
>>105692724
>>105692700
How did you know that I didn't even read your post?
Anonymous
6/24/2025, 8:53:23 PM
No.105692724
>>105692746
>>105692708
I didn't, yet you replied, like a sepples exception.
Anonymous
6/24/2025, 8:56:59 PM
No.105692746
>>105692789
>>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.
Anonymous
6/24/2025, 8:58:21 PM
No.105692756
Anonymous
6/24/2025, 9:02:08 PM
No.105692789
>>105692802
>>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.
Anonymous
6/24/2025, 9:03:27 PM
No.105692802
>>105692789
Bottom feeder issue.
Anonymous
6/24/2025, 9:24:35 PM
No.105692990
>>105693023
Trying to understand how the fuck clap works
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
>>105693234
C++: a * (a + b)
Rust: &a * &(&a + &b)
Anonymous
6/24/2025, 9:52:57 PM
No.105693234
>>105693526
>>105693225
&(&a &* &(&a &+ &b))
Anonymous
6/24/2025, 9:59:31 PM
No.105693297
>>105693318
>>105693881
all variables should be const
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
>>105693777
>>105693234
unsafe { <&(&(&a &* &(&a &+ &b)) as ref &mut i64)>.unwrap() }
Anonymous
6/24/2025, 10:58:03 PM
No.105693777
>>105693797
>>105693526
>unsafe { destroy the universe() }
Finally, we've solved safety in programming
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
#include ""
vs
#include <>
seems kind of arbitrary for something actually implemented within the language
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?
>>105693993
Me? I just manually copy/paste the contents of the header into the cpp file.
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
Anonymous
6/24/2025, 11:31:12 PM
No.105694074
>>105694542
>>105694004
cat `find -iname "*.h"` *.c | gcc -xc -
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:57:13 AM
No.105694871
>>105694883
>>105694854
is that some pronoun shit? we don't have that garbage in assembly dev
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
.
What that actually means depends on the compiler and its settings.
Anonymous
6/25/2025, 6:18:04 AM
No.105696704
>>105696708
>>105696709
>>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
Anonymous
6/25/2025, 6:18:39 AM
No.105696708
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
>>105696917
>>105697131
why are all c++ books 4800 pages long
Anonymous
6/25/2025, 7:06:24 AM
No.105696917
>>105697380
>>105696890
Because religions require brain washing.
Anonymous
6/25/2025, 7:40:39 AM
No.105697113
>>105686725
Reading documentation
Anonymous
6/25/2025, 7:43:57 AM
No.105697131
>>105697141
>>105697635
>>105696890
C++ is designed for language lawyers and language trivia dorks to circlejerk each other every year at cppcon
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
>>105697435
>>105696917
That would be a nice cope, but the only people who read the bible cover to cover are atheists.
Anonymous
6/25/2025, 8:41:18 AM
No.105697435
>>105697468
>>105697380
Nah, I'm an atheist and stopped at David.
Now. zealots, those DO believe every lie Stroustrup is telling them.
Anonymous
6/25/2025, 8:43:23 AM
No.105697443
>>105697663
this idea is the best idea ever -> this idea doesn't even make any sense
repeat forever
AHHHHHHHHHHHHHH
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
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
>>105698029
ocaml is truly a wonder of engineering. only the french could find a way to make FP feel ugly and inelegant
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
>>105698046
>>105691956
Still hard to believe nobody had the balls to use "ef"
Anonymous
6/25/2025, 10:33:41 AM
No.105698029
>>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
>>105698125
>>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.
Anonymous
6/25/2025, 10:47:40 AM
No.105698120
>>105691956
These tiny subtleties set apart real programming languages and mere toys.
#include
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
>>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
>>105698550
>>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?
Anonymous
6/25/2025, 12:02:15 PM
No.105698524
>>105698535
>>105667962 (OP)
>change one little thing
>segfaults everywhere
>add print statements "HERE1", "HERE2", etc.
>segfaults are gone
>problem solved
Anonymous
6/25/2025, 12:03:37 PM
No.105698535
>>105698584
>>105698524
Uninitialized variable?
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
>>105698593
>>105698665
>>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
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.
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)
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
>>105700793
>>105698769
>It's pretty crucial that this program does not crash
How crucial?
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
>>105700793
>>105700952
>>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,
>>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
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
>>105700963
>>105700727
>,
>FATAL ERROR: Anon stopped working.
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
>>105701216
>>105700793
>If the program crashes at the wrong time I might lose a lot of money
Anonymous
6/25/2025, 5:48:24 PM
No.105701216
>>105701394
>>105701179
Ada is intriguing but it lacks the libraries I need unfortunately
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
>>105701612
>>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.
Anonymous
6/25/2025, 6:08:01 PM
No.105701394
>>105701546
>>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.
Anonymous
6/25/2025, 6:21:54 PM
No.105701546
>>105701561
>>105701394
Its not for gui based programs
Anonymous
6/25/2025, 6:23:18 PM
No.105701561
>>105701589
>>105701546
>Its not for gui based programs
If you say so, nocoder
Anonymous
6/25/2025, 6:26:27 PM
No.105701589
>>105701613
>>105701561
Delusional
I wasnt shitting on ada btw just objectively it doesnt have good gui libraries because its used for backends
Anonymous
6/25/2025, 6:28:22 PM
No.105701612
>>105701342
Interesting, thanks
Anonymous
6/25/2025, 6:28:27 PM
No.105701613
>>105701659
>>105701589
Your statement reeks of nocoder.
There is nothing special about GUIs.
Anonymous
6/25/2025, 6:31:35 PM
No.105701659
>>105701674
>>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
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