Live data from Hacker News

Swifton: Ruby on Rails-inspired web framework for Swift

github.com

51–60 of 74 posts

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#51
post #49
post #8

Seems to me like the real challenge in those framework (excepting performance, of course) will be in the orm component. Having a library that can query a db in a typesafe way is a must. Another will be in the concurrency patterns ( promises ? Coroutines ?, etc). But i get a great hope that they will succeed. Having a strong open source community will help. In fact, i'm so fed up with the sad state of uikit right now,…

I wonder if something like Realm.io will be adopted more widely https://realm.io/docs/swift/latest/ They seem to have adoption in some bigger companies, but I don't know if any of them are using the Swift version yet.

Last month, about 60% of our iOS users already used Swift, and the gap in favor of Swift is growing very quickly (it was 50/50 in November 2015). Some of our Swift users you’d probably expect: apps from Vimeo, Digg, Hipmunk or Misfit wearables. But in the past 1-2 months we’ve seen Swift + Realm apps from some real large companies like Cisco, the NFL, NBC Universal, GoDaddy and 7-Eleven. I hope this helps!

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#52
post #49

Earlier quoted context omitted.

I wonder if something like Realm.io will be adopted more widely https://realm.io/docs/swift/latest/ They seem to have adoption in some bigger companies, but I don't know if any of them are using the Swift version yet.

Last month, about 60% of our iOS users already used Swift, and the gap in favor of Swift is growing very quickly (it was 50/50 in November 2015). Some of our Swift users you’d probably expect: apps from Vimeo, Digg, Hipmunk or Misfit wearables. But in the past 1-2 months we’ve seen Swift + Realm apps from some real large companies like Cisco, the NFL, NBC Universal, GoDaddy and 7-Eleven. I hope this helps!

Very interesting stats. Thanks for sharing!

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#53
I am mainly a hobbyist/newbie that recently started to learn Ruby, and Ruby on Rails. While I like them both, I would prefer to just work in Swift.

How soon does HN expect a Swift-based framework that is comparable to the maturity of Rails, or other powerful frameworks for that matter? Do you think Apple might jump in and introduce one of their own?

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#54
post #15

Earlier quoted context omitted.

I wish Apple had not ditched NeXT's EOF. It would make a fine open source project these days.

I never used this framework, but everything i know from the next era is starting to show its age (including coredata, with its messed up support for multi threading access). The more i think about it, the more i think golang approach is the right one : the only hard part today is concurrency. As long as swift ( and rust for that matter) hasn't standardized patterns that people would use on the whole stack for concurr…

Rust exists in a domain where one-size-fits-all approaches to concurrency just don't work and where asynchronicity is usually irrelevant. Meanwhile Rust's type system manages to statically prevent data races without requiring Erlang-style deep copying, which is an advance to the state of the art. :)

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#55

It seems that, outside of what's used in Cocoa, the Swift language is pretty volatile right now. I would hesitate to commit to a large project that didn't involve the App Store.

My personal hope is that a lot of the long-term risk is mitigated due to IBM's partnership with Apple and alleged goals to use Swift in enterprise. Admittedly, that may not deal with the short-term risk.

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#56
post #8

Seems to me like the real challenge in those framework (excepting performance, of course) will be in the orm component. Having a library that can query a db in a typesafe way is a must. Another will be in the concurrency patterns ( promises ? Coroutines ?, etc). But i get a great hope that they will succeed. Having a strong open source community will help. In fact, i'm so fed up with the sad state of uikit right now,…

The challenge with any type safe language is interacting with the outside world -- internal consistency is easy, but figuring out how to mediate the non-typesafe outer world is always a bit of a fight. Slick is one swing at the typesafe ORM, but I'm not sure it gets it quite right.

For concurrency, I'd be very intrigued if streams were the first-class concurrency approach -- It's been interesting working with Akka Streams in Scala. They make 90% of concurrency-related things easy and 10% of things seem to be fighting leaky abstractions, but I'd be curious if they were built into the language early on as primitives whether the leaks would go away.

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#57
post #17
post #6

Earlier quoted context omitted.

Seivan, thanks. Yes, Rails "Omakase" is driving Swifton development. I'm not sure that protocols will help here, because Swifton supports before/after filter. Could you explain more your idea about how protocols could help here to implement actions with filters?

Sure, here https://gist.github.com/seivan/6b6bb19c899dd46f599e I might fork and do my own version where I try to adhere to Swifts strengths while still staying close to Rails API where I can, e.g same naming scheme and pipeline design as Rails. Rails biggest weakness is Ruby. Leveraging Swifts strengths with protocol extension, where clauses and generics could actually improve on Rails current API. Edit[0]: Added an…

Rails biggest weakness is Ruby?!?! The only reason Rails came about (so says DHH) is because of Ruby and its expressiveness as a dynamic language.

Granted, we're in Swift mode here and it's static typing, protocols, generics, and closures all the way. I'm fine with this (I write in Swift everyday) but Ruby is a great language as well - I love them both.

I think there's a place for both static and dynamic typed languages and I'm not going to throw away Ruby just because Swift is more "correct" with typing.

Having worked on my own Swift web framework for the past few months, and Rails for years, we're not even close to approaching Rails feature set. Rails has been in active development for over a decade and it's going to take a while for a Swift framework to make some inroads.

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#59
post #20

The project banner depicting a damsel in distress on the railway tracks is going to make some people twitch. I'd avoid that distraction by picking something gender neutral. My 2c.

For me this was an instant turnoff -- it's really hard for me to take a project serious if that's how they present themselves.

Good software stands on its own, and doesn't need corny jokes like this.

Re: Swifton: Ruby on Rails-inspired web framework for Swift

#60
post #20

The project banner depicting a damsel in distress on the railway tracks is going to make some people twitch. I'd avoid that distraction by picking something gender neutral. My 2c.

I don't think anyone cares about if a small minority twitches. You don't have to please everyone. In fact, you cannot.
Post reply on HN