News for hackers. Stuff that matters.
Re:RunSwift: Try Swift in Your Browser by jhammer on Saturday September 06, 2014 @10:22PM (#8280143)
You can execute the process under sandbox-exec to take advantage of OS X kernel-level sandboxing. You'll need to write your own profile file that allows/denys what you want. There are plenty of examples of these .sb profile files under /System/Library. More: https://developer.apple.com/library/mac/documentation/Darwin...
Re:RunSwift: Try Swift in Your Browser by jparishy on Saturday September 06, 2014 @10:26PM (#8280147)
Excellent! Thank you for pointing me to this!
Re:RunSwift: Try Swift in Your Browser by lstamour on Sunday September 07, 2014 @01:27AM (#8280415)
Good tip. Another suggestion would be to use chroot :)

That said, the best, most foolproof way of doing this really comes down to using OS X to virtualize OS X.

Or you could try cross-compiling. It seems to work here: https://github.com/swift-x/tools (which looks interesting...)

It's possible that by the end of this week, maybe next, it will be very easy indeed to compile and/or run Swift on Linux from Linux, at which point you could try LXC or a million other ways to virtualize.

Re:RunSwift: Try Swift in Your Browser by jparishy on Sunday September 07, 2014 @09:42AM (#8281094)
Thanks for the tips! I'd love to move to LXC should an appropriate/feasible compiling solution become available :)
Re:RunSwift: Try Swift in Your Browser by LinaLauneBaer on Sunday September 07, 2014 @04:21AM (#8280597)
This mechanism has been deprecated by Apple. In the header file they point out that one should use the OS X sandboxing instead which works with plists instead and can be controlled with less flexibility.
Re:RunSwift: Try Swift in Your Browser by jhammer on Sunday September 07, 2014 @12:32PM (#8281610)
Calling sandbox_init from inside your app has been deprecated in favor of the App Sandbox mechanism, but I don't see any indication that sandbox-exec is deprecated.
Re:RunSwift: Try Swift in Your Browser by jparishy on Sunday September 07, 2014 @09:38AM (#8281083)
Just deployed a new script runner backed by sandbox-exec! Thanks again for the tip!