Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4547

Finish the conversion to native swift (LANGUAGES.md, cross test)

    XMLWordPrintableJSON

Details

    • Story
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.18.0
    • Swift - Library
    • None

    Description

      Support for Swift-3 was added in THRIFT-3773, however this work needs to be completed.

      Are there breaking changes?

      No/Yes? The compiler is written to allow for the Old Cocoa/Swift with a compiler flag, so anyone still using swift 1 or 2 should still be able to use the Cocoa style generator but will have to use a compiler flag

      Are they documented?

      I don't believe thats documented anywhere

      Is it already running in the cross test or is that future work?

      No tests written for this, that is future work

      Can this be exercised in the Travis CI build environment? (make check, make cross?)

      Should be exercisable in Travis though no tests currently

      Can I add swift support to Ubuntu Xenial and Artful?

      I'm not sure where the Swift compiler support for Xenial and Artful currently is, but should be available.

      What minimum and maximum versions are known supported?

      Given backwards compatibility with Cocoa/Swift generator this should work with all Swift versions v1 through v4 (for Swift 1 and 2, the Cocoa library which is Obj-C is required along with the cocoa flag when generating code, for Swift 3+ the dedicated Swift library is required)

      Has the LANGUAGES.md file been updated?

      LANGUAGES.md has not been updated

      Has the build/docker/README.md file been updated?

      build/docker/README.md have not been updated

      Is this supposed to replace the cocoa implementation? Should that be removed?

      The cocoa implementation is separate from this implementation. The Cocoa compiler/libraries exist for Obj-C, and Swift 1 & 2, whereas Swift 3+ operate independently without Cocoa (as Swift 3 and up can run on Linux without Obj-C runtime/libraries). That being said the old Swift/Cocoa compiler is "gone/removed" and there is "only 1 Swift compiler" given the old Swift/Cocoa compiler is integrated in this as a compiler flag

      Attachments

        Issue Links

          Activity

            People

              kinoroy Kino
              jking3 James E. King III
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m