Giter Club home page Giter Club logo

Comments (16)

bradhilton avatar bradhilton commented on May 21, 2024 1

@Igor-Palaguta @johntaschereau @paulofaria I'm going to push an new build of Reflection supporting Swift 4 shortly

EDIT: Just pushed new build 0.15.0 that supports Swift 4

from graphql.

johntaschereau avatar johntaschereau commented on May 21, 2024

Please allow me to bump-up and add my voice to this request. This outstanding project (from a utility and educational perspective) hasn't worked due to the use of unsafeBitCast with Swift 4. I attempted to fix using Mike Ash's excellent article "Swift Unmanaged" (https://mikeash.com/pyblog/friday-qa-2017-08-11-swiftunmanaged.html) but without success this far. Thank you.

from graphql.

paulofaria avatar paulofaria commented on May 21, 2024

@bradhilton Brad! Do you have any idea how to fix this?

from graphql.

johntaschereau avatar johntaschereau commented on May 21, 2024

Mike Ash's August 2017 article "Swift Unmanaged" has a very clear paragraph at the onset: "The first task is converting a reference into the raw bytes for a void *, or converting the raw bytes of a void * back to a reference. Since Swift references are implemented as pointers, this is straightforward. It's really just a matter of getting the type system to cooperate. You can do this with unsafeBitCast, although I strongly recommend against it. If these details ever changed, you'd be in trouble, whereas Unmanaged will continue to work." … His article then goes on to explain how to use updated Swift and avoid UnsafeBitCast. I believe this article is the blueprint for addressing this issue in GraphQL. Mr. Palaguta's work appears outstanding however with the protocols and such, I wasn't clear enough given the time I had to see about replacing UnsafeBitCast with Mike Ash's tips. I believe it can be done. I thought I would ask Mr. Palaguta and did when the Issue opened because he knows his software best. I remain convinced the article I cite by Mr. Ash can be used to effect the requisite changes.

from graphql.

paulofaria avatar paulofaria commented on May 21, 2024

@Igor-Palaguta are you willing to send a PR updating GraphQL's Reflection module with https://github.com/Zewo/Reflection?

from graphql.

jseibert avatar jseibert commented on May 21, 2024

Any progress here? Let me know what I can do to be helpful.

from graphql.

paulofaria avatar paulofaria commented on May 21, 2024

@jseibert I believe the only thing needed it to pull the code from https://github.com/Zewo/Reflection and update GraphQL's Reflection module

from graphql.

paulofaria avatar paulofaria commented on May 21, 2024

@jseibert if you can send a PR that would be very helpful! 😊

from graphql.

jseibert avatar jseibert commented on May 21, 2024

#27

@Igor-Palaguta I incorporated your changes as well. All tests now pass.

from graphql.

paulofaria avatar paulofaria commented on May 21, 2024

fixed by #27

from graphql.

jseibert avatar jseibert commented on May 21, 2024

@paulofaria can we get a new release that ships this?

from graphql.

paulofaria avatar paulofaria commented on May 21, 2024

@jseibert of course! sorry I forgot to release.

from graphql.

paulofaria avatar paulofaria commented on May 21, 2024

released here:

https://github.com/GraphQLSwift/GraphQL/releases/tag/0.3.0

from graphql.

jseibert avatar jseibert commented on May 21, 2024

Wow, you're fast! Awesome, thanks!

from graphql.

jseibert avatar jseibert commented on May 21, 2024

@paulofaria just opened a PR on Graphiti as well for you.

from graphql.

lightwave avatar lightwave commented on May 21, 2024

Is the reason to keep those deprecated usage of String.characters around in the code base to maintain backward compatibility with Swift 3?

from graphql.

Related Issues (20)

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.