• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Swift JIT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift JIT


  • Subject: Re: Swift JIT
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 04 Jun 2014 16:39:15 -0700


On Jun 4, 2014, at 4:08 PM, Wim Lewis <email@hidden> wrote:

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. 

It’s using malloc, just like Objective-C and CF. It has to, in order to be compatible with them.

For the most part, you can think of Swift objects as being Objective-C objects. They’re allocated by malloc, they start with an ‘isa’ pointer that points to Obj-C compatible class data, etc. (I just got out of the very informative “Swift Interoperability” talk at WWDC. I highly recommend watching the video whenever it becomes available.)

—Jens
 _______________________________________________
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>)
 >Re: Swift JIT (From: Wim Lewis <email@hidden>)

  • Prev by Date: Re: Swift question
  • Next by Date: Re: Some non-obvious Swift goodies
  • Previous by thread: Re: Swift JIT
  • Next by thread: Re: Swift JIT
  • Index(es):
    • Date
    • Thread