[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

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: orm_front_cover.jpg (111 KB, 761x1000)
111 KB JPG
What are you working on /g/?

Last thread: >>109839754
>>
I'm too stupid to do multi scope recursive symbol resolution
A tree walker was so much simpler than this
>>
this thread isnt cute at all
>>
>>109869326
I want resources to learn how to create production grade linkers. I know GNU ld, and llvm lld exist, what other resources either books or whatever to learn about linkers.
I want to make a faster linker than everyone else especially on windows.
>>
I have overhauled this in a way where I can just add new features by adding a new c file and updating a single header file.
>>
>>109869326
i was figuring out details of my ML stat engine
i had a stroke of genius when i noticed that you can optimize huge swathes of solution-space away by running your data through the transformations you intend to put em through, but leaving one of the parameters open and outtputting floats instead of bools and checking against a normal distribution
this im sure about
thats to check if theres only information thats extractible through that transformation, before i run its results through inference

i was thinking of doing that for each parameter, but thats where i kinda hit a wall-
is it only worth doing?
maybe the pro gamer move is to check the results of one open parameter against normal distribution
and use the results of the pass with a second open parameter to select a spread

or maybe go back and forth to get to what could be a statistically optimal spread of fully parametrized now statements before i run inference...
>>
>>109869326
What does dpt reccomend for learning c/c++
>>
>>109869645
read, and write code
>>
File: scott meyers.png (52 KB, 701x371)
52 KB PNG
>>109869645
>>
>>109869653
What do you reccomend for resources?
>>
>>109869665
16 probes on minerals and 3 probes per active vespene geyser
>>
>>109869670
What does this have to do with programming anon
>>
>>109869665
if its C- then reading the standard as you have questions about solving the c parts of this: https://github.com/mcombeau/42_cursus_projects
dont hesitate to ask the shatbots too, theyre pretty good at looking up information about stuff
use perplexity its a free ai based search engine, thats what works best for me. it basically looks up a fuzzy search of your terms, and then summarizes the sources its found, presents links to the provenance of all its claims
>>
>>109869326
>What are you working on /g/?
Ah shit.
So my dream is to somehow use the holyC compiler and add a risc-v backend to it such that I can build an OS on my fpga with it.
There are obviously 2 problems which I somehow ignored:
- fpga soft core does not have an FPU
- it's 32 bit.

So either I try to port it to rv64gc or I do 64 bit calculations always on the 32 bit thing lmao (holyC doesn't have 32 bit data types).
Ok but lets first understand the compiler more.
The FPU shouldn't be a problem tho. Just find a soft float lib somewhere and port that
>>
>>109869665
>>109869705
actually
perplexity is good when you want to agentically do searches for specific stuff
since youre learning youre probably better with a generalist llm like chud gpt

actually scrap even that
fuck llms i know they can be pretty bad at explaining shit too

ask /dpt/ if you have questions
>>
>>109869665
>>109869726
>ask dpt
yeah, that and man
you type man [yourfunctionhere] into the search engine
you can also use the terminal but its clunkier
>>
>>109869705
Thanks for the genuine response anon, I'll be working on these for awhile probably. Seems pretty niche is it your own archive?
>>109869726
I kind of wanted to avoid ai till I learnt core concepts
>>
>>109869820
>is it your own
nope. but i went through a part of that cursus. its from a peer learning school, pretty interesting concept.
but then coofid hit and it kinda broke the whole peer-learning part
its where i learned c though.

you wont get the experience of paranoia when writing code in a language you barely master
caused by the fact its your fellow students, but further down the cursus, who are gonna check your code
which is kinda important to hammer in the habit of covering your ass when writing c

but this is the tasks we were made to do. more or less. when i was following this course cube3d was a solo project, and i did a 2d maze game instead of fract'ol

oh, and you probably wont have access to the underlying graphical libs we used
just use raylib or sdl instead. you have my blessing to ask a shatbot for a minimum working examples so you hit the ground running when using em

>I kind of wanted to avoid ai till I learnt core concepts
yeah, i think thats the best play
they can be confusing esp at free tiers
its iffy, theyre not a solid value. they can be useful but sometimes you have to poke and prod and explain the thing to them before they regurgitate it right back at you, but written differently

its better to ask a human
alot of things are also explained in the standard, even if oftentimes in obscure ways
>>
>>109869670
>>109869665
I laughed
>>
File: missed threads.png (115 KB, 639x358)
115 KB PNG
>>109869326
>being so ass blasted about maids that you cut a new thread at 302.
>>
>>109869905
>the early bird gets the worm
i see no fault with that
maidshittery is pancreatic cancer crossed with cholera btw
1 schizo programmer for all of them
>>
this thread is so cringe and unelegent =.=
>>
>>109869665
For learning C/C++, my resource stack would be:

C
C Programming: A Modern Approach — K. N. King — excellent from beginner through intermediate.

Beej’s Guide to C Programming — free, practical, and good for learning by doing.

CS50x — great if you’re new to programming and want fundamentals before going deep into C.

Learn C on Exercism — useful for lots of small practice problems.

C++
LearnCpp.com — probably the best free starting point for modern C++.

A Tour of C++ — Bjarne Stroustrup — good once you know basic programming and want to understand modern C++ systematically.

Effective Modern C++ — Scott Meyers — useful after you've learned the fundamentals; don't start here.

C++ Core Guidelines — reference for modern C++ practices once you're comfortable.

How I'd actually learn
I wouldn't just read/watch tutorials. I'd use roughly:

Learn concept write code get stuck debug build something.

For example:

C basics: variables, control flow, functions, arrays, pointers, structs.

Build small C programs: calculator, text parser, file utility, simple game.

Learn memory management and how C interacts with the OS.

Move to C++: classes, RAII, STL, templates, smart pointers, move semantics.

Build progressively larger projects.

If your goal is systems programming, game development, competitive programming, embedded, or general software engineering, I'd change the resource/project path quite a bit. Tell me your goal and your current programming level, and I can give you a specific C C++ roadmap with resources and projects.
>>
>>109869905
complete fault of the maidnigger and him racing to hijack and squat on every thread
>>
>>109869964
>accuse someone who waits to the bump limit of hijacking and squatting
>in a thread started early by a squatter looking to hijack
You are an idiot.
>>
>>109869971
lol
what a crybully faggot
>>
>>109869908
>>the early bird gets the worm
>i see no fault with that
I agree, someone make a new thread, we're already at 27 posts!
>>
>>109869999
good numbers
>>
>>109869999
>t. seething
>>
>>109869971
>cause problem
>continue causing problem when continuously called out on it
>cry and insult others because the problem started spreading
the point is you don't create a new thread every time the old one just hit/was about to hit its bump limit, especially when the end of thread is just spam to get to the bump limit faster. that's a complete lack of courtesy for the thread and board
>>
>>109869905
>>109869964
OP here.
I'm a grown arse man I don't care about that maid shit I saw the old thread had hit 300 so I made a new thread to continue THE DISCUSSION OF PROGRAMMING.
>>
>>109870005
lack of courtesy is spamming a thread about programming with completely unrelated things like maids
>>
All of this could've been avoided if yuroniggers weren't allowed to post.
>>
>>109869987
>>109870004
How is it that i am able to tell which threads are ACTUALLY good and worth my participation? (Hint: the ones with the maid ops)
>>
>>109870016
holy mental retard
youre participating in this one, arent you?
feel free to close the tab
>>
>>109870016
>/dpt/
>actually good
this general is a shitting ground between a schizophrenic autist obsessed with maids and a schizophrenic autist multiple personality cursed nigger obsessed with registry dumpers and factorio
>>
File: talkingtoatranny.png (487 KB, 980x868)
487 KB PNG
I'm Australian.
Why do you pretend to be a little girl when you're an ugly obese balding man?
>>
>>109870031
They don't want to admit openly that they are pedophiles.

Ok back to koding now pls. Thanks. It's almost wednesday
>>
>>109870031
>>109870066
>no maids
>thread devolves into dysgenic retards projecting their fetishes onto everyone else
Predictable.
>>
>>109870084
it devolved into maidniggers complaining about the thread being non-maid
one more reason to erase maids from the face of the earth
>>
>>109870091
All you do is complain when it is a maid thread, because you are incapable of contributing anything of value to any discussion on any topic.
>>
>>109870110
you dont contribute anything of value, either
youre justs seething because this isnt a fetish-thread of yours
kys yourself, maidnigger
>>
>>109870136
Go ahead and rant schizophrenically about wanting to be a CIA analyst for 50 posts.
>>
>>109870167
ask nicely, faggot
alternatively at least cover the raw material costs for me (1 bottle of 75cl red porto)
>>
>>109869645
stop thinking c and c++ are the same language
c is just procedural with no pOOP
>>
>>109870173
b-but oop is hecking cute and valid in c!1!!1!
in moderate amounts, ofc
>>
>>109869879
I think this was the book I read 15 years ago and it made me quit programming for years. I'm sure it's actually quaint today with how much more retarded modern C++ has gotten.
>>
Erlang is the best programming language.
Learn Erlang!
>>
File: start-doing-this.jpg (252 KB, 4000x2250)
252 KB JPG
Today is a good day! I will not learn Erlang on this beautiful day :-)
>>
the retvrn to feature parity always feels nice
>>
>>109870533
use case? I can do the same without coroutines
>>
>>109870533
Why do I have a sneaking suspicion that this is implemented with a thread?
>>
File: 1773373580273995.mp4 (577 KB, 480x768)
577 KB
577 KB MP4
currently on a small high from writing some enterprise code that worked basically on first try
>>
>>109870533
void simplified_version(n)
int n;
{
int i;

for (i = 0; i < n; i++) {
printf("i: %d\", i);
}
}
>>
>>109870573
it lets you track complex iteration logic without having to refactor and lift state out of the function and into some struct that has to persist between calls. instead you get to just take the first dumb, simple way you initially wrote the iteration logic, a slap a yield() in the middle and call it a day. you could absolutely solve the problem without coroutines, it's just annoying and more time consuming

>>109870582
it's not, it just uses a pool allocator to allocate stack space, and then saves some registers around to comply with abi and swaps rsp to the new stack. it's very cheap. it's just not portable because it requires inline assembly
>>
>>109870533
so did ya winnin son? is the problem from last thread solved?
>>
>>109870773
No, I could not find a way to cleanly swap contexts without abusing thread local global variables. Every thread I use has its own context with per thread allocators and all kinds of other junk so I just buried the coroutine state in there for now. It's whatever. Life isn't perfect.
>>
>>109870029
you forgot the adhd guy that can't stop himself from bringing up autism
>>
>>109870888
also the malloc schizo who has a mental breakdown anytime anyone casually mentions arenas or using mmap
>>
>>109870888
>>109870908
You do realize that's one and the same guy, right?
>>
>>109871198
Probably not. There is yet another schizo who likes claiming unrelated people are the same person, and this causes confusion. One thing I liked about regdumper was that he would reply to seemingly random, unrelated posts with an angry rant about registries, and that was actually very funny.
>>
>>109870500
Then learn elixir instead
>>
I have jew fatigue
>>
>>109871481
>seething about people who about twice as intelligent as you and anyone you're related to
>>
>>109871529
>thinking you are smart for posting on orange reddit
grim
>>
File: coping.jpg (437 KB, 4000x4000)
437 KB JPG
Hmm, so there are probably 2 cases and I guess both are true:
- It'd be almost impossible to add functions to the holyC backend such that it can compile to risc-v
- I am too much of a brainlet when it comes to compiler coding

The Lex() function is easy and I could write my own compiler from there, but it's probably even harder for my smol brain to write a holyC compiler from almost scratch.
Damn. I feel so bad now. :(

Maybe ill go back to Rust for a few days and think about it. It would be fucking epic tho
>>
>>109871702
now that gave me an idea, tcc doesn't support c11 atomics but I could just vibe slob them in
>>
File: mpv-shot0001.jpg (79 KB, 640x480)
79 KB JPG
>>109871745
https://i.4cdn.org/wsg/1790003825412734.mp4
>>
>>109871829
but atomics are sweet tho
>>
>>109845500
except you can't really OOM on most linux distros, because the kernel is configured to overcommit. so you never actually get NULL when calling malloc. you get a fake address, and if you try to use it, the kernel silently kills your process and moves on. I think the only way of triggering OOM on an overcommitting kernel is to either try to allocate more memory than what the system physically has, or to try to allocate more than what fits in a 48-bit pointer
>>
Vibe shitter and rust user trying to enforce standards onto the third temple. Thank God for gatekeeping so this animal doesn't defile the temple. Damn nigger
>>
Maid /dpt/ was much better than this.
>>
File: 1763543412177703.png (198 KB, 665x574)
198 KB PNG
where do I even start with the whole programming thing for real
somehow a CS degree literally taught me nothing, even doe I aced the programming class I would personally rate myself as retard subhuman tier at best
>>
Clanker just one shotted me an obsidian clone in C++ + Qt with minimal handholding.
It's so over I'm going to go insane dude, how to cope that I'm going to be replaced.
We are not even remotely close to UBI so it's going to be rough.
>>
>>109871984

are you want be spaceman
https en.wikipedia.org/wiki/HAL/S
>>
>>109871829
>.Z
what is this extension for? Pascal?
>>
>>109872125
file compression
>>
>>109871863
it's less about actually hitting OOM in a normal situation, it's more about having a sane result if you end up hitting it due to a logic error, and linux will return 0 if you pass a huge number into malloc (at least on godbolt).
A situation where this might happen is if you enabled a pattern for uninitialized memory (-ftrivial-auto-var-init=pattern). By the way uninitialized memory isn't sanitized by address sanitizer, you need valgrind memcheck (or dr memory on windows). Unlike asan, valgrind/dr memory are SLOW. Memory sanitizer is technically faster for uninitialized memory, but it is impossible to use with any GPU graphics API, and it requires all libraries to be built in msan (including libc++ if you used C++).
Also it turns out that address sanitizer will catch OOM errors (But not on msvc's address sanitizer, in godbolt at least, but not a concern for me because I use C++).
>>
File: 1778056919997942.png (129 KB, 720x569)
129 KB PNG
https://leetcode.com/problems/find-x-value-of-array-i/description/?envType=daily-question&envId=2026-09-21
>>
File: the-what.jpg (275 KB, 860x657)
275 KB JPG
>>109873697
this has to be an autism test in disguise
>>
>>109873697
this is so fucking autistic
you get k. thats your magical value. you divide stuff from your array named nums by it (ill come back to the division later)
everything hinges on the remainder of that division.

then you compute stuff for each of the possible remainders.
so if you get a k value of 3
3 is gonna go into the division
so the possible remainders are 0, 1, 2

and these things are your x variable
also this is why your return array has to be of size k
because you compute the x-value for each possible value of x (retarded naming convention btw)

so, the prefix and suffix-
thats just you "masking off" elements of the nums array, starting from the beginning for a prefix, or from the end for a suffix
you will have to iterate through all possible combinations of pre- and su-ffixes where:
-a prefix and suffix dont overlap
-a prefix and suffix start at the beginning and the end of the array respectively
-are contiguous in nature
-never blot out the array entirely as to leave no elements remaining in it

and so then for values for x of 0 -> k-1 included, aka all the possible remainders when dividing by k

so lets say with a result array of size k, zeroed out, called "result"

what you do, is to iterate through all the possible combinations of pre- and su-ffixes
you multiply all thats remaining, lets call it hngh
divide it by k
and if hngh % k == x
then
result[x] += 1

this is more a test of autist to autist communication than anything else, honestly
>>
>>109870500
Learn the Cosmos language
>>
>>109869578
I like your dedication anon, but you should really learn about how C is used in production and WHY. That is, one of many;
>don’t use printf (as u do)
>eliminate heap allocation as much as possible
>taking advantage of caching and structuring your code accordingly
>>
>>109874113
>divide it by k
>and if hngh % k == x
>then
>result[x] += 1
actually

just fucking result [hngh % k] += 1, basically

but
if (hngh % k == 0)
result[0] += 1;
if (hngh % k == 1)
result[1] += 1;
if (hngh % k == 2)
result[2] += 1;

...


makes more sense, conceptually
>>
>result[x] being the x-value for each value of x
the person who wrote that exercice needs to be defenestrated
>>
Currently reading MOS and Structured Computer Organization, learning a lot of interesting new concepts and how hardware works. Will read Intel Manual, PCIe and NVMe specifikations after.
>>
>>109871984
The next step for you is doing projects. (Or working in a software dev job, which is sort of a forced project selection. For money.)
The point about projects is that it requires you to think about how to put the ideas you know (or can learn) together to achieve a particular goal. Don't use an AI to help to start with either; the "having to think about it" is the damn point, and how you get gud.
I didn't really know shit either at the stage you're at. Keep at it. It gets better.
>>
>>109874201
>The next step for you is doing projects. (Or working in a software dev job, which is sort of a forced project selection. For money.)
i feel like this is meme advice
my abilities as a developer have taken a nosedive since getting a job because it's only like 30% actual development and that portion is piss easy
>>
>>109874385
Maybe you need a better job? I dunno.
The real point is that just sitting around thinking about theory doesn't build any skills at all. Applying it helps a whole lot.
>>
What are you maids working on?
>>
>>109876030
this isnt the maid thread
the maid thread 404'ed
>>
noticing a correlation between lack of post quality and the OP, hmmmmmm.?
>>
I just added C interop to my programming language.
>>
>>109874159
nothing wrong with printf
>>
>>109876666
PRINTF RAPED MY MOTHER YOU STUPID SATANIC QUAD BESTOWED WHORE
>>
>no self referential structs
>completely falls apart the moment you need non trivial ownership semantics
I'm beginning to hate Rust
>>
>>109877287
rust is a hive mind. you are not attuned to the hive mind. tune in and write the proper syntax. there is only 1 solution.
>>
https://www.youtube.com/watch?v=OVIHTC--CQs
snail cat vibes
>>
>>109871255
>elixir
I see no point of this language.
>>
Thank god for git rebase
>>
>>109877832
I just raw-dog merge
>>
>>109878209
based

>>109877832
>not using git rereretard
>>
>>109871685
You weren't seething over orange reddit. You were seething over big Jewish brains making things you couldn't make if someone gave you all the materials and a manual and a thousand years to do it. You hate them, because they are indisputably, measurably smarter than you.
>>
God says...
2 Chronicles 6:2 O Lord, I have built a lofty temple for you, a place where you can live permanently.”


So I received this message from god. Gotta spend more time inside the temple now. Lets fucking do it
>>
>>109878673
requesting a verse for me pl0x
>>
>>109878673
I don't understand why people still think Christianity is a good idea. Christianity is what lead to the current state of things. It was too weak to defend either its territory or its ideals and became irrelevant. In some cases, some of its ideals were basically suicide on a civilizational scale (look into Catholic non-profits and mass immigration). A stronger, more muscular ideology that Christianity would be required to fix things.
>>
>>109878808
So I should convert to the islam?
>>109878714
No. Entertain god and your ass will follow
>>
>>109878714
url := "https://labs.bible.org/api/?passage=random&type=text"
>>
>>109878835
>2 Kings 10:33 He conquered all the land of Gilead, including the territory of Gad, Reuben, and Manasseh, extending all the way from the Aroer in the Arnon Valley through Gilead to Bashan.
should i get worried?
>>
>>109878823
>So I should convert to the islam?
Islam at least managed to keep it's societies and values coherent and intact. It is superior to Christianity in that way. Probably the best religious and cultural ideas come from the Talmud. The New Testament is a manual on how to make yourself go extinct. The Talmud is a manual on how to manual on how to make your enemies go extinct.
>>
Ezekiel 18:15 He does not eat pagan sacrifices on the mountains, does not pray to the idols of the house of Israel, does not defile his neighbor’s wife,
so am i anti semetic?
>>
>>109878856
No, it means you're hungry and you don't get to fuck.
>>
>>109878865
too real, im a virgin and poor
>>
>>109878851
No you should stop stealing land. What the fuck is wrong with you fucking thief??
>>
I got closures working!!!
>>
>>109878879
but its right there...
you just have to kill all the people living in it...
what am i supposed to do?
>merchant-standing-in-blood-holding-a-knife.jpg
>>
>>109878890
nice! congrats! take your time and bask in the glory! :D
>>
>>109878896
>it is better and more virtuous to be the one being stabbed than the one doing the stabbing
>better turn the other cheek
Pure slave morality.
>>
>>109879020
notmyproblem.org

post code
>>
Trying to come up with a good syntax for my Lisp now
Clojure seems pretty nice
>>
Givest me ideas of projects, folk. Specially low-level stuff, excluding OS.
>>
>>109879139
write a game engine using opengl and sdl
>>
>>109879139
Write a game engine with vulkan and your OS's native windowing API.
>>
>>109879188
is vulkan supported by ngreedia?
>>
>>109879188
>>109879192
nvm, its a khronos group project now
i thought it was an amd-only thing
>OS's native windowing API.
this sounds retarded, though
but if you want to go low level into the absolutely boring shit too, that sounds like the way to go
>>
>>109879222
I think windowing APIs are neat. It's kind of fun to use them directly, but a lot of programs couldn't really justify it because they're doing completely bog-standard stuff that things like SDL handles perfectly fine.
>>
>>109879246
i personally hate everything thats related to documentation
i like writing code, not learning the spaghetti someone else has written, or their half assed interfacings

i would 100% go with sdl because it abstracts all the os-specific, not-related-to graphics-stuff away and i can get right into the meat and potatoes of things
>>
>>109879068
Nobody in this thread codes. Only maids write code.
>>
File: lock_1763040182289.jpg (106 KB, 1088x1062)
106 KB JPG
>>109879715
I try to, but my brain is too small to understand terry's code and make a risc-v backend for the holyC compiler.
And when i start thinking about writing my own compiler for holyC from scratch, then I get a headache.
I should just get started. Use his Lex() function and go from there. But I can't get started
>>
>>109879715
i post my code quite often
and you only post maids

make your own general, mentally handicapped faggot
>>
>>109879757
when you hit a wall, take a break
theres a part of our mental processes that are subconscious
>>
>>109879968
Ok lets make vegan food then.
I just looked into the compiler again and I think I have to admit that it's impossible to hack that shit to make it do something else.
Even in the parsing process there is already so much shit happening to prepare the x86 code generation. You can't just write your own backend after the parsing. Sad.
But I think i'll keep the lexer. That's just tedious work anyways, I dont have to do that.
So vegan food, then start with simple statements and build le epic tree.
I have to think about it how to do it without generics. Either a big fat struct or a union I suppose to keep all the different expressions and statements and so on in one tree
>>
>>109880205
>ast
i... cant follow you there
i never did anything to learn how to build a compiler...
and im in the middle of something quite important and quite difficult already, so i cant really make a detour right now
>>
File: fairlady.png (1.62 MB, 1724x1261)
1.62 MB PNG
do programmers really look like this?
>>
>>109880540
Yes. Tfw no programmergf
>>
File: finger.jpg (325 KB, 4000x3000)
325 KB JPG
Hacker Newsnew | past | comments | ask | show | jobs | submit login
1.
Claude Opus 5.5 (anthropic.com)
165 points by throwaway371647 21 minutes ago | hide | 102 comments
>>
The OP posts a link to the DPT and immediately the thread devolves into a shitstorm.

**Main topic: C/C++ learning resources.** Someone asks what the faggots are working on. A couple of posts discuss learning C/C++ — one suggests reading the C standard and the 42 cursus, another lists a stack: K&R, Beej's Guide, CS50x, LearnCpp.com, Tour of C++, Effective Modern C++, etc. Someone calls out that C isn't OOP, another retards back with "b-but oop is hecking cute in c!1!!1!".

**HolyC compiler project.** An anon mentions his dream project of adding a RISC-V backend to the holyC compiler so he can build an OS on an FPGA. He's aware the FPGA softcore has no FPU and is 32-bit. Later he gets some help with memory management (address sanitizer, valgrind, overcommit behavior) and admits he can't actually hack the holyC backend because it's too hard, so he plans to go vegan and make a new compiler from scratch with a big fat struct/tree for the AST.

**Maid thread drama.** OP started this thread because the maid thread hit 300 posts. Some faggots call it out and the OP tries to defend himself like "I'm a grown arse man I don't care about that maid shit." The thread then devolves into a pileon about "maidniggers," "schizo maids," and general schadenfreude. Someone calls out the OP's brain is too small to understand terry's holyC code and he can't even start writing his own compiler.

**Misc:** Someone posts a LeetCode link and it's called an "autism test in disguise." A faggot posts about reading computer architecture books. Someone mentions closures. Someone posts a Hacker News link to Claude Opus 5.5 and nobody really comments on it.

**Final status:** Thread is a mess. Some useful info about C learning and compiler internals, but mostly just faggots shitting on each other about maids and holyC.
>>
>>109881462
you remove the maid drama and thats a canonical dpt thread
i dont see where you take your allegations of shitstorm from

also i said that oop is cute
AND VALID
get your quotes straight, kiddo
>>
>>109881462
Maids were okay.
But shilling problem is a concern.
>>
>>109881530
theres one maid that was disputably ok
the one programming maid os

the rest dont code so they can fuck off

also their maths knowledge is worthless
theyre dogmatists holding onto broken models
check the rust thread i btfod the fuck out of a couple dogmatists down there
>>
>>109881598
Maids, I meant anime OPs. Some of them were retarded. Some were genuinely cute.
>>
>>109881616
anime ops are ok
even the occasional maidposting
but not the fucking siege we were having in the past couple of weeks, mang

you can be quirky
you can be a skitzo
but respect your fellow 4channers ffs
even if you call them ethnic and/or homophobic slurs in the process
>>
>>109881653
>ugly fish book
>cute maids (x7)
>inventor of garbage language with a beaver head
>mascot of garbage language
>russian
Maids were the best part. Those threads were also better.

>>109881462
Have the AI analyze the maid threads.
>>
>>109881462
>Later he gets some help with memory management (address sanitizer, valgrind, overcommit behavior)
what
>>
>>109881866
the threads were mental garbage because it was maid os writer with his schizoshit that has no use irl applications + 3-4 maidshitter retards who were completely worthless pushing to remove actual programmers from dpt
and the rest of us using the threads as designated shitting streets

your passive agressivity and manifest lies dont earn you any friends
au contraire
i look at you and think youre an inferior breed of human being because youre unable to build an argument that has merit in truth
>>
File: file.png (20 KB, 1302x729)
20 KB PNG
can anyone tell me why my interface is tearing like this? i've never built anything before.
it's something to do with old win32 WTL library quirks.

this is for a foobar component i'm writing because i really need it and nobody else does.
>>
>>109883053
>win32
heres the mistake
youre not running gentoo
>>
>>109874159
That's outside the scope of what I want this tool to do.

I just want to tool that does tedious shit for me.
>>
>>109881513
>>109881598
>>109881653
>>109881921
This is what happens when you spend your formative years huffing gasoline.
>>
why should I use zephyr over freeRTOS?
>>
>>109879139
>Givest me ideas of projects, folk. Specially low-level stuff, excluding OS.
You could do what I'm doing and write a lisp in assembly
>>
>>109884163
LISP is semantically poor, and syntactically ugly.
>>
File: 1771163552633550.png (65 KB, 1814x623)
65 KB PNG
are u fr
>>
>>109883053
Something something WM_PRINT
>>
>>109884564
WM_PAINT*
>>
Working on one of those move in one of four cardinal direction problems. Its not too hard of a problem, just writing out the rest of the code very slowly. Only a few lines per day or so. I may post the codewars link when I'm done. I really got to learn how to make and use tree and graph algorithms. Almost got most of the basics.
>>
File: IMG_7201.jpg (141 KB, 722x490)
141 KB JPG
OLLAMA NO RUN QWEN
>>
I tried reading code by charles petzold, but after 10p pages in that thing happened where I read the same page over and over again, and I couldn't understand anything after that. Is there another book you'd recommend like that?
>>
>>109883795
I highly suggest Rust
>>
>Vec<Vec<i32>>
>vec[i][j]
>flattening it to Vec<i32> and then using (i * size) + j
>4x faster
fuck
>>
File: Untitled.png (57 KB, 1920x1080)
57 KB PNG
>>109885265
Vec is a boxed type, i.e. it exists in its own allocation. If you're accessing the array in a "bad" way (e.g. jumping between sub-arrays every iteration), that makes it even worse.

I don't know if Rust's type system is truly capable of handling "true" dynamic multiple dimension arrays properly, without just doing what you're doing by flattening it and calculating the offsets yourself.

In C, this is
int (*array)[width] = malloc(sizeof(int[width]) * height);

// Notice it's (y, x), not (x, y), because that's how the memory layout actually is
array[y][x] = 10;
>>
When your computer glitches out do you sometimes pull your pants off and wave your dick at it to threaten it?
>>
>>109885404
>When your computer glitches out
When what?
>>
>>109885345
>Notice it's (y, x), not (x, y), because that's how the memory layout actually is
just do column major like any sane person.
>>
>>109885200
I don't see how I could benefit from rust in any meaningful way.
>>
>>109885418
You know exactly what I mean, nigger retard.
>>
>>109885265
in c++ that's just
template<typename T, int width, int height> 
class Mat : public std::array<T, width*height>{
public:
T& operator()(const int row, const int col){
return std::array<T, width*height>::operator[](width*row+col);
}
const T& operator()(const int row, const int col) const {
return std::array<T, width*height>::operator[](width*row+col);
}
void fill(const T value){
std::array<T, width*height>::fill(value);
}
};
>>
>>109885675
Usually when I'm doing stuff like that, it's with 2D image data, and keeping it consistent with the 1D representation is beneficial.
>>
omfg can this thread just die already so i can feel cute again ><
>>
>>109885794
you're very cute sweetheart don't worry
>>
>>109885794
The maid threads were more moe and had less name calling.
>>
Grabbing two long metal pipes and going to Eli's door before smashing them together repeatedly so that the waves vibrate his bones.
>>
I had a dream femboy nudist vampires were spreading by biting people. Maybe we can put maid dresses on them so they'll wear clothes again.
>>
>>109885794
Go to /tttt/ if you want to be a fag paedophile.
>>
>>109885187
The beginning was kind of annoying to me, but it got better after that. I don't really like electronics, electricity, or thinking about hardware stuff. I don't know of another easier to read book. I feel like there should be something with even more pictures. Someone has probably turned the book into 300 7 minute video essays on youtube by now.
>>
>>109885692
No, I have no idea what you're talking about.
Do you have a faulty computer? You should fix it.
>>
>>109879139
finish the lovr webgpu build



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