Hacker News new | ask | show | jobs
by synergy20 1567 days ago
Fantastic, would love to use it, but, it needs a license.
2 comments

Same here, I need something like this for my Lisp interpreter. I was thinking about Simple Dynamic Strings but I like this better.

https://github.com/willcipriano/Connery

(author here)

> I was thinking about Simple Dynamic Strings but I like this better.

Oh! here's my chance to plug https://github.com/alcover/stricks ! It follows the same principle as SDS (i.e user-facing type is char*) but is much faster (see bench) and frankly nicer to read through.

Not as feature complete, though.*

I used https://github.com/kumkee/utf8 (along with a bit of hacking) in my toy scheme interpreter to get Unicode strings.

Had to adapt some script I found to generate character class lookup functions to make it fully work IIRC and still need to plug-in some sort of copy on write mechanism since the strings are managed in a shared buffer but other than that it works pretty well…if you’re into the unicorn strings that is.

have you looked into sds: https://github.com/antirez/sds/
Have you read the parent comment?
so used to just calling it sds. it took me a second . my bad homes
(author here)

Thank you. The license will come but I have a harder time understanding them than pointers haha.

For a utility library like this BSD 2 clause or MIT (they're essentially the same) would probably be the most common choice.
If you want others to make money from your code: MIT, BSD

If you want to use it as an offering to the open source community: GPL

When its mature, would you object to dual GPL+commercial ?