3 ms·
Interesting to see if an Express like framework comes about. Does it even make sense to write a backend http RESTful API in Swift? Wonder what the performance i
by nodesocket 11y ago
Interesting to see if an Express like framework comes about. Does it even make sense to write a backend http RESTful API in Swift? Wonder what the performance is vs node.js and go?
- huydotnet 11y agoYeah that's what I'm planning to do, I have the previous express-like framework in C++ and now I'm porting it to Swift :D
- breckinloggins 11y agoI made something in the Swift 1.0 days called "swell" that shows how this might look. https://github.com/breckinloggins/Swell https://github.com/breckinloggins/Swell It could be used as an example. In particular, the "builder" syntax that I did with a terrible TLS context hack could be replaced with autoclosures (I think). Edit: more Sinatra-like than Express-like, but the idea still stands.
- hundchenkatze 11y agoHere's one. https://github.com/PerfectlySoft/Perfect https://github.com/PerfectlySoft/Perfect Since work was started on this before Swift's open sourcing/linux support was added I doubt it compiles on linux just yet. I'm sure it'll be added though.