Giter Site home page Giter Site logo

Comments (4)

Mrxx99 avatar Mrxx99 commented on May 13, 2024 1

@mtkennerly There are some specifically polyfill libraries for that purposes:
https://github.com/Sergio0694/PolySharp
https://github.com/SimonCropp/Polyfill
https://github.com/Tyrrrz/PolyShim

from linguini.

Ygg01 avatar Ygg01 commented on May 13, 2024

Hi @mtkennerly. Looking at that list of features NotNullWhen and NotNullWhenAttribute are nice to haves but not a big deal. That said, I have no idea how you could put it on net4.6 without ReadOnlySpan and ReadOnlyMemory those are crucial pieces of the parser and would be very hard to get it working without that.

As for default interfaces those can be fixed. Is there a lib that can emulate ReadOnlySpan on net4.6?

from linguini.

mtkennerly avatar mtkennerly commented on May 13, 2024

Microsoft has some standalone packages that look like they could work:

from linguini.

mtkennerly avatar mtkennerly commented on May 13, 2024

I got Linguini.Shared working with these dependencies and some minor code changes:

<PackageReference Include="IndexRange" Version="1.0.2" />
<PackageReference Include="Nullable" Version="1.3.0" />
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray" Version="1.0.1" />

I'm working through the errors from the other projects now. I'll report back on how it goes and/or open a PR if I get it working.

from linguini.

Related Issues (13)

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.