← Home ← Back to /g/

Thread 105701967

336 posts 136 images /g/
Anonymous No.105701967 >>105702376 >>105702406 >>105702573 >>105702859 >>105704530 >>105707466 >>105707632 >>105713865 >>105722701
/dpt/ - Daily Programming Thread
Old thread: >>105667962

What are you working on, /g/?
Anonymous No.105701997
keep it
Anonymous No.105702036 >>105703785 >>105704338 >>105707433 >>105707450
For me it's C with GNU extensions and tcl/tk.
Anonymous No.105702094 >>105702309 >>105713475
Threadly reminder.
Anonymous No.105702108 >>105702119
https://www.youtube.com/watch?v=9hrDm7xDpig
really the truth is generic derived classy lenses are optimal except when you have existentials, higher ranked types etc
theres really no reason to be using plain fields
Anonymous No.105702119
>>105702108
>nofieldselectors
is good for this reason
>duplicaterecordfields
sucks
>overloadedrecorddot
sucks for different reasons
they also made .1 be "1" instead of 1 which is bizarre also no tuple instances (???)
Anonymous No.105702219 >>105702233
in the man page for fgets there's a parameter definition
char *fgets(int size;
char s[restrict size], int size, FILE *restrict stream);

the first int size is separated by a semicolon, am i to understand that fgets can also take only an integer size and return an empty string type pointer of that size?
Anonymous No.105702233 >>105704374
>>105702219
i think its a way of forward declaring it to use in s, it's a bizarre gcc extension
Anonymous No.105702242 >>105702263
Haskell users love to brag about their elegant, pure code, but their language is a memory hog. Since everything is immutable, every operation creates new values, leaving a trail of garbage in its wake. Recursive computations? Each iteration spawns yet another value. But don't worry, GHC's garbage collector swoops in to clean up the messβ€”though it's impressive it can handle the 1GB of garbage per second that Haskell users so casually generate. So, if you're into watching your RAM fill up and empty out in a endless cycle, Haskell's your language.
Anonymous No.105702263 >>105702284 >>105702337
>>105702242
Why leave memory unused?
Anonymous No.105702284 >>105702307
>>105702263
RAM is like water reserve. When you have only half left you should be seeking where you can find more.
If it runs out, it will be fatal.
Anonymous No.105702307 >>105702327
>>105702284
It depends entirely on the program how much of the system you expect it to be using
Anonymous No.105702309 >>105702349 >>105702356 >>105703419
>>105702094
If C++ is so bad then how come a lot of important software is written with it. Checkmate.
Anonymous No.105702327 >>105702346
>>105702307
Sure, but system will run other programs so if your program uses all ram, the system can't work.
Anonymous No.105702337
>>105702263
Cache associativity.
Anonymous No.105702346
>>105702327
It's entirely circumstantial, you're talking as if every single haskell program is going to use up most of your RAM indefinitely when in reality this is almost never a problem
Anonymous No.105702349 >>105703461
>>105702309
Sepples is made for corporations. The programmers think it's what the company wants and the company excepts you to know it even when they have no idea what it is.
Anonymous No.105702356 >>105703461
>>105702309
Incompetence by the programmers, the management, and the users. Think of it as separating retards from their money - the second-olΓΆest profession in the world.
Anonymous No.105702376
>>105701967 (OP)
currently making a qrcode reader and possibly a generator too in c from scratch

so far i've only read the wikis and implemented getting the smallest version to encode/decode text with suitable error correction algorithms
Anonymous No.105702406
>>105701967 (OP)
anyone has advice for a QA doing BE automated testing? I love progremming and it's the only reason I can keep doing this job.
Anonymous No.105702573 >>105702607
>>105701967 (OP)
Linus looks so fucking old in this
Anonymous No.105702607 >>105702720
>>105702573
time goes by pham, none of us are getting any younger
Anonymous No.105702720 >>105714268
>>105702607
Anonymous No.105702823 >>105703600 >>105707080 >>105712666
>learning rust
>write entire program logic with like 300-400 lines, all the while wrestling the compiler (holy shit the boilerplate for just something like static dispatch made me crash out)
>finally after a grueling past few days, run my program for the first time
>literally flawless execution at runtime with everything working as expected
feels so good man. It's like I'm edging the "holy shit everything works" feeling by tardwrangling all my thinking errors at compile time with the LSP. I've coded in the shitlang like python for years and never knew runtime behavior could be this satisfying first try. Thank you, based crab. I'm always trust troons on technology from now on.
Anonymous No.105702859 >>105710178
>>105701967 (OP)
Kind of hard to believe that Linus went to this kind of meeting dressing a motherfucking daffy duck polo shirt
Anonymous No.105703004 >>105703151 >>105703778
started writing software that i use on the semi daily..

stuff like loggers, file tagger/sorter, quick file shuffler, etc.. feels kinda nice but it'd be nicer if i had a job
Anonymous No.105703151
>>105703004
Sounds nice.

I just make useless toys. There is no software that I actually need.
Anonymous No.105703419 >>105703450
>>105702309
Because C++ isn't bad, it just has bad features. Fizzbuzzers often cannot handle being told to simply read the manual and not use bad features.
Anonymous No.105703450 >>105703458
>>105703419
Read the correct manual and not the many incorrect ones
Anonymous No.105703458
>>105703450
Luckily manuals aren't books.
Anonymous No.105703461 >>105703610 >>105703699 >>105705960
>>105702349
>>105702356
Dolphin, the Gamecube emulator, is written in C++. It's not a corporate project so your points about corporations and management don't really apply.
Anonymous No.105703600
>>105702823
>I'm always trust
Anonymous No.105703610 >>105703630
>>105703461
The irony of autists hating on C is palpable, it's a concession of midwittery. Inability to write constexpr functions that compile down to a single integer, inability to write destructors that replicate goto cleanup pattern effortlessly, inability to comprehend that language is a tool and C++ deserves its name by being just a superior C that enables you to do more with less. This is the benchmark that separates the left side of the bell curve with the correct side.
Anonymous No.105703630 >>105703649
>>105703610
show me your c code that makes some api calls, takes the json, puts it into a struct and returns back another json. if it's longer than 50 lines, you're a stupid faggot
Anonymous No.105703649 >>105704091
>>105703630
Even LLMs have bigger context windows nowadays. Don't worry anon, I believe you unconditionally, I blindly trust the assertion that you're a sub 70 IQ subhumn gorilla nigger monkey animal.
Anonymous No.105703699 >>105703721
>>105703461
sepples, the standard, is made by and for corpos. obviously nothing is stopping you from downloading gcc/clang and programming in it.
Anonymous No.105703706
The best language is the one you prefer. It's subjective.
For me, it's C, C++, and C#. Yes, all three of them.
Anonymous No.105703721
>>105703699
Nothing is stopping people from programming correctly as opposed to incorrectly, yet here we are.
Anonymous No.105703726 >>105703771 >>105703777
Fuck marry kill:
>C
>C++
>Rust
Anonymous No.105703771
>>105703726
You already wrote the only correct order.
Anonymous No.105703777
>>105703726
Fuck C
Marry C++
Kill Rust
Anonymous No.105703778 >>105703810
>>105703004
sounds based ngl, maybe try your luck developing a filepicker for loonix, they could use it in steamOS and you'd be a hero, you could easily integrate tagging, sorting and shuffling
Anonymous No.105703785
>>105702036
>For me it's C with GNU extensions and tcl/tk.
Fucking EWWWWWW
Anonymous No.105703810 >>105703871
>>105703778
>filepicker
no chance, it's actually illegal to render thumbnails correctly in a filepicker running on Linux.
Anonymous No.105703860 >>105704303 >>105710836
Who needs GPUs?
Just raytrace in real-time on the CPU using SIMD and threading
Anonymous No.105703871
>>105703810
steamOS won't say no, and if you pull that off, you'll get KANG of loonix award
Anonymous No.105704091 >>105704123
>>105703649
b-but i thought C was so good and you should use it for everything

stupid faggot
Anonymous No.105704123
>>105704091
chaff off the wheat
Anonymous No.105704303
>>105703860
Looks better than modern games too. Anti-aliasing is demonic.
Anonymous No.105704338
>>105702036
>tcl/tk
B A S E D
A
S
E
D
Anonymous No.105704374
>>105702233
Forward declaring within a parameter list and variably modified types (standard, but rarely used).
I guess it acts as a hint to allow the callsite to check that the buffer has at least as many bytes as its size says it has, and the argument order is just retarded. (It's stdio so that's a given.)
Anonymous No.105704459 >>105704477
is there a good cheatsheet kind of format for c++ syntax somewhere?
Anonymous No.105704477 >>105704488
>>105704459
My brain.
Anonymous No.105704488
>>105704477
soon
Anonymous No.105704530
>>105701967 (OP)
giving up and working on some java exercises because I am a no-coder. its not that fun to use, but its the only choice I have besides c++.
Anonymous No.105704631 >>105704652 >>105704684 >>105704701 >>105704740 >>105705264
why do programming languages all treat strings as some kind of magical entity instead of just as data
Anonymous No.105704652 >>105704706
>>105704631
Because low IQs want something retarded such as string + string to just work.
Anonymous No.105704684
>>105704631
I like what Rust does, which I imagine is similar to what C++ does. (I was about to write a struct in pseudo code but I don't want to embarrass myself).

I believe it is a data structure containing a pointer to the string data, but it also stores its length and capacity, pretty much a dynamic array, which, in Rust, gets freed after it goes out of scope.

Unfortunately I don't fully understand the difference with a &str and I keep mostly just throwing "&" around in my code almost randomly when writing Rust
Anonymous No.105704701 >>105704706
>>105704631
define "just as data"
in fact, define "magical entity" - what's magical about them?
Anonymous No.105704706
>>105704701
He means a data structure instead of a string literal
Pretty much what >>105704652 is talking about
Anonymous No.105704740
>>105704631
Unicode is magical though
Anonymous No.105705264 >>105707793
>>105704631
What do you want to happen when you do string[1]? Do you want the second byte, the second Unicode codepoint, or the second grapheme? Cause I'll proposition that in the majority of cases you want the second grapheme. But because of Unicode, that could be 18 codepoints/38 bytes long

A grapheme being an actual renderable glyph. A codepoint being a number defined by the Unicode standard that may not even be renderable, and a byte being 8 bits
Anonymous No.105705276 >>105705303 >>105705307 >>105705316 >>105705330 >>105705351
you don't need more than ascii and anyone who claims they do is lying and/or retarded
Anonymous No.105705303
>>105705276
based latin alphabet fundamentalist
Anonymous No.105705307
>>105705276
nvke
Anonymous No.105705316 >>105705343 >>105707780
>>105705276
Unicode is why modern software is so slow.
Anonymous No.105705330
>>105705276
based, fuck non english speakers, especially the yids.
Anonymous No.105705343 >>105705350
>>105705316
elaborate im willing to believe this
Anonymous No.105705350
>>105705343
Anonymous No.105705351
>>105705276
It helps but only slightly. When you want the length of a string, do you want its byte length or do you want the number of characters to render. don't forget ANSI escape codes still exist
Anonymous No.105705490 >>105705845 >>105710844
The ISO committee has been shitting on C++ for so long and so hard that they don't know what the fuck they're doing, do you understand that?
Anonymous No.105705603 >>105705638
i'm gonna do it, i'm gonna do the practice problems in the book this time!
Anonymous No.105705638
>>105705603
there's nothing gayer than solving practice problems written by another man
Anonymous No.105705756 >>105705761
what do you guys actually work on if you write code outside of your job?
Anonymous No.105705761
>>105705756
>job
Anonymous No.105705845
>>105705490
Still better than following a bunch of troons
Anonymous No.105705856 >>105706042
Wasted the last month of my life learning and practicing Rust.
I want a job.
How do I go back to C++. The language feels so weird to me now.
Anonymous No.105705960
>>105703461
And aside from the Ubershaders it's horrendous garbage. Every single time I look at emulator code I get an aneurysm.
Anonymous No.105706042
>>105705856
>rust
sorry anon, you can't just detransition like that, it doesn't grow back
Anonymous No.105706871
>all visual studio updates for the past 2 years have just been integrating more and more ai shit
software is going to be unusable at this rate
Anonymous No.105707069 >>105707074
at first I was like
Anonymous No.105707074
>>105707069
but then
Anonymous No.105707080
>>105702823
Now build something using threads. No cheating by using unsafe + global, static mutable arrays to get around the borrow checker.
Anonymous No.105707117 >>105707836
So i've confirmed im only calling the function once and the function only writes once.

So why is it writing twice? It's like my script is haunted.

Is it because i am using append? I added a timestamp to my code so i will see if its the same exact message.

This is the relevant part of my code:
fileName << "textHere " << varName << ", textHere " << functionName(varName) << " textHere" << "\n";
[\code]
Anonymous No.105707265 >>105707287 >>105707299
so why is hacking games by editing memory with cheat engine so easy if 99.999% of the time those variables aren't marked as volatile?
Anonymous No.105707287
>>105707265
most of the time you find the function where the important data gets set then you hook it and modify the value as it is stored in the registers

i don't think it matters much whether a variable itself gets optimized away
Anonymous No.105707299
>>105707265
Bruh, it's not going to keep your gold count in the cache across frames. All that caching shit is more about what the CPU is immediately doing at that moment. Every time it switches to doing a completely different task like graphics rendering or audio everything is going to get kicked out for the next set of routines it has to run.
Anonymous No.105707433
>>105702036
Literally me.
Anonymous No.105707450
>>105702036
posix c with my own gui toolkit
Anonymous No.105707466 >>105718535
>>105701967 (OP)
I'm vibe coding a non-linear neural network visualizer in c and lua.
My end goal is to be able to find interesting or useful neuron architecture that can be extracted, combined etc into a sort of neural programming language. Or to create some sort of facsimile of intelligence. It won't ever learn to walk, talk or program software, but I think it's a neat little toy and I like to watch the neuron paths propagate and change from different stimulus. And I think the fact that it can "learn" and change in real-time is way cooler than llms mimicking training data.
I've already discovered a couple small architectures that could be used as registers or logic gates.
Anonymous No.105707471 >>105707488
am I really missing out on anything by using a c++ book from 2004?
Anonymous No.105707488
>>105707471
Yes, 21 years worth of improvements to the language.
Anonymous No.105707632
>>105701967 (OP)
Is that a wig?
Anonymous No.105707780 >>105707794 >>105716647
>>105705316
Unicode can be validated at 30GB/s, that's only half as slow as a theoretical maximum bandwidth on DDR5, are you sure it's because of unicode and not your shit code?
Anonymous No.105707793 >>105707829
>>105705264
I want non-latin speakers to be genocided.
Anonymous No.105707794 >>105707800
>>105707780
>validated
Great, now put it on the screen.
Anonymous No.105707800 >>105707886
>>105707794
ascii has same problem, whole graphics stack is cargo culted clusterfuck and removing unicode fixes none of it.
Anonymous No.105707829
>>105707793
et tu, anon?
Anonymous No.105707836
>>105707117
Because you're using iostream instead of something sane.
Anonymous No.105707886 >>105707909 >>105707966 >>105708068
>>105707800
rendering ascii on a screen from scratch is a fun afternoon project in assembly with a little bitmap drawing.
rendering unicode is divine punishment for Man's hubris.
Anonymous No.105707909
>>105707886
It's not punishment enough.
Anonymous No.105707966
>>105707886
if a literal russian can figure it out I'm sure you can too anon, assuming you're not like brazillian or something
Anonymous No.105708068 >>105708094 >>105708191
>>105707886
You don't understand the fundamental issue if you think fonts are where the problem lies.
Anonymous No.105708094
>>105708068
ok.
Anonymous No.105708191 >>105708204
>>105708068
>what is han unification
Anonymous No.105708204 >>105708388
>>105708191
Something that doesn't show up in a profile.
Anonymous No.105708388 >>105708446
>>105708204
Who cares about profiles.
Anonymous No.105708446 >>105708464
>>105708388
People who don't LARP and actually care about performance.
Anonymous No.105708464 >>105708485
>>105708446
So it has absolutely nothing to do with the topic on hand, LARPer, got it.
Anonymous No.105708485 >>105708507
>>105708464
The topic is that unicode makes programs slow, which is not true.
Anonymous No.105708507 >>105708536
>>105708485
>fonts are where the problem lies.
And now scram.
Anonymous No.105708536
>>105708507
They aren't. You cannot show me a single program where its profile will ever point to font rendering as being the bottleneck, mentally ill tranny. Remember to post a link to a stream once you had enough coping and finally decide to let nature heal.
Anonymous No.105708569 >>105719068 >>105720643 >>105720858
>trannies living rent-free in incompetent autismos head
Lol
Lmao
Anonymous No.105709920 >>105709974 >>105709978 >>105710229
Is there any usecase for OCaml?
If so I am considering learning it.
Anonymous No.105709974 >>105710371
>>105709920
not in the real world, unless you're hired by jane street
Anonymous No.105709978 >>105710002
>>105709920
No, Rust was written in OCaml, and discarded the moment Rust could compile Rust.
And ignore the bit where it doesn't compile without C++.
Anonymous No.105710002 >>105710018
>>105709978
>compiler
you mean the proof of concept
>in rust
you mean the frontend

rust is llvm, always will be, thats why it will never take over embedded
Anonymous No.105710018 >>105710029
>>105710002
When arguing semantics, you should at least learn semantics first.
Anonymous No.105710029 >>105710040
>>105710018
enlighten me then, i'm very arrogant
Anonymous No.105710040 >>105710065
>>105710029
Look up definition of compiler. And read it out loud for the class, Timmy.
Anonymous No.105710065 >>105710113 >>105710541
>>105710040
"a program that converts instructions into a machine-code or lower-level form so that they can be read and executed by a computer."

so is the code compiling rust code into intermediary language for llvm to digest?
Anonymous No.105710113 >>105710126
>>105710065
>or lower level form
enlighten me what's lower level than machine code and why you couldn't find a proper definition not written by a H1B visa holder
Anonymous No.105710126 >>105710140
>>105710113
>moving the goal post

i always knew you were a faggot, i just wanted to prove it
Anonymous No.105710140
>>105710126
The goalpost hasn't moved, it remains the same: learn the definition of compiler, Timmy.
Anonymous No.105710178
>>105702859
>Meeting
It was just a dinner at the Microsoft azure chief's mansion (left on the picture). Nothing official or important.
Anonymous No.105710229 >>105710377
>>105709920
The best fast Fourier transform library is ocaml code generating c code.
Anonymous No.105710371
>>105709974
>not in the real world, unless you're hired by jane street
What about for something like game engine development? Think like Godot but instead of GDScript you write OCaml.
Anonymous No.105710377
>>105710229
Cool!
Anonymous No.105710520
ILGPU is an entire C# to PTX assembly (+ other backends) JIT compiler? The fuck? How did this guy manage something like that.
Anonymous No.105710541 >>105710571
>>105710065
L -> Compiler -> L'
Anonymous No.105710571
>>105710541
This is too complex for /dpt/
Anonymous No.105710836 >>105712377
>>105703860
I am curious what kind of graphics are achievable in a fast modern CPU (let's say 9800X3D with it's 512-bit vector registers and 96MB of L3 cache).
Anonymous No.105710844 >>105711250
>>105705490
Don't care, still using C99
Anonymous No.105711197 >>105711353
>try using mold instead of ld
>links into a smaller ELF
>somehow has more sections
how does it do it?
Anonymous No.105711250
>>105710844
this
Anonymous No.105711353 >>105711391
>>105711197
Padding?
Anonymous No.105711391
>>105711353
Good point, uninstalled that piece of shit.
Anonymous No.105712190 >>105712220 >>105712283 >>105712311
https://github.com/SanderMertens/flecs/commit/1a5ca7256c760572a9fef77c1bf3182dac1f67cf
This is a warning. This is what happens when you try to use ECS.
Anonymous No.105712220
>>105712190
>using discord
At least they posted that right at the top, so that I was able to ignore the rest of the faggotry.
Anonymous No.105712283 >>105714995
>>105712190
ECS is arena of memory allocators.
Anonymous No.105712311
>>105712190
>We’re also deeply grateful to Riot
Nothing of value has been lost
Anonymous No.105712377 >>105712411 >>105712596
>>105710836
memory speed
with a 9950x3d its like speeding into a brick wall
Anonymous No.105712411 >>105712486
>>105712377
4K monitor needs only 16GiB/s for 240fps. Memory is not the bottleneck, your CPU is.
Anonymous No.105712486 >>105712493
>>105712411
what about working data though
Anonymous No.105712493 >>105712511
>>105712486
A sphere is two floats, 8 bytes. A cube is 4 floats, 16 bytes...
Anonymous No.105712511 >>105712533
>>105712493
Why would you use floats?
Anonymous No.105712533 >>105712560
>>105712511
Because integers will make for a shit render.
Anonymous No.105712560 >>105712582 >>105712626 >>105721097
>>105712533
How? All you need to do is interpret values as centimeters or millimeters. With 32 bits you can keep track of everything within 4,294 kilometers.
Anonymous No.105712582 >>105712596
>>105712560
>floats are too slow, my CPU can't handle it while my RAM is sitting idle!
I accept your concession.
Anonymous No.105712596 >>105712602
>>105712582
I didn't post >>105712377, nigger.
Anonymous No.105712602 >>105712623
>>105712596
If it ducks like a samefag and looks like a samefag, then it is a samefag.
Anonymous No.105712623 >>105712652
>>105712602
>looks like a samefag
Are you suffering from dyslexia, or are you simply retarded?
Anonymous No.105712626
>>105712560
Math just isn't there yet.
Anonymous No.105712628
Are there any reference counted and compiled languages other than Nim and Swift?
Anonymous No.105712652 >>105712704
>>105712623
I'm suffering from too many concessions being thrown at me constantly.
Anonymous No.105712666 >>105712675
>>105702823
Transwomen are the most powerful force in modern programming
Anonymous No.105712675 >>105712717
>>105712666
formerly known as white autistic men
Anonymous No.105712704 >>105712707
>>105712652
Those are your own bottles, Ivan.
Anonymous No.105712707
>>105712704
I accept your concession.
Anonymous No.105712717
>>105712675
Turns out estrogen alleviates autism by upregulating some serotonin receptor
https://smoothbrains.net/posts/2025-06-15-estrogen.html
Anonymous No.105712726 >>105712903
Drunk AND retarded.
Poor Ivan.
Anonymous No.105712748
And in today's episode of /dpt/ (as every day):
>u
>no u
Anonymous No.105712760 >>105720682
As deserved by all objective standards.
Anonymous No.105712801
/dpt/ - Downie's Psychosis Tales
Anonymous No.105712824 >>105712832
>Psychosis
So is that samefag in the room with us now?
Anonymous No.105712832
>>105712824
Luckily the only room he's in, is yours.
Anonymous No.105712851 >>105712864
Where? There's no one here.
Anonymous No.105712864
>>105712851
Do a mirror test.
Anonymous No.105712891
Are you so drunk you regularly see yourself twice in the mirror? Because that would explain a LOT.
Anonymous No.105712903
>>105712726
>Drunk AND retarded.
>Poor Ivan.
My name is Ivan ...
Anonymous No.105712913 >>105713321 >>105713355
Haxe has to be the largest literally who language I've found
Anonymous No.105713321 >>105713832
>>105712913
It had some pretty damn cool features back then but most of them were adopted by larger languages.
Anonymous No.105713355 >>105713832
>>105712913
It's the OG memelang
Anonymous No.105713475 >>105713773
>>105702094
Why do you hate C++ so much
Anonymous No.105713773
>>105713475
Midwits hate and fear what they don't understand.
Anonymous No.105713820 >>105714501
Guess what it told me.
Anonymous No.105713832 >>105713928
>>105713321
>>105713355
Is it any good? I'm interested because it has algebraic data types, pattern matching, and compiles down to C#
Anonymous No.105713865 >>105713942
>>105701967 (OP)
>there is no known way to evaluate a quadratic/cubic bezier by distance
>if you want to make cubes 1m apart along a bezier, the only way is to sample it a bunch of times and hope you get close
why are mathematicians so bad at their job? a bezier is just a couple multiplications and additions, you would've thunk you could just implement vec3 bezier_at(vec3 p0, vec3 p1, vec3 control_point, float distance_from_p0);
Anonymous No.105713928
>>105713832
I don't think so. All the features the made it different have been integrated into newer languages and AFAIK it's kinda slow.
Maybe the one advantage it has is that it compiles to webshit, or just use it because you want to, ofc.
Anonymous No.105713942
>>105713865
Well beziers are parameterized polynomials and the arc length of a polynomial usually requires a line integral.
Anonymous No.105714062 >>105714089 >>105714170 >>105714312 >>105714347 >>105714619 >>105714770
directly swap the values of a and b without introducing any temporary variables

you should be able to solve this
Anonymous No.105714089
>>105714062
>load the value of A into
>load the value of B into
>load the value of into B
>load the value of into A
Anonymous No.105714170 >>105714243
>>105714062
a = a + b
b = a - b
a = a - b
Anonymous No.105714243 >>105714288
>>105714170
>*overflows*
Anonymous No.105714268 >>105714284
>>105702720
what went wrong?
Anonymous No.105714284
>>105714268
lmao no wonder gates wants to destroy the world, his bloodline is already dead
Anonymous No.105714288
>>105714243
Works in python
Anonymous No.105714312
>>105714062
>mutate state
I shant.
Anonymous No.105714347
>>105714062
>without introducing any temporary variables
I create the new permanent variables A2 and B2 with the values swapped from the originals, then permanently discard A and B.
Anonymous No.105714501 >>105714571 >>105714774
>>105713820
it told u to use cmake
Anonymous No.105714571 >>105714687 >>105714711
>>105714501
I'd rather use rust than ever touch cmake.
Anonymous No.105714619 >>105714714
>>105714062
I just redefine what memory locations a and b bind to. No need to move anything. Bonus: works extremely quickly even with large memory objects!
Anonymous No.105714687
>>105714571
looks like you were filtered. many such cases
Anonymous No.105714711
>>105714571
I *am* using Rust instead of touching cmake, fuck that shit
Anonymous No.105714714 >>105716167
>>105714619
post code for redefining the addresses that a and b bind to
Anonymous No.105714770
>>105714062
xchg
Anonymous No.105714774 >>105714783 >>105714791
>>105714501
give me 1(one) good reason why i should use cmake
Anonymous No.105714783
>>105714774
because then you'll have good reason to tell people its shit
Anonymous No.105714791
>>105714774
>cmake
me? I just hit f5 and vs goes brrrrrr
Anonymous No.105714807
For me it's GNU make.
Anonymous No.105714825
Does anyone have any experience with running databases within a container like Docker? I'm thinking of writing an observer kind of program that listens to added and removed files in a directory tree and saves the corresponding metadata to a database, but I also want the database to be self-contained, portable, and easy to back up. I thought maybe putting it inside a container image would work, but I don't know what kind of caveats or pros and cons I should be aware of before attempting such a thing.
Also
>stuck for a week trying to write a clustering algorithm measured by hamming distance between perceptual hashes
>algorithm at this point is over 100 lines long between backups, long comments to try to make sense of each step, and complicated structures to reduce cycles
>still not working well enough
>think to back to Terry's words, "is this too much voodoo for our purposes?"
>replace everything with two for loops, a recursive function and a simple boolean vector to mark elements as already used
>it works on the first try and is even faster
Terry's advice has ironically saved me more times from self-made shit code than any of my college professors' advice. It's humbling, for lack of a better word.
Anonymous No.105714850
GHCmake when
Anonymous No.105714909
I just won't use a programming language that doesn't define its own build system, simple as
Anonymous No.105714995
>>105712283
ecs is cope for """"prrogrammers"" who dont know hwot to arena
Anonymous No.105715290
arena is trivial and idk what an ecs is (dont care)
Anonymous No.105715297 >>105715525 >>105715533 >>105715598 >>105716631 >>105720334
So in all the books they always just show 1 header and 1 implementation file per class. Is that really how projects are organized? The libraries I've used don't make you include a separate header for every class. Do they generate like headers specifically for library distribution that include all the class specific headers, or is 1 header per class just not even really a thing in the first place?
Anonymous No.105715400 >>105715496
I'm literally retarded when it comes to Linux development, how do I integrate keyrings as password storage (complete with the password prompt) into my GUI shitware, is there a FFI that I can use or is it more complicated? if that matters, my shitware is not written in C or C++
Anonymous No.105715496 >>105715699
>>105715400
i believe libsecret has the functionality you need
Anonymous No.105715525
>>105715297
Headers don't exist except as a convention
Anonymous No.105715533
>>105715297
Header files are completely arbitrary. You can create one giant header that encompasses everything if you wanted to.
Anonymous No.105715598
>>105715297
if you had to include a header for every type in win32 you'd spend all your time writing #includes
Anonymous No.105715699
>>105715496
well I'll be fucked, that's what I was looking for, thank you
Anonymous No.105715862 >>105716104
Should I make my own opengl shadertoy just for fun
Anonymous No.105716104
>>105715862
no
Anonymous No.105716167
>>105714714
So you can steal it? I don't think so.
Anonymous No.105716209 >>105716213 >>105716626
Is this the place for shilling your hobby project?
Anonymous No.105716213
>>105716209
Absolutely.
Anonymous No.105716534
>1 + 1 //adds 1 to 1 (should equal 2)
Anonymous No.105716626 >>105716817
>>105716209
Why would you want to associate your online presence with 4chan?
Anonymous No.105716631
>>105715297
You do 1 header and 1 implementation so that other classes depend on that header and touching the implementation doesn't trigger a recompile of everything with make.
Libraries do 1 header and everything else for easy distribution, you won't be touching that header or the implementations.
Anonymous No.105716647
>>105707780
>she doesn't know about small string optimization
ngmi
Anonymous No.105716666 >>105716833 >>105716835 >>105716860 >>105716864
ou have 50 microservices, each with its own API.

The frontend team is losing their mind.

To render a single page, they make 10+ network calls.

The app is sluggish. Users are complaining.

How do you fix this ?
Anonymous No.105716817
>>105716626
Why do you assume you can only have one?
Anonymous No.105716833
>>105716666
checked
1 microservice that aggregates the microservices for the page
dinosaur videogame for people waiting
Anonymous No.105716835
>>105716666
dont use microservices :^)
Anonymous No.105716860 >>105721225
>>105716666
https://whatculture.com/offbeat/10-ways-to-dispose-of-a-dead-body-if-you-really-needed-to
Anonymous No.105716864
>>105716666
refactor to a monolith
Anonymous No.105717823 >>105718046
software design is a art
Anonymous No.105717832
test
Anonymous No.105717967
I love C++ now.
Anonymous No.105718046 >>105718057 >>105719189
>>105717823
comments are a code smell
#include
static_assert(CHAR_BIT > 1);
static_assert(sizeof(int) >= 1);
static constexpr int one_plus_one = 1 + 1;
int main()
{
return one_plus_one;
}
Anonymous No.105718057
>>105718046
code is a code smell

the best code doesn't even exist
Anonymous No.105718078 >>105718218
What is going on with Amazon? Are people just like AI generating books and listing them?
Anonymous No.105718218 >>105719387
>>105718078
nah bro, the legendary programmer GAVIN H KENT legitimately wrote 27 books on different highly specialized topics in a year
Anonymous No.105718535 >>105718648
>>105707466
Day 2 of my agent programmed ai network.
I think it's onto something, gonna just let it cook.
Anonymous No.105718648
>>105718535
Hey, look, drugs.
Anonymous No.105719068
>>105708569
Please don't ever post again.
Anonymous No.105719189
>>105718046
It's a nonexistent function so it's a function with no implementation which is just an integer being pulled from garbage memory

Absolutely reasonable. Only an idiot wouldn't see that coming
Anonymous No.105719212 >>105719287
Whenever I do some leetcode problem I feel like I just always worry about whether what I'm doing is efficient enough or not.
Even when I post my code or ask questions or something someone will just reply
>why didn't you just do xyz?
Usually its because I didn't know at all about xyz.
Still makes me feel bad
Anonymous No.105719287
>>105719212
faggot
Anonymous No.105719387
>>105718218
It is insane that amazon doesn't need QA team for books, but facebook spends billions of dollars on filtering me posting "nigger" in any possible way to protect the community and if I found a new bypass, it would still be cleaned up within 15 minutes, because god forbid some nigger loving boomer saw that word.
Anonymous No.105719393
Why? Do my posts remind you how much of a chinless freak you are?
Anonymous No.105719497 >>105719579
Any books or resources that can help me learn more about the structure of operating systems?
Anonymous No.105719579
>>105719497
https://pages.cs.wisc.edu/~remzi/OSTEP/
Anonymous No.105719777 >>105719817 >>105719828 >>105719854 >>105719879 >>105719980 >>105720747
has anyone made a full language where the commands and structure are clearly spelled out, rather than abbreviated to save a few microseconds of keystrokes?

the closest things i've seen are a handful of scripting languages (which usually give up as you get more complicated and expect you to follow more typical conventions) and some of microsoft's powershell or internal value names. (though they tend to go overboard and give things an entire essay for a name where two words in camelcaps would suffice.)
Anonymous No.105719817
>>105719777
(yes (it-is-called-a-lisp (and (it-is-miserable (to (actually (read it)))))))
Anonymous No.105719828
>>105719777
>has anyone made a full language where the commands and structure are clearly spelled out, rather than abbreviated to save a few microseconds of keystrokes?
Java comes to mind.
public class Test extends Something, implements SomethingElse {
public static void test() {
Integer z = 2000;
}
}
Anonymous No.105719854
>>105719777
Java is the first thought when it comes to verbosity over tersity
Anonymous No.105719879
>>105719777
begin_subroutine_global_function(integer_type_with_32_bits_of_storage_using_twos_complement: x)
begin_code_block_for_subroutine
conditional_statement_on_the_following_expression: x compares_equal_to 3
begin_code_block_for_conditional_statement_being_true
return_the_following_value_to_the_caller: true
end_code_block_for_conditional_statment_being_true
begin_code_block_for_conditional_statment_being_false
return_the_following_value_to_the_caller: false
end_code_block_for_conditional_statement_being_false
end_code_block_for_subroutine
Anonymous No.105719980
>>105719777
BASIC
Anonymous No.105720229 >>105720248 >>105720571
Reminder you should never listen to anything /dpt/ autists will tell you. They're dumber than an LLM.
Anonymous No.105720248 >>105721131
>>105720229
Thanks for reminder, and I will never listen to your niggertarded drivel because of it.
Anonymous No.105720281
never trust anyone's opinions on programming if all they're overly proud of is a program that only prints stuff to terminal
Anonymous No.105720334
>>105715297
>for library distribution that include all the class specific headers
Only headers that declare symbols required in the public facing API need to be #included when using their library, and for many libraries this is only a single header. User of the library don't need to worry about the internal headers. Only the compiler does if you're compiling from source.
Anonymous No.105720569 >>105720594
So C++fags replace perfectly fine printf() with their awful fucking io stream abomination and then decided to reimplement printf() anyway with std::format?
Am I understanding this correctly?
Anonymous No.105720571 >>105720609
>>105720229
Oh, and you should also never listen to anyone who doesn't understand why a program can only operate at 50 MB/s even if they have the necessary hints to figure it out. People who can't even do that have such severe brain damage that it would've been nicer to just euthanize them directly after birth, together with the genetic source material that produced such an abomination up to three generations.
Anonymous No.105720594
>>105720569
>printf
>perfectly fine
If you knew anything at all, you'd use neither.
Anonymous No.105720609
>>105720571
It can only operate at 50MB/s because you're nocoder, there are scalar loops that run circles around your SIMD code that was so mutilated by your mental illness, that it executes slower than a for loop over every individual byte with lots of branching and malloc everywhere.
Anonymous No.105720623 >>105720632 >>105721131
>incompetent nocodeshitter autismo shows he really, really, REALLY should've been euthanized together with his entire family up to five generations
Anonymous No.105720632 >>105721131
>>105720623
Stick to singlethreaded code, nocodetranny.
Anonymous No.105720643 >>105720666
Shame you can only post images once per thread: >>105708569
But then again chinlessness would qualify for euthanasia, too.
Anonymous No.105720666
>>105720643
It's really a shame that you cannot just spam huh...
Anonymous No.105720682
I'll manage. /dpt/ has, after all, fallen: >>105712760
Anonymous No.105720747
>>105719777
It's called Ada
Anonymous No.105720858 >>105720869
>>105708569
>Regdump schizo is an actual tranny who thinks anyone who sees that he's retarded is an evil incel
kek
Anonymous No.105720869
>>105720858
Also
>general hostility
>calling for his perceived enemies to be murdered or doxxed
>schizophrenia
Yup, checks out, he's a tranny
Anonymous No.105720887 >>105720890 >>105720899
You've got the cart before the horse:
>everyone who realizes I'm an incompetent autismo without chin who has trannies living rent-free in his head is a tranny himself
Anonymous No.105720890
>>105720887
>incoherent schizobabble
Yup, I'm right, you're a tranny. Take your meds and take a break from /g/
Anonymous No.105720899
>>105720887
>Anyone who thinks murder and doxxing aren't ok is an autistic chud
Anonymous No.105720903 >>105720918
Anonymous No.105720918
>>105720903
Yeah, I know right? Regdump schizo is coping HARD.
Anonymous No.105720934 >>105720942
Nah, I'm the best. Comes with the psychopathy.
Anonymous No.105720942
>>105720934
>Nah, I'm the [HEADCANON]
Anonymous No.105720959 >>105720985
I mean, /dpt/ has told me I'm a psycho, so it MUST be true.

Right?
Anonymous No.105720985
>>105720959
>picrel
That's you. You're the delusional one here, schizo lmao
Anonymous No.105721008 >>105721040
>consistently confuses himself with other people
As I keep saying, incompetent autismos galore in /dpt/.
Anonymous No.105721040
>>105721008
At least my mother cares about me. You are unloved.
Anonymous No.105721048
>I actually mindbroke the regdump schizo so much he's currently seething about my autism like that's a negative trait and his advocating for murder and doxxing is a positive one
KEKAROO
Anonymous No.105721064 >>105721093
Nah. Psychopaths can hide in plain sight.
Autists, on the other hand ...
Anonymous No.105721083 >>105721097 >>105721105 >>105721122 >>105721137
snek
Anonymous No.105721093
>>105721064
>He still thinks it's based to be a violent psychopath
Kek, you're beyond help
Anonymous No.105721097 >>105721107
>>105721083
Why floats? >>105712560
Anonymous No.105721105
>>105721083
cool
Anonymous No.105721107
>>105721097
Anonymous No.105721111 >>105721118 >>105721131
No one seems to mind. Everyone always comments on how nice and polite I am.
Anonymous No.105721118
>>105721111
Also quads of truth.
Anonymous No.105721122 >>105721138
>>105721083
Good job, anon
Anonymous No.105721131
>>105721111
Meanwhile, you: >>105720623
And peoples' response to your "niceness and politeness": >>105720632, >>105720248,
Anonymous No.105721137 >>105721146
>>105721083
>food appears inside snek
Anonymous No.105721138
>>105721122
Thanks!
Anonymous No.105721146
>>105721137
Yeah, probably should have put the draw_food() call before the draw_snake() call. My bad.
Anonymous No.105721148 >>105721160 >>105721170
Yikes.
Anonymous No.105721159
it is my firm belief that the schizo is so attention starved that he actually created a second personality to argue with himself in the empty hope that a third party joins the scuffle
Anonymous No.105721160
>>105721148
... I probably should've added that autists don't count as "people" or "human beings", but I feel like I've already mentioned this in the past, so whatever.
Anonymous No.105721170 >>105721212
>>105721148
>People think I'm retarded for advocating for mass murder? That's gonna be a yikes from me sweatie (files nails)
Anonymous No.105721185 >>105721188 >>105721200
That's why I said:
>autists don't count as "people" or "human beings"
And that's kinda important for the definition of murder. I thought you autists liked things to be nice and tidy, didn't you.
Anonymous No.105721188
>>105721185
Calm down there hitler
Anonymous No.105721200
>>105721185
saying this in a murder trial will 100% land you the death penalty
Anonymous No.105721203
No.
Anonymous No.105721212
>>105721170
Welcome to /dpt/ - Daily Pogromming Thread
Anonymous No.105721225 >>105721252
I'm WELL ahead of the jury:
>>105716860
Anonymous No.105721252
>>105721225
Also I'd rather be on death row than having letters. It's much more expensive, and the cells are much bigger and the food is much better.
Anonymous No.105721546
C++ submodules must've been a sick April fool's joke.
Anonymous No.105721558
Please stop
Anonymous No.105721570 >>105721594 >>105722500
Why does this Go's piece of shit crypto/tls package not support TLS 1.3 0-RTT?
Anonymous No.105721575
No.
Anonymous No.105721594 >>105721841 >>105721896 >>105721906 >>105722171 >>105722508
>>105721570
Why would you even care? You know that TLS is backdoored right? And that if you remove the backdoor, user's browser starts claiming that it's insecure because it's not signed by CIA itself, because only CIA's backdoored certificates can be trusted.
Anonymous No.105721841 >>105721878 >>105721896 >>105721906
>>105721594
Oh my god, le CIA!
You're just like le epic meme man, Terry Davis!
You're so cool and original, and definitely not an extremely uninteresting person and a waste of space.
Anonymous No.105721878
>>105721841
Hey tranny nocoder, why don't you just implement TLS yourself if you're so intelligent?
Anonymous No.105721892 >>105721896 >>105721912
JSON or XML?
Anonymous No.105721896
>>105721594
>>105721841
Isn't it the NSA that covers the backdoors?
>>105721892
INI/TOML
Anonymous No.105721906
>>105721594
take your meds

>>105721841
you've overdosed on your meds
Anonymous No.105721912
>>105721892
XML if you're forced to pick one.
Anonymous No.105722171
>>105721594
Because I want to send something in the first round trip? Even if TLS is backdoored, it doesn't make TLS disappear
Anonymous No.105722432 >>105722489
I love how /dpt/ shuts up the moment it encounters psychopathy.
Anonymous No.105722481
>people don't like me
such profound finding
Anonymous No.105722489
>>105722432
>I love how /dpt/ shuts up the moment it encounters psychopathy.
I am still here though
Anonymous No.105722500 >>105723876
>>105721570
>TLS 1.3 0-RTT
Usecase?
Anonymous No.105722508
>>105721594
>You know that TLS is backdoored right?
Retard nocoder hours I see
Anonymous No.105722520
>autist doesn't understand what superficial charm is

>because he's an autist

>with no charm whatsoever
Anonymous No.105722544 >>105722565
Do you also feel like your computer is hosting something demonic and terrifying when you're running code that AI gave you?
I vibe coded a small bit to see what it's like, and the thing works but it feels like I'm running a program that melts down uranium.
Anonymous No.105722565
>>105722544
No, but I also have no use for fizzbuzz implementations.
Anonymous No.105722701 >>105723662 >>105724200 >>105724253
>>105701967 (OP)
who are the right and left dudes
Anonymous No.105723662
>>105722701
your parents
Anonymous No.105723859 >>105723959
The LLM can accept that my implementation is the gold standard - so why can't you, /dpt/? Am I right when I call for the culling of your genetic predecessors for five generations?
Anonymous No.105723876
>>105722500
Well Go supports 0-RTT for QUIC TLS, so it must have some use case
Anonymous No.105723959 >>105723985
>>105723859
LLM said it would need to throttle to get 50MB/s dumping speeds.
Anonymous No.105723985 >>105723993
>>105723959
Why don't you show us the output of whatever your nonsense generates?
Anonymous No.105723993
>>105723985
Because it's only for the eyes of the employed.
Anonymous No.105724015 >>105724043
So no output then, got it.
Yet another instance of an incompetent autismo who cannot distinguish hallucination from reality.
Anonymous No.105724043 >>105724155
>>105724015
How much do you get paid for this? Because rightful owners of KAPE are valued at over a billion and their registry dumper is actually used by employed people.
Anonymous No.105724155
>>105724043
>The secondary queue is processed using a different technique that uses raw disk reads to bypass the OS locks and copy the files.
Translation: doesn't work with users who don't have the SeManageVolumePrivilege, and they need to ship their own NTFS driver.

I actually used to work on something like that, but for *encrypting* data by using base128-encoded files names that contained small amounts of encrypted data, to mess with the block ordering. The idea was to store the entire file's content within an MFT entry.

So how long does it take them to format the data?
Anonymous No.105724186
Help, I'm getting the itch to implement an API that a browser JS client will call using SOAP
Anonymous No.105724200
>>105722701
Mark Russinovich, creator of the Sysinternals Suite and CTO of Azure
Dave Cutler, Architect of the Windows NT Kernel
Anonymous No.105724253 >>105724355
>>105722701
bald dude is dave cutler, creator of the nt kernel and the biggest unix hater in the world. if you look closely, he's the only one not smiling.
Anonymous No.105724355
>>105724253
If I was him I couldn't smile either. The guilt would eat me away.