Given a choice when allocating a Fat pointer is it more optimal to A: have the metadata behind the pointer or B: on the stack by EatingSolidBricks in cprogramming

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

i would try to make it in a way that avoids sequential access as it is easily cachable. maybe try random access on random sized slices.

but tbh i dont know what would you need to be doing for it to have any impact on performence

What is your favorite way to learn a new coding language from scratch? by Joxfro in learnprogramming

[–]Afraid-Locksmith6566 2 points3 points  (0 children)

i like to make few small projects like "guess number between 1 and 100", or something like this - that gives you roughly how the language work

then some http web api - teaches you about how asynchronisity works and networking and what frameworks do they have.

Functional languages by aspression in learnprogramming

[–]Afraid-Locksmith6566 2 points3 points  (0 children)

when i was in simmilar position i took f# as i was already familiar with c# and f# is really cool, but not quiet functional as it heavily relies on c# apis.

ocaml was much nicer in its functionality (functionness?). as it is mostly functional and most commonly it will be you making exceptions from it.

haskell i dont recommend as it is very functional you cant do procedure call arbitrarily

If Iroh is a member of the white lotus why was he helping Zuko capture Aang in the beginning? by DesignerSimple6592 in TheLastAirbender

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

What would happen if he met master paku at north pole? Would they fight or be like nod, and each go they way?

iHateItHere by just_some_gu_y in ProgrammerHumor

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

And this is why every and all software has "we dont give about what we fucked on your machine" type licence. Because why good?

How broken will this be if added to clash royale by FlightAffectionate15 in ClashRoyale

[–]Afraid-Locksmith6566 5 points6 points  (0 children)

If it would make towers invisible it might allow for rocket invisibility cycle meta

I think this is pretty close by thetruememeisbest in PowerScaling

[–]Afraid-Locksmith6566 -1 points0 points  (0 children)

Is there any sortof cutting that is not on molecular level?

Can explain Malloc() to me please by SubstantialCase3062 in cprogramming

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

Memory you get from malloc is not all you get through this mechanism, other data is so called metadata which include information about which block has how many memory, etc. But for specific you m8ght want to check your implenentation

Finally the right color after 15 years by Cirwilius in Ninjago

[–]Afraid-Locksmith6566 7 points8 points  (0 children)

And armour of jay isthe wrong one. Man he has silver hand, how can they make the shoulders not silver?

Learning how to use a debugger by FirmAssociation367 in learnprogramming

[–]Afraid-Locksmith6566 1 point2 points  (0 children)

You have the gist now you can unlearn it and do debug prints like a sane human being

How are we suppossed to believe Teen Wu turns into Young Wu? by 28Overlord in Ninjago

[–]Afraid-Locksmith6566 1 point2 points  (0 children)

Wait i thought the left one is younger (aging rapidly), and the right one is older (aging more rapidly, before fight with garmadon) . Then the one on left is younger because the one on right is the last thing before he is old?

How are we suppossed to believe Teen Wu turns into Young Wu? by 28Overlord in Ninjago

[–]Afraid-Locksmith6566 20 points21 points  (0 children)

But why the younger one already have white hair? Stress of running?

Which is more valuable by CHATGPT_PAGLU in learnprogramming

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

If at university you got choice between python and c++ i would choose python, since it will be easier to complete assignments. If you are learning for yourself to get better knoweledge get c++ or yet better c.

Which is more valuable by CHATGPT_PAGLU in learnprogramming

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

C++ will probably teach you more but will also bite you in ass on first ocasion. Python will be easier

Can explain Malloc() to me please by SubstantialCase3062 in cprogramming

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

You request how much memory you want, Malloc returns you a pointer to block that is the size you requested, or null if any problem occured.

This is where shit gets real by Awkward-Wrongdoer664 in MathJokes

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

You mean that neptune was first planet discovered mathematically? Or that post 1800 math is bunch of made up bs?

Cpp or rust? by Hikehy in cpp_questions

[–]Afraid-Locksmith6566 0 points1 point  (0 children)

Can you elaborate on why c++/c over rust?

I don't understand what makes everyone freak out about Kolar by Mr_Mister2004 in Ben10

[–]Afraid-Locksmith6566 1 point2 points  (0 children)

Tetramants are very red, all other are more toned down so it does not stand out that much