[Cuis-dev] New package: Cuis-Smalltalk-URI
Eric Sessoms
coder5506 at pobox.com
Tue Jan 7 13:25:55 PST 2025
On Tue, Jan 7, 2025, at 1:04 PM, Mariano Montone via Cuis-dev wrote:
> Is this the only library available for URIs?
There's the old https://github.com/Phantasus/Cuis-Smalltalk-URI-Kernel which AFAIK hasn't worked in a few years. It's heavyweight, depending on OMeta2 for parsing, but appears to have been otherwise correct (i.e., assuming it passed all its tests).
And there's also https://github.com/coder5506/Cuis-Smalltalk-URI which I literally just slapped on Github about 5 minutes ago. (I wasn't planning to publish it anytime soon and have just been using it in my private work.)
Anyway, hi! I'm new here, been lurking since about October.
As Oliver says, his URI package is focused mainly on creating URIs. The parsing is a bit too simplistic, and unfortunately crashes on a lot of valid URIs (e.g., mailto:someone at example.com). No fault there, it's v1 and parsing isn't his primary concern.
My package has more complete and more robust parsing (everything except for IPv6 addresses, which I haven't needed), more tests, and full support for normalization. OTOH I've written no user documentation. Also, it was some of my first Smalltalk code, and it shows.
Oliver, if you're interested, maybe we could work off-list to combine the two? Between the both of us we might be able to produce a complete URI package for inclusion in base. I figure if everybody is writing their own, it's something that's actually needed.
Eric
More information about the Cuis-dev
mailing list