New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating unicode versions #1
Comments
Just saw your post at https://www.reddit.com/r/Zig/comments/9u2qnu/github_gernestzunicode_port_of_go_standard/e9mqbtf which indicates this might already be on your mind? |
@daurnimator as I said on ^^ that reddit comment. We dynamically generate tables. also it is on the Line 5 in c0764bc
We can easily update to new versions of unicode any time. The only reason the script is not here is it is written in Go so I didn't want to pollute the repo, since I was hopping to port it to zig one day. For now we are using unicode Do you have special need for This is the tool/script that is doing what you said https://github.com/gernest/matrix/blob/master/script/make_tables.go . And this library is using it to generate the |
Actually I need Unicode 3.2.0 to implement XMPP's |
so the unicode versions are not backward compatible? |
Correct. Every upgrade will have the potential to break libraries/applications.
No hurry, I have weeks until I actually need it.
If you implement the parsing in zig then we get support for all versions! |
It will take time before I port the script(It is super low in priority list) , so I will appreciate if you take a stab at it. I will always be around If there is anything you need to know to help with porting. |
FWIW I started playing around with it at https://github.com/daurnimator/zig-unicode but ran into some issues. I asked in the zig irc channel and got this reply from @andrewrk:
So I guess I'll put this project on hold for a while. |
@daurnimator Maybe I misunderstood your concerns, is there something else that this lib is lacking or not doing right? You will still need to generate the tables/symbols and doing it at runtime is just not cool(expensive etc). I mean I get it when you said you wanted to use older versions of unicode, which I believe is possible ( just generate the I kinda worked hard on this, so any feedback that will help me improve it is highly appreciated. That way I can see if we can add/resolve the issue and I can feel much better about myself(yeah, just don't wanna be be the guy who build stuff that no one never uses) |
I mainly wanted a place to play with writing my own table code in zig. I attempted to do it with zunicode but it got in the way more than it helped, so I started fresh.
A few misc things:
|
Thanks for the feedback
I see, table generation is completely handled by go, I think I already said this before. The limitation isn't on zunicode but zig, else I would have ported it to zig already.
Remember that this is a direct port of golang unicode std lib. I'm not a domain expert in unicode and I'm also not a zig expert too. From my reddit post you linked I was calling for help to improve. I really don't mind using Note that I also had to port the test suite to ensure I was achieving correct behaviour .
Me neither, I took it from Go, and it works. I will ditch it in a heartbeat if there is another way.
Maybe naming? There is |
I think this will work?
|
add native support for Zigmod package manager
Unicode is not a static standard, as such the tables need to be outdated from time to time.
However for compatability, you sometimes need to use a specfic version of unicode for a given function.
One thing I've been thinking about with Zig is if we could have a function that parses the official unicode tables (https://www.unicode.org/Public/11.0.0/ucd/).
Most people would use it at compile time, but if it could be used at run-time too then we have a very powerful tool!
I've been thinking about writing such a tool/library myself, but I just found your repository and thought it would be a bad idea to duplicate work/have competing libraries.
The text was updated successfully, but these errors were encountered: