Better HN
topnewbestaskshowjobs
Log inSign up

maxdesiatov

553 karma · joined Jan 9, 2016 (10y ago) · 48 submissions

Submissions

1.

Emscripten Target Support for Swift(forums.swift.org ↗)

2 points · by maxdesiatov · 8mo ago · discuss

2.

Swift SDKs for WebAssembly now available on swift.org(forums.swift.org ↗)

6 points · by maxdesiatov · 1y ago · discuss

3.

Structured concurrency in Swift: continuations, tasks, and cancellation(desiatov.com ↗)

3 points · by maxdesiatov · 5y ago · discuss

4.

Yet another macOS privacy protections bypass(lapcatsoftware.com ↗)

320 points · by maxdesiatov · 5y ago · 90 comments

5.

First stable release of SwiftWasm 5.3 is now available(forums.swift.org ↗)

3 points · by maxdesiatov · 6y ago · discuss

6.

Interactive Swift Playground Built with WebAssembly(swiftwasm-pad.netlify.app ↗)

4 points · by maxdesiatov · 6y ago · discuss

7.

The State of Swift for WebAssembly in 2020(desiatov.com ↗)

2 points · by maxdesiatov · 6y ago · discuss

8.

Open-source implementation of Apple's Combine framework(github.com ↗)

1 points · by maxdesiatov · 7y ago · discuss

comment 7y ago · link · parent

Why not?

10.

Show HN: Tokamak – React-like framework for native UI written in pure Swift(github.com ↗)

8 points · by maxdesiatov · 7y ago · discuss

11.

Swift and React Native (and Similar Libraries/Frameworks) Survey

3 points · by maxdesiatov · 7y ago · 1 comment

comment 7y ago · link · parent

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?

comment 7y ago · link · parent

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

comment 7y ago · link · parent

And also, "it protects Swift" in their context always means "it protects Apple's Swift" unfortunately

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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?

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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 ¯\_(ツ)_/¯

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

22.

Apple is patenting Swift features(forums.swift.org ↗)

580 points · by maxdesiatov · 7y ago · 208 comments

23.

Unbreakable reference cycles in Swift no one is talking about(desiatov.com ↗)

1 points · by maxdesiatov · 7y ago · discuss

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

27.

Parsing Excel Spreadsheets with Swift's Codable Protocols(desiatov.com ↗)

103 points · by maxdesiatov · 8y ago · 30 comments

28.

Coroutines and “yield” expressions: foundation for async/await in Swift(desiatov.com ↗)

1 points · by maxdesiatov · 8y ago · discuss

29.

What are generators and why Swift needs them?(desiatov.com ↗)

2 points · by maxdesiatov · 8y ago · discuss

30.

Event loops, building smooth UIs and handling high server load(desiatov.com ↗)

2 points · by maxdesiatov · 8y ago · discuss

12