-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Planned Cross-Platform support? #13
Comments
+1 |
Yes! That's the idea, but we it is difficult to anticipate without knowing what will be allowed in Linux Swift. The first step I took towards that goal is abstracting the Socket protocol, in case we can't use CocoaAsyncSocket when it launches, to make the transition easily. The other thing that bugs me is that it relies heavily on Foundation (lots of NSData around) and it is unclear whether it could be used from Linux. Long story short, making it cross-platform is definitely the goal and we would love to have as much help as posible. Thanks for the interest. |
Looks like Node.js is built on https://github.com/libuv/libuv. Could that be an option? |
There's a lot of socket libraries around in c and objective-c - I even found one in Swift without any Foundation dependencies. I agree with @izqui though, you can't really predict how much control over Swift Apple is going to give, so it's kind of useless to find another dependency that could be just as likely to be unusable when Swift does go open source. I would instead try to get rid of as much Foundation use in Taylor as possible, since it is very unlikely that Apple will open source it. |
@Danappelxx +1 |
I started implementing the socket protocol with the library @Danappelxx introduced. I got it to work, but I have this little issue that I'm trying to figure out now helje5/SwiftSockets#10 I started working on it in the |
Ups, something is weird with the headers also, will have to look at it in more detail. |
Solved! |
Nice! |
Now that Swift is open source, I think we should work on making Taylor linux compatible. I put some thought into this and I believe the biggest thing stopping us is the use of Foundation - most importantly NSData. The solution I see popping up is using |
Might be old news, but I believe Foundation is working in Linux under Swift 2.2 according to Swift.org. |
With Swift being released as open source soon, are there any plans to make this project cross-platform? Specifically, Linux? I know Apple is planning on releasing a compiler for Linux. It would be awesome to have a robust Swift web framework that can run on a Linux web server.
The text was updated successfully, but these errors were encountered: