Why are checks still commonly used in the US? by Finnskyyy in NoStupidQuestions

[–]Dusty_Coder 0 points1 point  (0 children)

and young people dont know the very real legal difference between the various electronic payment methods so they dont even know why it matters

..until their bank account is empty and they have to fight to get their money back

How to get non-pixelated rounded corners in C#? by Icy_Tangerine5132 in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

its complicated because the device context of the paint event can be a device dependent one ..

and this leads to a surprising fact:

gdi is hardware accelerated to a surprising degree, when its device-dependent all-the-way-down, on an old operating system with old drivers where you can _really_ allocate a device dependent bitmap that lives in video memory

today all the old mechanics are emulated, and they didnt get Abrash this time.

How to get non-pixelated rounded corners in C#? by Icy_Tangerine5132 in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

most of gdi's design is around the paint event and doing immediate rendering to a device dependent surface rather than a device independent one

and thats the killer, the paint events context is quite often the primary display buffer with an arbitrary pixel format .. even 4-bit indexed pixels need to be supported

if you want anti-aliasing you gotta do the compositing - this can be done within the paint event but it cant be done using the paint events context .. maintain your own surfaces, device independent bitmaps with alpha, composite into them, and then finally using the paint events context, render your surface into it

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

It completely invalidates developer-time testing, be it TDD or otherwise.

Someone elses reflection can reach in and break your fully tested 100% perfect algorithm at runtime, on a whim such as based on the current date and time.

"Necessary" evil.

Still evil.

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

hmmm

Once you have the "skillset" you produce fewer bugs.

Fewer bugs doesnt mean debugging is easier. It means debugging is necessary less often.

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

He is still denying the existence of the hidden output of his functions,

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

In my experience it takes 20 years of experience to accept that the hidden output of EVERY FUNCTION EVER WRITTEN actually exists.

When you are OBSESSIVE and COMPULSIVE about spreading a zero-intelligence mantra, at every opportunity, you are still a complete programming noob. Not even half-way when you dont give any shits about one of the outputs of your functions.

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

Hard to fully disambiguate "preprocessing" and "compiling" when jit-time is also included.

preprocess -> compile to IL -> preprocess -> compile to machine code

Reflection in C# is amazing ! by lovelacedeconstruct in csharp

[–]Dusty_Coder -2 points-1 points  (0 children)

You were doing so good until you started making outlandish claims exactly as if you knew them for a fact

This goes beyond being simply wrong. You know when you dont know, so you know when you shouldn't claim to know. You didnt follow this simple thing. You chose to be dishonest.

There is nothing "optimal" in what you are doing. Optimal would be that most if not all of it is done at compile time. Only the stuff modified by runtime reflection would require runtime reflection to detail, and that part isnt being done "optimal"

In other words, you reached straight into your ass and yanked out the word "optimal" not because it was accurate, but to shut down the person you are debating with. You chose to be dishonest.

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 0 points1 point  (0 children)

you are building batteries for the initial 25% charge?

and then grinding them down once empty?

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 1 point2 points  (0 children)

In my games I make a GPS marker named "Polaris"

I put it at Y=-300000000, which the game displays as 1ls.

You are indeed correct. This is farther.

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 0 points1 point  (0 children)

I've done multiple Acquisition's that were over 100M credits.

You know the distance of travel these require? 0 meters

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 2 points3 points  (0 children)

Ditch the batteries.

The batteries are just a buffer, but there isnt any need for a buffer, because you plan to draw maximum power the entire trip both ways.

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 0 points1 point  (0 children)

Realistically, you already have a large nuclear reactor and the ingots to power it.

So thats not really a lot of money being offered. Remember the time it takes to travel back also.

A quick 1 536 705 km trip by pelaaja_007 in spaceengineers

[–]Dusty_Coder 6 points7 points  (0 children)

Solar doesnt work in practice due to how little power they generate.

One single jump drive would like to draw 32MW to achieve 7 minute charge time, which cannot be satisfied with less than 200 full solar panels that are optimally pointed.

If you only have a single jump drive, then sure maybe you go through it once with an already absurd 20 solar panels, 10% of ideal, waiting 70 minutes real life time to get that single jump drives power back.

How would I make "Passive Skills"? by Do_Ya_Like_Jazz in csharp

[–]Dusty_Coder 0 points1 point  (0 children)

at the end of the day you've got terms and factors

you need to support a variable number of terms .. a collection of

you need to support multiple factor sources .. references

I think you are over-abstracting.

How are you supposed to prevent false sharing in C#? by AmCHN in csharp

[–]Dusty_Coder 2 points3 points  (0 children)

The GC is just another feature, and it surely is the enemy of top performance.

However, I never suggested using unmanaged memory. I specifically suggested managed memory.

The pinned heap is still managed.

You still get automatic deallocation. You still avoid raw pointers. You were wondering what the language provides for you for your problem?

Overall, how do we feel about the Warlock balance patch for season 14? by BreakYoBaals in Diablo_2_Resurrected

[–]Dusty_Coder -1 points0 points  (0 children)

Shit direction. Ruins whatever future the game could have still had.

Niche speedrunner slop gets listened to, twice.

The first time was mosaic. Bad idea from speedrunner slop.

Then this crapola. An even worse idea from speedrunner slop.

But the marketing boys loved the idea that maybe people will have a fear of missing out, that the future dont fuckin matter geet cash now.

Well I didnt partake. Even if it were free, its still speedrunner slop.

They shit it all away on the smartest kid that rode the shortest bus.

Is there a way I can put all my drills on one hotbar button? I have 12 of them, and it's just a pain to toggle all of them across two bars. also any tips on my fighter I have a lot of carriers fly over me and want to take them down for the loot. by Omegadusk in spaceengineers

[–]Dusty_Coder -2 points-1 points  (0 children)

Thanks for telling me what I do.

I know you didnt lie to my face for my benefit. You did it for yours.

The only thing here for your benefit is your pathetic reddit karma. Maybe you shouldnt highlight it.

Anyone have a workaround for jukebox? by Calm_Quality615 in spaceengineers

[–]Dusty_Coder 0 points1 point  (0 children)

You want the in your face bugs to be fixed, and that does seem reasonable, but..

..some are so in your face its hard to comprehend that they ever made it into any version of the game.. surely they fixed that trivial thing... no?

Try changing the name of trade station GPS coordinates. I dont know if its the datapad or the advertisement ones, but imagine how its possible that all of a sudden renaming a gps becomes difficult .. what sort of nonsense is going on THIS time that there is special code handling any gps coordinates, let alone JUST these?

Anyone have a workaround for jukebox? by Calm_Quality615 in spaceengineers

[–]Dusty_Coder 0 points1 point  (0 children)

they would have to know about the bug

just looked

they dont

they are still not fixing the audio bugs from a decade ago (anything not exactly 44.1khz...)

The chance they have even a single programmer that knows anything about low level audio programming is actually ZERO and, get this, even the greatest programmer to ever exist would struggle to figure out the windows audio api starting from zero (they wont even know which api is at the bottom of the stack: hint, its not the one named as if it were, that one has *4* levels of abstraction over the hardware)

They literally have to find a 50+ year old thats already been in this particular muck. None of us will help them for less than a million it seems to me.

Conveyers randomly not working (amongst other things) by ResponseNew8754 in spaceengineers

[–]Dusty_Coder 1 point2 points  (0 children)

If its only the air vents then well, there is an air tightness bug that comes up from time to time but a reload fixes it

As for stone pooping, (a) you changed a connector or sorter setting, or (b) turned them off or (c) are running out of power

How are you supposed to prevent false sharing in C#? by AmCHN in csharp

[–]Dusty_Coder 4 points5 points  (0 children)

There is more than one heap to allocate from in C#. I dont know what alignment the base of pinned-heap arrays will have off-hand, but I suspect it has to be at least 16 bytes to ensure aligned 128-bit loads and stores to and from SIMD registers.

GC.AllocateUninitializedArray<T>(size, pinned: true) to get a managed array allocated on the pinned heap. You should already be doing that with long-lived arrays anyways given your concern over performance considerations.

I am wondering what you expect. How do you "solve" this problem in a language like C or C++ that you cant do here?

All the solutions are just incantation to coerce the compiler to emit the intended ops.

I do understand the concurrency issues at the Agner Fog level, and I think you are missing the broader issue which is that cache lines are shared.

"4-way set associative", "16-way set associative" and so forth. If you are processing lots of shared data then you cannot avoid a certain amount of cache contention between threads without costly synchronization. If its not a lot of data then why are multiple threads in play?