News for hackers. Stuff that matters.
Re:Shift.js: Swift to JavaScript Transpiler by mikeash on Friday November 06, 2015 @11:06PM (#10523647)
It looks like you're using built-in collection types in the resulting JavaScript without accounting for the fact that Swift collections are value types, not reference types. Do you plan to address this? There's another third-party Swift implementation out there focusing on Android which does the same thing and buries this drastic language change in the fine print, which is rather unfortunate.
Re:Shift.js: Swift to JavaScript Transpiler by Dnld on Friday November 06, 2015 @11:32PM (#10523719)
This is on the radar. The differences between the languages, especially regarding collections, are tricky. For example we're finalizing a data structure to mimic tuples that would allow value lookup by index and/or element name.
Re:Shift.js: Swift to JavaScript Transpiler by mikeash on Friday November 06, 2015 @11:34PM (#10523726)
Great! It must be pretty tricky to translate that across without destroying performance and interoperability. I just wanted to check, because the other one seemed to think it was no big deal to leave it this way.