Re: Swift JIT
Re: Swift JIT
- Subject: Re: Swift JIT
- From: Wim Lewis <email@hidden>
- Date: Wed, 04 Jun 2014 16:08:26 -0700
On 4 Jun 2014, at 1:46 PM, Jonathan Mitchell wrote:
> 1. Does Swift support JIT compilation? If so : Are playgrounds implemented via JIT? Is there a command line interpreter?
I believe Swift is a conventional precompiled language. The Swift REPL[1] is, from what I've gathered, based on lldb, which essentially has a copy of clang embedded in it (ClangUserExpression, MCJIT[2]) for evaluating expressions; presumably it compiles them into little modules and injects them into the target process. So the debugger and REPL can compile things to native code as you enter them, but a normal application is not JITted.
> 2. Does Swift support heap defragmentation like c#?
Based on the fact that it interoperates with C and ObjC the way it does, and describes its memory management as reference-counted, I'd guess it does not have a copying GC or other heap-compacting behaviors.
[1] http://stackoverflow.com/questions/24011120/how-can-i-use-swift-in-terminal
[2] http://llvm.org/docs/MCJITDesignAndImplementation.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Swift JIT (From: Jonathan Mitchell <email@hidden>) |