Swift4JVM-Reference

所属分类:hotest
开发工具:Others
文件大小:0KB
下载次数:0
上传日期:2019-03-15 19:11:18
上 传 者sh-1993
说明:  一个旨在将苹果Swift编程语言的语法和语义引入Java虚拟机的项目。
(A project that aims to bring the syntax and semantics of Apple s Swift programming language to the Java Virtual Machine.)

文件列表:
SUMMARY.md (645, 2019-03-15)
swift-to-java-translations/ (0, 2019-03-15)
swift-to-java-translations/attributes.md (657, 2019-03-15)
swift-to-java-translations/declarations.md (2648, 2019-03-15)
swift-to-java-translations/expressions.md (16324, 2019-03-15)
swift-to-java-translations/generic-parameters-and-arguments.md (1779, 2019-03-15)
swift-to-java-translations/lexical-structure.md (2180, 2019-03-15)
swift-to-java-translations/patterns.md (295, 2019-03-15)
swift-to-java-translations/statements.md (5062, 2019-03-15)
swift-to-java-translations/types.md (4772, 2019-03-15)

# Swift on the JVM **Swift on the JVM**, _swift4jvm_ for short, is a project that aims to bring the syntax and semantics of Apple's Swift programming language to the Java Virtual Machine. The project consists of two parts: 1. A JVM-compatible implementation of the Swift **Standard Library**, which aims to mimic semantics exactly yet perform as fast as native Java using wrapperless mappings. 2. The Swift to JVM Bytecode **Compiler**, a tool that generates JVM-loadable `.class` files from `.swift`sources, and supports seemless bindings for existing Java libraries into Swift sources. This reference book consists of three chapters, each of which will guide in the implementation of the above parts. 1. [Swift to Java Translations](https://github.com/swift4jvm/Swift4JVM-Reference/blob/master/swift-to-java-translations/) This chapter defines the various mappings for Swift language constructs to equivalent Java code. These translations are meant to roughly represent the transformations done by the compiler. It covers all syntactic elements defined in the [Swift Language Reference](https://github.com/swift4jvm/Swift4JVM-Reference/blob/master/https://docs.swift.org/swift-book/ReferenceManual/AboutTheLanguageReference.html), in order of occurrence to allow a side-by-side comparison. 2. Java to Swift Translations To allow the use of Java libraries and APIs in Swift source files, the compiler needs to know how to reconstruct Swift APIs from classes, fields, methods, and other declarative Java constructs defined as bytecode. It is not a goal of the chapter to define a complete decompiler, as method body level constructs like statements and expressions do not need to be translated. 3. Standard Library Implementation The JVM implementation of the Swift Standard Library needs to be defined in terms of class mappings, method implementations, boundaries as imposed by the target platform, and performance requirements. The third chapter covers these questions.

近期下载者

相关文件


收藏者