Hi -
I’ve been following Swift’s evolution in the swift-evolution mailing list. As it exists today on the server is still lacking some key features needed to implement key-value-coding.
There is a MIrror class that allows you to see the property names of a class (or even a struct) and get the value of each property. But it only works for properties. It does not work for methods in your objects. In addition, it is read-only, i.e. you can get the values but you cannot set properties.
Hopefully by Swift 4 or 5 those features will arrive. But they are not there in Swift 3.
On Apple platforms they are able to use CoreData because they are leveraging Objective-C run-time. However, the Objective-C run-time is not available on the server.
Ricardo Parada
On Jun 15, 2016, at 3:50 PM, Yuri Kondratov < email@hidden> wrote:
I'm just hoping maybe apple will hint at a server side framework written in swift they will be releasing to the public :) On Jun 15, 2016, at 1:06 PM, Flavio Donadio < email@hidden> wrote: Yuri,
I can’t say much right now, as the video is not available. And, even after I watch the video, I may still be unable to add anything to this conversation, as my knowledge lack a lot. :D
From what I understand, one could write server-side applications in any language. For web apps, it’s necessary to integrate said language with an HTTP server — through CGI, Apache module or whatever. Apache is pretty much standard. I tend to think “mod_swift.so” would be the best solution now...
Still, for something like WebObjects to be “ported” over to Swift, there’s a lot to be done. The Enterprise Objects Framework is what makes it so nice and easy to write WO apps and it is, by far, the larger part of the code base. And then there’s wotaskd, the database connectors…
I am sure I am missing something, but I don’t see where a programming language would help us. Even if it is incredibly better than Java, which is a whole different conversation, with very different opinions, I am sure. ;)
Still, hope springs eternal.
Cheers, Flavio
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|