Live data from Hacker News

Swifton: Ruby on Rails-inspired web framework for Swift

github.com

31–40 of 74 posts

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

#32
post #25
post #15

Earlier quoted context omitted.

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…

GCD is the best I've seen in terms of language design for concurrency. It's also a bit higher level than managing threads on your own. Though I might be wrong.

You probably should have a try at golang concurency management with channels, and you'll see what i mean.

GCD isn't much more than a low level job launching and scheduling library. It doesn't provide advanced patterns for resource sharing.

Concurrency goes further than parallelism, it's also a way to manage concurrent memory access (although golang does let you shoot yourself in the foot if you want to with low level mutexes as well). There's a great talk from rob pike on the subject http://blog.golang.org/concurrency-is-not-parallelism

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

#33
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…

Seivan, thanks for your gist. I also tried to make controllers more protocol oriented, but it didn't help much with nice DSL for filters. Let's keep trying, maybe something beautiful will born soon. I would love to see you Swifton fork with your experiments.

I think Ruby is both strength and weakness of Rails. From my 10 years experience with large scale and large codebase Rails projects I can say that Ruby dynamism helps in web development. But for sure it comes with really high price tag.

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

#34
post #32
post #25

Earlier quoted context omitted.

GCD is the best I've seen in terms of language design for concurrency. It's also a bit higher level than managing threads on your own. Though I might be wrong.

You probably should have a try at golang concurency management with channels, and you'll see what i mean. GCD isn't much more than a low level job launching and scheduling library. It doesn't provide advanced patterns for resource sharing. Concurrency goes further than parallelism, it's also a way to manage concurrent memory access (although golang does let you shoot yourself in the foot if you want to with low level…

Thanks for explaining and clearing things up. I'll read up.

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

#35
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.

It's fun. You don't have to get offended. It's just a silly picture. No one was harmed in it's making.

Stop wasting people's time, let them focus on productive aspects of the project.

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

#37
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,…

Swift concurrency is interesting topic for sure, looks like language isn't actually built around concurrency unlike other popular new languages these days. Interesting document here about Swift concurrency https://github.com/apple/swift/blob/master/docs/proposals/Co...

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

#39
post #35
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.

It's fun. You don't have to get offended. It's just a silly picture. No one was harmed in it's making. Stop wasting people's time, let them focus on productive aspects of the project.

I'm not offended in the slightest. Except by your misuse of the apostrophe. I agree that nobody was hurt in "it is making." Note that this is my idea of fun, and you don't have to be offended by it.

The purpose of my comment was to point out that gender charged images are going to draw attention in the tech industry, and that is worth avoiding. I made no commentary that suggested the image was not fun, or was offensive. You made those extrapolations all by yourself. Someone out there will make a very similar mistake to yours, by extrapolating a nonexistent gender message in the logo of this project.

That's where the real time wasting starts. My advice to the project maintainer is to skip all that bullshit by picking something neutral. I genuinely wish this was not the kind of stuff we have to worry about, but I have at least one friend whose industry reputation was needlessly tarnished by people who didn't see the same joke he did.

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

#40
post #36
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.

It's Taylor Swift. Come on.

Haha! I just googled her, and that picture makes sense now. Yes I'm an adult male from Texas, but I'd never heard of her before. Hell I just had someone explain to me who Beyoncé is at a Christmas party a couple months ago.

I appear to live under a rock. But anyway, clever joke. I like it.

Post reply on HN