Comments (16)
@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.
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.
@bradhilton Brad! Do you have any idea how to fix this?
from graphql.
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.
@Igor-Palaguta are you willing to send a PR updating GraphQL
's Reflection module with https://github.com/Zewo/Reflection?
from graphql.
Any progress here? Let me know what I can do to be helpful.
from graphql.
@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.
@jseibert if you can send a PR that would be very helpful! 😊
from graphql.
@Igor-Palaguta I incorporated your changes as well. All tests now pass.
from graphql.
fixed by #27
from graphql.
@paulofaria can we get a new release that ships this?
from graphql.
@jseibert of course! sorry I forgot to release.
from graphql.
released here:
https://github.com/GraphQLSwift/GraphQL/releases/tag/0.3.0
from graphql.
Wow, you're fast! Awesome, thanks!
from graphql.
@paulofaria just opened a PR on Graphiti as well for you.
from graphql.
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)
- AsyncThrowingStream.mapStream produces leaks and loses error during transformation HOT 1
- Custom Schema Directives? HOT 1
- Disabling introspection e.g. in production HOT 6
- GraphQLError missing `extensions` HOT 2
- client library
- SDL support HOT 16
- Upgrade Swift-NIO dependency to 2.0.0+ HOT 1
- Preserve result order HOT 3
- False positive with no unused variable rule HOT 3
- GraphQL parser does not support optional `Description`s.
- GraphQL doesn't support "Blockstrings" which are often used in Descriptions.
- GraphQL parser does not seem to have support for the '&' character HOT 2
- intValue() always throws exception HOT 1
- 0 default value for argument is interpreted as false and can not be used HOT 2
- Is this library single-threaded only? HOT 3
- GraphQL doesn't compile on Linux Swift 5.4 HOT 5
- Top level fields in mutations should execute in SERIES not parallel HOT 2
- Is async/await supported?
- Error "Must be leaf type" in listValue HOT 1
- Is there a way to validate a document with custom validation rules? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql.