[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: asd.png (66 KB, 1500x1013)
66 KB PNG
Assembly edition
previous: >>109255588
What are you working on, /g/?
>>
>>109286184
Just vibeCODE bro
Manual coding is obsolete. Don’t be a snailcat
>>
File: output.mp4 (992 KB, 1920x1080)
992 KB
992 KB MP4
>>109286184
I'm making games for Netscape
>>
>muh snailcat
Nocoders say the dumbest shit.
>>
>>109286213
You’re trans
>>
>trans
Nocoders say the dumbest shit.
>>
>>109286216
BOT BOT GO AWAY
COME BACK ANOTHER DAY
>>
File: IMG_2253.png (1.88 MB, 1807x1750)
1.88 MB PNG
>>109286227
>bot
>>
>>109286212
btw not flash, it's all 2008 javascript
>>
>>109286203
Fpbp

Unironically manual coding is like horseback riding. Like it's a cool skill to have and was completely necessary a long time ago, but it's completely useless now.
>>
>>109286235
>>109286237
4chan userpass was a mistake
>>
File: 1784186124049261.png (312 KB, 1851x1414)
312 KB PNG
I'm going to write my tools in assembly but if I do game dev I'll use C, I won't be developing directly on consoles. I'll most like use SDL or raylib.
>>
>it's completely useless now
Not only do they actually believe this, but they don't even have any conception as to why it's completely wrong. It's like they're actively, desperately denying reality.
>>
>>109286203
>>109286237
yes well this is a horseback riding general, fuck off to /vcg/ if horseback riding does not interest you
>>
File: images.jpg (24 KB, 495x619)
24 KB JPG
The AI shills waste no time.
Not gonna but your masters tokens Rajeesh.
>>
>>109286237
This nigga couldn't ride a horse if his life depended on it.
>>
>>109286275
Ok, I’m just trying to point out that coding is trans and obsolete but if you are transgender then I can’t do anything to fix your mental illness
>>
>point out
No, you're just making shit up because you're an abject failure and have to project that failure unto others. Simple as.
>>
Trans seethe above this post
>>
>>109286222
>>
Guys, stop replying to ai posters, we serioursly need to do something about the ai faggot problem, maybe ignore it, or just let this website die already, or display the IP address of the poster instead of just Anonymous
>>
>>109286351
They get paided by the (((you))).
>>
>>109286351
Why do you hate Ai? Does it scare you?
>>
>>109286365
I don't hate AI, I hate you (You)
I'm using it at my job right now, but i'm not a complete asshole like you're
>>
File: nig.png (5 KB, 152x143)
5 KB PNG
So they can have 8 boards for videogames, but we can't have an /ai/ board because it's also technology?
>>
File: mcexplore.png (92 KB, 933x942)
92 KB PNG
Added file extraction to my memory card exploring script.
Probably takes a billion cycles to run. I don't care.
>>
>I don't care
Oh, you clearly do. Otherwise you wouldn't have preempted with it.
>>
No, I don't. I'm not going to refactor it or more it to a compile language.
If anything, I will add whole file structure extraction, which will just increase the number of cycles. I don't care.
>>
File: mcexplore-source.png (1.76 MB, 1926x8816)
1.76 MB PNG
Here, have the code too.
>>
>I'm not going to refactor it or more it to a compile language.
But not because of lack of willing, but lack of competence.
>>
No. If you have followed my memory card shit at all, I am clearly willing and competent enough to write this whole thing in assembly if I wanted to (I essentially have already).
>>
>>109286701
>>109286741
You could literally 1-1 this in C.
The standard library has all these functions.
>>
>>109286665
>>109286684
>>109286701
>>109286703
>>109286741
Can we not devolve into one of those faggy tranny-infested generals where people don't reply to each other please?
>>
No.

>>109286758
>but it doesn't caaaaaaaaare
>totally
>>
>>109286767
No.
>>
>>109286390
they should bring textboards back, the allure of images would keep the retards here
>>
How do I learn to vibecode. I just had to learn how to use a different language/framework and the most helpful thing honestly was the code snippets the ai gave when i searched.
I don't even want to make programs with AI. But using it as a template to speed up figuring out things sounds amazing.
>>
long Cock;
>>
>>109286236
Amazing. No canvas?
>>
File: 4.jpg (176 KB, 800x600)
176 KB JPG
public static void main(String[] args) {
learn2Code();
}

public static void learn2Code() {
char[] string = { 73, 102, 32, 121, 111, 117, 32, 100, 111, 110, 39, 116, 32, 114, 101, 112, 108, 121, 32, 116,
111, 32, 116, 104, 105, 115, 32, 112, 111, 115, 116, 32, 121, 111, 117, 114, 32, 109, 111, 116, 104,
101, 114, 32, 119, 105, 108, 108, 32, 100, 105, 101, 32, 105, 110, 32, 104, 101, 114, 32, 115, 108, 101,
101, 112, 32, 116, 111, 110, 105, 103, 104, 116, 33 };
System.out.println(string);
}
>>
>>109287462
>>109286153
>>
>>109287549
Also obligatory, vibe gods won, snailcats lost
>>
File: 1733052826349923.jpg (62 KB, 458x595)
62 KB JPG
>>109287462
What do you think?
>>
>>109287595
peopel think the world will explode if you change stuff
>>
>>109287483
It's a mix, because in netscape there is no fillText(), I use HTML elements when displaying text, the rest is a canvas, it could all be HTML but I don't know if that will affect performance
>>
>>109287462
You can't be serious, this is not a real person really asking this right? Is it just the nature of some humans to always fall below your expectations even when the bar is lowered to the lowest point possible?

Kind of an eye opening post to be honest
>>
>>109287595
What are you implying by this post? Change what exactly?
>>109287549
Never thought there would be a general for this. Thx.
>>
>>109288064
>Change what exactly?
... holy shit: >>109287902
>>
File: snAIlcat13.jpg (122 KB, 1024x1024)
122 KB JPG
High demand. Grok is currently being used heavily. Please try again later, or upgrade your subscription to get priority access.

omw back to real coding now
>>
>>109288165
the activity is called "programming"
>>
>>109288199
https://www.youtube.com/watch?v=rkZzg7Vowao&t=56s
I do coding
>>
File: 1724446783246195.jpg (83 KB, 845x925)
83 KB JPG
>poured heart out into a library
>it's almost like a small tool stack but treated as library
>confident enough to post it on public package manager
>maintain it, make updates
>get it to good pause point
>work gets busier and life stuff
>start making a game and move on to other things
>remember library
>look through code
>realize it's designed too rigid to be a good library but too loosely put together to be a standalone tool
>see all the bloat in design and places that could be hugely optimized with newer things I know now
>mentally stuck between "get in there and refactor the whole damn thing into a proper library" and "pull it from the package directory, and make it a portable .DLL tool that others can build and use"
>barely can muster up motivation to look at the code, game is more fun to work on and work takes the rest of my time

I am a failure.
>>
>>109288361
just leave it alone. Someone can fork it if they need it
>>
>>109288199
Ok bolognese is cooking. Now 4 real back to coding.
>implying i put celery in
celery is the worst invention ever (only real nerds will get this joke XD)
>>
>celery
If you don't put basil, thyme, and oregano into it it's not a real sauce.
>>
File: python-benchmark.png (32 KB, 365x478)
32 KB PNG
>>109285089
Benchmarked the Python bindings today (one host, one process, one simulation thread, no sharding, no distributed workers)
- C/C++ 100 ticks for 10,000 players at 20hz in 50ms and 10% of 1 Ryzen 5600x Core
- Python binding 100 ticks for 10,000 players at 20hz in 96ms and 10% of 1 Ryzen 5600x Core
>>
>>109288765
SIMD?
>>
>>109288848
Nothing other than what GCC did, mostly achieved by reducing all redundant work for fanout, etc
>>
>>109289080
>GCC
Yeah, I wouldn't trust that one to go anything. There's a good chance you can reduce the runtime by another 50%.
>>
>muh snailcat
Isn't that just the old GHC nonsense all over again?
>look how fast it generates garbage!
>>
>>109286184
A small construction kit (inspired by the one for Morrowind) in odin and raylib.
>>
>>109289802
>generates memoryslop faster than GHC
It's over Haskell sisters
>>
>he probably still uses time instead of RDTSC
>>
>>109290611
std::steady_clock::now()
>>
>>109290615
>std::steady_clock::now
>which calls clock_gettime
>which calls all the nonsense pthread abstractions
>which, at least on Windows, contains a call to GetThreadTimes
>which contains a call to NtQueryInformationThread
>which is a syscall
>and that's me ignoring everything else

Do you need to lobotomize yourself to like C++, or is that a thing you're just born with?
>>
>>109290733
the google AI says that it does not use GetThreadTimes, it says it uses QueryPerformanceCounter.
Which makes sense because GetThreadTimes has a very poor accuracy, and I never noticed a difference between switching between steady clock and SDL's QPC function (I can switch between them with a macro).
The problem with the QPC is that when I was using a core 2 duo, it's not synchronized between the threads, so the timer would jump erroneously when comparing cross threads (I actually forgot what the exact issue was, it's been a long time).
>>
File: GetThreadTimes.png (49 KB, 1000x400)
49 KB PNG
>>109290871
>google AI
Opinion discarded with prejudice, do not respond.
No, seriously. I do not give a shit about all your nonsense. None of it.
>>
>>109290892
you realize that C++ headers are open source, right?
By the way 4chan detected the URL as spam so I put it into pastebin...
https://pastebin.com/zdLAvT2f
Note this is an old commit, I tried to find the same line in the newest version but I can't find it with ctrl+f.
>>
What did I just say about "do not respond"?
Are you an autist? Do I have to treat you like every other single autists out there? Do I have to drive you into your well-deserved suicide that neurotypical people WANT to see you die on?
>>
>>109290984
I probably should have just posted a screenshot, my bad.
>>
>muh theoretical source code beats your literal instructions
Autism confirmed.
Do not reply.
>>
>>109291027
I started reading the libstdc++ chrono code, and it just calls clock_gettime and this does not exist on mingw. It gets emulated, not sure if you need to use the msys library (msys.dll is GPL).
https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/src/c%2B%2B11/chrono.cc
On llvm's libc++ it does the correct implementation.
https://github.com/llvm/llvm-project/blob/main/libcxx/src/chrono.cpp#L173
>>
>>109291140
>not sure if you need to use the msys library (msys.dll is GPL).
*It doesn't, the AI confused me because it says it's not part of mingw, but it is. msys.dll exists to add features that don't exist on windows, such as fork() so I assumed it required it.
>>
>>109286633
>Probably takes a billion cycles to run. I don't care.
On a modern computer, that's still a lot less than a second.
>>
>>109287472
In your case, a
signed char
would be enough. With bits to spare.
>>
>this does not exist on mingw
>>
>>109291220
Are *you* willing to wait those 30 milliseconds? Because I'm not. But then again I'm severe A-D-H-D.
>>
>>109291305
In fact I'm so A-D-H-D I just confused 30 milliseconds with 300 milliseconds!!1!
>>
>>109291271
It uses the QPC.
https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-libraries/winpthreads/src/clock.c
You probably just read the assembly for the CLOCK_REALTIME which uses the slow timer, and ignored the fact that in another branch it uses the QPC for the CLOCK_MONOTONIC, which is used by C++'s steady_clock.
>>
>for the CLOCK_REALTIME
Why are autists always, always, ALWAYS coping?
Do. Not. Respond.
>>
https://pastebin.com/ZfR0zi9L
>Cleared the screen in <300 lines
Who said Vulkan was complicated
>>
>>109291492
>not caching memory requirements
Come on now.
>>
>>109291410
I don't know what you posted, but you are right, I should have said CLOCK_THREAD_CPUTIME_ID, not CLOCK_REALTIME.
I personally would love to know if you are actually getting GetThreadTimes to be called, maybe you should double check with a tracer.
>>
I finished coding my Iron Man suit. My new superhero name is Cocklord. Please refer to me as such.
>>
this general feels like reading a newspaper from the 80s LMAO
>>
File: paulallen.png (150 KB, 600x335)
150 KB PNG
>>109290611
clock_gettime(CLOCK_MONOTONIC) FTW. Takes about 100 cycles.
Windows slaves need not apply.
>>109291492
>100+ dependencies
>3MB binary for 200 lines of code
Now let's see the allocation count.
Now let's see the allocation count.
>>
>>109292074
Oh no no no no no, rust sisters...
>>
>>109286351
>display the IP address of the poster instead of just Anonymous
Don't give the feds ideas
>>
>>109292074
── ash v0.38.0+1.3.281
── libloading v0.8.9
── windows-link v0.2.1
── ash-window v0.13.0
── ash v0.38.0+1.3.281 (*)
── raw-window-handle v0.6.2
── include_bytes_aligned v0.2.0
── winit v0.30.13
── bitflags v2.13.1
── cursor-icon v1.2.0
── dpi v0.1.2
── raw-window-handle v0.6.2
── smol_str v0.2.2
── tracing v0.1.44
── pin-project-lite v0.2.17
── tracing-core v0.1.36
── unicode-segmentation v1.13.3
── windows-sys v0.52.0
── windows-targets v0.52.6
── windows_x86_64_msvc v0.52.6


It's like 20 dependencies and the Vulkan drivers do WAY more allocating than anything in the Rust code.
>>
File: IMG_0929.jpg (54 KB, 976x850)
54 KB JPG
Luddites are forming rape gangs to buck break AIchads.
>>
File: 1784240851571405.png (64 KB, 692x589)
64 KB PNG
Which way white man?
To me 1 seems cleaner and does not overrun the buffer.
>>
File: fat.png (300 KB, 919x1360)
300 KB PNG
>>109292111
>20 dependencies
...sure
cargo tree | wc
162 786 7312
>>
What would be the motivation for shilling AI here?
>>
>>109292179
>Linux
Not my problem!
>>
>>109292157
>fantasizes about getting raped
>>
>>109292165
#2
>>
File: 1784033828225354.png (60 KB, 584x351)
60 KB PNG
Fa/tg/uy incoming--
Considering implementing a TTRPG in C99 or C++20.
Like, making some sort of program that helps me run a campaign solo and does most of the math and adventure generation for me.
Have a nocontext GURPS meme
>>
>>109292252
I was looking into this recently but the space seemed pretty saturated. What's wrong with the current VTT offerings?
>>
>>109292275
I don't mean like, making a VTT or any of that shit
I mean like, a solo TTRPG simulator
With procedural generation, RNG, etc
Maybe a singleplayer MUD or something
SUD?
>>
File: 1784242677632816.png (342 KB, 2544x1399)
342 KB PNG
I am using my tool to help me write my tool as I write and use my tool.

We have hit developmentception.
>>
>>109292660
just use Claude
>>
File: 1784246484154846.png (47 KB, 1105x622)
47 KB PNG
>>109292660
I know I can do this without div but I am just getting the tool up and running and then I will look at optimizing. I will search online for an optimal decomposition loop later.

>>109292765
Fuck no.
>>
>>109292791
>49 instructions
This is pure beauty.
>>
I found out a language I created was similar to A which was one of the reasons C was created. I have repeated Ken Thompson's experiment.
>>
>>109290615
>>109290733
>>109290871
I think Muratori did an entire video on this, diving all the way into assembly.
>>
>>109292836
Found it:

https://www.youtube.com/watch?v=pZ0MF1q_LUE
>>
>>109292181
Naked desperation.
>>
>>109292181
They want us to improve it for them because right now the most impressive thing it can make is a brainfuck compiler.
>>
>>109293907
I am befuddled, gobsmacked and flabbergasted by the AI corps on twatter doing "resetting the token limits" events like they're a gacha MMO game corp o algo.
>>
>>109293947
Kinda sound like restarting the router to get a new IP address to be able to continue downloading video games from one-click hosters.
>>
>>109293961
That doesn't work. It's account based.
There's some chinks that have 200 accounts and rotate them though.
But for the plebs, Claude has a 5 hour usage quota that resets every 5 hours, and a weekly quota that resets per week. And to keep people addicted they do that XP booster shit where they just set the usage to 0 for the 5 hour bar.
>>
>>109293940
I keep saying, if LLMs are _truly_ as impressive as they say, then why the fuck are they still outputting high-level programming language code? A tool that is capable of outputting good, bugfree assembly code would be FUCKING INSANE and, unlike what the retards are shilling here, AN ACTUAL GAME CHANGER!

But as it stands it's just mostly Python slop.
Which, funny enough, you could've just read up on ten years ago.
>>
When programming and exploring something tricky, do you also always end up with more than half the code copied, then commented out again instead of deleted, different versions of the same function from different points in time named function2/3/4, etc.?
>>
>>109293981
>That doesn't work. It's account based.
Question:
>Kinda sound like
is a:
>one: conceptual comparison?
>two: literal comparison?
>>
>>109293989
AI's ability to generate code in each language depends entirely on how popular the language is on reddit where AI gets the majority of its training data.
>>
paying to code is the most retarded thing I have ever heard of
>>
>>109294004
You don't have to tell me. Tell the snail cat posters.
>>
>>109294003
Conceptual comparison.
>>
>>109294022
Exactly.
>>
File: IMG_0936.jpg (62 KB, 679x376)
62 KB JPG
>>109294009
Vibegods how will we ever cope?
>>
my text editor had a bug i cant reproduce thats how they all are how am i suppose to write something when i cant ever figure out what the problem was even from
>>
>>109294079
sorry names still on from agdg
>>
>>109294079
You have to rewrite it in Python.
>>
how do you know its not in python already
>>
>>109294104
It wouldn't execute, seeing as there's no Python interpreter on this system of mine.
>>
>>109294129
you've executed my text editor before? what system are you on?
i just bought another thinkpad t1 on ebay.
>>
>>109294142
>>109294003
>>
>>109294152
>me using my text editor to write spatial partitioning of triangles because i'm too lazy to write a BSP compiler
>>
That's nice.
>didn't read even 40% of your cope
>>
>>109294243
me? what would i cope about
>>
>i'm too lazy
>>
>>109294267
i'm not gonna spend a month trying to write something when i'm trying to make this.
making games isn't like just spending months on one component sometimes it's better to speed things up
>>
>>109294243
>>
Based Rust not releasing an autistic standard to introduce thousands of unexpected behaviors unlike C.
>>
>autistic
>unexpected behaviors
And the funny thing is that its the o-ut-i-sts who NEED predictable behavior for their """""emotional""""" well-being. Otherwise they get anxious and slam their heads against the wall, and we as a society have to put them into cages.
>>
Don't you have work to do on your debugger, Ryan?
>>
>and YET, just in the last thread, the "muh MOVZX" autist was complaining about my absence
>>
Ryan is projecting his own autism.
>>
>projecting autists projecting projecting autism
>>
Oh, and also
>SDL
>>
>>109290733
Neither of them syscall unless you build wrong, are on an ancient computer, or to cache something and not compute it again any time soon. They are a few times worse than rtdsc[p], you are just a pseud.
>>
>>109293993
Absolutely. Then I have to go through and chop out unnecessary stuff.
>>
>sees direct evidence of them syscalling
>"Neither of them syscall"
>the power of ou-t-i-sm
>>
Honestly, at this point anyone who doesn't want to feed ou-ti-s-t-s to the cows should be branded a traitor to humanity. We're DONE with their bullshit. They NEED to be eradicated.
>>
>>109294478
I am looking at the implementation for query performance frequency on msvc and it only ever does anything the first time, at which point it is cached and subsequently just an atomic read. Query performance counter isn't open source, but I doubt it does a syscall every time you call it.
https://learn.microsoft.com/en-us/windows/win32/sysinfo/acquiring-high-resolution-time-stamps?redirectedfrom=MSDN
>Does QPC require a kernel transition (system call)?
>A kernel transition is not required if the system can use the TSC register as the basis for QPC. If the system must use a different time base, such as the HPET or PM timer, a system call is required.
So exactly as I described in >>109294471.
>>
>>109294478
>>
>>109294510
Although, fuck it, the presence of the branch itself would be sufficient evidence of a complete crapshoot, and that's not even counting all the jumps and all the i$ raping.
>>
>>109294524
It will predict those branches almost every time
>>
Even the right branch eats cycles.
>>
>>109294539
Also, again:
>that's not even counting all the jumps and all the i$ raping.
>>
>>109294539
>>109294553
But no system call
>>
>no syscall
>just I$ raping
Guess one of the aspects that make syscalls expensive. Go one. Guess.
>>
>>109294579
Quick, move the goalposts before he notices.
>>
>muh goalpost
>which has always been a simple RDTSC
A-u-ti-s.m confirmed, DO NOT REPLY.
>>
If your code is not just a linear set of instructions that also prefetches all of the necessary data to cache it's shit and you should die in a fire.
>>
>completely ignoring I/O as the biggest bottleneck
>despite NVMes
Cows.
>>
File: 1767189291430075.png (231 KB, 500x500)
231 KB PNG
this threads reminds me of /agdg/ (for the schizophrenia and AI spam) and /osg/ (the no-i-will-not-quote-you culture) on /vg/
how long until /dpt/ does the smart thing and moves to /bant/
>>
>smart thing
>bunch of autists
Come on now.
>>
>>109294865
It's one faggot ruining the thread, really the problem is that many users have left as they'd otherwise drown him out
>>
If one faggot is enough, then this general never deserved to exist in the first place. Simple as.
>>
>>109294865
>/osg/
Funny enough, my regex filter specifically for that thread works perfectly for this one as well.
I'm assuming he's just a stowaway tranny FROM there.
>>
Rn the task is to build a service that initializes the CSI camera on my polarfire soc.
I must admit, this web shit kinda fucked with me. Building a go microservice is kinda comfy. Much more comfy than building this shit in C
I am sorry
>>
File: 1784274577956218.png (81 KB, 876x564)
81 KB PNG
I think this is the most powerful piece of assembly I have every written.
>>
>>109290611
>RDTSC
Intel was telling you not to use that ever since they added sleep states and dynamic clock speeds. Because it counts cycles, not time, and cycles don't take consistent time.
>>
File: mpv-shot0001.jpg (280 KB, 1280x720)
280 KB JPG
>>109295387
https://www.youtube.com/watch?v=HgcQqAum6JY
>>
File: 20260717_170002954.jpg (326 KB, 2000x1333)
326 KB JPG
The 128MB card at least should have some different geometry going on.
I can't wait.
>>
>cycles don't take consistent time
That's been the cope of both incompetent autist programmers AND Incel engineers for at this point over forty years, and everyone with a modicum of a functioning brain is pointing fingers and laughing at the retards.

>I have every written
>still using MOVZX
>>
File: 1784281233983310.png (177 KB, 2043x1090)
177 KB PNG
>>109295648
What ever mang, It's just a tool to make quick manipulates to strings without taking 40000 billion instructions. It's not that deep.
https://codeberg.org/headlesschook/stringy/src/branch/main/src/start.s
>>
File: 1784281758826434.png (10 KB, 733x156)
10 KB PNG
This is so far in the opposite direction of modern bloat.
>>
Gonna try writing a chatbot for matrix. Hopefully it won't be too difficult.
>>
>What ever mang
Concession accepted, do not reapply.
>>
Damnit.
In the last thread or something we had le discussion about finishing project.
> Have this project that kinda works now
> Really want to polish it up, because it might be a good reference
> JUST have to break up this big mess into a few services
> My head just doesn't want to start.
I know what I have to do. I know what I want to do. But I just won't start.
It's already working. So why change a (shitty looking, hacked together) running system?
reeeeeeeeeeeeeeeeeeeeeeeeeeeeee

ok lets try to break the tasks into smaller chunks. I heard that's good. Lets first setup a full jira suite for myself
>>
>>109294865
funnily enough it seems we have a stowaway from /agdg/
>>109294079
>>
Reminder to ignore people who do not (you) this is reddit tier shit.
>>
File: kottag.png (379 KB, 1882x1721)
379 KB PNG
>>109286184
>What are you working on, /g/?
Resurrected an old file tagging project I started a while ago.
The main tagging engine is written in C++ and using sqlite to keep a local DB of file tags. I did that a while ago but I never gotten beyond the basic CLI program. I wanted to make a nice GUI around that but kinda lost interest.

Now I cobbled up some scripts to automatically tag my files using gemma4 running locally. Works with both images and videos.
I then added a small script that pops up a window with files matching the tags you give it.
The whole thing works surprisingly well.

Thinking of cleaning that up and putting it on codeberg or something in case anyone else finds that useful.
>>
>>109296314
>He has a folder specifically full of cat meme images and tags each image
Based, ngl
>>
>>109294865
The schizo that spams muh luddites on /agdg/ also spams /g/ with snailcats and spams /vcg/, it's literally one retard.
>>
File: 1784289132954656.png (148 KB, 1309x1254)
148 KB PNG
Stringy is now finished.
https://codeberg.org/headlesschook/stringy
>>
>this is reddit tier shit
Boo hoo.
>>
>>109296709
Sometimes I really hate myself when i get the HYPERFOCUS and I don't drink for 2 hours.
This results in shitty headaches and make me mad. Sad.
>>
>>109296409
powerful...
>>
>>109296441
nice one!
>>
>>109296441
It's fine.
>>
File: 20260717_233031884.jpg (625 KB, 2000x1333)
625 KB JPG
>>109295462
One of these things is not like the others.
>>
>>109297637
based fitting for multiple packages
>>
>>109297637
Looking at datasheets, the middle and left look like they have standard 512 byte page sizes, but 16K block sizes compared to the 8K block sizes of the official cards, so hurray for new geometry.
The chip on the right is coming up as DDR4, which just looking at the package makes sense, but makes no sense for a memory card.
>>
File: maxresdefault.jpg (73 KB, 1280x720)
73 KB JPG
dpt ded :(
>>
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/#mailing2026-07
finally
>>
C++ standard members remind me of Square Enix in that it takes dedication to fail as spectacular and as often as both do.
>>
File: imageTest.png (246 KB, 640x480)
246 KB PNG
I've been working on this for a week now, lets see if it works
>>
File: file.png (85 KB, 332x441)
85 KB PNG
I feel like I'll start a new chapter of my life.

I think I'll read pic related. I bought a physical copy like a year or two ago and just skimmed through the first 150 - 200 pages. And I've been jumping around all the fucking place. From C++ to Rust, to Go, to Rust again, to C++ and to Rust and to Go again, and to Odin, recently. Learning a little bit here and a little bit there, but not fully understanding anything. I also editor-hop a fucking lot and I just... Other than general knowledge and maybe some understanding of programming language concepts (?), it is not taking me anywhere. And since I'm unemployed (I mean I have a day job but not related to the industry) and completely unemployable, since I have always refused to get into webdev and now, to vibecode. I decided maybe I should just embrace being a beginner and slowly read this fucking brick of a book and then maybe jump into some graphics programming and just, commit to one single thing.

I still haven't decided, though. I feel more comfortable right now with Rust than with C++ so I might stick with Rust but I also think that all this studying might be more worth it in C++, I don't know.

I'll also drop Emacs, Neovim and all the tranny tinkering and just use fucking vscode.

Any tips or comments?
>>
>>109298754
its in french, it hasnt worked
>>
>>109286184
how to learn a new programming language?
i don't want to be in tutorial hell, i get bored quickly
>>
>>109298754
how
>>
>>109299069
Learn Haskell
>>
>>109298772
learncpp dot com is very good for bringing you up to speed. After that read the book and the reference wiki for the nitty gritty.
>>
>>109299069
know a language already
>>
embedded Linux fucking sucks man.
Gotta take a few steps back, polish current state a bit and then learn more Linux. To much interconnected stuff
>>
>>109286184
3D visual coding system for VR...

Implementing C
I am better when I see structure of code
Lines do not works with me and since
there is nothing solid visual I have to create It!

When I am done with C I jumping on Assembly!

That is wat I working on.
>>
How do I rewrite a piece of code without being detected for plagarism and getting a 0 on my project? I'm scared that I might not write it in my own code and it will be detected as plagiarized.
>>
>>109299817
Accept the 0.
>>
>>109299817
>make a diagram from the logic
>sleep a day
>look at your diagram, write down something uml-ish to structure your software (depending on how big)
>write it you'reself
>????
>Profit
>>
>>109298926
>>109299076
thank god it works
that image has an ICC profile with a color lookup table
I wrote up a program that finds a lookup table that maps the thumbnail image into the full image
got inspired by these images, but I didn't like the patterns it leaves
>>
>>109288765
Repo up with an x86 binary + bindings
https://github.com/libdense/libdense
>>
File: mallocs.png (4 KB, 280x456)
4 KB PNG
>>109300155
I've seen enough.
>>
>>109300329
entity_ids[]
spatial_x[]
spatial_y[]
cell_x[]
cell_y[]
chunk_x[]
chunk_y[]
type_masks[]
dirty_masks[]
>>
>>109300359
That's nice.
Now explain the other 24 calls to malloc, the 7 calls to calloc, the 35 calls to realloc, and the 140 calls to free.
>>
>>109299069
I think if you're decent at C or C++ you can easily pick up a new language. Heck, if you're decent at modern C++ everything else should be a walk in the park at this point.
>>
>>109300407
If you can out bench me then I'll tell you everything you want to know. But you won't even beat my Python wrapper.
>>
Nigger your constant reformattings alone are a blight.
>>
>>109300426
Eh, a lot of people that only know C or C++ or java, especially if they learned it young, just bounce off things like forth or lisp. I've taken to calling it algol brain disease.
>>
>>109300598
Any comment on the actual results achieved? Can you find a library that benchmarks higher under the same scenario?
>>
>goalpost-moving
OK, tis-t.
>>
File: all-to-all.png (81 KB, 1052x612)
81 KB PNG
Fastest in the realm
mov    %rax,0x50(%rbx)       # store->flags = flags
mov 0x18(%rsp),%rax # load cell_bucket_slots
mov %rax,0x58(%rbx) # store->cell_bucket_slots
mov 0x38(%rsp),%rax # load cell_prev_slots
mov %rax,0x60(%rbx) # store->cell_prev_slots
mov 0x30(%rsp),%rax # load cell_next_slots
mov %rax,0x68(%rbx) # store->cell_next_slots
mov 0x20(%rsp),%rax # load chunk_bucket_slots
mov %rax,0x70(%rbx) # store->chunk_bucket_slots
mov 0x28(%rsp),%rax # load chunk_prev_slots
mov %rax,0x78(%rbx) # store->chunk_prev_slots
mov 0x70(%rsp),%rax # load chunk_next_slots
mov %rax,0x80(%rbx) # store->chunk_next_slots
mov 0xb8(%rsp),%rax # load observer_anchor_head_slots
>>
>>109299850
You still need to find the right code even if you make a logic diagram you dipshit.
>>
>Fastest in the realm
Zero-copy would be fastest. Next would be vector ops. How big is the payload? If it's above half the L3 cache they should be non-temporal.

This is, like, first-year junior tier shit.
>>
File: IMG_1301.gif (15 KB, 220x124)
15 KB GIF
I massively reduced instruction count but it barely mattered because I already used the cache very well.
>>
>I already used the cache very well
A-huh
>>
>>109301118
Bait
>>
>muh bait
>>
>>109301050
I didn't see any benchmarks or library there, I must be the fastest, I accept your concession
>>
>I must be the fastest
The cows are waiting for you.
>>
>>109301151
I'm sorry you can only get 250 in an all-to-all sim with all of that knowledge
>>
Cache is all that matters when it comes to speed.
>>
just stop responding to the schizo
>>
The cow will bite into your head, the jaw will press and press and press until your cranium bursts like a watermelon, and your precious self will be eradicated.

If you're lucky.
If you're unlucky it might go for other, more pain-inducing parts. Which I personally hope for.
>>
>cache is all that matters
A-huh.
>it never wrote actually fast code
>>
>>109301189
I have very fast code. The cache is all that matters.
>>
Nah.
>>
>>109301199
Dubdubs confirm.
>>
cache deez nuts
>>
>irrational fascination with numbers
You cannot write this, they're stereotyping themselves at this point.
>>
File: IMG_9704.png (1.31 MB, 1000x1126)
1.31 MB PNG
I just optimized my Brainfuck compiler. It compiles to ARM.
>>
>>109301088
>>109301227
Based Queen of Hell
>>
>>109301118
Fatty
>>
>Fatty
Normal people have no retarded comfort foods, and as such are much less likely to be fat.
>>
>>109301427
Betcha wish you were normal.
>>
The ADHD is annoying sometimes, but at least it's no tism.
>>
J is based.
'Hello, World!'
>>
>>109301427
>slave mentality
i actually like to enjoy life, thank you
>>
>enjoying life means I might end up on My 600-lb Life
>when losing weight is so fucking simple it's not even funny
>>
>>109301544
>t. 700lbs
>>
Make it 150, fatso.
>>
>>109301560
Scrawny weak shorty
>>
>shorty
No, just hyperthyroidism. Untreated, too.
>>
>>109301573
Your dirty asscheeks are untreated.
>>
Surrender accepted, fatso tist.
>>
>>109301585
I too accept your surrender. It was more than necessary.
>>
Judging by your weight,
>more than necessary
seems to be your motto.
>>
>>109301630
I'm not fat but you weight as much as a woman. You're obviously unhealthy, hypocrite.
>>
>I'm not fat
>150 is woman weight
A-huh.
>>
>>109301655
You're weak and feminine. I'm average male weight.
>>
>>109301643
An American woman maybe, lol.
>>
Bro, just stop eating. Losing weight isn't hard.
>>
>>109301676
Yeah, the cow autist needs to stop eating. He's 1500lbs.
>>
>>109301560
>>
>>109301695
Samefag
>>
>>109301676
>>
File: auptq3pvg9nd1.jpg (50 KB, 640x480)
50 KB JPG
Come on guys lets not kid ourselves 99% of /g/ is picrel and twinks.
>>
>>109301714
and the other 1% is twinks*
>>
>>109301714
Not me but yeah the cow autist talks like he has fat brain.
>>
>actual autist doesn't know that the human brain naturally consists of 60% fat
>>
>>109301730
>actual autist knows autistic factoid that justifies fat in your brain
Pottery
>>
It's actually proven that being a fat shit makes you retarded.
https://www.youtube.com/shorts/kJMdKLhhvGc
>>
File: IMG_6025.jpg (32 KB, 800x800)
32 KB JPG
Why don't we talk about Python?
>>
>>109301749
You're a perfect example.
>>
>autistic factoid
Nah, I just studied medicine. Unlike you.
>>
>>109301749
It also literally makes you impotent
>>
>>109301749
I've eaten junk food my whole life. Was never fat, but it explains the stupidity
>>
>>109301757
If you're fat enough the Python can't eat you.
>>
>>109301766
Reminds me I just coomed today. Now you know this.
>>
It's now canon that the factorio schizto is morbidly obese.
I am not surprised.
>>
>>109301805
Based, fuck the factorio schizo and his cow autism.
>>
We should not only feed tists to the cows, but overweight people, too.
There.
>>
>>109301829
Then you go to the cows.
>>
That's the point, I can advocate for both because I'm neither.
>>
Any ideas for a hobby project?
Give me your biggest pet peeve in life when interacting with computers, can be super specific but also super generic, and I'll try to solve it. Either by pointing you to a piece of software that solves it, or by picking it as my project
>>
>>109301845
Can't open and close multiple files on one thread.
>>
>>109301841
Not true. It's canon you're morbidly obese, factorio schizo.
>>
>>109301874
f1 = open("a.txt")
f2 = open("b.txt")
# use both
f1.close()
f2.close()
>>
>projecting autist has to make up its own headcanon because it feels anxious otherwise
>>
>>109301900
>serially
That's not a problem. Obviously it's supposed to be parallel.
>>
>>109301906
>t. increasingly anxious obesity
>>
>>109301560
>>
>>109301918
>adds another condition after his question was answered
Disingenuous fuck
import liburing

ring = liburing.io_uring()
liburing.io_uring_queue_init(32, ring, 0)

for filename in files:
sqe = liburing.io_uring_get_sqe(ring)
liburing.io_uring_prep_openat(sqe, filename, os.O_RDONLY)

liburing.io_uring_submit(ring)

for _ in files:
cqe = liburing.io_uring_wait_cqe(ring)
fd = cqe.res # the opened file descriptor
liburing.io_uring_cqe_seen(ring, cqe)
>>
>>109301929
>t. fatty
>>
>>109301941
I said "on one thread".
io_uring spreads those requests across multiple threads, which then leads to io-wq threads blocking like motherfuckers. That's why the RESOLVE_CACHED flag was introduced for openat2 - to spare io-wq threads and have programs block in userspace threads instead.
>>
>>109301845
I was going to write a STM32 with display to a bluetooth ODB (ELM 327) program, so I could have a small display in my car that is pulling data from the ODB, rather than smartphone apps.
If you wanna do that instead, I'd appreciate it. I already have like 15 projects.
>>
>>109301966
If you know the answer yourself, why did you ask retard?
>>
I didn't ask for an answer, I asked for a solution, aut-i-st.
>>
>>109302020
>I didn't ask for an answer, I asked for a solution
>aut-i-st
Lmao
>>
Aut-i-st.
>>
>>109302020
>>109302042
>Obesity has spoken.
>>
>>109301560
>>
>>109302060
>Obese cope
>>
>>109300036
very cool
>>
>>109301560
>>
>>109286203
Go back to your containment threads.
>>
File: IMG_9310.jpg (143 KB, 1920x1080)
143 KB JPG
My brainfuck compiler is very optimized and very fast.
>>
>doesn't show it because he doesn't want to be publicly humiliated like in >>109300329 or >>109300598
>>
What a wonderful thread.
>>
>>109302276
Well now I know your intentions so why post it?
>>
>>109301050
>>
FAT32
>>
File: 1784338066488401.png (114 KB, 1097x702)
114 KB PNG
While playing around with execvp I have discovered writev. This might actually change a lot.
Instead of concatenating strings I should be able to build an array and write that to the file?
>>
>>
File: IMG_3088.jpg (34 KB, 450x602)
34 KB JPG
>>109302410
This is very well optimized.
>>
>>109301845
Write a programming language that's entirely pattern matching.
>>
>>109301845
how about a program that optimizes other programs so that you can fix the retardation of other anons
>>
>>109302481
I wrote a compiler program that optimizes brainfuck.
>>
>>109302522
you need a compiler program that optimizes your compiler program that optimizes brainfuck
>>
>>109302538
No, I don't. It's very well optimized. You're just a troll.
>>
>>109302410
Good
>>
>>109302538
Why? Python is plenty fine.
>>
Does /dpt/ still have its programming socks?
>>
>>109302690
The programming sock wearers went to /vcg/
>>
>>109298754
need program
>>
File: IMG_3104.jpg (32 KB, 600x600)
32 KB JPG
Thanks to me, slow brainfuck now becomes fast brainfuck.
>>
>>109302776
Here's a program.
step =: ((]+. &(3&=)+)(+/@(((4&{.,(_4&{.)) (>,{,~<i:1))&|.)))
>>
>>109297637
>>109297732
Double checking with a better photo (probably got one of the letters wrong) the chip in the 128MB card seems to be a multichip that has 1Gb of NAND and 512Mb of RAM.
I doubt the RAM portion is addressable, though. I'm interested in what the chip under the blob is, though.
I still need to dump out more of the file system on at least one of the cards. They don't auth the same way as official cards, though (but obviously a still supported method on the hardware).
>>
>>109302996
I use "though" far too often. I am sorry.
>>
File: IMG_9602.jpg (29 KB, 472x475)
29 KB JPG
>>109303019
Your "though" touched my penis
>>
>It's very well optimized. You're just a troll.
OK, autroll.
>>
>>109303337
It's very well optimized. I was just writing brainfuck and generated so much text so fast my terminal crashed.
>>
>>109302276
>>
>>109303397
You've already proven you're just a troll. Why would I post it knowing you're a troll?
>>
>u r troll thats why i don't have to post
Autists were never human beings.
>>
>>109303406
Why do you keep interacting with him, knowing he is a troll?
>>
>>109303422
To trigger him and keep the thread active.
>>
Because it's just words to the autist.
>>
>>109303426
Fair.
Also today's leetcode was a gimme. Even though there is clearly some method to picking problems because it focuses several consecutive problems on the same topic, going from a hard gcd to an easy gcd is like whiplash.
>>
File: 1784352288670249.png (108 KB, 818x812)
108 KB PNG
I've just had 6 different concepts rammed down my throat at the same time.
>>
And you still fork because ...?
>>
File: file.png (17 KB, 621x183)
17 KB PNG
>>109286184
behold, my api
>>
>>109303500
huh ...?
>>
>>109303546
Looks LLM-generated.
>std::vector
>>
>>109303724
dawg youre talking to someone who types std::uint32_t and always makes sure to include cstdint
>>
>>109303500
Because it just works and not all of us are unemployed.
>>
Slop like that is what gets you unemployed nowadays.
>>
Glad to know that these threads are like games, I come back after a year, and the world is identical to how I left it.
>>
>>109300036
really really nice
>>
File: 1784359879235325.png (202 KB, 1686x1376)
202 KB PNG
I am working on a program call AsShoLe that combines the assembly and linking process and can produce either a debug or release build.
>>
>>109303826
You missed the maid posting event.
>>
>>109304037
that was 10 years ago
>>
>>109303826
Go to /vcg/ if you want active threads :-)
>>
File: move-slow.png (1.16 MB, 1000x1450)
1.16 MB PNG
**** NEW ****
>>109304359
>>109304359
>>109304359
>>109304359
**** NEW ****

Snailcats welcome!
>>
>>109304349
go to doctor if you have disabilities affecting your ability to reply to the post you intended to
>>
Fucks sake

>>109304372
>>
>>109304374
nobody has replied yet so delete it
>>
>>109304374
tyvm anon



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.