Coder Social home page Coder Social logo

sharedutils's Introduction

SubsurfaceStudios

sharedutils's People

Contributors

averyocean65 avatar az-raven avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

averyocean65

sharedutils's Issues

Memory: .NET does not support generic types with explicit layout.

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.

PagedList: Replace nullable types with an Option utility.

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:

// FIXME: This should be converted to use TaggedUnion<A, B> instead of
// using nulls to represent empty items.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.