News for hackers. Stuff that matters.
Re:Show HN: Autocompletion for Swift on Emacs by mattdeboard on Sunday December 06, 2015 @06:39PM (#10687227)
So I've been using emacs as long as I've been programming (about 6 years) but I don't understand what you get out of using Emacs for Swift over xcode. The "I" in "IDE" for xcode is extremely strong. Seems like you're giving up a lot of tooling for.. what?
Re:Show HN: Autocompletion for Swift on Emacs by logicchains on Sunday December 06, 2015 @08:55PM (#10687651)
Really great text editing support via Evil mode.
Re:Show HN: Autocompletion for Swift on Emacs by st3fan on Sunday December 06, 2015 @08:08PM (#10687522)
Well not for completion anymore :-)
Re:Show HN: Autocompletion for Swift on Emacs by Scarbutt on Sunday December 06, 2015 @08:54PM (#10687649)
For linux.
Re:Show HN: Autocompletion for Swift on Emacs by iamjson on Sunday December 06, 2015 @09:35PM (#10687754)
Here is an interesting talk on reverse engineering something very similar: https://realm.io/news/jp-simard-reverse-engineering-code-com...
Re:Show HN: Autocompletion for Swift on Emacs by nathankot on Sunday December 06, 2015 @09:57PM (#10687791)
Yup! This is exactly what powers company-sourcekit so huge props to jpsim for making this possible
Re:Show HN: Autocompletion for Swift on Emacs by clumsysmurf on Sunday December 06, 2015 @01:45PM (#10686086)
Would be amazing if Apple did something like OmniSharp (or OmniSwift) so great Swift experience would be easier in Atom, Emacs, Sublime ... even VS Code.
Re:Show HN: Autocompletion for Swift on Emacs by pzone on Sunday December 06, 2015 @02:50PM (#10686326)
Looks like Apple provides something called "SourceKit" which is kind of like Clang's LibTooling, and "SourceKitten" is an open source wrapper providing something comparable to OmniSharp.
Re:Show HN: Autocompletion for Swift on Emacs by wiremine on Sunday December 06, 2015 @02:23PM (#10686228)
It's open source now... seems like a reasonable project for the community to pick up. (Not to say Apple shouldn't do it, but I don't see them doing it with Xcode being their default IDE)
Re:Show HN: Autocompletion for Swift on Emacs by clumsysmurf on Sunday December 06, 2015 @02:31PM (#10686251)
If Federighi wants Swift to be pervasive (scripting, mobile, cloud, desktop) it would make sense to integrate with tools commonly used with operating systems deployed in the datacenter / cloud.
Re:Show HN: Autocompletion for Swift on Emacs by fredsir on Sunday December 06, 2015 @02:36PM (#10686268)
Just give me proper Vim support in XCode and I'm happy. For now.
Re:Show HN: Autocompletion for Swift on Emacs by ldong on Sunday December 06, 2015 @05:05PM (#10686868)
xvim
Re:Show HN: Autocompletion for Swift on Emacs by fredsir on Sunday December 06, 2015 @05:16PM (#10686913)
It's not proper though.
Re:Show HN: Autocompletion for Swift on Emacs by bsaul on Sunday December 06, 2015 @12:54PM (#10685910)
i'm currently trying to find the correct setup for server side swift development on my mac, and so far it involves a shared folder between my linux vm for compilation and xcode for file editing (i hate ubuntu client interface with a passion, so i only ssh into the vm via a terminal to type compile and run the binary).

what's your setup ?

Re:Show HN: Autocompletion for Swift on Emacs by pzone on Sunday December 06, 2015 @02:43PM (#10686294)
Not the OP, but my own emacs development MO is to run a persistent shell buffer and bind F8/F9 to send make/run commands. I think that would work with your use case.

You'd still keep a synced code folder since you have to run the swift completion daemon on your local machine.

Re:Show HN: Autocompletion for Swift on Emacs by st3fan on Sunday December 06, 2015 @08:07PM (#10687520)
This is fantastic. Please keep hacking on it. Please make it work with op source swift.