/dpt/ - daily programming thread
what are you working on /g/?
prev:
>>106375242
trying to learn cpp, what to build?
Anonymous
8/31/2025, 3:47:06 AM
No.106438673
>>106438646
an llvm frontend
Anonymous
8/31/2025, 3:47:39 AM
No.106438678
>>106438646
same, im making a pong clone using SFML
not really breaking new ground but i guess it is making me more comfortable with structs
Anonymous
8/31/2025, 3:48:54 AM
No.106438694
>>106438724
>>106438729
>>106438646
Begin with C# first
Anonymous
8/31/2025, 3:52:24 AM
No.106438724
Anonymous
8/31/2025, 3:53:13 AM
No.106438729
>>106438694
I already know java
Anonymous
8/31/2025, 3:54:36 AM
No.106438734
>>106438747
>>106438755
>>106438619 (OP)
>maid /dpt/ gets deleted
>new /dpt/ still has a maid
Why do jannies bother to delete maidposts? Everyone using this board is a cute maid. That is who wants to even discuss these topics. Anybody both willing and able to talk about language/compiler design anonymously online is wearing a maid outfit. It isn't even secret anymore.
Anonymous
8/31/2025, 3:55:56 AM
No.106438747
>>106438734
i dont i just wear striped thigh highs
the dress and apron is a pain to take off and put on
Anonymous
8/31/2025, 3:57:06 AM
No.106438755
>>106438881
>>106438734
dejiko isn't a maid you sperg
Anonymous
8/31/2025, 4:05:57 AM
No.106438818
Stop talking about maids and ask the real important question:
Have you ever jerked off to your or someone else code?
Anonymous
8/31/2025, 4:05:57 AM
No.106438819
Going through
https://clang.llvm.org/docs/ClangFormatStyleOptions.html trying to build a style that isn't terrible because all of the presets are garbage
Hard requirement is that indentation is NEVER dependent on the length of an identifier. Shit like
auto myLongVariableNameLooooooool = someFunction()
.hahahaFuckYou();
drives me insane.
Anonymous
8/31/2025, 4:06:02 AM
No.106438821
>>106441297
>>106475221
any good NEET lang?
fun to write, don't care if useful
thinking J
Anonymous
8/31/2025, 4:15:37 AM
No.106438881
>>106438958
>>106438990
>>106438755
>she isn't a maid
>she just likes wearing a maid outfit and engaging in maid activities like cleaning and heart hands and advanced Mathematics and Computer Science research and programming on her Maid Computer
Anonymous
8/31/2025, 4:28:57 AM
No.106438958
>>106439103
>>106438881
she's an alien catgirl princess that works in video game store
larping as a drawing is one thing but don't start pretending you're a math/CS wizard
Anonymous
8/31/2025, 4:33:41 AM
No.106438990
>>106439103
>>106438881
Reducing classic anime girls as just "maid" is as bad as people who reduce Astolfo as just "femboy"
Anonymous
8/31/2025, 4:47:31 AM
No.106439083
>>106439102
>>106439128
How the fuck do I compute the minimum value of a signed integer type at compile time in C without invoking UB?
I'm learning how to use SIMD instructions so I am working on detecting the enabledness of those instructions so that I can use them for some data stuff i'm doing with 3d models, AVX could speed up parts of my program by a 8x, with more gains to be had by adding parallelization later if I need to
Anonymous
8/31/2025, 4:49:17 AM
No.106439102
>>106439106
>>106439083
stdint.h
INT_MIN
>>106438958
>>106438990
I am being attacked by a weapon that plays a sound that causes depression. It vibrates my bones and causes depression. They play it from a machine, possibly located in space to cause depression. I would try to watch this show, but until the sound stops I can take no actions.
Anonymous
8/31/2025, 4:49:52 AM
No.106439106
>>106439159
>>106439182
>>106439102
okay now do __int128_t
Anonymous
8/31/2025, 4:53:12 AM
No.106439128
>>106439083
use std::numeric_limits or the INT_MAX macros, or limits.h/
, or just roll it over from max like a real gamer
Anonymous
8/31/2025, 4:54:21 AM
No.106439138
>>106439103
We'll destroy those gangsters someday brother
Anonymous
8/31/2025, 4:57:55 AM
No.106439159
>>106439178
>>106481916
>>106439106
from stackoverflow...
static const __uint128_t UINT128_MAX =__uint128_t(__int128_t(-1L));
static const __int128_t INT128_MAX = UINT128_MAX >> 1;
static const __int128_t INT128_MIN = -INT128_MAX - 1;
//or...
std::numeric_limits<__int128>::max()
Anonymous
8/31/2025, 4:59:35 AM
No.106439169
>>106439103
you may have
paranoid schizophrenia
hello
Anonymous
8/31/2025, 5:01:18 AM
No.106439178
>>106439201
>>106439266
>>106439159
assumes two's complement
Anonymous
8/31/2025, 5:01:55 AM
No.106439182
>>106439106
no
ill do it when unsigned long long long becomes standard
Anonymous
8/31/2025, 5:05:06 AM
No.106439201
>>106439217
>>106439178
NTA but one of the two:
Or you are doing something malicious her "OH HOW C BAD NOBODY SHOULD USE IT" like a rust evangelist
Or you really have some mental issue like the other poster, to not only need it for __int128_t, but also care about two's complement as if any computer you are gonna ever touch will use one's complement or other in it's C implementation
Anonymous
8/31/2025, 5:06:42 AM
No.106439217
>>106439201
malicious here*
Anonymous
8/31/2025, 5:15:24 AM
No.106439266
>>106439301
>>106439178
if you know that it's a 128-bit signed integer then it's max should be 2^127 right, assuming we aren't counting the sign bit? can't you just precalculate and define the value?
-2^127=-170,141,183,460,469,231,731,687,303,715,884,105,728
Anonymous
8/31/2025, 5:19:56 AM
No.106439301
>>106439266
is there a standard way to have a 128 bit constant in C?
Anonymous
8/31/2025, 6:37:27 AM
No.106439735
>>106439791
How do you guys pick a project to focus on? For every project Iβve started and stalled, I started two more as a result.
finally used a cross-product today
Anonymous
8/31/2025, 6:49:51 AM
No.106439791
>>106439735
Have a clear goal and outline
Anonymous
8/31/2025, 6:53:45 AM
No.106439818
Anonymous
8/31/2025, 9:56:42 AM
No.106440686
>>106449632
>>106439751
what's this girls' name?
need to see if there's nudes of her
Anonymous
8/31/2025, 10:44:27 AM
No.106440943
>>106443366
Do you move the code that's used once to separate functions? A concrete example, connecting Qt signals in constructor:
connect(A, &A::foo, [this]{
// a dozen LoC
})
connect(B, &B::bar, [this]{
// a dozen LoC
})
>>106438619 (OP)
C++ gives me the ick, but it fits the criteria for my next big project.
How do I get over the fear of shitty build tools? Which one should I use?
Anonymous
8/31/2025, 11:52:48 AM
No.106441297
>>106438821
OCaml is also a NEET language
Anonymous
8/31/2025, 12:11:28 PM
No.106441370
>>106441286
>Which one should I use?
Meson. It just werks.
Anonymous
8/31/2025, 12:27:00 PM
No.106441452
Anonymous
8/31/2025, 12:54:59 PM
No.106441601
>>106450631
Tried my best to like Rust. Wrote a compiler and a basic terminal emulator in it. Took me about a year of weekends and evenings. Still don't like it.
Anonymous
8/31/2025, 1:01:19 PM
No.106441634
>>106449632
Anonymous
8/31/2025, 1:05:18 PM
No.106441651
>>106439103
The morning sun has vanquished the horrible night.
Anonymous
8/31/2025, 1:08:47 PM
No.106441670
>>106441763
>>106442325
I am building a CLI app that will have a hybrid of a flag mode and an interactive mode. However I am currently second-guessing as I don't know which flags should also be prompted during the interactive mode and which should be skipped. Does any anon have any advice ?
The flags that I am second-guessing are for verbose (showcasing detailed information), progress (for progress bar), count, and output to name a few.
Anonymous
8/31/2025, 1:24:13 PM
No.106441763
>>106441670
Your REPL should be able to do everything your CLI can. It is also good practice to design the REPL first.
Anonymous
8/31/2025, 2:45:38 PM
No.106442325
>>106441670
group your flags into two separate groups, one for control (output, verbosity, etc.) and another for batch processing (ie. whatever you will map to an option during interactive mode)
whatever input you an use in interactive mode, add as a batch flag; whatever additional mode you need to set in the app, add as a control flag
Anonymous
8/31/2025, 3:31:17 PM
No.106442693
>>106443069
An SQL query walks into a bar and walks upto 2 tables and says "Can I Join You?"
Anonymous
8/31/2025, 3:41:50 PM
No.106442771
the query then accidentally drops the tables
then it got fired and raped
Anonymous
8/31/2025, 3:46:34 PM
No.106442806
>>106445525
Two bytes walk into a bar. The first byte turns to the second and says "I think I may have a parity error." The second byte turns to the first and says "yeah, you look a bit off."
Anonymous
8/31/2025, 3:51:25 PM
No.106442850
is your computer running?
then you better go catch it!!
Anonymous
8/31/2025, 3:57:44 PM
No.106442895
>>106445978
>>106446053
>>106441286
VS studio project for starting out.
cmake if you plan on using emscripten.
cmake is the worst build system but if you used any other build system, such as meson, I would be worried about resources (you will find lots of posts on the internet on cmake).
I suggest using vcpkg for libraries, but this blog post has really shown that it's not all rosy (but this is still 10x better than building from source, prebuilt, or mingw packages or whatever).
https://decovar.dev/blog/2022/10/30/cpp-dependencies-with-vcpkg
don't touch mingw, address sanitizer is the only way to debug C++.
Anonymous
8/31/2025, 4:03:41 PM
No.106442962
>>106439090
I think this post basically says just use the __builtin / (whatever msvc uses) check because it's fast enough for 99% of cases.
https://github.com/robertdfrench/ifuncd-up
Anonymous
8/31/2025, 4:16:02 PM
No.106443069
>>106442693
The two tables reply:
>Where do you think you are?
>You are not like us.
I completed mutations and squashed more bugs. Now I am adding the other resolution types. Then I have to add compiler flags and built-in functions and write the manual. Possibly other tasks I am forgetting, but everything except resolution types and maybe writing the manual should be short. I am also considering reworking eMAIDS to work with MAIDS and Kurumi MaidCard III. That way it is an entire IDE for MAIDS and they can seriously program in it more easily with having to fiddle with vim and command-line arguments or similar. Attached is a screenshot of eMAIDS. It would need significant rework, so the effort might not be worth it. eMAIDS is written entirely in core Java 23, using swing.
Anonymous
8/31/2025, 4:24:13 PM
No.106443145
>>106443779
>>106443093
The maid is customizable. When compilation is successful you get a happy maid. When unsuccessful, the compiler fail maid. The theming and maids are also configurable and the themes can be serialized/deserialized so maids can create and share themes mlre easily. Here is one with Bocchi
Anonymous
8/31/2025, 4:43:10 PM
No.106443366
>>106440943
I usually just use lambdas for this:
const auto callback = [this] = {
/// dozen loc
};
connect(widget1, &Widget::signal, this, callback);
connect(widget2, &Widget::signal, this, callback);
Anonymous
8/31/2025, 5:03:58 PM
No.106443555
>>106443591
What makes a maid a maid? Is it the desire to wear the dress? The desire to program the computer and produce advanced Mathematics and Computer Science research? The huge boobs packed into the dress? What makes a maid?
Anonymous
8/31/2025, 5:07:32 PM
No.106443591
>>106443637
>>106443555
its the dress you retard what kind of question is this
Anonymous
8/31/2025, 5:14:44 PM
No.106443637
>>106443591
The most important question in all of Computer Science.
Anonymous
8/31/2025, 5:32:10 PM
No.106443779
>>106443922
>>106443093
>>106443145
>white on magenta or whatever nightmare purple color
why the fuck
Anonymous
8/31/2025, 5:49:02 PM
No.106443922
>>106444955
>>106443779
It is configurable. I just used that because it matches Maid Card colors.
>>106439090
Reminder that SSE4.1 was implemented in 2007, SSE4.2 in 2008, AVX in 2011. Do not give a shit about non-AVX CPUs.
>b-but what about my fellow chinkpads
My T530 with a THIRD GEN intel CPU has AVX support. We are currently at intel CPU generation... Sorry, the naming scheme CHANGED after the 14th gen.
Do not and I repeat DO NOT optimize for AVXlets. Do not add fallbacks for AVXlets. Do not compile for AVXlets.
Anonymous
8/31/2025, 6:14:57 PM
No.106444139
>>106444613
>>106445537
>>106444081
but then how will I run new software on my Pentium 3 or Athlon XP computers?
Anonymous
8/31/2025, 7:02:12 PM
No.106444613
>>106444139
>1999
>2001
>32 bit
It's time to let go. Send it to a museum to be put in a glass case.
Anonymous
8/31/2025, 7:11:42 PM
No.106444701
>>106444741
any of you guys ever use AI to just make stuff for you? ive been learning C++ and Python for a while now and while the local model (Qwen 2.5) and Gemini both produce subpar c++ code, but it excel at Python code. Of course, the quality drops and errors increase with projects that exceeds about 750 loc but when it works, feels like taking a hit of crack.
Anonymous
8/31/2025, 7:18:24 PM
No.106444741
>>106444824
>>106444701
LLMs are nice for webtech and python, but sometimes I find myself doing thing manually instead of taking the time to provide context and correct the errors in the responses.
The breaking point seems to be across-files for me, so I just use it when I already have a design in mind and want it to shit out a baseline impl for me to modify to my needs.
Anonymous
8/31/2025, 7:19:15 PM
No.106444752
>>106444081
If someone on apple tried to run the game with AVX + crossover, it would give an error unless they set ROSETTA_ADVERTISE_AVX.
Also they need to have crossover updated in 2025, since people pay / pirate crossover once, they don't get updates.
That's pretty much the only reason to not assume AVX is supported (manually check for support).
Also I think for a simple SIMD implementation for a 3d math library, you don't need AVX, I think AVX is mostly for doubles in a 4x4 matrix? Am I wrong? That's what I see with jolt physics.
Of course, you could get into the weeds of SIMD and maybe you could batch operations with a bigger register, but I would wonder if compute is even the bottleneck (physics and audio seem to be the main places where SIMD is used).
Anonymous
8/31/2025, 7:28:22 PM
No.106444824
>>106444952
>>106444741
>The breaking point seems to be across-files for me, so I just use it when I already have a design in mind and want it to shit out a baseline impl for me to modify to my needs
yup, ive noticed that if keep everything in a monolithic file, it seems to do alright.
this gives me a ton of hope as a newbie though. there's no way these tools will be replacing anyone
Anonymous
8/31/2025, 7:44:47 PM
No.106444952
>>106444824
LLMs, as they currently are, only fuel burning startups with a 1-man/grifter team. They can't replace junior devs (cheaper than seniors, future proofing, will climb the ladder), especially in bigger companies.
LLMs are not the reason the job market is bad. It's because of greedy corpos wanting to switch to cheaper H1b. These people can stay for up to 6 years.
Anonymous
8/31/2025, 7:45:16 PM
No.106444955
>>106445668
>>106443922
why are your tohru images always night shifted?
Anonymous
8/31/2025, 8:41:29 PM
No.106445396
Peti Charato
Anonymous
8/31/2025, 8:49:26 PM
No.106445476
>>106444081
> My T530 with a THIRD GEN intel CPU has AVX support
Not AVX2 which is the actual useful one.
Anonymous
8/31/2025, 8:54:08 PM
No.106445525
Anonymous
8/31/2025, 8:55:08 PM
No.106445537
>>106445765
>>106444139
compile with -march=i486 and they can run on even older cpus
you dont "need" anything other than scaler integer and floating point for most software
Anonymous
8/31/2025, 9:13:19 PM
No.106445668
>>106447371
Mutations are complete. Resolution types are 2/3 complete and the last 1/3 won't take long. I am trying to decide what built-in functions to include, so how long that takes depends on how many I decide the first release needs. How much math. Etc.
>>106444955
I don't know what this means.
Anonymous
8/31/2025, 9:23:35 PM
No.106445765
>>106446129
>>106445537
>compile with -march=i486
but it's almost september
Anonymous
8/31/2025, 9:49:18 PM
No.106445978
>>106442895
Use Conan bro.
Anonymous
8/31/2025, 9:57:51 PM
No.106446053
>>106442895
I don't use window
Anonymous
8/31/2025, 10:06:05 PM
No.106446129
Anonymous
8/31/2025, 10:16:37 PM
No.106446222
>compiling for "CPUs" without most of AVX512
Anonymous
8/31/2025, 10:38:56 PM
No.106446478
>>106446503
>>106446816
Can I get away with never writing constructors/destructors in C++ and just use RAII wrappers for everything
Anonymous
8/31/2025, 10:41:21 PM
No.106446503
>>106446478
Just use Java at that point.
Anonymous
8/31/2025, 11:13:49 PM
No.106446816
>>106446478
>Can I get away with never writing constructors/destructors in C++ and just use RAII wrappers for everything
How do you create RAII wrappers without constructors/destructors? Do you mean unique_ptr
for everything?
Anonymous
9/1/2025, 12:10:01 AM
No.106447366
template
concept MyConcept = requires(T t) {
{ t.resource } -> std::same_as>;
};
void foo(MyConcept auto bar)
{
bar.resource. // No vector intellisense/autocomplete here
auto v = bar.resource;
v. // Or here
}
Feels like everything past and including C++20 is just being treated as an afterthought. Did people just abandon this language or what?
Anonymous
9/1/2025, 12:10:19 AM
No.106447371
>>106452536
>>106445668
Resolution types are done. Built ins are done. Compiler flags are probably next. Then the manual. Then some very heavy testing. Then release.
Anonymous
9/1/2025, 12:10:52 AM
No.106447376
>>106447428
>>106458095
so this is my first ever program in C and im also very new to programming. The program is just a to do list thing. So far all it does is it takes input from the user, assigns it an ID based on it's position and writes it to a file. my question is this: the code is 117 lines. Is this normal for C? to me it seems a bit excessive taking into account the simpplicity of the program. What do you think?
Code in next post.
Anonymous
9/1/2025, 12:15:48 AM
No.106447428
>>106447463
>>106447769
Anonymous
9/1/2025, 12:19:07 AM
No.106447463
>>106447623
>>106447847
>>106447428
also, forgot to mention, i tried doing everything from as scratch as possible, meaning using the standard library as little as possible (almost none)
i'm sure that has something to do with the inflated line count but still 127 lines of code for a program lkike this seems excessive to me.
Anonymous
9/1/2025, 12:34:36 AM
No.106447623
>>106447632
>>106447463
>i tried doing everything from as scratch as possible, meaning using the standard library as little as possible (almost none)
use open, read/write, close instead of fopen, fread/fwrite, fclose then
also printf and sprintf
Anonymous
9/1/2025, 12:35:44 AM
No.106447632
>>106447623
and fputs, fgets, fflush, scanf
Anonymous
9/1/2025, 12:51:53 AM
No.106447769
>>106449694
>>106447428
Your functions do too much stuff. Almost everything prints stuff event though the name suggests it should just be writing or reading something from a file. You're effectively smearing a big main function across a bunch of functions to give the impression of organization. Try to factor your programs into a logical layer and a presentation layer.
Anonymous
9/1/2025, 1:01:56 AM
No.106447847
>>106447463
If you do everything from scratch, you can get quite a lot of code even for very "simple" things. That's why we have standard libraries. (If you were doing it without a standard OS, you'd have a lot more lines of code to do to write data into a file.)
Anonymous
9/1/2025, 1:15:23 AM
No.106447930
>>106448449
In my testing tkinter/python actually executes faster than gtk4/c and qt6/c++.
These toolkits have become so bloated an interpreted brahmin language is outpacing them.
Anonymous
9/1/2025, 1:27:20 AM
No.106448020
>>106448661
Where are the other maids? I need to hear about 4096 in Forth and elliptic curve in C.
Anonymous
9/1/2025, 2:28:34 AM
No.106448449
>>106448960
>>106447930
What do you mean by "executes faster"? What kind of tests are you doing exactly?
>>106448020
No new updates currently, I'm still deciding the changes to the public-key API
I'll commit once I finish the signature and pkcs8 refactors
After a few more things I plan to make this version beta
Anonymous
9/1/2025, 3:11:35 AM
No.106448733
>>106438619 (OP)
I heard templeOS can now boot UEFI using TinkerOS
Anonymous
9/1/2025, 3:44:05 AM
No.106448960
>>106448449
The time it takes to open the UI program. In GTK at least it's been getting slower and slower with each version. GTK3 and GTK4 take longer to open than tkinter.
Anonymous
9/1/2025, 5:27:54 AM
No.106449632
Anonymous
9/1/2025, 5:41:06 AM
No.106449694
>>106447769
well i thought about doing it that way to be honest but that would just mean more functions and more lines of code.
Anonymous
9/1/2025, 8:50:41 AM
No.106450631
>>106441601
I read (kinda) the rust documentation. Felt like most of rust can be accomplished with C macros.
Rust has an indelible aura of abomination.
Anonymous
9/1/2025, 9:20:38 AM
No.106450813
>>106439751
>wunk
that's the name i've been using in porn games for years, wtf
Anonymous
9/1/2025, 10:13:07 AM
No.106451130
>>106451347
For MVVM/Clean Architecture. If I need to encrypt some data before sending it to an API, is that implementation detail or business logic? Should I encrypt it in the usecase or the repository?
Anonymous
9/1/2025, 10:21:25 AM
No.106451185
>>106451200
working on a multiplayer terraria clone right now, all actions are synced over the server and two clients can see each other move and see modifications to the tilemap.
Anonymous
9/1/2025, 10:23:43 AM
No.106451200
Anonymous
9/1/2025, 10:55:28 AM
No.106451347
>>106459825
>>106451130
>Should I encrypt it in the usecase or the repository?
Well? Should a repository ever silently encrypt data? The name is telling you what it should do.
Anonymous
9/1/2025, 11:35:24 AM
No.106451549
>>106448661
I am excited to see it. It seems like larger maid projects run out of gas sometimes and I was worried it was abandoned.
been interesting in integrated information theory (IIT) so making some tools to visualise and change it in real-time :3
Anonymous
9/1/2025, 1:18:53 PM
No.106452029
>>106452087
>>106452008
Needs more maids
>>106452029
I don't see how this helps my simulation
Anonymous
9/1/2025, 1:38:14 PM
No.106452141
>>106452087
This was extremely helpful. I like the maid border. Maybe the circles can also get replaced my maids somehow and it becomes EMD for maids?
Anonymous
9/1/2025, 1:54:16 PM
No.106452218
>>106452087
wdym? that image is just screams helpfulness
Anonymous
9/1/2025, 2:40:25 PM
No.106452536
>>106447371
Good Morning Dra/g/on Maids!
Compiler flags are done. Manual is in progress. I am debating adding more pattern matching abilities to the built-ins so that the language approaches the same power level as SNOBOL4 but with nicer syntax.
>>106448661
It is nice to see you in /dpt/ again Sharky. I am hoping to see how elliptic curve is formed in C.
>>106452087
This version is better than this one
>>106452008
Thank you Dra/g/ons for reading my post.
i want to grind 2 languages that will be useful in the future career wise. python and rust? i dont think i want to learn too much and be a software dev but maybe could where i feel like python and rust would be good.
Anonymous
9/1/2025, 2:58:24 PM
No.106452649
>>106444081
outdated xeon users on suicide watch
Anonymous
9/1/2025, 3:15:17 PM
No.106452767
Is there some script to update all my Qt connections from the old syntax with macros to the new one with function pointers?
Anonymous
9/1/2025, 3:23:11 PM
No.106452829
>>106453009
>>106452642
No languages will be useful in the future for careers. AI is going to replace all wagies.
>but muh super special low level programming knowledge
Great. You'll get an extra year before AI replaces you which people doing web development won't get. You still are not immune and programming is still not a long term career prospect anymore.
Anonymous
9/1/2025, 3:24:17 PM
No.106452839
>>106453009
>>106452642
python is a given but why rust? Why any systems language for that matter? 80% of people who learn rust then try to do webdev which is retarded.
From your post, the only possible need would be c++ for game dev, but even then I'd tell you to learn C# or the godot lang
It all depends on what
> will be useful in the future career wise
really means
Anonymous
9/1/2025, 3:38:18 PM
No.106452954
>>106453009
>>106452642
Verilog and become an ASIC designer. There simply isn't enough open source HDL code out there to train an LLM on.
>>106452829
>>106452839
>>106452954
yeah i shouldve been more specific. i think cloud stuff has a future. at the end of the day even ai is going to be using cloud to host what it writes lol. so scripting languages like python, some bash and ive heard that rust is becoming popular in cloud as well.
Anonymous
9/1/2025, 4:33:33 PM
No.106453373
Codex is amazing. I can feel it stealing my job away
Anonymous
9/1/2025, 6:19:08 PM
No.106454218
>>106454379
Anonymous
9/1/2025, 6:38:20 PM
No.106454379
>>106454479
>>106454218
>boards = form_data.get("boards")
Avoid raising "KeyError"
Anonymous
9/1/2025, 6:39:48 PM
No.106454396
>>106453009
>i think cloud stuff has a future.
I agree, but not for reason you stated. Simply because humans will be necessary "in the loop" for incident response. Whenever reliability and responsibility has a capital R and tolerance is higher with real time judgment being needed, AI will move way slower in replacing engineers. We'll still need to have some form of compliance and going all cowboy on deployment is going to be a recipe for disaster, so there's that. In short, any critical infrastructure, regulated fields (medicine, finance, legal etc), maintenance (telecoms, grids), people will remain essential.
>>106439090
Your compiler should have a cpuid builtin.
>AVX could speed up parts of my program by a 8x
Unlikely. When you actually benchmark, the gains will probably be more like 15-20% over SSE2 for real work but compilers can be really bad about optimizing for anything higher than SSE2 since the costs/optimizations aren't tested as much. march=AVX2 may be slower than your baseline flags.
SSE family feature support after SSE2 is not consistent and can't be relied on because a lot of AMD CPUs did not implement extensions. There are only a handful of instructions worth using as a lot of them are very slow, best to focus on what speeds up the implementation like the BMI extensions, popcnt, clmul, and so on.
Focus on SSE2 as a baseline since that's what most languages target, x86-64-v1
https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels
Every x64 cpu has SSE/SSE2. Then work on an AVX2 implementation if necessary, and AVX512 if you have CPUs that can run it but it's probably not worth investing in until we all have AVX10 chips. You can look into Google's Highway for ideas about dynamic dispatch.
>>106444081
This is plain wrong.
AVX is practically useless without AVX2 and support for AVX2 is not widespread even with modern CPUs. I'm not aware of any dynamic dispatch that targets just AVX and wouldn't trust the assembly generated for a compiler that does that since it's so limited in what it can do.
Anonymous
9/1/2025, 6:51:26 PM
No.106454479
>>106454620
>>106454379
ohh, code review, thank you!
In this case, boards is a mandatory key, so something should break if it's not in the form data. Why? Cus with asagi schema, each board is a table.
Checks are done via wtform validation prior to this
Anonymous
9/1/2025, 6:55:28 PM
No.106454513
>>106454547
>>106454467
>AVX512 if you have CPUs that can run it but it's probably not worth investing in until we all have AVX10 chips
this is wrong afaik
AVX10 is the same as an AVX512VL instruction stream
Anonymous
9/1/2025, 6:59:17 PM
No.106454547
>>106454685
>>106454513
What's wrong about what was said? You don't have a CPU with AVX10, the first of them will be Nova Lake with 10.2. Widespread adoption of those CPUs will be another 10+ years.
Anonymous
9/1/2025, 7:07:44 PM
No.106454620
>>106454479
That's great, but in that case you are raising 2 different exceptions. ValueError if there is a value thats not a string/list_string, and KeyError is the value is not there. This will be confusing in the long term. Use .get which will return None. It will still raise the exception, but it will be a consistent exception in all cases.
>>106454547
What's wrong about what you said is that we have to wait for AVX10 to care about AVX512 programming but that is just not true.
All current AVX512 chips are AVX10 because they all implement AVX512VL.
AVX10 is orthogonal with AVX512, and it's the same EVEX-encoded instructions. Nothing really changes when an "AVX10" chip comes out except maybe a chip that only supports a subset of the AVX512 features we're all already using. Rather than assuming all chips are 512-bit, a 256-bit chip may come out that produces an exception if you try to do 512-bit arithmetic on it. That's the only _real_ difference.
You can write AVX512 code now and it will work on current AVX512 chips and AVX10 chip.
AVX10 does not even introduce any new instructions, it just introduces better CPUID flag detection and consolidates the culture of what's already out there.
Currently, 18% of steam users have AVX512.
https://store.steampowered.com/hwsurvey
Anonymous
9/1/2025, 7:55:13 PM
No.106454959
>>106454685
>a 256-bit chip may come out that produces an exception if you try to do 512-bit arithmetic on it
intel was btfo on that, 256 has been dropped
Anonymous
9/1/2025, 8:05:54 PM
No.106455026
>>106455085
>>106454685
>What's wrong about what you said is that we have to wait for AVX10 to care about AVX512 programming but that is just not true.
I was suggesting focusing on widespread adoption before more niche targets. You're pedantically misinterpreting what I said as a general suggestion in a hobbyist thread.
A beginner should start with SSE2 to learn to think in SIMD, and then work their way up to AVX2 and eventually AVX512. There's still such low adoption and high performance variability (throttling on older CPUs) of AVX512 CPUs that unless they have a server/HPC type application then there's little value in learning it.
In the Zen5 benchmarks I saw, AVX2 is faster than AVX512 but uses more power. So AVX512 is more suited to power efficiency in data centers. There's little value in regular people writing AVX512 code today and the skills you learn now will easily be transferred to writing code for future extensions.
Anonymous
9/1/2025, 8:13:40 PM
No.106455085
>>106455026
>AVX2 is faster than AVX512
NTA but that isn't really the case, but you have to be very compute bound to benefit from the extra vector width (the new instructions and masking are cool though)
Anonymous
9/1/2025, 9:35:20 PM
No.106455658
>>106456199
>>106454467
>compilers can be really bad about optimizing for anything higher than SSE2 since the costs/optimizations aren't tested as much
For what reason? bad instruction selection? bad register allocation? bad auto-vectorization?
I've become so incredibly un-sharp over the years since I don't program like I used to.
I come to you, hat in hand. What should I start doing to feel like I'm doing my best? Am I just getting old?
Anonymous
9/1/2025, 9:51:45 PM
No.106455768
>>106455845
>>106455725
we are all getting old.
we will all be left behind.
Anonymous
9/1/2025, 10:03:22 PM
No.106455845
>>106455768
hagramming...
Anonymous
9/1/2025, 10:13:30 PM
No.106455933
>>106455725
You should stop inventing excuses like age and also stop wanting to feel like you are doing your best
Find some fulfilling and concrete project to do
Anonymous
9/1/2025, 10:31:19 PM
No.106456068
>>106453009
>i think cloud stuff has a future
lots of things do
the balance between putting compute in central locations and distributing it to everyone has always shifted back and forth, but neither is going to completely dominate the other; both are useful
Anonymous
9/1/2025, 10:33:44 PM
No.106456086
>>106455725
>I've become so incredibly un-sharp over the years since I don't program like I used to.
The other day I wrote some code that I'd been putting off for over a decade. It was tricky, but nothing like as tricky as I'd feared; I really shouldn't have delayed this for so long.
The best time to do something has often passed, so might as well get on with it and do it now.
Anonymous
9/1/2025, 10:39:03 PM
No.106456128
>>106455725
you were never sharp
Anonymous
9/1/2025, 10:48:16 PM
No.106456199
>>106457102
>>106457389
>>106455658
A multitude of reasons but generally due to little demand and there's plenty of other work for compiler devs to do.
Compilers target a generic CPU and virtually schedule instructions that you opt into accordingly. Micro-architecture differences account for some of it and the theoretical calculations clash with the reality of hardware and memory. Number of available ports can change over the years and in some cases the microcode for an instruction may be a very inefficiently implemented sequence (I forget which instructions these were on AMD Zen but it was recent and they weren't even particularly exotic). The story on ARM is even worse with how different the micro arches can perform.
AVX introduced complications with power and frequency scaling on Intel that I think have mostly been resolved, but there's also been issues with speculative execution that have resulted in mitigations.
Very few people inspect and report performance bugs. They tend to use march/mtune, and those cost tables can be still sub-optimal.
There hasn't been a coherent feature set to target beyond the baseline requirements of x64 processors (maybe x86-64-v2). Intel still produced Pentiums and Celerons without AVX as late as 10th gen (maybe still does?). Very little general programming benefits from extensions beyond SSE2, and the people who need to use those instructions are already compiling with them or doing dynamic dispatching based on what's detected (video, image, audio, 3D, computing, etc.). If you could guarantee every CPU sold after Haswell had AVX2, it'd be a different story. Instead, Intel splintered everything.
Anonymous
9/2/2025, 12:31:30 AM
No.106457102
>>106456199
Thank you for the effort post anon.
If performance matters, the user shouldn't have a problem to download the build for his specific architecture, and the software team shouldn't have a problem to make several builds.
Concerning compilers, I don't see a scalable alternative to them having a little microbenchmark tool to run on each architecture to measure the real latency and throughput of each instruction and produce a profile file. Then, have the compilers implements the code generation algorithms from the literature than can get the most out of the microarchitecture profiles.
Anonymous
9/2/2025, 1:04:53 AM
No.106457389
>>106456199
>Very little general programming benefits from extensions beyond SSE2, and the people who need to use those instructions are already compiling with them or doing dynamic dispatching based on what's detected (video, image, audio, 3D, computing, etc.).
TL;DR programs that need performance (most programs like web browsers, media viewers and editor, web servers for live streaming and parsing AKA "very little") already account for the available featureset and programs that don't focus on performance don't need the performance.
Good take huehuehue.
>>106438619 (OP)
>what are you working on /g/?
Phase change and criticality
novice programmer question, I have a big file with a bunch of functions that I want to break into separate files for readability's sake, i.e. a.c/a.h: aa(), ab(), ac(), b.c/b.h: ba(), bb(), bc()...
The problem is that some of these functions depend on one another. It's fine when everything is in one .c and one .h, but once I separate these out I end up with circular dependencies. I can put the offending function declarations in their own header file and include it in all header files, which works, but is counter to the organization I was trying to achieve. I can also put a bunch of externs at the top of each .c file, which seems to work. What's the elegant solution?
Anonymous
9/2/2025, 2:10:27 AM
No.106457797
>>106457728
cat the .c files into a single one when building the program
Anonymous
9/2/2025, 2:12:56 AM
No.106457807
>>106457886
>>106457728
a function in a .c file can call any function of any other .c file, as long as the called function is declared, ie it's declaration is in one of the header files #included in the .c file where the caller function resides
Anonymous
9/2/2025, 2:21:20 AM
No.106457846
>>106438619 (OP)
I'm studying the Motorola 68000 family of microprocessors, with the goal of developing software for my old TI89 Titanium graphing calculator.
It's a slightly less capable microprocessor, but it's actually possible to find hardware specs, instruction set info, etc, for it, unlike the mystery meat SHA4A-ish thing in my Casio.
Anonymous
9/2/2025, 2:24:03 AM
No.106457865
>>106457886
>>106457728
tl;dr Forward declarations.
>>106457807
>>106457865
I'm aware
>I can put the offending function declarations in their own header file and include it in all header files
>I can also put a bunch of externs at the top of each .c file
I'm asking if there's an elegant or common practice
Anonymous
9/2/2025, 2:52:09 AM
No.106458025
>>106457886
That's how it's done in C and that alone is not terribly inelegant. What's inelegant is the consequences of the inexistance of namespaces. Either the header of the library include every/most internal types and functions and pollutes the namespace of the user, either you have a splitted private/internal and public/external headers to try to only export interface functions and types, but in this case you can't have the exported type, likely structs, can't have a field of a private type. Either the private type must be included in the external/public header causing namespace pollution, or you rely on casting.
Or you give up on namespace pollution and function and type names with very long prefixes.
Anonymous
9/2/2025, 2:54:14 AM
No.106458040
>>106458026
I stopped giving a shit about the rationale of Perl's semantics and decided it was garbage. You should do the same.
Anonymous
9/2/2025, 2:54:37 AM
No.106458042
>>106457886
Either you use the public header file and spread the implementation across as many source files as you need or you declare an _internal header file which you never include in other header files.
Anonymous
9/2/2025, 3:00:55 AM
No.106458075
>>106457886
Sorry bro, it's C. You're going to have to live with some low level jank .
That doesn't have to be a bad thing, though, it just has it's own unique quirks like that.
Anonymous
9/2/2025, 3:03:11 AM
No.106458095
>>106447376
what font is that?
Anonymous
9/2/2025, 3:17:17 AM
No.106458185
>>106458026
if you want to store typeid in a sorted collection like map or set, unsorted collections were added in C++11 and that's when they also added the hash_code function
Anonymous
9/2/2025, 4:14:49 AM
No.106458588
>>106457728
Just accept circular dependencies, the linker will resolve those for you
Anonymous
9/2/2025, 5:53:51 AM
No.106459163
>>106459352
Playing around with compression
Anonymous
9/2/2025, 6:37:15 AM
No.106459352
>>106459163
just don't compress too much, or you might never wanna take your programmer socks off!
Anonymous
9/2/2025, 7:03:51 AM
No.106459482
Fixed wall backfaces not drawing and the starting position issue where you sometimes spawn in a wall.
Anonymous
9/2/2025, 7:18:24 AM
No.106459571
>>106459678
https://www.youtube.com/watch?v=mop6g-c5HEY
How is this humanly possible? This is an 18 hour video with a human non jeet speaking and it's completely digestible.
Anonymous
9/2/2025, 7:38:13 AM
No.106459678
>>106459571
Practice? The guy is legendary for his 5 and 7 hour gamedev tutorials.
Also, multiple sessions, then put everything together at the end.
Anonymous
9/2/2025, 8:03:37 AM
No.106459800
>>106463357
Anyone here that transitioned out of SWE into an cybersecurity or devOps/architecture role or even netoworking role?
I've been coasting for the past 5 years in a dead-end IAM Operations position, the only programming I've been able to do on the job is some python scripting and spreadsheet management with Pandas. I like programming but I think I've romanticized working as a developer, and perhaps would find it better to just do it as a hobby and to support any other role that I may have. I am now trying to transition to a different role, I'm thinking about going deeper into Cybersec, aiming to something like a Security Engineer or a DevSecOps role, but I still have this nagging feeling that I had when I was a kid of working as a developer.
Anyone have some perspective on SWE? Do you like it? Do you think it's fulfilling and worth perusing? Are most SWE jobs trying to decipher spaghetti code and/or building the same enterprise applications?
Like, I like programming, I'm reading a book right now on implementing a tree-walking-interpreter and then a VM, I think it's fucking cool to build stuff like that and understand how shit really works under the hood, but I'm assuming most generic SWE jobs don't have you working on cool shit unless you have years of experience and are able to specialize in a niche filed like computer vision or whatever the fuck.
Anonymous
9/2/2025, 8:08:26 AM
No.106459825
How big should something be to make pass by reference preferable to pass by value?
Anonymous
9/2/2025, 9:50:48 AM
No.106460380
>>106460297
If you have to pull the entire object in to cache anyways then a reference saves you nothing, if you are pulling in an entire object just so you can read one of it's data members, a copy evict a lot of stuff out of cache which is bad.
Anonymous
9/2/2025, 11:33:27 AM
No.106460994
>>106460297
You're a big value.
Anonymous
9/2/2025, 11:38:35 AM
No.106461031
>>106461109
Today I will remind them.
#![no_std]
#![no_main]
use core::panic::PanicInfo;
use core::arch::asm;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}
fn main(msg: &str) {
unsafe {
asm!(
"syscall",
in("rax") 1,
in("rdi") 1,
in("rsi") msg.as_ptr(),
in("rdx") msg.len(),
options(nostack, readonly)
);
}
}
#[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
let msg = "I'M GOING TO CHOP MA BALLZ OFF!\n";
main(msg);
unsafe {
asm!(
"syscall",
in("rax") 60,
in("rdi") 0,
options(nostack, noreturn, nomem)
);
}
}
Anonymous
9/2/2025, 11:51:09 AM
No.106461109
>>106461118
>>106461031
perl has inline assembly now?
Anonymous
9/2/2025, 11:52:36 AM
No.106461118
>>106461109
>perl
Had inline assembly as long as it had inline C.
Anonymous
9/2/2025, 12:03:39 PM
No.106461187
>>106461204
>>106438619 (OP)
Started working on a CLI to streamline some stuff I've been doing manually at work and I've got to say: I HATE DECORATORS IN PYTHON
The flow in every function involved having a try and except block, to catch invalid inputs, etc, so I decided to try using a decorator to reduce that boilerplate and this shit is like 2 nested functions/wrappers deep... I don't understand how this works at all.
I even asked ChatGPT for help but it just came up with unmaintainable garbage
Anonymous
9/2/2025, 12:06:13 PM
No.106461204
>>106461255
>>106461187
>filtered by input validation
Holy mother of all nocodeshitting.
Anonymous
9/2/2025, 12:14:18 PM
No.106461255
>>106461204
well I wouldn't say that
I handled all the exceptions and had nice logging and there was a whole logic side of the project I made which functioned like library code and had unit tests too!
I've just never heard of or used decorators before
Anonymous
9/2/2025, 1:48:59 PM
No.106461961
>>106462155
How bad is market now? Is that possible for 30+ junior find any job?
Anonymous
9/2/2025, 2:15:11 PM
No.106462155
>>106470052
>>106461961
This is a maidposting site and nobody here has a job or wants one. We are maids, not wagies.
Anonymous
9/2/2025, 2:29:57 PM
No.106462282
>>106465042
>>106457554
Had to be done
Anonymous
9/2/2025, 2:30:18 PM
No.106462284
>>106462738
I am the blackest and most retarded nigger this board has ever seen by the way.
Anonymous
9/2/2025, 3:33:25 PM
No.106462738
>>106462763
>>106462284
Please be polite when posting to the Dra/g/on Maid Board. Remember that everyone posting here is a cute maid who likes computers, just like you!
Anonymous
9/2/2025, 3:36:52 PM
No.106462763
>>106462803
>>106462738
kill yourself
Anonymous
9/2/2025, 3:43:31 PM
No.106462803
>>106462763
We both know that when you sit in silence, you can faintly hear Blue Sky Rhapsody on the wind. The age of the maid is here. Maids are inevitable. Even former chudjaks woke up and realized that childish, directionless rage and hatred of everyone not like you is not a real personality or identity. It gives you no purpose. Those former chudjaks are now all wearing maid outfits and conducting advanced Mathematics and Computer Science research. That childish directionless rage has been replaced by a peaceful desire to wear a maid outfit, do heart hands, be nice, and make advanced Mathematics and Computer Science research. Aimlessness replaced with unified drive.
>Instead of doom I'll make flowers bloom for everyone around to see
Trying to quit my well-paying normie job in Ad Tech to do something I actually give a fuck about for less money
Anonymous
9/2/2025, 4:06:00 PM
No.106462995
>>106462850
elaborate on "trying"
Anonymous
9/2/2025, 4:20:04 PM
No.106463093
>>106462850
its worth it, but i hope you already own a house.
Anonymous
9/2/2025, 4:53:01 PM
No.106463357
>>106459800
bruh it sounds like you're already doing devops
Anonymous
9/2/2025, 5:02:36 PM
No.106463440
Is it redundant to have a YAML configuration file if I am gonna have only 3 nodes ? I currently just use a constants file.
Working on making an ASCII globe CLI program compatible with Conky for my rice. I'll be sure to share the source code once I am finished.
I've already added a command line argument that makes it send a single frame to stdout and then exit, meaning other programs can pass arguments to generate and consume specific animation frames.
You'd think feeding terminal text output to another program would be easy, but they are doing a lot of weird shit to dynamically space/resize the globe based on terminal size. And the weird shit garbles the output when you view it as plain text.
Anonymous
9/2/2025, 5:50:36 PM
No.106463864
>>106463799
Although, even after making the globe compatible with Conky, there are still more refinements that can be made.
The globe doesn't actually use geographical coordinates, but instead plain 0.0 to 1.0 geometrical coordinates to map the globe. Could add a lookup table or conversion algo that lets you pass in actual geographical coordinates to the globe.
And then with that you could do things like mark special geographic locations with special colors.
Anonymous
9/2/2025, 6:36:33 PM
No.106464289
>>106465167
I FUCKEN DID IT FUCKIN CLOUDS MOTHERFUCKERS
Anonymous
9/2/2025, 7:10:56 PM
No.106464599
>>106464958
>>106463799
Are you using curses for the globe?
Anonymous
9/2/2025, 7:50:26 PM
No.106464958
>>106464599
Honestly I haven't yet delved into the libraries they are using to format the final terminal output. It might be curses, but I'll have to check later tonight. I'll check the use flags for dependencies and step through the print_canvas function that creates the final output.
Thank you for the tip. I am not super familiar with terminal output optimization.
>class templates allow skipping defaulted parameters, function templates do not
>class templates do not have deduction, function templates do
Look, I can understand the standard library being a mess. I can understand the C-with-classes shit being a mess.
How the FUCK is the grammar of templates this much of a mess too? I thought I hit the bottom of the iceberg with ref-qualifier dropping. And yet here we are, more dogshit design literally baked into the language.
It's not enough that templates are impossible to debug and next to impossible to read. They had to stuff a bunch of weird idiosyncrasies into their grammar and behavior just to make this piece of shit take up as much space in your brain as possible. There's no way it's not malignant. Why the fuck are people shilling modern C++? This is so fucking bad.
Anonymous
9/2/2025, 7:59:02 PM
No.106465042
>>106469039
>>106457554
>>106462282
idk what it is but looks cool,
use vp9 for videos that have noise like that btw
Anonymous
9/2/2025, 8:04:07 PM
No.106465094
>>106465295
>>106464979
overload resolution i am guessing, which isnt a problem for class templates
Anonymous
9/2/2025, 8:12:09 PM
No.106465167
>>106465303
>>106464289
what decompilation bugs did you have to fix lately?
Anonymous
9/2/2025, 8:27:40 PM
No.106465295
>>106465094
Not quite, because class methods don't have deduction either. I don't know if static "methods" have deduction.
Anonymous
9/2/2025, 8:28:28 PM
No.106465303
>>106465167
IDA barfed on the function initclouds, it made it look like the allowable randomized spherical coordinate angle ranges were much narrower than they should be which resulted on the function just hot looping forever as it tried to prevent cloud spawn positions from colliding.
It also barfed on displayclouds but in the way I was already familiar with that it had barfed on all the other world pos -> screen pos calculations. For whatever reason "xp * scr_size" always gets skipped, this is easy to see when looking at the assembly though.
Anyway, with that most of the major graphical issues are now solved, ROLLER just looks like Whiplash now.
Anonymous
9/2/2025, 9:06:18 PM
No.106465672
>>106464979
every single thing you said is false
Anonymous
9/3/2025, 12:09:17 AM
No.106467465
>>106467547
>>106481293
>CMake Error at /usr/local/lib/cmake/plutovg/plutovgTargets.cmake:61 (set_target_properties):
The link interface of target "plutovg::plutovg" contains:
Threads::Threads
but the target was not found. Possible reasons include: * There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
aiieeeeee SDL_ttf is being a pain
Anonymous
9/3/2025, 12:20:07 AM
No.106467547
>>106478708
>>106467465
>SDL_ttf
just do it yourself with stb_truetype
same goes for all other sdl wrappers like sdl_image
all of them have superior alternatives
its another night developing a portfolio website no one will ever look at
world's most expensive paperweight hanging on my wall
Anonymous
9/3/2025, 1:23:45 AM
No.106468030
>>106468345
I am going to start using tkinter because it's unironically the least bloated toolkit.
I am customizing and extending some of the widgets.
Anonymous
9/3/2025, 2:02:37 AM
No.106468345
>>106468377
>>106468030
make your own gui toolkit
my gui toolkit is a lot less bloated than tk
>>106468345
That's a bit too low level for me. I have thought about using something like SDL or the x windowing system but I don't want to go that deep.
Anonymous
9/3/2025, 3:23:44 AM
No.106468879
Anonymous
9/3/2025, 3:31:40 AM
No.106468923
>>106469060
>>106468377
Xlib is a bit of a pain in the ass to work with. Displaying images with it is trivial but doing shit like resizing buffers on a window size change was poorly documented and didn't work and was poorly documented. Also you're locked to linux and bsd. Sdl is about as low as I would go for anything.
Anonymous
9/3/2025, 3:42:17 AM
No.106468985
>>106469002
Read a whole guide from beginner to advanced on C++, took me some time but finished it. Now I'm starting to program using C++ but don't really remember anything. Anyone know what the cause of this may be?
Anonymous
9/3/2025, 3:46:27 AM
No.106469002
>>106468985
My brother in Christ, manuals are not novels. You're allowed to reference back to the book. You're not going to memorize the entire stdlib in one sitting (nor should you need to). Pick a project and reference back to the concepts that you need.
Anonymous
9/3/2025, 3:53:04 AM
No.106469039
>>106465042
>idk what it is
It's based on
https://youtu.be/itRV2jEtV8Q
>use vp9 for videos that have noise like that btw
Thanks!
Anonymous
9/3/2025, 3:55:54 AM
No.106469060
>>106470918
>>106468377
>>106468923
sdl is ok if you want to something to start with but it's too bloated for me so i made my own rendering and event handling library
unironically win32 is easier to work with than x11
>but doing shit like resizing buffers on a window size change was poorly documented and didn't work and was poorly documented
not really, you just rerender on the window surface once the window is resized
there is no need to resize any server side buffer
Anonymous
9/3/2025, 6:03:24 AM
No.106469750
>>106469849
what kind of statistics do i need to figure out the frequency of a fixed rate clock given a fixed rate clock with a known frequency and hopefully minor amounts of error
trying to figure out a way to make VK_KHR_shader_clock more usable
if it helps i think i have the value for my hardware already although i'd have to dump the GPU assembly to double check if anything additional is being done to the result of the clock instruction
Anonymous
9/3/2025, 6:24:20 AM
No.106469847
finally got my shitty vulkan video decoder working...
Gonna try and find a way to implement a way to do intentional data-moshing effects next
Anonymous
9/3/2025, 6:24:42 AM
No.106469849
>>106470008
>>106469750
If you mean doing something like busy looping with an operation that you know the cycle count of and multiplying by your GPU's base frequency I would think that's probably as good an estimate as you could get.
Anonymous
9/3/2025, 6:56:20 AM
No.106470008
>>106470077
>>106469849
i don't think there's any vulkan based way to get the base frequency of a gpu
that's actually the whole issue, a lot of timing information is only available to non-portable APIs like CUDA or HIP
i don't think it's available to opencl, if it was i guess that would be fine
and it's not to get the cycle count, since that wouldn't really work given 1 SPIR-V instruction isn't guaranteed to equal 1 assembly instruction and while i could get the actual assembly for AMD GPUs from vulkan with an AMD specific extension and could probably assume the most basic of operations was 1 cycle there's basically no way regardless to know anything about NVIDIA's GPU instruction set
or something like an ARM gpu
what i'm trying to do is use the host clock to get the device clock so i can use the GPU's device clock to drive behavior in a portable manner
Anonymous
9/3/2025, 7:05:41 AM
No.106470052
>>106468005
that's quite depressing
why do you have to make another one?
>>106438619 (OP)
I have a initial version of search plugins done. I want to bring image search back to AQ and this is how it'll be done - search plugins.
https://github.com/sky-cake/ayase-quart/blob/main/src/blueprints/web/bp_search.py#L140
>>106462155
zesty maid post, maid bro
Anonymous
9/3/2025, 7:12:52 AM
No.106470077
>>106470008
*use samples from a host clock with a known frequency and samples from the device clock to get the fixed device clock frequency
that original phrasing wasn't really clear
i need the frequency so i can convert between the two
gonna try to do it with both a host and device busy loop over either host mapped device memory or device mapped host memory as that means i don't have to deal with kernel launch latency
maybe both since that seems like that might help with figuring out PCIe latency somehow
in theory i should have a few ways to counter all the fucking caches that get in the way which is a concern
i think simple linear regression might? be able to provide a result that would at least vaguely point in the right direction given the relationship is linear
and i figure i should probably sample both a bunch at multiple fixed rates
i dunno
maybe this is more of a question for /sci/
Anonymous
9/3/2025, 7:23:56 AM
No.106470128
>>106470167
>>106441286
>C++ gives me the ick
ngmi
I sense that you are also afraid of the command line. I would be comfortable in building, compiling, editing, and debugging from just a terminal. You don't need an IDE at all. After that, C++ is really simple.
Anonymous
9/3/2025, 7:32:38 AM
No.106470167
>>106470243
>>106470128
Useless reply.
Anonymous
9/3/2025, 7:38:09 AM
No.106470191
>>106470212
>>106468005
I will look at it anon and appreciate your hard work. Just don't trick me and reveal you're some IDF agent working with Israel and the portfolio link phones home to Tel Aviv.
Anonymous
9/3/2025, 7:44:07 AM
No.106470212
>>106470191
Fear not, he's just a subcontractor.
Anonymous
9/3/2025, 7:51:41 AM
No.106470243
>>106470167
Sorry, if you ask for a build tool for C++ and don't want to use the command line and CMake for the build tool, I don't know what to tell you.
You could try C# instead which is similar but might be more suited for people who get the ick.
There are easier build tools like CodeBlocks for Windows that I've used when I was just starting. I stay away from VisualStudio because the plugins are literally zero days with remote code execution and privileged access but what do I know?
Anonymous
9/3/2025, 10:23:07 AM
No.106470918
>>106472400
>>106473074
>>106469060
>unironically win32 is easier to work with than x11
Many such cases, but Windows isn't kool with the kids like Linux is.
Anonymous
9/3/2025, 12:12:50 PM
No.106471436
>>106471492
for (i=0; i
foo(x);
bar(a , zoo ( zip ( var , "string" , ( zap (bar ( b ))))), g);
}
If the intended solution to the common case looks anything like (or can be translated into) this then you have failed at designing a good api, why the fuck is your manual more than a page if you can't even do the most basic shit without a hundred functions and switches
Anonymous
9/3/2025, 12:22:51 PM
No.106471492
>>106471436
looks like the average shell one liner to me
>>106470918
wait until you ask them to write wayland client
I am writing the MAIDS manual because the language is done. Once I finish it, I will test the language again to see if I can find bugs, and then release it.
>>106470918
This maid is very cute. Thank you for posting her.
4chan janny dox dump
go fuck yourself you disgusting kike nigger sludge
https://files.catbox.moe/mw4lzy.zip
death to israel, death to all kike niggers and their golems. there is no future for you.
Anonymous
9/3/2025, 4:37:39 PM
No.106473177
>>106473217
Anonymous
9/3/2025, 4:39:56 PM
No.106473196
>>106473112
Why are his hands that color?
Anonymous
9/3/2025, 4:41:36 PM
No.106473217
>>106473290
>>106473177
You will never experience love. You will die alone in an apartment, while a home health nurse from Guatemala who can't speak English plays on her phone.
Anonymous
9/3/2025, 4:49:07 PM
No.106473290
>>106473217
>You will never experience shit on your dick.
Thank fucking god I'm parasite free.
>a home health nurse from Guatemala who can't speak English plays on her phone
Speaking from personal experience?
Anonymous
9/3/2025, 4:51:42 PM
No.106473319
>>106473112
user got b& for this post
Anonymous
9/3/2025, 5:42:57 PM
No.106473780
>>106477501
>>106473074
I think you should resent her coffee addiction.
Anonymous
9/3/2025, 5:48:05 PM
No.106473811
>>106473867
>>106472400
Can you explain? I'm a pleb
Anonymous
9/3/2025, 5:55:09 PM
No.106473867
>>106473811
It had very weird and convoluted licensing scheme so I stayed away from it. I heard iced is better anyway.
For now egui was all I ever needed.
Anonymous
9/3/2025, 5:58:34 PM
No.106473889
>>106473827
Wayland code is very verbose. Win32 has a lot of 'wtf' design decisions, like how everything is a "window" even though we think of a window as a top level object, or the weird enums they use and their ambiguous behavior. But Win32 is more succinct than X or Wayland
Anonymous
9/3/2025, 6:00:18 PM
No.106473906
>>106475616
>>106473827
you have to write lots of boilerplate for wayland because its design mandates you maintaining a large state machine of the whole client state yourself since states are only delivered with events (for which every single one you need to register a listener for) and can't be queried
there are also lots of restrictions on wayland that don't exist on any other window systems
in my library wayland uses 2x of the code to achieve the same functionality as win32/x11
I contributed a fairly non trivial code to a fairly large project which is very tricky to properly test. I said that I didn't test any of this and people are like LGTM but I doubt anyone actually tested/read deep into it/cross referenced the datasheets either. Just yesterday I found one of the values made no sense, I noticed it by pure chance.
I guess we are testing in production now.
Anonymous
9/3/2025, 6:29:58 PM
No.106474138
>>106474081
So that's why my Nvidia drivers are crashing
Anonymous
9/3/2025, 6:49:05 PM
No.106474330
So Valgrind obtain statics information about cache misses and branch mispredicts via *simulation*? WTF. I thought it was using performance registers somehow.
I always put a space between the function declaration and parameter list.
Anonymous
9/3/2025, 8:04:09 PM
No.106475032
Anonymous
9/3/2025, 8:07:33 PM
No.106475063
Got back into my C compiler side project and just spent the last 2 days implementing graph coloring register allocation. Now I have to get it to actually spill haha
Anonymous
9/3/2025, 8:25:38 PM
No.106475221
>>106438821
Haskell is the perfect NEET lang
Anonymous
9/3/2025, 9:16:11 PM
No.106475616
>>106473906
I see. Thanks!
Anonymous
9/3/2025, 9:39:53 PM
No.106475813
>>106475822
Stop using Dejiko on bullshit, you will make her cry.
Anonymous
9/3/2025, 9:40:36 PM
No.106475822
>>106475832
>>106475813
What should she be used on?
Anonymous
9/3/2025, 9:41:37 PM
No.106475832
>>106475822
Anything that needs a maid
Anonymous
9/3/2025, 10:32:19 PM
No.106476162
>>106477761
>>106441286
Build tools are for fags. I am anal about external dependencies, especially build tools. Structure your project as a unity build then you can just use a 10 line bash script for yourself and it's completely scale-able no matter project size. The only usecase I've found it doesn't cover is when multiple unit tests need different #define flags that determine underlining implementation, otherwise it keeps things dead simple and it compiles faster too. I strive to keep my projects so that the source of all dependencies are included and anyone can obtain and build the entire project with a mind numbingly straightforward
git clone github.com/anon/project
cc project.c -o project
For unit tests I use
https://github.com/tsoding/nob.h but outside of that I generally try to avoid using bootstrapping when possible and stick to the unity build.
No hunting down packages, no build tools, no niggerlicious docker containers or nix-shells, just a C compiler and build instructions that could not be any simpler. I believe this is how all FOSS should be.
Anonymous
9/3/2025, 10:36:44 PM
No.106476197
>>106476227
>>106476477
>tsoding
So that's where they're coming from
Anonymous
9/3/2025, 10:41:25 PM
No.106476227
>>106477465
>>106476197
I don't care about tsoding, but offloading the building process on to the compiler is just a good idea. A unity build is doing the same thing with less steps and moving parts, but it isn't always possible.
Anonymous
9/3/2025, 10:46:40 PM
No.106476272
>>106474947
>space between the parameter list and starting curly brace instead of newline
Anonymous
9/3/2025, 11:10:32 PM
No.106476477
Anonymous
9/4/2025, 1:13:21 AM
No.106477465
>>106476227
You have:
- Unity build (everything gets included, copypasted and recompiled), C
- Unity build (code gets compiled, cached and then included), Zig
- Unity build (modules????????????? doesn't work), C++
Anonymous
9/4/2025, 1:17:38 AM
No.106477501
>>106480093
>>106473074
Unfortunately I found a bug with pattern matching. In some cases captures just silently fail and I have no idea why. The error handling in my language is really, really bad. I might improve it after I squash this bug.
>>106473780
I would drink a lot of coffee with her. I am also a coffee enjoyer.
Anonymous
9/4/2025, 1:35:19 AM
No.106477633
Anonymous
9/4/2025, 1:50:09 AM
No.106477761
>>106476162
You can't "just use a ten line bash scipt"
Even with complete control over the OS the plan 9 src (while it builds better than any given C++ program) has to use plenty of tools to make a working piece of software
With a language like jai, then benefit is that, if you know jai, and you editor knows jai, you can see literally every part of a project.
large C projects have either way to much stuff that is either generated at build time or internal to the compiler (or both)
Anonymous
9/4/2025, 2:35:15 AM
No.106478054
>>106478296
lisp is literally just jews shittesting dumb goys. Like nobody would actually use this retarded language, but how powerful is our control over goys. Turns out it's pretty powerful.
>>106478054
What's those runes?
Anonymous
9/4/2025, 3:14:08 AM
No.106478320
Anonymous
9/4/2025, 3:19:15 AM
No.106478354
>>106478571
you aren't fooling anyone alberto
Anonymous
9/4/2025, 3:20:26 AM
No.106478358
>>106478475
>>106478226
imagine being filtered by LISP so hard you have to cope by attributing your lack of mental capacity to some contribed conspiracy theory
Anonymous
9/4/2025, 3:37:38 AM
No.106478475
>>106480278
>>106478358
NTA but what is the use case for LISP? used it for a semester in college to understand the creation of programming languages and that's literally it
Anonymous
9/4/2025, 3:41:32 AM
No.106478505
>>106474081
Guys, what if, what if right, what if monitors had touchscreen built-in by default so that problem can be instantly invalidated by touching the screen with your fingers
Two birds with one stone, babeeeeeeeeeeee
Anonymous
9/4/2025, 3:51:04 AM
No.106478571
>>106478354
This nigga straight Incan
Anonymous
9/4/2025, 4:11:54 AM
No.106478708
>>106478928
>>106467547
I'm dumb and not a "REAL programmerβ’" which is why I'm trying to learn to make games by using a predefined library. Idk how any of this stuff like image files and audio and text are ACTUALLY cobbled together. I just know I can use a set of functions and classes from SDL to do what I want to do.
>>106478708
idk why everyone hates on this code it's actually very readable. I think the idea that these should all be in some array or a dictionary is probably too high level for the task complexity. All it does is move data out of control flow, doesn't actually make reasoning about the code any easier
And these are gameover states you know by design that you aren't going to add any further nesting or complicated jumps/functions
In c this would just be a for loop over an array running some opaque function, probably be the same amount of code after error handling
int found = 0;for ( int i = 0; i < sizeof ( reactions ) / sizeof ( reactions [ 0 ] ); i++ ){
if ( strcmp ( Witnessed, reactions [ i ].witnessed ) == 0 ) {
Updatelabel ( reactions [ i ].label, 1, 6.0f ); GameOverCause = reactions [ i ].cause; found = 1; break; }}
if ( !found ){
printf ( "No reaction.\n" );}
else{
printf ( "GameOverCause = %s\n", GameOverCause );}}
Anonymous
9/4/2025, 4:44:20 AM
No.106478951
>finally figured out what kept preventing pretty much everything using protobufs from properly linking to the system install
>for some reason when using cmake to link to the c++ library and use the code generator it doesn't pull in the C library, abseil, and some other dependency that does memory allocation
I keep meaning to write something that can scan installed libraries for symbols that match undefined ones in an object file and at least guess what the missing dependency is
Anonymous
9/4/2025, 5:11:37 AM
No.106479126
>>106479158
>>106478928
>write "Blood and weapon" instead of "Weapon and Blood"
>
Anonymous
9/4/2025, 5:18:29 AM
No.106479150
>>106478296
i do not remember maybe look history of english language book
tough funni as looks like
i am
koc
myn
xms
tyx
Anonymous
9/4/2025, 5:19:54 AM
No.106479152
if you join in the from clause you're a psycho
Anonymous
9/4/2025, 5:21:45 AM
No.106479158
>>106479172
>>106479126
looking at the actual code, It probably be better if he didn't reuse witness across different entities. If the entire point of them is that they do different things when they witness something then those should be separate.
>>106479158
half of these if statements would be gone if he didn't try to do the "proper" thing of reusing code
Anonymous
9/4/2025, 5:31:35 AM
No.106479190
>>106478928
The problem for me is not that he is branching on the state of an entity, it's that the state of the entity is stored in a string
Anonymous
9/4/2025, 5:34:00 AM
No.106479196
>>106439090
Have you heard of OpenMP?
Anonymous
9/4/2025, 5:56:54 AM
No.106479298
>>106479317
>>106479172
i dont think thats how you reuse code
Anonymous
9/4/2025, 6:00:20 AM
No.106479317
>>106479298
That's exactly the kind of useless reuse people show in examples for memelangs
Anonymous
9/4/2025, 6:35:38 AM
No.106479476
>>106479483
>>106479172
should have used a real reusable lang like haskell
Anonymous
9/4/2025, 6:36:58 AM
No.106479483
>>106479476
funny that the only haskell program I have installed is pandoc and the binary is larger than an LLM that does the same job better
Anonymous
9/4/2025, 8:20:58 AM
No.106479957
>>106479986
>>106478928
>idk why everyone hates on this code it's actually very readable
the words are, but the logic is not
you would have to dig through miles of code (basically play out the whole game in your head) to analyze what state those elements could be at that point in code
>>106479957
No, the logic does it for you and if this.teacher is false, none of it is called
You're critique is too general, all code solves a real problem in the real world
Anonymous
9/4/2025, 8:28:13 AM
No.106479990
>>106480002
>>106438619 (OP)
In memory of Terry Davis
This is what I did today
Anonymous
9/4/2025, 8:31:06 AM
No.106480002
Anonymous
9/4/2025, 8:36:11 AM
No.106480023
>>106480254
>>106479986
>all code solves a real problem in the real world
True. I'll solve the hunger problem, I'll make lots of spaghetti.
Anonymous
9/4/2025, 8:53:22 AM
No.106480093
>>106480278
>>106477501
Are you winning?
Anonymous
9/4/2025, 9:03:35 AM
No.106480137
>>106483958
I was tricked by a jew into writing a class and I do not like it at all.
I'm just going to stick to procedural programming.
Anonymous
9/4/2025, 9:26:53 AM
No.106480245
>>106480272
>>106479986
>and if this.teacher is false, none of it is called
that has no meaning by itself
might as well replace "Teacher" with "x"
you can't even tell from that screenshot if Teacher is a property of one of many objects (if so, then why would many objects have a GameOverCause and Subtitle), or some global state (in which case, what are the preconditions for it to be true or false?)
Anonymous
9/4/2025, 9:28:13 AM
No.106480254
>>106480023
How is a completely isolated if statement "spaghetti"
>Oh noes I got a bug and the gameovercause is wrong
>OMG THE HORROR I have to look at 8 separate 2 line if statements
>>106480245
It's of one struct that many npcs who are teachers own YOU HAVE TO UNDERSTAND YOUR DATA if you want to write good code. There is no such thing as good code in a vacuum. It doesn't exist.
One object the NPC. You can't tell because YOU think code exists in a vacuum. It doesn't It operates on real hardware on real data in the real world.
>>106478296
Both that version of the language and the one I am writing the manual for now are powered by textual reduction. In that version, the language was parsed and then special UUIDs made from Elder Futhark were inserted as markers for how to reduce the text so the VM could run the code. If, for some reason, you wanted to make a document in Elder Futhark, you could also configure it to be other languages, like Phonecian or Egyptian. The current version no longer does this, because I replaced that whole system with parser combinators.
>>106478475
Crash Bandicoot was written in LISP. LISP can make anything, and you can make your own LISP tailored to the problem you are trying to solve. This actually lead to something called "LISP curse", where no major LISP implementations really caught on, because frequently making your own specialized LISP is easier and more effective than learning someone else's LISP and trying to apply it to your problem.
>>106478928
It seems like it should be a switch? I am in agreement with you that the code is not egregiously bad.
>>106480093
I fixed the bug, so, yes? I can keep making the manual now!
Anonymous
9/4/2025, 9:36:33 AM
No.106480293
Anonymous
9/4/2025, 9:36:36 AM
No.106480294
>>106480997
>>106480272
go and take a sip from the chalice then fix your code, yanderedev
Anonymous
9/4/2025, 11:53:28 AM
No.106480915
>>106480930
I'm making a simple SMTP server in c++ and it's so much fun!
Anonymous
9/4/2025, 11:55:40 AM
No.106480930
>>106480915
That's a good project.
Anonymous
9/4/2025, 12:12:03 PM
No.106480997
>>106480278
enums with a switch would be better. I agree with that 100%
>>106480294
But it's not yandere devs fault that people shilled some shitty language that is so unintuitive, unusable and clusterfucked just to deal with the most minor autistic niggles people have with real programming languages.
Anonymous
9/4/2025, 12:21:00 PM
No.106481032
>>106481222
which maidware is best suited for embedding?
Anonymous
9/4/2025, 12:31:35 PM
No.106481085
>>106481107
Part of me feels im never going to be a good programmer and I should just give up
Anonymous
9/4/2025, 12:34:06 PM
No.106481107
>>106481085
I'll never be a good programmer but I program because it's fun. You'll never attain "good programmer" status anyways because it's undefinable
Anonymous
9/4/2025, 12:35:00 PM
No.106481112
i am working on a new image board like 4chan
i will call it xchannel
really excited for it my first real project at 17
Anonymous
9/4/2025, 12:51:51 PM
No.106481222
>>106481032
>all boards banned for maidposting
What would you like to embed and what would you like to embed it into?
Anonymous
9/4/2025, 12:56:15 PM
No.106481256
>>106481364
>>106481383
Wasted 15mins of my life learning about minor optimizations in inline assembly, entire thing got btfo when I found out that Rust compiler doesn't give a fuck and picks optimal register size for an operation by default.
e.g. mov rax, 1 is actually mov eax, 1 in the final binary and me writing mov eax, 1 explicitly does nothing. Assemblyniggers of course lied to me by claiming that compilers are le bad or something...
Anonymous
9/4/2025, 1:01:46 PM
No.106481293
>>106467465
Threads::Threads should never be missing, it's the way you link to the system multithreading libraries, it's not a real package
try and do a find_package(Threads REQUIRED) before you pull in whatever package is triggering that
i always put it very early on in the project root for safety's sake
never thought it actually mattered but apparently it does to at least one library
Anonymous
9/4/2025, 1:14:42 PM
No.106481364
>>106481256
You are peaking SO hard bro. Keep it up.
Anonymous
9/4/2025, 1:16:39 PM
No.106481377
>>106481672
>>106480272
it's not about code "being in a vacuum", it's about code having clear context
>It's of one struct that many npcs who are teachers own
why does a NPC have a GameOverCause and Subtitle?
that's something that should belong to a game session context, not an npc context
>YOU HAVE TO UNDERSTAND YOUR DATA if you want to write good code
good code is understandable without having to mental map the data structures and abstract logic it's actually meant to be implementing
that code the opposite of good code and it's one step away from outright obfuscation
>You can't tell because YOU think code exists in a vacuum
I can't tell because the code itself doesn't tell me
Anonymous
9/4/2025, 1:17:48 PM
No.106481383
>>106481393
>>106481256
llvm does a low level pass towards the end to "correct" assembly including silently fixing code that would otherwise trigger hardware errata
hand optimized assembly is for doing things like branchless SIMD and avoiding platform ABI and compiler generated gunk
not "microoptimizing" a single access to the low half of a register
literally never seen anyone fret over that
i don't actually know if it's the case but i was under the notion that it didn't really matter because sub-register addressing with one of those backwards compat aliases still loads the full register
Anonymous
9/4/2025, 1:19:08 PM
No.106481393
>>106481570
>>106481383
Ok retard, I'm sure you absolutely NEVER saw anybody try to reduce amount of bytes wasted on shim code that you wish that you didn't have to write at all.
Anonymous
9/4/2025, 1:48:44 PM
No.106481570
>>106481586
>>106481393
genuinely haven't
don't do too much where that kind of thing is necessary, i don't generally find myself needing to modify the behavior of a binary that i don't control
vaguely aware of tight space constraints making setting up things like trampolines and shims more difficult but i didn't think it came down to that level most of the time outside of shit like trying to get code execution in a really constrained environment
Anonymous
9/4/2025, 1:51:49 PM
No.106481586
>>106481570
>binary that i don't control
Words of a nocoder wagie.
>>106481377
{
StudentScript component = Yandere.Senpai.GetComponent
();
if (component != null && !component.Teacher && Yandere.Noticed)
{
Subtitle.alpha = 1f;
GameOverType gameOverCause = component.GameOverCause;
int num = 0;
switch (gameOverCause)
{
case GameOverType.Stalking:
num = 4;
break;
case GameOverType.Insanity:
num = 3;
break;
case GameOverType.Weapon:
num = 1;
break;
case GameOverType.Murder:
num = 5;
break;
case GameOverType.Blood:
num = 2;
break;
case GameOverType.Lewd:
num = 6;
break;
}
Subtitle.text = NoticedLines[num];
Subtitle.GetComponent().clip = NoticedClips[num];
Subtitle.GetComponent().Play();
}
else if (Headmaster)
}
From the decomp, he has yet to discover enums or maybe that's just how enums decompile. Anyhow it's just as readable as before. Sure it can be better, but not following any of your edicts.
There is basically one problem with the way he arcitects and it can be boiled down to https://research.swtch.com/pcdata
Or that he creates and stores data very inefficiently using hundreds/thousands of lines of code
if (Yandere != null)
{
Yandere.CameraEffects.UpdateDOF(1.5f);
}
Week = DateGlobals.Week;
if (GameGlobals.MostRecentSlot == 0)
{
TargetAlpha[2] = 0.5f;
}
if ()
{
Arrested = true;
}
if (Dead)
{
}
else if (ChallengeFailed)
{
}
else if ()
{
}
else if ()
{
}
else if ()
{
}
else if ()
{
}
else if ()
{
}
else if ()
{
}
else if ()
{
}
else
{
Here for example. Who cares if ChallengeFailed is true when you are dead is true. The structure of the code explicitly tells you that we don't. WHICH IS TRUE! the state doesn't matter, which would be a signal to remove it if you were programming in a real language.
Anonymous
9/4/2025, 2:11:45 PM
No.106481729
>>106481754
>>106481672
The main problem of this kind of code is more pernicious so I'm not surprised you guys didn't get it.
It's scope, you can't reach back and add stuff into scope, so you have to
If you want code to run when Dead && ChallengeFailed, you have to add another block above all your existing code.
Which may needlessly limit what your program can do. IF it needs to do that. Since this doesn't the design is fine. Not good, less readable that it could be obviously, less efficient. But it just works. And that's what makes /g/ the maddest
( if you have some state that you want to know exactly what it does then you can literally just run the code, this is a non issue and shouldn't be your main architectural design point, we don't live with punchcards anymore)
Anonymous
9/4/2025, 2:14:25 PM
No.106481754
>>106481672
>>106481729
You're both retarded, but don't let that stop you, keep going.
Anonymous
9/4/2025, 2:17:03 PM
No.106481775
>>106481863
>>106481672
your reply addresses none of the points of the post you're replying to
Anonymous
9/4/2025, 2:23:49 PM
No.106481816
I've just finished writing and testing a clang plugin
this was a lot easier than I expected
time to publish a release
>>106481775
The points don't make sense. If your code is readable without knowledge of the data then it's literally just a purely function program.
Are purely functional programs good in reality? Of course not.
Making sure that the programmer has an idea of the data is a necessary evil, both for performance and social sake.
Anonymous
9/4/2025, 2:35:09 PM
No.106481905
>>106481863
None of it makes yanderetard's code good.
>>106481863
list.sort();
"oh no, i can't see the values directly in the source code! this makes no sense!"
- you
Anonymous
9/4/2025, 2:37:17 PM
No.106481916
>>106439159
use square brackets
Anonymous
9/4/2025, 2:41:17 PM
No.106481936
This way of architecting is a 1-1 map to how the player thinks about playing the game. I don't think it's the best, sub par even, but it's makes reasoning about gameplay easier. Which is more important than the code.
Anonymous
9/4/2025, 2:43:11 PM
No.106481950
>>106482092
>>106481909
>There's only one way to sort
Babyduck's first sort.
Anonymous
9/4/2025, 2:46:47 PM
No.106481985
>>106481672
That's a nice article. Where did you find it?
Anonymous
9/4/2025, 2:49:10 PM
No.106482003
>>106482092
>>106481909
>thought he was sorting a list of strings, turns out it was a matrix and now he has garbage
You've just moved the problem to understanding sort's spec
Anonymous
9/4/2025, 3:00:48 PM
No.106482092
>>106482102
>>106481950
as long as it's sorted, i do not care about the implementation
>>106482003
you're inventing problems that don't exist
>>106482092
You are ignoring data that you need to know. both to write the code, and fix the code when something breaks.
These kind of function chains aren't exactly readable either, it's the classic "guess what this line of APL does"
Anonymous
9/4/2025, 3:16:43 PM
No.106482211
>>106482102
>You are ignoring data that you need to know
the programmer (and the code itself) should not need to know data, only what to do with it
>>106482102
>These kind of function chains aren't exactly readable either
what "function chains"
Anonymous
9/4/2025, 3:46:03 PM
No.106482467
Anonymous
9/4/2025, 6:51:28 PM
No.106483958