<div dir="ltr">great work! it looks like there is quite a lot of duplicated work going on here though which is unfortunate. how do we reconcile these 2 implementations?<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 21, 2017 at 12:16 PM, Aleksey Mashanov <span dir="ltr">&lt;<a href="mailto:aleksey.mashanov@gmail.com" target="_blank">aleksey.mashanov@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have an alternative implementation of a URI (a superset of URL). It is quite ready to use but still requires some polishing and adding of additional specific URI schemes.<br></div><div>It is designed primarily for server side usage but can be useful on a client too. The main goals of the design is correctness (according to RFC3986 and RFC7230) and efficiency.</div><div><br></div><div>You can take a look at it here: <a href="https://github.com/my-mail-ru/swift-URI" target="_blank">https://github.com/my-<wbr>mail-ru/swift-URI</a></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2017-08-21 7:38 GMT+03:00 Taylor Swift via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>Okay so a few days ago there was a <a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170814/038923.html" target="_blank">discussion</a> about getting pure swift file system support into Foundation or another core library, and in my opinion, doing this requires a total overhaul of the `<span style="font-family:monospace,monospace">URL</span>` type (which is currently little more than a wrapper for NSURL), so I’ve just started a pure Swift URL library project at &lt;<a href="https://github.com/kelvin13/url" target="_blank">https://github.com/kelvin13/u<wbr>rl</a>&gt;.<br><br></div>The library’s parsing and validation core (~1K loc pure swift) is already in place and functional; the goal is to eventually support all of the Foundation URL functionality.</div><div><br></div><div>The new `URL` type is implemented as a value type with utf8 storage backed by an array buffer. The URLs are just 56 bytes long each, so they should be able to fit into cache lines. (NSURL by comparison is over 128 bytes in size; it’s only saved by the fact that the thing is passed as a reference type.)<br></div><div><br></div>As I said, this is still really early on and not a mature library at all but everyone is invited to observe, provide feedback, or contribute!<br></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-evolution</a><br>
<br></span></blockquote></div><br></div></div>
</blockquote></div><br></div></div>