FYI: Swift Development Environment especially works in Linux


(Jin Mingjian) #1

Hello, all in Swift server side group:) Hope not disturbing you.

FYI: I release a project[1] to enable you develop Swift in Linux more
joyful.

I know many people use excellent xcode in macOS, but there is no xcode for
Linux. So comes this project.

I also know some people are continuing to drive the progress of Swift@Linux,
like Alex(very old friend from Eclipse) in this group. So you may want to
do a quick test. (To use SDE, now you should have a Swift tool called
"sourcekitd-repl" to build). This project maybe work in macOS, but I have
no machine to test. If you like to give me some feedback, I will fix it for
you:)

Further, I watch all discusses in the group. As a veteran in backend, I
keep my own opinions. Spring like frameworks are the start, but not the
destination of Swift. In fact, Spring/Hibernate/Struct is terribly bad, and
often bump vulnerabilities to jeopardize the whole server.(After to Tesla,
Chris may pay more attentions to the security of codes and coding). Netty
is not good enough, although it leave many experiences and lessons for
latter comers.

What's the Swift to truely attract me is that it is well and careful
designed from the aspect of industry and engineering(thanks to Chris and
more). High performance will not be lost with the elegant codes for a
scalable team. We have a chance to re-define the development of
server/system engineering.

I hope all of us can embrace the Swift as a general language more. We are
doing it!

regards,
Jin

[1] https://github.com/jinmingjian/sde


(Alex Blewitt) #2

Thanks for the kind words :slight_smile:

This looks good - being able to use other editors for Linux will help move adoption forward.

Couple of minor observations:

1. The 'package describe' command isn't in Swift 3.0 at the moment, so you'll need a recent build to run it. You could infer a source directory by assuming a top level, or the Sources or src folders, and just expand all the files in there if missing.
https://github.com/jinmingjian/sde/blob/97889f2c322ba5619eca30fcfada36ab885ed74a/src/server/server.ts#L36

2. The /usr/bin/sh doesn't exist on macOS and (some) Linux installations. You should use /bin/sh instead.
https://github.com/jinmingjian/sde/blob/97889f2c322ba5619eca30fcfada36ab885ed74a/src/server/server.ts#L35

Otherwise, if you fix/work around those, it works on macOS :slight_smile:

Alex

···

On 12 Jan 2017, at 08:09, Jin Mingjian via swift-server-dev <swift-server-dev@swift.org> wrote:

Hello, all in Swift server side group:) Hope not disturbing you.

FYI: I release a project[1] to enable you develop Swift in Linux more joyful.

I know many people use excellent xcode in macOS, but there is no xcode for Linux. So comes this project.

I also know some people are continuing to drive the progress of Swift@Linux, like Alex(very old friend from Eclipse) in this group. So you may want to do a quick test. (To use SDE, now you should have a Swift tool called "sourcekitd-repl" to build). This project maybe work in macOS, but I have no machine to test. If you like to give me some feedback, I will fix it for you:)

Further, I watch all discusses in the group. As a veteran in backend, I keep my own opinions. Spring like frameworks are the start, but not the destination of Swift. In fact, Spring/Hibernate/Struct is terribly bad, and often bump vulnerabilities to jeopardize the whole server.(After to Tesla, Chris may pay more attentions to the security of codes and coding). Netty is not good enough, although it leave many experiences and lessons for latter comers.

What's the Swift to truely attract me is that it is well and careful designed from the aspect of industry and engineering(thanks to Chris and more). High performance will not be lost with the elegant codes for a scalable team. We have a chance to re-define the development of server/system engineering.

I hope all of us can embrace the Swift as a general language more. We are doing it!

regards,
Jin

[1] https://github.com/jinmingjian/sde_______________________________________________
swift-server-dev mailing list
swift-server-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-server-dev


(Jin Mingjian) #3

Alex, really thanks for your great help (to me and to the community)! let
me add a quick fix!

Jin

···

On Thu, Jan 12, 2017 at 7:04 PM, Alex Blewitt <alblue@apple.com> wrote:

Thanks for the kind words :slight_smile:

This looks good - being able to use other editors for Linux will help move
adoption forward.

Couple of minor observations:

1. The 'package describe' command isn't in Swift 3.0 at the moment, so
you'll need a recent build to run it. You could infer a source directory by
assuming a top level, or the Sources or src folders, and just expand all
the files in there if missing.
https://github.com/jinmingjian/sde/blob/97889f2c322ba5619eca30fcfada36
ab885ed74a/src/server/server.ts#L36

2. The /usr/bin/sh doesn't exist on macOS and (some) Linux installations.
You should use /bin/sh instead.
https://github.com/jinmingjian/sde/blob/97889f2c322ba5619eca30fcfada36
ab885ed74a/src/server/server.ts#L35

Otherwise, if you fix/work around those, it works on macOS :slight_smile:

Alex

On 12 Jan 2017, at 08:09, Jin Mingjian via swift-server-dev < > swift-server-dev@swift.org> wrote:

Hello, all in Swift server side group:) Hope not disturbing you.

FYI: I release a project[1] to enable you develop Swift in Linux more
joyful.

I know many people use excellent xcode in macOS, but there is no xcode for
Linux. So comes this project.

I also know some people are continuing to drive the progress of Swift@Linux,
like Alex(very old friend from Eclipse) in this group. So you may want to
do a quick test. (To use SDE, now you should have a Swift tool called
"sourcekitd-repl" to build). This project maybe work in macOS, but I have
no machine to test. If you like to give me some feedback, I will fix it for
you:)

Further, I watch all discusses in the group. As a veteran in backend, I
keep my own opinions. Spring like frameworks are the start, but not the
destination of Swift. In fact, Spring/Hibernate/Struct is terribly bad, and
often bump vulnerabilities to jeopardize the whole server.(After to Tesla,
Chris may pay more attentions to the security of codes and coding). Netty
is not good enough, although it leave many experiences and lessons for
latter comers.

What's the Swift to truely attract me is that it is well and careful
designed from the aspect of industry and engineering(thanks to Chris and
more). High performance will not be lost with the elegant codes for a
scalable team. We have a chance to re-define the development of
server/system engineering.

I hope all of us can embrace the Swift as a general language more. We are
doing it!

regards,
Jin

[1] https://github.com/jinmingjian/sde
_______________________________________________
swift-server-dev mailing list
swift-server-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-server-dev