[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / 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

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: Tohru.png (374 KB, 470x590)
374 KB
374 KB PNG
What are you maids working on?

Last one: >>106644147
>>
A mental disorder is also characterized by a clinically significant disturbance in an individual's cognition, emotional regulation, or behavior, often in a social context.[9][10]
>>
Such disturbances may occur as single episodes, may be persistent, or may be relapsing–remitting.
>>
There are many different types of mental disorders, with signs and symptoms that vary widely between specific disorders.[10][11]
>>
A mental disorder is one aspect of mental health.
>>
>>106672454
Work on getting into nursing or plumbing. You will actually be useful and next year nobody will hire coders anymore
>>
>>106672567
>Work on getting into nursing or plumbing.
This is a bandaid at best. These people will get replaced by large geospatial models the same way coders are going to get replaced by large language models.
>>
>>106672454
Look ma I did a thing!
>>
File: file2.png (148 KB, 1594x300)
148 KB
148 KB PNG
https://en.wikipedia.org/wiki/UTF-8
>>
replacing fulldwith ascii variants in video filenames by regular ascii characters in my yt-dlp wrapper script
>>
kernel
>>
Back to filtering these threads again, I guess. Was fun for a few days. It's sad enough how dead all of the interest boards are, but the remaining content really doesnt have to be as gay and annoying as a handful of users force it to be.
>>
>>106644174
what does the syntax look like?
>>
>>106672454
is it fun to learn Haskell? or are there funner esoteric languages nowadays?
>>
The causes of mental disorders are often unclear.
>>
Theories incorporate findings from a range of fields.
>>
>>106673326
I hate windows and JS strings so much.
>>
>>106673908
a fellow osdev in the wild?
>>
Disorders may be associated with particular regions or functions of the brain.
>>
>>106672454
maids, gloves and computers :)
>>
Disorders are usually diagnosed or assessed by a mental health professional, such as a clinical psychologist, psychiatrist, psychiatric nurse, or clinical social worker, using various methods such as psychometric tests, but often relying on observation and questioning.
>>
>>106674078
>is it fun to learn Haskell?
yes
>>
>>106674078
no
>>
The fuck is going on ITT
>>
>>106674078
It is fun, do it.
>>
>>106674078
Clojure
>>
>>106675108
programming every day
>>
File: 1704071434033743.png (113 KB, 637x478)
113 KB
113 KB PNG
>>106674481
This has been debunked
>>
>>106675108
Maids politely discussing programming.
>>
>>106676221
Are these mental disorders in the room with us now?
>>
File: 1758085280553455.png (1.23 MB, 1024x1024)
1.23 MB
1.23 MB PNG
>>106672454
based, I love when my images are recycled
>>
Can anyone explain to me what are the practical use cases of virtual memory allocation? Also I saw a picture with a lot of words on there explaining how it is kino to reserve 1TB of memory at program start but i can't find it again.
>>
>>106676835
Not knowing the memory regions of other processes without root access.
>>
How do I make my own DNS queries?
>hurr durr durr durr DNS protocol is too complex even for me, t. LLM
bet it's really simple and takes less than 100 lines of code yet words words words faggots keep gatekeeping.
>>106676835
When you need memory.
>>
needed an excuse to make a web page to learn web architecture so I'm making a 2D aim-trainer where you boop cute cats on the nose :v3
>>
File: image.png (91 KB, 937x425)
91 KB
91 KB PNG
this what my sleep paralysis demon revealed to me
>>
>>106676946
Your demon can't see Haskell because it's protected by Christ
>>
>>106676946
>S - Shit tier.
>A - Actually good.
>B - Bait.
>C - Crap, not to be confused with Shit.
>D - Dumbfag only.
>>
File: 1703915427019190.png (136 KB, 1140x558)
136 KB
136 KB PNG
>>106676946
>>
>>106676946
dumb tranny
>>
>>106675108
I reported for spamming and it's still up, bunch of worthless jannies.
>>
>>106677075
this but unironically
>>
Real list
>>
>>106676946
>C++ above C
Retarded take from a Ruster.
>>
>>106677175
Not him, but nobody takes cniles seriously, kill yourself, nocoder.
>>
>>106672454
>today am gonna write lots of code!
>proceed to spend the day debugging the tooling and the build script

I fucking hate this hobby sometimes..
>>
>>106677100
>dpt is spam
>>
>>106677206
>Nobody takes kernel developers seriously
Okay retard
>>
>>106677233
Post your full name and we will see what you developed.
>>
File: iso.png (22 KB, 303x135)
22 KB
22 KB PNG
can anyone tell me why can't they just say
>guys, c++26 is the last version, after that we're moving to c++++ an removing all the bloat and mistakes we've made over the years
?
>>
>>106677242
Sure, after you.
>>
>>106677252
Because they're not forcing you to use any bloat.
>>106677254
Why would I? I'm not a kernel developer.
>>
>>106677252
Legacy code is the only reason anyone bothers with C++.
>>
File: rust.jpg (89 KB, 736x838)
89 KB
89 KB JPG
>>106677276
ZVSED and RUST pilled
>>
File: 1758649400133.jpg (49 KB, 789x443)
49 KB
49 KB JPG
>>106677363
This is only ok for other ethnicities. I don't want my white brothers doing this. It doesn't suit them nearly as good as Asian rust programmers.

White brothers, please stop. Do the autistic programming alone in your expensive apartment, but don't let the 2020 psy ops embarrass you like this.

And I say this as a maid poster.
>>
>>106672454
Reminder to always mark your C++ struct members `mutable` for extra speed and correctness.
>>
File: xpbar.mp4 (326 KB, 1920x960)
326 KB
326 KB MP4
>>106672454
I now have the clock, battery and I can search for applications.
The only thing missing is workspaces, brightness and volume control. then I will be able to say that it is mostly finished.
>>
How come if i memset a structure to zero like this
memset(structure, 0x00, sizeof(structure);

there's still some random data in the structure, verified by printing byte by byte,
but if i manually zero out the structure with a loop it's completely empty?
for(int i = 0; i < sizeof(structure); i++){
*(structure + i) = (uint8_t)0x00;
}

i'm getting data still set in the middle of the memory location. I'm guessing it's padding, but if the size is correct should it matter? how does that padding survive being set to 0x00?
>>
>>106677550
The answer is in disassembly of your program.
>>
>>106673098
Heaven looks like this
>>
>>106677550
why are you treating structure as a pointer but also sizeofing it
>>
>>106677577
i just typed that up and forgot to reference the source structure. apologies for the confusion.
>>
>>106677610
is it even the same relative address each time or is it dynamically allocated
for all you know the 0s are also random unzeroed data"
>>
>>106677550
>>106677550
your pointer arithmetic is wrong, it should be
 *((char *)structure + i) = 0;

when you do ptr + i, C actually does ptr + sizeof(*ptr)*i. there is a hidden multiplication
same goes for ptr - i, ptr++, ptr--
that's why you need to cast to the pointers tp (char *)/unsigned char */uint_t */ when doing pointer arithmetic
>>
>>106677701
>there is a hidden multiplication
no hidden control flow in c
>>
>>106678076
kek
>>
File: file.png (847 KB, 854x921)
847 KB
847 KB PNG
What programming language do foxes use?
>>
>>106678123
being ran over by cars lang
>>
File: file.png (182 KB, 1174x1386)
182 KB
182 KB PNG
grok thinks my proposed producer/consumer sync mechanism compares favorably against other idioms
>>
>>106678260
AIs are just resource intensive autocomplete. Ask it "Is C# System.Decimal a fixed or floating point? One word only."
>>
>>106678285
the trick is asking the right questions, not expecting the right answers
>>
>>106678260
>[AI model] thinks ...
I hate you posters the most, if an AI wants to post its shitty opinion it can post it itself it doesnt need teams of you retards posting for it
>>
>>106678301
you are the midwit bell curve meme
>>
>>106678295
By the time I complete the wording and supply the relevant context and intended result, I figure out the solution myself.
>>
>>106678317
having a savant on hand that's read every book and every webpage to bounce ideas off of, and can autofill arbitrary boilerplate helps you get there
>>
>>106678335
Yes, having a slave that steals gists and code snippets for my use without worrying about license is nice. Still not giving it access to my project files though.
>>
File: screenshot.png (13 KB, 777x297)
13 KB
13 KB PNG
>>106678285
I don't get it.
>>
>>106677550
memset gets optimized out by compilers so programs can be faster
>>
>>106677550
Upgrade to C++: https://godbolt.org/z/xqYG1Ksod
>>
>>106678387
ideas were always meant to be free, copyrights are fake and gay and trade secrets are petty and gay
you are gay
>>
does C++ provide any sort of mechanism for me to generate a compile time 2 way map? I'm writing a serializer/deserializer and I need convert from my efficient internal type to my readable external type. Right now I'm just creating the map and then at run time I'm copying the contents into another map swapping first & second
>>
>>106678076
>multiplication
>control flow
retard
>>
>>106678311
being edgy does make you right, it makes you sound even more retarded
>>
>>106677572
heaven only exists during the first 3 sips of coffee each morning, and when you know you've gotten away with murder (vigilante work)
>>
>>106676835
you can just allocate a virtual address space without committing it and the OS will automatically serve you pages as you need them. This lets you bypass the overhead of a heap allocator while having the same effect as one assuming the final size of the full allocation is big enough that your program will never feasibly reach it. it also has the advantage of everything in virtual address space staying contiguous in memory where you’d otherwise need to realloc and invalidate pointers or use bucketing/a jump table and lose some amount of cache coherency

it also just feels cleaner to lean on virtual memory than some libc implementation of a heap that is calling virtual alloc under the hood anyway. heap is still necessary if you’re working with data much smaller than pages but i find tons of instances where it’s clear i don’t actually need to so why would I invoke that overhead and its problems like fragmentation if i can help it?
>>
I dont write code anymore. Codex CLI does it for me.

AMA
>>
>>106679091
Did it write a single non-trivial sofware?
>>
>>106679000
>and the OS will automatically serve you pages as you need them
This is 100% correct but the malloc schizo is very specifically allocating terrabytes of virtual memory on windows, and manually committing the memory by chunk. It's only automatic on linux, not windows. Technically you can emulate the linux style of commit on write on windows using an exception handler (checking if the invalid memory access is inside of the reserved region, then commit and ignore the exception).
memory you allocate with malloc on windows is technically still paged in/out automatically by the OS into 4kb~ pages (such as storing the memory into the HDD/SSD or compression).
>>
>>106673326
WTF-8
lmao



[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.