HNHacker News
TopNewBestAskShowJobs

maxdesiatov

553 karma · joined January 9, 2016

submissionscomments
maxdesiatov··on SwiftWasm: Run Swift in Browsers
Why not?
maxdesiatov··on Apple is patenting Swift features
Sorry, I'm not sure I understand this point. Why would I need a different license for this from scratch implementation? What if I want Apache 2.0 as well?

Also, I'm convinced that many many people do have interest in this. Many people were interested in GCC existing in parallel with whatever other compilers were available. Heck, Chris Lattner's Clang wouldn't exist if C and C++ were "protected with patents from patent trolls". Are you saying that all these alternative compilers were a total waste of time?

maxdesiatov··on Apple is patenting Swift features
but what about reimplementing a compiler from scratch without reusing any of Apple's code? It wouldn't fall under a definition of Derivative Work under terms of Apache 2.0 then
maxdesiatov··on Apple is patenting Swift features
And also, "it protects Swift" in their context always means "it protects Apple's Swift" unfortunately
maxdesiatov··on Apple is patenting Swift features
Exactly this, thank you for summarizing this so well! I've tried to clarify this exact point at Swift Forums, but I haven't seen even a clarifying answer from anyone in the core team on this point. Everyone says "it protects Swift", but looks like this protection comes at a cost of the overall ecosystem.
maxdesiatov··on Apple is patenting Swift features
Including from suits from Apple itself for using concepts of Swift elsewhere in projects that were developed from scratch, not forked from Apple's projects, right?
maxdesiatov··on Apple is patenting Swift features
From what we see, software patents have caused more harm than good, but would be great if there were enough concrete public examples listed somewhere that prove otherwise.
maxdesiatov··on Apple is patenting Swift features
ok, does it mean that if you implement only parts of the patent (say only a single feature) there's no infringement because then it doesn't "fit the language of the claims"?

Also, "using Swift" isn't in the claims ¯\_(ツ)_/¯

maxdesiatov··on Apple is patenting Swift features
Could you please provide an example? From what specifically have any patents protected users of an open source product? I know plenty of examples when patents were used to harm the users, the most notorious one being Oracle and Java. But I don't remember a single case where users of an open source product were protected from anything with a patent owned by a big for-profit company, would be happy to know a concrete example that shows that this protection outweighs the risk of a company harming open source users.
maxdesiatov··on Apple is patenting Swift features
Could you please elaborate on this? Is there any direct confirmation of this? There wasn't any single answer from anyone affiliated with the Swift core team on this specific point. Or from any lawyer for that matter.
maxdesiatov··on Apple is patenting Swift features
The biggest question here is whether this means they lose the patents when they sue something that's not covered by Derivative Works as defined in Apache 2.0?

Looks like an implementation of a compiler not from Apple (that is, not a fork, or one that diverged too much from the original) or different languages that overlap with the patent would be infringing even if they used Apache 2.0 as well.

maxdesiatov··on Parsing Excel Spreadsheets with Swift's Codable Protocols
The main reason for that is lack of hygienic macros in Swift. Currently you can use code generation tools like Sourcery and SwiftGen, but I expect 1st-class meta-programming support to come after Swift 5.0 release. After ABI stability I imagine macros are pretty high on the priority list of the core team.
maxdesiatov··on Parsing Excel Spreadsheets with Swift's Codable Protocols
Except that in Objective-C it's a runtime feature, which is by definition slower. Swift's Codable implementation is generated by the compiler or is hand-written with an obvious benefit of a stronger type system.
maxdesiatov··on Parsing Excel Spreadsheets with Swift's Codable Protocols
I appreciate such detailed feedback, thank you! Parsing of workbook.xml is implemented in the library itself in `parseWorksheetPaths` function I mentioned it briefly in the article, but decided to omit it as main focus was on Codable protocols.

I will definitely update the "s" attribute parsing to have a more sensible name. Will also link to the standard from the README file, although not sure that will help with a document of this size.

maxdesiatov··on Is Apple Using Swift?
The fact that I'm writing Swift apps, releasing them to App Store and testing those apps on iPhone 5/4s and having zero problems with that?
maxdesiatov··on Is Apple Using Swift?
You can just alt-click on the variable in Xcode and see the inferred variable type instantly, no matter what the type is or where the variable is declared. No need to search. You can't do this in Objective-C.
maxdesiatov··on Is Apple Using Swift?
So how do Swift apps work on 32-bit hardware like iPhone 5/4s if there is no 32-bit runtime?