[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: 1775600276128799.jpg (1.72 MB, 1738x1270)
1.72 MB
1.72 MB JPG
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
>tranime
nope
>>
>>108601698
You know what, fair.
>>
>>108601674
>>108601681
>new thread >>108601674
>>new thread >>108601674
>new thread >>108601674
>>new thread >>108601674
>old one reached bump limit
>>
>>108601674
>Reichskanzlei
What did you program in Plankalkul today, anon?
>>
>>108602286
>Plankalkul
>Not kalkül
Uh oh. https://i.4cdn.org/wsg/1776144561846003.webm
>>
they should replace the heap with a giant program level stack
>>
>>108602823
No 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.
>>
File: 1769747592094529.png (23 KB, 641x114)
23 KB
23 KB PNG
master/primary/server/controller/main
slave/secondary/client/peripheral
What else do we have?
>>
>>108602868
>*changes it back*
>NOOOO YOU CAN'T DO THAT
>>
File: 1775955725373587.png (10 KB, 834x69)
10 KB
10 KB PNG
>>108602874
>>
>AI, remove all the woke nonsense from this literature
>as you command, m'lord
simple as
>>
>>108602868
Using Arduino was the mistake in the first place
>>
>>108602868
>>108602998
Ok 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 masters

what 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
>>
>>108603010
Wait until you hear about X servers.
>>
>>108602998
What PLC brand do you recommend?
This whole thing seems to flipflop between terminology.
>>
>>108603010
It's not about making sense, it's about the humiliation ritual.
>>
>>108603047
Doesn't matter, they all have their shitty edges :^)
>>
File: 1758530067685562.png (117 KB, 893x587)
117 KB
117 KB PNG
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 own
Skill issue.
>>
File: cactus.png (10 KB, 612x234)
10 KB
10 KB PNG
>>108603477
>>
>>108603477
>anon, why does your program contain an unused africanamerican class derived from monkey?
>>
File: oops.png (16 KB, 557x356)
16 KB
16 KB PNG
Do OOPfags really?
>>
>>108603657
really what?
state your implication so I can more precisely laugh at you getting filtered by OOP
>>
>>108603806
nta but do you really think that engineer is an extension of ceo?
>>
File: findspace.png (73 KB, 899x860)
73 KB
73 KB PNG
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).
>>
>>108603829
if you think that's how you use inheritance, you're not only filtered by OOP - you're retarded
>>
>>108603611
It's the boilerplate for the Abstract Cotton Factory design pattern, never heard of it?
>>
File: 1771559265799203.png (13 KB, 830x75)
13 KB
13 KB PNG
rusttroons btfo
>>
>>108603917
You 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.
>>
>>108603961
idk what that is
>>
>>108604522
Most 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!
>>
>>108604565
idc
>>
>>108604586
And idc about C++ propaganda.
>>
cpp modules seem pretty cool so whats the hold up
>>
>>108604791
You know why.
>>
File: 1715455605887327.jpg (62 KB, 720x649)
62 KB
62 KB JPG
>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 it
I'm going to sleep.
>>
>>108603917
Honestly I don't know how anyone manages to leak memory. Like, just deallocate it when your done, nigger. It's not that hard.
>>
>>108605131
Well duh.
What are you even trying to do?
>>
>>108605131
x86 instructions can be up to 15 bytes long. That's not gonna fit in rax.
>>
>>108605676
Don't care.
>>
>>108605693
>>108605666
>>
>>108605699
Doesn't matter. You're not magically going to pull a solution out of your hat.
>>
>>108605699
So 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
>>
File: ebasedi.png (172 KB, 460x460)
172 KB
172 KB PNG
>>108605131
Literally why
>>
>>108605766
Reducing cache line footprint branchlessly.
>>
>>108605787
So instead of using a bit of your 16kib of cache, you want to waste some of your precious 128 bytes of registers instead?
>>
File: hmm.png (50 KB, 899x860)
50 KB
50 KB PNG
>>108605753
>>108605787
All 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.
>>
>>108605818
Don'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 predictable
Considering we're talking writes anywhere between 4 to 32 bytes - no. No, I don't think they are.
>>
>>108605131
https://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 wtf
https://i.4cdn.org/wsg/1776206231376814.mp4
>>
What exactly are you trying to do?
>>
>>108605856
The 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/ret
Just stop posting: >>108605734
>>
File: lua test2.png (1.31 MB, 3500x2144)
1.31 MB
1.31 MB PNG
New 'toss.
>>
>>108605903
>Roberto Ierusalimschy
>Luiz Henrique de Figueiredo
>Waldemar Cele
It 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 tan
trash
>>
>tfw you give her the 'ole copy-swapy
>>
>>108606685
Don'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
>>
>>108605903
why post this in chudpt and not maidpt?
>>
eternal linkage
>>
File: file.png (23 KB, 966x505)
23 KB
23 KB PNG
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.
>>
>>108607788
Have you tried the health check thing?
>>
>>108607848
It'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
>>
>>108607922
Install an older version?
>>
>>108607932
nyo... I already applied the first workaround...
>>
>>108607031
>>108606685
I'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.
>>
>>108607788
Found 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 >>108607922
The letters issue seems to be plaguing more versions but you can fix it by by editing your init.lua on :e $MYVIMRC
on 0.10 add
vim.g.clipboard = false
on 0.11+ add
local termfeatures = vim.g.termfeatures or {}
termfeatures.osc52 = false
vim.g.termfeatures = termfeatures

as described on
https://github.com/neovim/neovim/issues/28776
>>
>>108609597
I'm happy for you, Anon.
What are you going to code now with this newfound power?
>>
File: file.png (86 KB, 939x704)
86 KB
86 KB PNG
apparently this is the simple solution
>>
File: file.png (41 KB, 802x322)
41 KB
41 KB PNG
>>108611075
I guess that was fairly simple in restrospect



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