What are you working on, /g/?Previous: >>108540878
Thank you for a real OP, but you linked the wrong post.Actual previous thread: >>108561805
>>108601694>tranimenope
>>108601698You know what, fair.
>>108601674>>108601681>new thread >>108601674 >>new thread >>108601674 >new thread >>108601674 >>new thread >>108601674 >old one reached bump limit
>>108601674>ReichskanzleiWhat did you program in Plankalkul today, anon?
>>108602286>Plankalkul>Not kalkülUh oh. https://i.4cdn.org/wsg/1776144561846003.webm
they should replace the heap with a giant program level stack
>>108602823No they shouldn't. But they should get rid of malloc and free and implement something a lot closer to HeapCreate/HeapDestroy (and a missing HeapReset), and introduce mreserve/mcommit to separate reservation from commitment semantics.
master/primary/server/controller/mainslave/secondary/client/peripheralWhat else do we have?
>>108602868>*changes it back*>NOOOO YOU CAN'T DO THAT
>>108602874
>AI, remove all the woke nonsense from this literature>as you command, m'lordsimple as
>>108602868Using Arduino was the mistake in the first place
>>108602868>>108602998Ok now that I thought a tiny bit more about it, client/server makes absolutely no sense.A server is usually a single entity that serves data it gets asked for.Clients are usually multiple entities that ask for data.A master is usually a single entity that asks slaves for data.Slaves are usually multiple entities that serve data to masterswhat the fuck, arduino?!I am not THAT edgy and I have no problem if they just start using main/peripheral from now on with further explanation, but client/server is absolutely ass backwards lmao
>>108603010Wait until you hear about X servers.
>>108602998What PLC brand do you recommend?This whole thing seems to flipflop between terminology.
>>108603010It's not about making sense, it's about the humiliation ritual.
>>108603047Doesn't matter, they all have their shitty edges :^)
make sure you keep your documentation at the lowest common denominator so you don't offend some troon, nigger, or biological female 10 years from now
>>108603477>imagine working on code that you don't ownSkill issue.
>>108603477
>>108603477>anon, why does your program contain an unused africanamerican class derived from monkey?
Do OOPfags really?
>>108603657really what?state your implication so I can more precisely laugh at you getting filtered by OOP
>>108603806nta but do you really think that engineer is an extension of ceo?
I rewrote finding space for save data to get non-contiguous and non-block-aligned sectors because the way I am redoing it will be able to make use of any available free space on the memory card.It's also worth considering that because it is similar to a FAT filesystem, deleted data can be recovered if the card is not written to (probably particularly a NEW save slot is not written) so long as you have a way to dump the entire card contents and recalculate the checksums after changes (something that wouldn't be too hard to do from the tools I am making).
>>108603829if you think that's how you use inheritance, you're not only filtered by OOP - you're retarded
>>108603611It's the boilerplate for the Abstract Cotton Factory design pattern, never heard of it?
rusttroons btfo
>>108603917You want me to talk about Factorio? Because I will talk about Factorio if you keep talking about C++ memory management, because I have opinions, and I'm not afraid to share them.
>>108603961idk what that is
>>108604522Most people think Factorio is a factory management game that is well optimized, but I have seen face of its machine code and I can tell you they are wrong. Factorio is complete, 100% C++ boomer slop.You may wonder who I am and why I say this; sit down and I will tell you a tale like none that you have ever heard!
>>108604565idc
>>108604586And idc about C++ propaganda.
cpp modules seem pretty cool so whats the hold up
>>108604791You know why.
>you can't just execute the value of a register as an instruction>the instruction has to be in memory, and you have to jump to it, and you have to jump away from itI'm going to sleep.
>>108603917Honestly I don't know how anyone manages to leak memory. Like, just deallocate it when your done, nigger. It's not that hard.
>>108605131Well duh.What are you even trying to do?
>>108605131x86 instructions can be up to 15 bytes long. That's not gonna fit in rax.
>>108605676Don't care.
>>108605693>>108605666
>>108605699Doesn't matter. You're not magically going to pull a solution out of your hat.
>>108605699So you just want to do it for funsies?I mean, that's as good a reason as any to do anything in assembly, but don't come bitching and moaning when it's something you can't do.
>>108605743>putting the cart before the horse
>>108605131Literally why
>>108605766Reducing cache line footprint branchlessly.
>>108605787So instead of using a bit of your 16kib of cache, you want to waste some of your precious 128 bytes of registers instead?
>>108605753>>108605787All you had to do was say that instead of dicking around.Branches are essentially free if they are predictable, so if you want to do something like this then you should just have a spot near your code in memory that will be within the cache envelope where you can dump the instruction before jumping to it.
>>108605818Don't even. I'm actively fighting the compiler's retardation with regards to calling conventions as is. RAX and R14 are essentially freebies at this point.
>>108605840>Branches are essentially free if they are predictable>if they are predictableConsidering we're talking writes anywhere between 4 to 32 bytes - no. No, I don't think they are.
>>108605131https://www.felixcloutier.com/x86/call> E8 cd CALL rel32 D Valid Valid Call near, relative, displacement relative to next instruction. 32-bit displacement sign extended to 64-bits in 64-bit mode.stop chopping you're balls off wtfhttps://i.4cdn.org/wsg/1776206231376814.mp4
What exactly are you trying to do?
>>108605856The branch itself is predictable in this case, you are always jumping to where you store the instruction you want to run.The variable length of the instruction doesn't matter. So long as you are within the cache line, the write will be cached.
>>108605870>call/retJust stop posting: >>108605734
New 'toss.
>>108605903>Roberto Ierusalimschy>Luiz Henrique de Figueiredo>Waldemar CeleIt explains so fucking much, including why so many midwits continue to use it to this day.
>>108605903>>>/a/
I trust you guys more than chatgpt or google, what's a good book or online course that will get me up to speed with Python and OOP principles? I want to start using Godot but so much of the language in the documentation expects an understanding of OOP terms and concepts, I just feel out of my depth. I've done some basic coding in C before so I'm good with the fundamentals, but shit like extends class or inheritance or whatever just goes over my head.
>>108605903>not pedo bait lua tantrash
>tfw you give her the 'ole copy-swapy
>>108606685Don't really know, lol, but extending classes is basically making a copy of a class and then adding things to it.It doesn't affect the objects that are cast from the parent class, but the child class objects have the extra funtions or data.You can have private functions/data in the parent class that does not get inherited as well.
>sir, the c++ users are complaining that there's not nearly enough brackets and parentheses in the language>ADD MORE
>>108605903why post this in chudpt and not maidpt?
eternal linkage
Is there a quick fix profile fix I can apply to neovim on windows for this?Every file has those letters at the top, and there's this error message at the bottom.
>>108607788Have you tried the health check thing?
>>108607848It's a genuine bug, I just don't know if there is a workaround I can apply. For part of the issue there seems to be, but I'm not sure if there is for the letters.https://github.com/neovim/neovim/discussions/38648
>>108607922Install an older version?
>>108607932nyo... I already applied the first workaround...
>>108607031>>108606685I'll give Object-Oriented Python by Irv Kalb a shot, looks like it covers some game and GUI development as well so that should give me a good starting point to work with Godot later on.
>>108607788Found a fix, for anyone wondering, the error at the bottom can be fixed by going to:e $VIMRUNTIME/lua/vim/_core/defaults.lua and commenting out lines [972,989] in interval notation then call nvim with nvim --luamod-dev as described on the link I posted on >>108607922The letters issue seems to be plaguing more versions but you can fix it by by editing your init.lua on :e $MYVIMRCon 0.10 add vim.g.clipboard = falseon 0.11+ addlocal termfeatures = vim.g.termfeatures or {}termfeatures.osc52 = falsevim.g.termfeatures = termfeaturesas described on https://github.com/neovim/neovim/issues/28776
>>108609597I'm happy for you, Anon.What are you going to code now with this newfound power?
apparently this is the simple solution
>>108611075I guess that was fairly simple in restrospect
>ADHD>chaos in head>write down two paragraphs in order to calm down the noise of differing ideas>realize they all don't matter because compilers are retarded>hold on>are they as retarded as I think they are?>test it>it's even worse than I imagined>go back to text>too exhausted to finish the paragraph, this time with conviction>force myself to read the last paragraph anyway>become angry at compiler devs again>suddenly find new energy to finish the paragraphAt this point in my life I am purely driven by ego.