Live data from Hacker News

Vapor: a type-safe web framework for Swift

github.com

61–70 of 76 posts

Re: Vapor: a type-safe web framework for Swift

#62
post #2

The JSON response trick is just the right amount of magic. I'm eager to make Swift my new web dev language and this looks like a very promising option if they continue to maintain that balance.

Honest question: what's the appeal of Swift outside of iOS/OSX development? I can understand the need for an Objective-C replacement, but after more than two decades of evolution, web dev doesn't lack of good and modern languages running on top of very performant and mature platforms, with rich ecosystems. Swift brings absolutely nothing to the table.

Re: Vapor: a type-safe web framework for Swift

#63
post #6

Oh dear. Already a 2nd web framework in Swift. Are we about to have a cambrian explosion of Swift web frameworks, ensuring obscurity for all?

This is a new one:

https://github.com/necolt/swifton (A Ruby on Rails inspired Web Framework for Swift that runs on Linux and OS X)

Re: Vapor: a type-safe web framework for Swift

#64

Earlier quoted context omitted.

Try to build a mobile app with Go.

You can build a mobile app in Go, for both Android and iOS. https://godoc.org/golang.org/x/mobile

I didn't say you can't do it. I said, try to do it. The phrase "general purpose" must be stretched considerably in such a case.

Re: Vapor: a type-safe web framework for Swift

#66
post #47

Earlier quoted context omitted.

> Go is not general purpose Can you explain?

There is no arguing with Turing equivalence of Go and most other languages but there are practical limitations which prevent more complete general purposeness. I like Go since the beginning. However, Go cannot be easily used for kernel development, soft or hard real-time or embedded systems (no linker script support and porting runtime is weighty) and there are few transpilers. Rust is slightly better, because PoC ke…

Pointers please to someone working on a kernel in Swift... :)

Re: Vapor: a type-safe web framework for Swift

#67

How is this "insanely fast"? Running an example main with the route '/' mapped to return "Hello World" ab -n 10000 http://127.0.0.1:8080/ I get 1400 requests/s in debug mode and 1900 requests/s in release mode. With wrk, I actually get between 3000-4000 requests/s with default parameters. Most of the time. Sometimes it just hangs. Trying to increase the number of requests with the -r parameter made the hangs consiste…

At least the insanely fast speed of Vapor also goes well on the client side with Vapor.JS, the world's smallest and fastest JavaScript library: https://github.com/madrobby/vapor.js/tree/master

I prefer VanillaJS: http://vanilla-js.com/

Re: Vapor: a type-safe web framework for Swift

#68
post #48

Earlier quoted context omitted.

How is Go not general purpose?

Try to build a mobile app with Go.

How are you then defining general-purpose?

I'd say a language is general-purpose when it has not been tailored to a specific scenario or area of problems, but to work well for most. Isn't that, to a great extent, true for go?

Re: Vapor: a type-safe web framework for Swift

#69

Earlier quoted context omitted.

You can build a mobile app in Go, for both Android and iOS. https://godoc.org/golang.org/x/mobile

I didn't say you can't do it. I said, try to do it. The phrase "general purpose" must be stretched considerably in such a case.

Is there a language you _do_ consider "general purpose"?

Re: Vapor: a type-safe web framework for Swift

#70

Earlier quoted context omitted.

I didn't say you can't do it. I said, try to do it. The phrase "general purpose" must be stretched considerably in such a case.

Is there a language you _do_ consider "general purpose"?

Yes. More than one, actually.
Post reply on HN