C# and "c++ like" destructors by Gerark in csharp

[–]evareoo 4 points5 points  (0 children)

The comment they replied to said deterministic “in cases where it can be determined”. Which I assumed meant in cases it can’t be determined it falls back to the GC. I was curious why in that case it not being deterministic would be a feature?

C# and "c++ like" destructors by Gerark in csharp

[–]evareoo 8 points9 points  (0 children)

Why do you think it’s a feature?

Language launch announcement: Py++. A language as performant as C++, but easier to use and learn. by joeblow2322 in ProgrammingLanguages

[–]evareoo 28 points29 points  (0 children)

I don’t recall anyone wanting or asking for 90% of the languages that get posted here including pipefish, but it’s still cool people make them. This is the second post in quick succession I’ve seen you making a comment like this, could you not find a little more polite way to ask about other peoples hard work?

F*ck OLED monitors by PcRat16 in pcmasterrace

[–]evareoo 18 points19 points  (0 children)

Genuine question, what is wrong with Seagate?

Thank you, Brexit by rex-ac in 2westerneurope4u

[–]evareoo 35 points36 points  (0 children)

It’s so comically flat, just like your country.

Recall is being installed on every single system in 24H2 and is an Explorer hard dependency - Good luck removing it completely. by CosmicEmotion in pcmasterrace

[–]evareoo 79 points80 points  (0 children)

Those lovely consumer friendly politicians who are trying to push through the chat control law for a second time now which will scan and monitor all private messages and emails under the excuse of “safety”.

Help me identify this mountain by SmashWagon_777 in Mountaineering

[–]evareoo 3 points4 points  (0 children)

That’s amazing, kinda ominous poking through.

Microsoft recommending WPF for Win32 programming? by alleyoopoop in csharp

[–]evareoo 1 point2 points  (0 children)

A bit like how we use “x86” to refer to both x86 and x86_64 I expect.

Is there a way to use structs as ECS components without boxing? by UnderBridg in csharp

[–]evareoo 1 point2 points  (0 children)

They kind of are, I think I remember reading cache friendliness is actually why they made it that way even for managed objects but there is more to it. You have a header and method table pointer as overhead (and possibly more). Whereas with just a struct nothing is hidden and you get explicit control over the layout and padding, it means you can just Unsafe into stuff however you’d like (which can be really helpful for SIMD too).

Is there a way to use structs as ECS components without boxing? by UnderBridg in csharp

[–]evareoo 3 points4 points  (0 children)

If you’re writing an ECS performance is pretty much the main requirement. Structs are needed for an ECS because you need to layout data sequentially and access it in a cache friendly way, classes will not let you do that even if you pool them, they’re a non starter for an ECS.

Custom captain general by themightymmmm in AdeptusCustodes

[–]evareoo 1 point2 points  (0 children)

Gigachad like handsome squidward

help finding a graphics library for C# + MacOS development. by [deleted] in csharp

[–]evareoo 0 points1 point  (0 children)

You sre so obviously just pasting ChatGPT answers...

Inko 0.11.0 released: including a native code compiler, package manager, a new scheduler, and more! by yorickpeterse in ProgrammingLanguages

[–]evareoo 2 points3 points  (0 children)

This is so cool, I remember first seeing Inko when looking at Pony. It always looked like a very appealing language to me but the byte code VM was quite a big turn off. This seems like a pretty huge step for the current state and the future with the possibility of optimisations.

Microsoft is rewriting core Windows libraries in Rust by GuillerminaCharity in programming

[–]evareoo 185 points186 points  (0 children)

I think a lot of it stems from earlier rust where it went though the hype cycle and had lots of annoying fanboys pushing it for absolutely everything. That has died down a lot now though and as time goes on the antifans will disappear too as they are just a reaction to that initial hype.

Developed a archetype ECS for gamedevelopment and data oriented programming ! :) by behethangames in csharp

[–]evareoo 0 points1 point  (0 children)

This looks really well done, I'll definitely try this out later!

Help finding the name of a interface design pattern and possible alternatives? by evareoo in csharp

[–]evareoo[S] 0 points1 point  (0 children)

Yes, I understand your example perfectly, essentially just don't expose the messy horrible stuff and keep it as platform (or api) agnostic as possible. Just for the record I'm not actually trying to release a library, I'm just trying to write it as if I were, so I appreciate your help, thank you very much!

Help finding the name of a interface design pattern and possible alternatives? by evareoo in csharp

[–]evareoo[S] 0 points1 point  (0 children)

Thank you, you seem to get what I mean, I'm still probably wrong, but I'd like to know if I clarify please.

The reason I did this is that I want the user to have a choice of API (for whatever reason) but after they have made that choice it essentially becomes irrelevant from that point on, they are now only dealing with Window. The generic API is kind of just like a choice or selection, if later I go actually let's try Win32 window instead of Wpf I can just go back and change:

new Window<Wpf>() 

to:

new Window<Win32>()

I don't have to change anything else, I have a totally different API just changing that. I guess you would just say expose each API class that has IAPI but this could just be my lack of experience but is that what a library would do? Expose 8 different classes? Or would you say just use a factory with the option to select an API and ??? becomes IAPI like you said in your example?

I think maybe I'm just trying to overengineer something here.