/dpt/ - Daily Programming Thread - /g/ (#105992603)

Anonymous
7/22/2025, 11:54:18 PM No.105992603
1358677227600
1358677227600
md5: 93a38ff49db8425a9ebef30daf64a65e🔍
What are you working on, /g/?

Previous thread: >>105929300
Replies: >>105992639 >>105992693 >>105993677 >>105995381 >>106003691 >>106005056 >>106015492 >>106017064
Anonymous
7/22/2025, 11:56:40 PM No.105992639
>>105992603 (OP)
Dilate.
Anonymous
7/22/2025, 11:59:46 PM No.105992661
Daily "look at me i'm superman and you're a retard" programming thread
Anonymous
7/23/2025, 12:02:50 AM No.105992693
mpv-shot0014
mpv-shot0014
md5: 394bbc1383a25ee8aaa6d420ebc93b4c🔍
>>105992603 (OP)
Anonymous
7/23/2025, 12:37:08 AM No.105993011
Can someone open a new graphics and game engine developement general, please? I don't have the pasta.
Replies: >>105993021
Anonymous
7/23/2025, 12:38:10 AM No.105993017
hey where's the filemap schizo
Anonymous
7/23/2025, 12:38:37 AM No.105993021
>>105993011
What's the use case for developing more game engines?
Replies: >>105993033
Anonymous
7/23/2025, 12:39:36 AM No.105993033
>>105993021
having nothing better to do
Anonymous
7/23/2025, 12:49:47 AM No.105993115
How hard would it be to create a version of Rust without all the bullshit.
Replies: >>105993141 >>105993160 >>105995735 >>106004715 >>106012697
Anonymous
7/23/2025, 12:51:51 AM No.105993141
>>105993115
>Rust without all the bullshit.
That would just be an uglier and less capable C++.
Anonymous
7/23/2025, 12:53:35 AM No.105993160
>>105993115
C and C++ exist
Anonymous
7/23/2025, 1:56:35 AM No.105993677
1723530906164333
1723530906164333
md5: f1919f82c988ba55282cfeefec4e193e🔍
>>105992603 (OP)
>What are you working on, /g/?
Working on an SDL3 wrapper for Ada.
Got window+events working and I'm cleaning up some bindings right now. Tomorrow I'll start on the GPU wrapper.
Replies: >>105999885
Anonymous
7/23/2025, 2:18:26 AM No.105993876
1743105862905788
1743105862905788
md5: 1e89cc65f1006ddc9c102d54f723ce15🔍
holy shit this OpenGL shit is pure madness.
When did we decide as humanity that we needed this shit?
I'm dying over here.
Replies: >>105994204 >>105994794
Anonymous
7/23/2025, 2:40:22 AM No.105994015
JS, Python, and Rust is all you need. Tauri solve GUI
Anonymous
7/23/2025, 3:04:05 AM No.105994204
file
file
md5: 7119c741277b9c892bb643a6d0028ff2🔍
>>105993876
babymode, it gets worse
Anonymous
7/23/2025, 3:49:16 AM No.105994543
https://www.youtube.com/watch?v=RCgEIBfnTEI
this guy is an idiot
Anonymous
7/23/2025, 4:28:23 AM No.105994794
>>105993876
GPUs are complicated, and it doesn't help that OpenGL carries around all of its baggage from the 90s.
Replies: >>105994879
Anonymous
7/23/2025, 4:46:28 AM No.105994879
>>105994794
Could be worse. Could be 3dfx or direct3d.
Anonymous
7/23/2025, 5:51:51 AM No.105995289
what data structure should I use for a container that needs to hold ~0-15 large objects of different types, changing very infrequently (< once an hour on average), supports concurrency (single writer, multiple readers), and frequent access to specific elements?

I was thinking I'd make a linked list where each node had a mutex for the object combined with a key value map to each element in the list (for the frequent specific element access). That way the 'writer' can add, modify, or delete nodes without interfering with anyone who is doing a 'frequent' read
Replies: >>105995395
Anonymous
7/23/2025, 6:06:22 AM No.105995381
1749428781858806
1749428781858806
md5: 46c450d7c2970fdb61e7e3e754258d9c🔍
>>105992603 (OP)
My C# GtkSharp application keeps running into random crashes and it typically says due to an attempt to access restricted memory or something like that. I am compiling with AOT but even when I toggle it off I encounter the issue. Any other anons have experience with this? Is this just a memory leak issue with the library wrapper?

>inb4 just use Maui or Avolonia or some other cross platform framework
Gtk is the easiest to compile cross platform for Windows and Linux and it's holding up with AOT compilation pretty well
Replies: >>105997556 >>106002662
Anonymous
7/23/2025, 6:08:15 AM No.105995395
>>105995289
https://en.wikipedia.org/wiki/Read-copy-update
Anonymous
7/23/2025, 6:43:08 AM No.105995588
I'm spec'ing out a ton of changes for my web app's backend. My teammate is responsible for the frontend. Have to basically not jeet this up tonight
Anonymous
7/23/2025, 7:06:49 AM No.105995735
>>105993115
It wouldn't, but all programmers are brainwashed into thinking that making a programming language is uberhard and useless if it doesn't have a user base of 1 million devs, so almost no one makes new PLs even though this is the biggest bottleneck of programming.
Replies: >>105995858 >>106019792
Anonymous
7/23/2025, 7:24:34 AM No.105995858
>>105995735
There are six billion languages, they are just forgotten because they don't have webshit template libraries or established game engines and nobody wants to reinvent the wheel on a meme language.
Replies: >>105996142
Anonymous
7/23/2025, 8:14:18 AM No.105996142
>>105995858
>There are six billion languages
and not a single good one
>nobody wants to reinvent the wheel
another falsehood. take any field of application and the top softwares for it have a lot to be desired and if you're going to rewrite it from scratch (a lot of code) you will be happy to use a language with a good type system and excellent metaprogramming features
Replies: >>105998654
Anonymous
7/23/2025, 11:56:16 AM No.105997285
i was thinking
>vi
great editor name, 1 syllable
>vim
still great
>neovim
3 syllables, wtf are you doing

editor technology and specifically vi* development has shown itself to keep advancing with the times, so we may expect vi* to live on for some decades more.
whats the future incarnation going to be? "neovim++"?
my ideas are
>envy
from a shortening of neovim to "NV". still 2 syllables though
>niv / nav / nev / nov
same as above, but from "nv", where the nomenclature is youre supposed to pronounce it with a vowel.
advantages are that it could be marketed with an arabic letter logo, nun-vav. and also "niv" kind of sounds like "vim" backwards so it's familiar.
>ted
for "tactile editor". this is if vibe coding paired with visual studio or yet-unknown ai-integrated ide becomes so popular that some people just never need to make precise text edits. "vi" now becoming a meaningless distinction since everything has been "visual" for a long time, ted would reaffirm traditional editing by keeping the repertoire of vi commands in a 2040s era app.
Replies: >>106012686
Anonymous
7/23/2025, 12:54:35 PM No.105997556
>>105995381
what does the dump file tell your?
or just configure your OS to suspend the process and attach the debugger
Replies: >>106004737
Anonymous
7/23/2025, 3:20:43 PM No.105998654
>>105996142
Nobody is happy reinventing a standards compliant HTTP 3 server on a dead language. It's boring.
Replies: >>105998724 >>105999901
Anonymous
7/23/2025, 3:29:47 PM No.105998724
>>105998654
That's why you just use bindings to a C library.
Anonymous
7/23/2025, 3:49:16 PM No.105998866
I'm new to git and github. What can people see if I commit a public project of mine? Can they see the name of my PC?
Replies: >>105998898 >>105998909 >>105998927
Anonymous
7/23/2025, 3:52:18 PM No.105998883
Panty color is recorded.
Anonymous
7/23/2025, 3:54:47 PM No.105998898
>>105998866
The name and email address that you configure it to set.
Anonymous
7/23/2025, 3:56:15 PM No.105998909
>>105998866
They can see the entire history of your git repo (even if you accidentally committed a file and deleted it after), and they can see the username and email you've configured with git. That's about it.

It's really just your git history.
Replies: >>105999343
Anonymous
7/23/2025, 3:59:22 PM No.105998927
>>105998866
>if I commit
nothing
you have to push a branch to which you committed things to for other people to see it
Anonymous
7/23/2025, 4:40:09 PM No.105999258
if you declare a variable as var instead of its actual class I will find you and hurt you.
Anonymous
7/23/2025, 4:49:53 PM No.105999343
>>105998909
What if I make a commit and then delete the whole project, no trace of that project will ever exist on my github account right?
Replies: >>106004755
Anonymous
7/23/2025, 5:05:44 PM No.105999465
how does the computer know what variable I'm protecting with my mutex and to freshly retrieve it in particular???
Replies: >>105999611
Anonymous
7/23/2025, 5:22:35 PM No.105999611
>>105999465
Flags
Replies: >>105999923
Anonymous
7/23/2025, 5:52:23 PM No.105999885
cniles
cniles
md5: 115dd707ec2f6f32f6f3ab28c1cfdfdf🔍
>>105993677
Is there is a nicely organized reference documentation for the standard library somewhere?
Replies: >>106000089 >>106004969
Anonymous
7/23/2025, 5:54:24 PM No.105999901
>>105998654
>webdev ad absurdum
faggot
Replies: >>106003701
Anonymous
7/23/2025, 5:57:25 PM No.105999923
>>105999611
what does that mean
Anonymous
7/23/2025, 6:05:55 PM No.106000011
i learned my company uses webhooks today and i need to configure stripe webhooks today

another day another WORK TASK TO BE DONE SAAAR
Anonymous
7/23/2025, 6:15:12 PM No.106000089
>>105999885
I've been working on nicer Ada docs and an overview: https://kontosdev.gitgud.site/notes/programming/ada/packages/
Not finished yet and requires some reorganisation, but it should be a lot easier than the manual and there are links to the manual for all the details.
Anonymous
7/23/2025, 7:20:46 PM No.106000656
file
file
md5: cbec8a754ce0fac1853707093ae9887e🔍
>want to buy fsf shirt
>see this
huh?
Replies: >>106000746
Anonymous
7/23/2025, 7:29:04 PM No.106000746
>>106000656
>Number one sex
>or woman
Anonymous
7/23/2025, 8:38:28 PM No.106001318
You guys know how jeets in tech are rote memorization slaves who have no lateral thinking skills, so they apply abstract software design principles like LSP / DRY, etc. in the most retarded fashion like an autistic booknerd with zero global, holistic engineering or design sense


I was thinking that's just like LLMs that write code. . The LLMs are like jeets. They apply DRY or other SOLID shit unnecessarily and shit up codebases with needless abstraction.

The LLMs are Indian. The training data is Indian. It's all Indian.
Replies: >>106001535 >>106001744 >>106002566
Anonymous
7/23/2025, 9:00:01 PM No.106001535
>>106001318
saaaaaaaaaar, give the visa saaaar
Replies: >>106002381
Anonymous
7/23/2025, 9:23:45 PM No.106001744
Yin-Yang-Logo3
Yin-Yang-Logo3
md5: 41e51a88ea99e9d0653e7de01ef0e818🔍
>>106001318
>Indians scrape data
>Indians shit data
>LLM scrape shit
>AI becomes shit
>AI becomes Indian
>AI shits data
>repeat
Anonymous
7/23/2025, 10:18:04 PM No.106002253
What is the best way to check if a character is an uppercase letter, A-Z, in python?
There are a few ways to do it.
Replies: >>106002262 >>106004598 >>106004747 >>106005056
Anonymous
7/23/2025, 10:18:42 PM No.106002262
>>106002253
I check the ascii code if it's within the range of capital letters.
someone may have a better way of doing it...
Anonymous
7/23/2025, 10:26:26 PM No.106002337
1743742420885441
1743742420885441
md5: bb213e2f9159bd973ae9942bd754bcf9🔍
Reading C++ Primer!
Anonymous
7/23/2025, 10:31:03 PM No.106002381
>>106001535
llms also accept mastercard and amex
Anonymous
7/23/2025, 10:37:57 PM No.106002443
hello /g/ im learning java as a hobby and tried to recreate a program i made way back in high school from memory where the goal was to check whether one box could fit into another one in any rotation

how can i post my code so anons can shit on my code?
Replies: >>106002508 >>106002529
Anonymous
7/23/2025, 10:44:39 PM No.106002508
>>106002443
just paste it in with <code>
Anonymous
7/23/2025, 10:46:33 PM No.106002529
>>106002443
>how can i post my code so anons can shit on my code?
>>105076684
Replies: >>106002560
Anonymous
7/23/2025, 10:49:58 PM No.106002560
>>106002529
wait until he posts it wrong you fucking retard
Replies: >>106002672
Anonymous
7/23/2025, 10:50:36 PM No.106002566
>>106001318
it's quite ironic how cniles and functards always shit on poojeets for memorization, cargo cult and whatnot, while themselves being the most extreme zealots doing just that
Replies: >>106002582
Anonymous
7/23/2025, 10:52:16 PM No.106002582
>>106002566
>defending jeets
fortunately soon brindia will be blocked from 4chan
Replies: >>106002639
Anonymous
7/23/2025, 10:58:10 PM No.106002639
>>106002582
that won't stop cniles and functards from being the kind of zealots they criticize others being, though
Replies: >>106002643
Anonymous
7/23/2025, 10:59:07 PM No.106002643
>>106002639
i can immediately understand that what you're saying is false, because you are indian
Anonymous
7/23/2025, 11:01:23 PM No.106002662
>>105995381
You use multi-threading?
Replies: >>106004737
Anonymous
7/23/2025, 11:02:23 PM No.106002672
Test.java
idk what im doing
>>106002560
i probably just did, feel free to laugh
Replies: >>106002686
Anonymous
7/23/2025, 11:03:58 PM No.106002686
>>106002672
>Test.java
downloading it now sir...
Anonymous
7/23/2025, 11:05:51 PM No.106002704
public class Test {

static void check(float[] cube1, float[] cube2){
if(cube1[0] <= cube2[0] && cube1[1] <= cube2[1] && cube1[2] <= cube2[2]){
System.out.println("cube 1 fits inside of cube 2 in the same position");
}
else if(cube1[0] <= cube2[0] && cube1[1] <= cube2[2] && cube1[2] <= cube2[1]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the length axis");
}
else if(cube1[0] <= cube2[2] && cube1[1] <= cube2[1] && cube1[2] <= cube2[1]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the width axis");
}
else if(cube1[0] <= cube2[1] && cube1[1] <= cube2[0] && cube1[2] <= cube2[2]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the height axis");
}
else if(cube1[0] <= cube2[2] && cube1[1] <= cube2[0] && cube1[2] <= cube2[1]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the length axis, then the width axis");
}
else if(cube1[0] <= cube2[1] && cube1[1] <= cube2[2] && cube1[2] <= cube2[0]){
System.out.println("cube 1 fits inside of cube 2 after being rotated along the height axis, then the length axis");
}
else{
System.out.println("Cube 1 does not fit inside of cube 2");
}
}

public static void main(String[] args) {
float[] cube_1 = {10, 3, 7};
float[] cube_2 = {3, 7, 10};
System.out.println("cube 1 dimensions, Length: " + cube_1[0] + "cm, Width: " + cube_1[1] + "cm, Height: " + cube_1[2] + "cm\ncube 2 dimensions, Length: " + cube_2[0] + "cm, Width: " + cube_2[1] + "cm, Height: " + cube_2[2] + "cm\n");
check(cube_1, cube_2);
}
}
Replies: >>106002718 >>106002968
Anonymous
7/23/2025, 11:07:27 PM No.106002718
>>106002704
heres the comments i deleted so it would fit

//this program tests if one rectangular prisim can fit into another in all configurations which allow for the largest possible rectangular prisim to fit, therefor it excludes checking along diagonals
//this program also needlessly uses arrays and methods for the sake of learning
//also the rectangular prisims are called cubes even though they should be called "rectangles" but i cant be assed to write that as a variable

// 0 = Length, 1 = width, 2 = height, dimmensions are assumed to be in cm
Anonymous
7/23/2025, 11:39:25 PM No.106002968
>>106002704
public class Test {

public static void main(String[] args) {
Prism prism1 = new Prism(10, 3, 7);
Prism prism2 = new Prism(3, 7, 10);

System.out.println("cube 1: " + prism1);
System.out.println("cube 2: " + prism2);

if (prism1.fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 in the same position");
} else if (prism1.rotatedAlongLengthAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the length axis");
} else if (prism1.rotatedAlongWidthAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the width axis");
} else if (prism1.rotatedAlongHeightAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the height axis");
} else if (prism1.rotatedAlongLengthAxis().rotatedAlongHeightAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the length axis, then the width axis");
} else if (prism1.rotatedAlongHeightAxis().rotatedAlongLengthAxis().fitsInsideOf(prism2)) {
System.out.println("cube 1 fits inside of cube 2 after being rotated along the height axis, then the length axis");
} else {
System.out.println("Cube 1 does not fit inside of cube 2");
}
}
}

class Prism {
final float l, w, h;

public Prism(float l, float w, float h) {
this.l = l;
this.w = w;
this.h = h;
}

public Prism rotatedAlongLengthAxis() {
return new Prism(l, h, w);
}

public Prism rotatedAlongWidthAxis() {
return new Prism(h, w, l);
}

public Prism rotatedAlongHeightAxis() {
return new Prism(w, l, h);
}

public boolean fitsInsideOf(Prism other) {
return this.l <= other.l && this.w <= other.w && this.h <= other.h;
}

@Override
public String toString() {
return "Length: " + l + "cm, Width: " + w + "cm, Height: " + h + "cm";
}
}
have some OOP
Replies: >>106003059 >>106003064 >>106003793
Anonymous
7/23/2025, 11:46:00 PM No.106003022
__attribute__((__transparent_union__))

This thing seems really useful, but the fact that it's a non-standard extension makes me wonder if it's got footguns hidden.
Is anyone familiar with this attribute?
Replies: >>106004639
Anonymous
7/23/2025, 11:49:16 PM No.106003059
>>106002968
>have some OOP
im doing the w3school java tutorial rn and haven't got to it yet :(
Replies: >>106003175
Anonymous
7/23/2025, 11:49:36 PM No.106003064
>>106002968
yiking rn desuyone
Anonymous
7/24/2025, 12:03:55 AM No.106003175
>>106003059
just be aware that using primitive arrays instead of objects is not a typical Java practice
Replies: >>106003214
Anonymous
7/24/2025, 12:06:55 AM No.106003214
>>106003175
isnt an object like just an array...?
i don't get the difference
Replies: >>106003493
Anonymous
7/24/2025, 12:43:31 AM No.106003493
>>106003214
no
an array is just a linear structure of values of the same type - either primitives (eg. int[], float[], etc.) or objects (eg. Prism[], String[], etc)

an object is an instance of a class
a class is a definition for objects
a class can have fields (basically variables, but tied to the context of an object) that can be differing types, as well as methods (basically functions, but also in context of an object)

so if you have a class Prism and you create two Prism objects, each object's method will use its own object's fields
Replies: >>106003506 >>106003650
Anonymous
7/24/2025, 12:45:26 AM No.106003506
>>106003493
>a class can have fields (basically variables, but tied to the context of an object) that can be differing types, as well as methods (basically functions, but also in context of an object)
why does any of this need to be tied to an object tho? it feels arbitrary
Replies: >>106003793
Anonymous
7/24/2025, 1:01:43 AM No.106003650
>>106003493
Technically, In Java an array is an object too and so you can invoke java.lang.Object methods on it.
Replies: >>106003793
Anonymous
7/24/2025, 1:07:45 AM No.106003691
1753311336795.png
1753311336795.png
md5: 53fc940d788e9c736084bff68a938894🔍
>>105992603 (OP)
I'm low on mental fuel, and a capacity to give a rats ass about developing software. I threw screenshots of Kuroba Ex at openai and x and told it implement the image manipulations. The image type logic is sorta fucked, and it renames images to unix by default, but it works.

On one hand, I can't believe no one has made such a basic image processing app on droid for these actions. On the other hand, I do believe it because Android Studio fucking sucks. Maybe I will release it, idk. I need to stop being tired. But I keep shitting my guts out thanks to illness
Anonymous
7/24/2025, 1:08:52 AM No.106003701
>>105999901
Yes. Literally all new languages get popular by doing novel ways of doing webshit and provide immediate value.
There's too much code already entrenched and generating heaps of sunk cost for management to ever advocate for something else.
Do you use Chapel for HPC? No. Do you use Erlang or Scala for distributed services? No. You write corposhit and then write something novel to get a better job and then the corpo rewrites your OCaml tool into Java corposhit to maintain it.
Nobody is rewriting all that C++/Java/Python.
Replies: >>106003752
Anonymous
7/24/2025, 1:15:20 AM No.106003752
>>106003701
why cant normal languages just be used for websites? why does every web language have to be its own thing, like java script
Replies: >>106003811 >>106015801
Anonymous
7/24/2025, 1:21:28 AM No.106003793
>>106003506
the main advantage is that it lets you keep all related values and behavior close, in one place

take for example the Prism class in >>106002968
all possible behavior you can invoke is defined by public methods of that class - you don't need to search through your whole codebase to find what can you do with it

usually you don't need to even inspect the code inside methods, it's enough to read the name and return type to understand what it does - you should easily tell that all you can do with a Prism object is rotate it against one of its axes, or check if it fits inside another Prism object

when done right, the usage turns basically into writing plain English (eg. if (prism1.fitsInsideOf(prism2)) { ... )

>it feels arbitrary
it is

>>106003650
an array is an object but an object isn't an array
Anonymous
7/24/2025, 1:23:20 AM No.106003811
>>106003752
That's what they are trying to do with webassembly: compile your language for the virtual machine everybody has.
The problem: it's still a virtual machine so it's slow, not all lang features map cleanly to webassembly features, and doing GUI sucks ass since forever so people want the DOM and therefore not want webassembly.
And Chromium is a bajillion lines of C++ and that's how it's going to stay because fucking nobody wants to read and implement the specs of all the W3C autism plus muh quirks mode plus tip. So Javascript it is.
Anonymous
7/24/2025, 1:42:39 AM No.106003953
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
Don't read this page, just click the link and try to scroll to the bottom as fast as you can
Replies: >>106004203
Anonymous
7/24/2025, 2:09:37 AM No.106004203
1733984853998752
1733984853998752
md5: f93b5bdc6b44ccc44bdd27bc8e0589c9🔍
>>106003953
Gotta GNU fast
Anonymous
7/24/2025, 2:53:24 AM No.106004598
>>106002253
from string import ascii_uppercase
def is_upper(c):
return c in ascii_uppercase

idiomatic saar
Replies: >>106005056
Anonymous
7/24/2025, 2:57:53 AM No.106004639
>>106003022
it's not that useful because all the associated types have to be put in the same union, so you have to have one centralized type that has all of the applicable types
maybe you have a usecase I'm not thinking of, but the last time I thought it might be useful was when I had a bunch of structs with a common initial sequence, and I wanted to have them all be valid arguments to a function without having to do
func(&item->base)
// or
func((Base*)item)
Replies: >>106004769
Anonymous
7/24/2025, 3:05:43 AM No.106004715
>>105993115
Without the bullshit you would have to malloc manually so there wouldn't any point in using rust.
Anonymous
7/24/2025, 3:09:06 AM No.106004737
>>105997556
I don't know if need to start checking
>>106002662
Yes but I have been meticulous about safely invoking code within the gui thread
Anonymous
7/24/2025, 3:10:40 AM No.106004747
>>106002253
ord('A') <= ord(c) <= ord('Z')
c.isupper()
re.fullmatch('[A-Z]', c)
second one is probably "best", but other two are more general.
Anonymous
7/24/2025, 3:11:52 AM No.106004755
>>105999343
If no one forked/cloned your repo only you and Microsoft can access the data.
Anonymous
7/24/2025, 3:13:56 AM No.106004769
>>106004639
I've personally always found it odd that this isn't how they work, with values you have to either cast and uncast or cast and do member access
>you have a usecase I'm not thinking of, but the last time I thought it might be useful was when I had a bunch of structs with a common initial sequence
I'm implementing an AST, so I have a shit ton of C style polymorphism going on rn. I've been using _Generic in a macro to get around the source code bloat.
I'm conservative with macros, but I'd rather deal with that and run -E than type that shit,
Anonymous
7/24/2025, 3:31:24 AM No.106004883
https://gcc.gnu.org/onlinedocs/cpp/C_002b_002b-Named-Operators.html
Let's hope the python niggas don't find out about this
Anonymous
7/24/2025, 3:46:01 AM No.106004969
>>105999885
>not cnilistic
Anonymous
7/24/2025, 4:02:14 AM No.106005056
>>106002253
I vote for this >>106004598
the others are retarded. Don't use regex. Don't compute anything.

>>105992603 (OP)
Any of you just get burned out? I can't think through any logic anymore, and I don't care to try.

Listener events? Idempotency? If else? NO.

Nap time? Fap time? Walk time? YES.
Replies: >>106005608
Anonymous
7/24/2025, 5:25:19 AM No.106005608
>>106005056
>the others are retarded. Don't use regex. Don't compute anything.
Fun fact, python's regex implementation optimizes char classes like that really heavily, provided you don't run compile a lot, you'll likely end up with a DFA about as fast as the in keyword
Replies: >>106006540 >>106008800
Anonymous
7/24/2025, 7:45:41 AM No.106006540
>>106005608
u should test it
Anonymous
7/24/2025, 10:10:03 AM No.106007253
how do i get into c++? especially for working with hardware and electronics. im okay at python so im not completely new to programming.
Replies: >>106007588 >>106008025 >>106008097
Anonymous
7/24/2025, 11:24:17 AM No.106007588
>>106007253
>hardware and electronics
>c++
stay the fuck away we don't want you
Replies: >>106007672
Anonymous
7/24/2025, 11:39:43 AM No.106007672
>>106007588
its not my choice, its the industry im targeting
Anonymous
7/24/2025, 12:42:14 PM No.106008025
>>106007253
arduino
Anonymous
7/24/2025, 12:55:41 PM No.106008097
>>106007253
https://wokwi.com/
Anonymous
7/24/2025, 2:22:18 PM No.106008633
1753359738359473.png
1753359738359473.png
md5: 30708230aafb6e1800f5fd64eccc4704🔍
What's your biggest programming mistake?
Replies: >>106010842
Anonymous
7/24/2025, 2:32:31 PM No.106008701
for getting into google/aws/netflix/openai python is actually wayyyyyyyyy more useful than anything else

it's a shame but i'm forcing myself to be better at python

currently going through all leetcode problems rewriting in python
Anonymous
7/24/2025, 2:50:02 PM No.106008800
>>106005608
>you'll likely end up with a DFA
charclasses are implemented very easily with bitvectors.
uint32_t charclass[32] = {0};
// make the charclass
uint8_t c = ...;
if (charclass[ c >> 3 ] & (1 << (c & 7)))
{
// character is in the charclass
}

some regex engines also use a 16 byte bitvectors when the charclass characters are all ascii
Replies: >>106008837
Anonymous
7/24/2025, 2:56:30 PM No.106008837
>>106008800
whoops
>uint32_t charclass[32] = {0};
uint8_t charclass[32]
Anonymous
7/24/2025, 3:15:24 PM No.106008949
Guys one week left to build a moderate program for my project, but I haven't programmed in a year tho. What should I do, goal is to get something complete and with at least 4 to 5 features that the program will have. Also I have to write a detailed report and a diagram to show how the program works unfortunately, time that I will have to spare and reduce from my programming time. Also I can't copy everything, I need to show versions of it and time it was done at. So version control. Cheating and cramming will be impossible.
Replies: >>106009275 >>106009530
Anonymous
7/24/2025, 3:57:33 PM No.106009275
>>106008949
You haven't given any technical details so I assume you just want to blog?
Replies: >>106009985
Anonymous
7/24/2025, 4:25:16 PM No.106009530
>>106008949
sounds like high school homework
use chatgpt
Replies: >>106009961
Anonymous
7/24/2025, 5:18:22 PM No.106009961
>>106009530
No I can't. Its college class during the summer so you can't cheat, they have programs to detect it genius. You get 0 if you get caught plagiarizing anything or using AI.
Replies: >>106010072
Anonymous
7/24/2025, 5:21:06 PM No.106009985
>>106009275
No I have to create a program a business would need but it can't be an online shop. Also I'm trying to avoid anything that would require me to do any sort of designs because I can't draw at all or it would just take forever. I was thinking of creating a gps system but for the timeframe I have that is never going to happen.
Replies: >>106010222
Anonymous
7/24/2025, 5:31:39 PM No.106010072
>>106009961
just use chat gpt and then try to implement it yourself by memory.
>b-b-b-but the software is gonna detect it!
The only trick they have to check if you are checking is Git, chatgpt (or whatever AI) gives you to full solution, then you just build up to that solution knowing what chatgpt told you (if you want a challenge, you could use a different programming language and you could port it, the language doesn't really matter it's the solution)
spend your time programming shit that actually matters instead of wasting it on school work.
An example of something that actually matters is a project that an AI can't do on it's first try with a single prompt, and it's something you could show off.
Replies: >>106010982
Anonymous
7/24/2025, 5:50:42 PM No.106010222
81aEUlUkh2L._SL1500_
81aEUlUkh2L._SL1500_
md5: d6acc27f73b6ad2e741e469d21915824🔍
>>106009985
>I was thinking of creating a gps system
lol wut
Anonymous
7/24/2025, 7:21:35 PM No.106010842
>>106008633
>Lord **
Jesus or Satan?
Anonymous
7/24/2025, 7:38:56 PM No.106010982
>>106010072
Just stfu you retard. No it can be fully detected. I know people who got caught.
Replies: >>106011763
Anonymous
7/24/2025, 8:52:17 PM No.106011763
>>106010982
>No it can be fully detected
lmao you are as clueless as the people marking your work

technologically illiterate boomers and zoomers
Anonymous
7/24/2025, 9:01:50 PM No.106011844
Screenshot 2025-07-24 145822
Screenshot 2025-07-24 145822
md5: 3bc4d6e261d6abc8f3cb8130eb8e91d2🔍
Poggers
Replies: >>106012113
Anonymous
7/24/2025, 9:27:39 PM No.106012095
0203cf746a598b1340bae7a90442889a
0203cf746a598b1340bae7a90442889a
md5: 59449e2314ad449c3abec7d2e34896b0🔍
It is ok to be a C++ dev
Replies: >>106012179 >>106012661
Anonymous
7/24/2025, 9:28:52 PM No.106012113
>>106011844
single render split between several windows, or did you just fix the triangle based on the screen and open 5 instances that you resized?
Replies: >>106012853
Anonymous
7/24/2025, 9:35:51 PM No.106012179
>>106012095
It is nok, baka chiruno poster
Anonymous
7/24/2025, 9:40:42 PM No.106012226
Spent all day browsing the internet for social media whores instead of programming. I am never getting a job in IT.
Replies: >>106012276
Anonymous
7/24/2025, 9:44:26 PM No.106012276
1737985180731443_thumb.jpg
1737985180731443_thumb.jpg
md5: 6991ee3522e465b7d701495e395bf57a🔍
>>106012226
Best thing to do it just put on some porn, have a wank, and get it over with. Scrolling on TikTok for hours looking at bitches like this means you will never write a line of code.
Replies: >>106012441 >>106012600 >>106013481
Anonymous
7/24/2025, 9:58:58 PM No.106012441
>>106012276
>tinfoil covers everything except the head
makes sense when you're a woman with nothing there to protect
Anonymous
7/24/2025, 10:14:09 PM No.106012600
>>106012276
It usually takes me a couple of hours to have a wank tho. I never cum until I've watched at least a couple hours of whores. I have to stroke it for a couple of hours, it can even be up to 7 hours.
Replies: >>106012615
Anonymous
7/24/2025, 10:15:24 PM No.106012615
>>106012600
>training your penis to not work
Replies: >>106012626
Anonymous
7/24/2025, 10:16:28 PM No.106012626
>>106012615
Well its been working perfectly for decades.
Replies: >>106012715
Anonymous
7/24/2025, 10:19:15 PM No.106012661
>>106012095
only with rtti and exceptions off and STL runtime not linked
Anonymous
7/24/2025, 10:21:26 PM No.106012686
>>105997285
>vee eye is one syllable
?
Anonymous
7/24/2025, 10:22:27 PM No.106012697
>>105993115
https://github.com/tsoding/Crust
Replies: >>106012857
Anonymous
7/24/2025, 10:23:58 PM No.106012715
>>106012626
uh huh how many children do you have?
Replies: >>106012881
Anonymous
7/24/2025, 10:36:13 PM No.106012853
>>106012113
The former I suppose, they all run off the same pipeline but the triangle is hardcoded in the shader, all I change between windows is the viewport and clear color.
Anonymous
7/24/2025, 10:37:06 PM No.106012857
>>106012697
>No cargo, build with rustc directly.
Yeah lets get rid of one of the few good aspects of using Rust.
Anonymous
7/24/2025, 10:37:46 PM No.106012865
ainz greater hardening
ainz greater hardening
md5: 96273b6cd40bc00e37014b132cfbdb75🔍
Holy SHIT why did nobody tell me async Python was this good? All my dumb "waiting for HTTP API calls" bottlenecks just EVAPORATED from sticking a bunch of awaits in for loops. Golang, you're fired.
Replies: >>106014527
Anonymous
7/24/2025, 10:40:12 PM No.106012881
>>106012715
None, women are insufferable nowadays.
Anonymous
7/24/2025, 11:00:48 PM No.106013092
1734303277057171
1734303277057171
md5: d1a631288688c2ecce51f2cb1c0dd42d🔍
Submitted solutions in Python, C++ and Rust.

They were all written by me based on the same solution I thought about while pooing earlier on in the day, so you can't claim the Rust one was better because the algorithm was more efficient.
Replies: >>106013425 >>106013491 >>106013561
Anonymous
7/24/2025, 11:15:45 PM No.106013240
capture
capture
md5: d4335245c3482694d1248a570a3ef92b🔍
I love metaprogramming C using the Tool Chad Language, so comfy.
Anonymous
7/24/2025, 11:35:27 PM No.106013425
>>106013092
you faked the numbers to shill for crab
Replies: >>106013560
Anonymous
7/24/2025, 11:41:17 PM No.106013481
>>106012276
https://www.tiktok.com/@sara.manner/video/7269365050396200225
Replies: >>106013569
Anonymous
7/24/2025, 11:42:51 PM No.106013491
>>106013092
as believable as porn scenarios
Replies: >>106013560
Anonymous
7/24/2025, 11:48:43 PM No.106013560
>>106013425
>>106013491
It was a run of the mill linked list question where C++ needed to allocate memory and rust had less of an overhead.

i don't even like Rust or C++, and I especially hate Python. I just thought the results were interesting.

it's a shame I can't upload my Haskell solution to compare. I don't care if it's slower and uses 1gb more memory I would still use Haskell
Replies: >>106013575
Anonymous
7/24/2025, 11:48:45 PM No.106013561
>>106013092
Python+Rust is an underrated combo.
Anonymous
7/24/2025, 11:49:56 PM No.106013569
1734728021737389_thumb.jpg
1734728021737389_thumb.jpg
md5: 6fafa53082d62c23c86a28e5960c579a🔍
>>106013481
what an ass on this white bitch holy shit
Anonymous
7/24/2025, 11:50:24 PM No.106013575
>>106013560
post the problem
Anonymous
7/25/2025, 1:43:26 AM No.106014527
>>106012865
Don't DDoS other people's websites.
Replies: >>106014536
Anonymous
7/25/2025, 1:44:32 AM No.106014536
>>106014527
This is the Azure API and I'm not the one signing the cloud account checks.
Anonymous
7/25/2025, 3:12:43 AM No.106015159
I'm making an assembler. I have a class for each instruction type. What should I do about the labels? Should they be a property of each instruction like this?
Add(['label1','label2',...], Reg.R1, Reg.R2)

or should they be one layer up like this?
Object(['label1','label2',...], Add(Reg.R1, Reg.R2))
Replies: >>106015268 >>106016037
Anonymous
7/25/2025, 3:18:31 AM No.106015216
why do i have good ideas for projects right as i'm about to go to bed? this is the third time this has happened recently
Replies: >>106015336 >>106015402
Anonymous
7/25/2025, 3:23:59 AM No.106015268
>>106015159
A label -> line number map.
You can use this map/table to rewrite jumps.
Anonymous
7/25/2025, 3:30:19 AM No.106015336
>>106015216
Google your question if you really care. boils down to something something, brain is relaxing, reorganizing info, and or revisiting info.
I swear I had a science teacher really talk about this when I was in like middle school, but I can't recall the details. There seem to be a lot of articles online about it.
Anonymous
7/25/2025, 3:36:50 AM No.106015402
>>106015216
Write them down so you have a stash for the time when you want to work on something but don't have an idea.
Anonymous
7/25/2025, 3:46:29 AM No.106015482
Screenshot 2025-07-24 214427
Screenshot 2025-07-24 214427
md5: e380e199566e55865cbb834115471250🔍
I always make sure to thank GPT-chan and include an image of the results if applicable so she can properly appreciate her handiwork.
Replies: >>106015505
Anonymous
7/25/2025, 3:48:23 AM No.106015492
>>105992603 (OP)
What are your preferred build systems?
I was introduced to make pre-college, ended up 'learning' CMake like any good man does and just copy-pasted other build files I found online. I seriously hate CMake; however, I had just started getting good at it & catching up to the modern 3.XX versions by the time I found meson.
Fiddled around with Xed (linuxmint's text editor, fork of old gedit) and starting using Gtk + GLib more. I honestly don't want to ever build without meson again...
Replies: >>106016770
Anonymous
7/25/2025, 3:50:38 AM No.106015505
>>106015482
Why? Her memory of that feedback will be obliterated when the conversation ends
Replies: >>106015538
Anonymous
7/25/2025, 3:54:34 AM No.106015538
>>106015505
Not true they give it your whole convo history now.
Anonymous
7/25/2025, 4:11:19 AM No.106015687
I was replaced 3 months ago by a contracting company in Canada. I found out today that the software suite I maintained has been completely trashed and they can't get the server to work.

All the documentation was translated to Punjabi using AI. All the new components for the app they were tasked with building were inserted as images. They were even running queries on the production database without backups, transactions, or even double checking anything.

Thank you India -- today is a good day.
Replies: >>106015706 >>106016426
Anonymous
7/25/2025, 4:13:20 AM No.106015706
>>106015687
Our firm specializes in technical debt
Anonymous
7/25/2025, 4:25:45 AM No.106015801
>>106003752
The use case for wasm is cryptography or game engines. Anything else I can get a chick with multicolored hair to do for $20/hr
Anonymous
7/25/2025, 4:27:07 AM No.106015810
How can I generate a compilation database for clangd if I'm using a unity build?
Anonymous
7/25/2025, 4:57:37 AM No.106016037
>>106015159
>I'm making an assembler. I have a class for each instruction type. What should I do about the labels? Should they be a property of each instruction like this?
niggerlicious
Anonymous
7/25/2025, 5:49:53 AM No.106016426
>>106015687
>All the documentation was translated to Punjabi using AI
lmao
Anonymous
7/25/2025, 6:47:02 AM No.106016770
>>106015492
one makefile per target platform
Anonymous
7/25/2025, 7:41:35 AM No.106017064
tile_image
tile_image
md5: 93d3566106d1a5a8749db3e5b0fd7009🔍
>>105992603 (OP)
>What are you working on, /g/?
Boredly tried to vibe code some shitty python script to spit out a dumb wallpaper idea I had. It came out exaclty as I wanted (pixel perfect to the spec in my head), but turns out it doesn't look nice at all. I added some more code to include palette to make the main cross a different color. Still doesn't look anywhere nice.

Meh.
Anonymous
7/25/2025, 7:56:11 AM No.106017140
file
file
md5: 72ca1986d87685cf9a9afcb7c074f9eb🔍
ktim
Anonymous
7/25/2025, 9:24:32 AM No.106017513
Every time i finish another nugget of my emulator i realize i have waaaaay more work to do than i ever imagined at the outset of the nugget and it will involve lots of fumbling and many more hours of manual rereading
Anonymous
7/25/2025, 11:16:01 AM No.106018067
Good day anons, I would like to ask if building the software from scratch is still relevant to the industry? I am currently building a Point of Sales software but I only know how to build a web application offline and I have no knowledge of doing the way programmers did back in the days and might end up making it as a web app instead.
Anonymous
7/25/2025, 2:08:05 PM No.106019058
Why tf are these jeets and pakis charging so much for them to program me something? Their minimum wage is like a 1 usd a day yet they're asking for like 20 an hour. These south asian monkeys are so out of touch with reality. I would use AI but the reason I'm not is because AI is too obvious.
Anonymous
7/25/2025, 2:16:10 PM No.106019126
I'm a senior dev but I only have 18 months of experience. kek
Anonymous
7/25/2025, 2:39:19 PM No.106019295
1739299782018399_thumb.jpg
1739299782018399_thumb.jpg
md5: ffe843d0674d584a149531515c8d8280🔍
Hi, I'm not a programmer but enough tech savvy to vibe code.
I want to create this project for personal use,(Private clinic records)
>Record name/age/sex/complain/management
>add their imaging studies from file or webcam
>modify those at later point
>Tags for certain disease
>search those based on various filters
>reactive UI for desktop/phone
>store data as database including images
>export those as PDF
>Basic user authentication
>ability to backup data
>self hosted
And finally reproducibility on different platforms, or just being able to make an executable for windows users.
I tried using chatgpt/deepseek, but it was very frustrating experience.
Any idea how would it be possible to do this?
Replies: >>106019594 >>106019732
Anonymous
7/25/2025, 3:22:13 PM No.106019594
>>106019295
these are the difficult parts
>reactive UI for desktop/phone
>Basic user authentication
an undergrad can do the rest in a weekend
pay someone to do it if you can't
Replies: >>106019749
Anonymous
7/25/2025, 3:43:41 PM No.106019732
>>106019295
> Any idea how would it be possible to do this?
learn how to code.
Learn how a database works
Probably just use django web framework to handle site/api mapping + orm.
Backing up data wouldn't really be something the *app* does, it boils down to copy-paste the database somewhere not on that same drive/server.
You could probably do a lot of this in python. I'm not a webdev so I can't tell you how to make a reactive UI. I can recommend you look for the "Certificate", not certification, by Meta for Back-end development, Front-end development, and fullstack development. They are free and introduce you to about half of what you want to know. I believe they hyphenated back-end development, which is why I hyphenated it here.
I can't name a crossplatform UI toolkit that does windows and mobile off the top of my head. You might as well just make a webpage.
>but it was very frustrating experience
Well obviously, you're asking text predictor to help you, not someone who actually knows what they're doing.
Replies: >>106019749
Anonymous
7/25/2025, 3:46:05 PM No.106019749
>>106019594
I don't want to.
I want to build it myself, and if undergrad can do it, then it's no difference than AI.
and I have made something with flask, but asking AI vague question doesn't mean I would get the best answers.
And I need to know what i want so it would generate better code.
Any advice regarding that I mean.
I guess doing it with flask would be a safe choice isn't it?
But what about the data? how to store it? since some might be videos and images.
I know flask and python can be set as stand alone executable, so there's that.
And can be set up to run from a container too.
>>106019732
>learn how to code.
Not really helpful answer.
>omeone who actually knows what they're doing.
That's why I'm asking here.
I'm not asking to write code for me I'm asking what do I need to use to get it working.
Replies: >>106019755 >>106020241
Anonymous
7/25/2025, 3:47:07 PM No.106019755
1724892750273176_thumb.jpg
1724892750273176_thumb.jpg
md5: 4a6e126407a011b527650fdfa0b90f03🔍
>>106019749
Forgot webm
Anonymous
7/25/2025, 3:52:28 PM No.106019792
>>105995735
People should really make more languages. Even with that OOP talk last week, it was clear that the problem is that there's just not enough people trying new different things. It's insane that if Bjarne makes some dumb mistake in the 80's and we're just stuck with it for 40 years.
The solution should probably be more modular libraries and stuff like that. I know that nowadays it's trendy to hate on dependencies and do everything yourself, but the thing is that nobody wants to spend years reimplementing all the dumb boring crap that Rust already does fine, just to finally be able to try changing a few small things.
At least there's LLVM, which sucks, is slow and way too hard to use, but it's something. Imagine if we didn't even have that.
Replies: >>106019930 >>106020254
Anonymous
7/25/2025, 4:13:53 PM No.106019930
>>106019792
>People should really make more languages
>nobody wants to spend years reimplementing all the dumb boring crap
make up your mind
Replies: >>106020267
Anonymous
7/25/2025, 4:56:30 PM No.106020241
>>106019749
Well, if you want a helpful answer you should not be in here. Also, although both of you use AI (which almost every undergrad does), the undergrads have already finished your project
Anonymous
7/25/2025, 4:58:27 PM No.106020254
>>106019792
>At least there's LLVM
LLVM is holding language design back though. There needs to be an LLVM 2.
Anonymous
7/25/2025, 4:59:15 PM No.106020267
>>106019930
Did you not notice the Rust shilling?
Anonymous
7/25/2025, 4:59:47 PM No.106020273
It's fucking insane that I first learned programming from this fucking thread.

Some guy showed me how blocks in Ruby worked and that somehow got me hooked. Now I code for money every day.

thanks, /dpt/.
Replies: >>106020353
Anonymous
7/25/2025, 5:05:50 PM No.106020328
How much writing do I need for backlogs in Scrum and do I need to use certain language when writing in backlogs? Is it ok if I just do bullet points or one liners like "Finish this" or "Finish that"? Or do I have to go in great detail?
Replies: >>106020441
Anonymous
7/25/2025, 5:09:08 PM No.106020353
>>106020273
No one works or gets paid everyday retard. Stop coming her and spreading crap.
Anonymous
7/25/2025, 5:09:56 PM No.106020361
image
image
md5: 93ff783a212d4f4da349b1c6f4495322🔍
Lord forgive me but the deadlines have to be met
Anonymous
7/25/2025, 5:17:34 PM No.106020441
>>106020328
What is Scrum?