5 ms·
Fantastic, would love to use it, but, it needs a license.
by synergy20 5y ago
Fantastic, would love to use it, but, it needs a license.
- willcipriano 5y agoSame 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 https://github.com/willcipriano/Connery
- UncleEntity 5y agoI used https://github.com/kumkee/utf8 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.
- latenightcoding 5y agohave you looked into sds: https://github.com/antirez/sds/ https://github.com/antirez/sds/
- bitbckt 5y agoHave you read the parent comment?
- latenightcoding 5y agoso used to just calling it sds. it took me a second . my bad homes
- alcover 5y ago(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 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.*
- alcover 5y ago(author here) Thank you. The license will come but I have a harder time understanding them than pointers haha.
- formerly_proven 5y agoFor a utility library like this BSD 2 clause or MIT (they're essentially the same) would probably be the most common choice.
- 4gotunameagain 5y agoIf 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
- alcover 5y agoWhen its mature, would you object to dual GPL+commercial ?