Aaron
Aaron
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
either do what you do with ret or call BinaryPrimtives.ReverseEndianness
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
fixed only fixes something until the block ends
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
yeah don't do that
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
uh
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
I mean interfaces aren't fast, but there's not much you can do about that
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
:j_phew:
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
Fetch/Read wouldn't happen to be interface methods, would they
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
interfaces?
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
they're not magic, sadly
215 replies
CC#
Created by Pdawg on 11/17/2024 in #help
Micro-optimizing a Z80 emulators' pipeline. **Unsafe code**
if that's your Fetch? there really isn't much you can do
215 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
I meant it when I said this information is not available at runtime
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
aka it doesn't work for you
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
it only works when assigning object to T where T is a non-nullable value type
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
that throw helper is for value types
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
that information isn't available to the implementation, NRTs are purely compile time
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
which yeah, you can't do
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
I believe they essentially want
var k = x.Get<K>();
if (K is not nullable && k is null)
throw new Whatever();
var k = x.Get<K>();
if (K is not nullable && k is null)
throw new Whatever();
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
yes, it has to purely be a design consideration of your implementation
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
x.Get<K>() is null works just fine
60 replies
CC#
Created by Pherenetic on 11/14/2024 in #help
NRT: How to correctly annotate my generic-class when inheriting from another generic class?
yes you can?
60 replies