subsurfacestudios / sharedutils Goto Github PK
View Code? Open in Web Editor NEWShared utilities for Unity projects by Subsurface Studios.
Home Page: https://subsurface.az-raven.com
Shared utilities for Unity projects by Subsurface Studios.
Home Page: https://subsurface.az-raven.com
Currently, we use T where T: class
in PagedList as well as the null value as an empty slot in the list. This is a bit of a hack, and it would be better to use an Option type or similar to represent the null value. This would also allow us to use value types in PagedList.
FIXME for reference:
Lines 6 to 7 in 96e4e95
This seems like a glaring flaw in the runtime, and prevents TaggedUnion<A, B, ...>
and Union<A, B, ...>
. Unfortunately, this restriction occurs as a runtime error, so I was not aware of it until now.
While it's technically possible to get around this using our Bytes
API and a fixed-size byte array, this incurs both a marshaling cost as well as the necessity of a heap allocation, which ruins the point of a Union.
For that reason, it's probably worthwhile to remove the Union struct for now, at least until a reasonable implementation can be found. If you have a way to inline a byte array of potentially varying size into a struct, please let me know.
In the meantime, Union
and TaggedUnion
will remain broken, until they are removed or fixed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.