Re:TBOX: A Multi-Platform C Library
by eps on Thursday January 28, 2016 @02:36PM
(#10990601)
Looks like a comprehensive and mature personal toolbox, which one would accumulate over years of working on C projects. Not exactly easy to reuse due to the lack of documentation and other reasons, but totally worthy of sharing nonetheless. A very interesting read.
Re:TBOX: A Multi-Platform C Library
by dang on Friday January 29, 2016 @01:38AM
(#10993854)
Please don't post shallow dismissals like this to HN. Substantive critique is welcome. For example, if you told us specifically what you noticed in the code, and what weaknesses it has and why, then we would all learn something.
Re:TBOX: A Multi-Platform C Library
by mingodad on Thursday January 28, 2016 @06:22PM
(#10992335)
I just cloned the repository build it and did some tests with asio_httpd (and found a possible memory leak/fragmentation), overall it's well designed and coded.
To build it I went to the xmake repository and through it also found this small and performant network library https://github.com/caikelun/libsvx .
Thank you for release this nice and util library !
Re:TBOX: A Multi-Platform C Library
by wyldfire on Thursday January 28, 2016 @03:29PM
(#10991039)
It's great that someone took the time to curate the list. But maybe it'd be better as one of those awesome-X style list of actual repos. With all of these libraries distributed as a mega-lib, it just seems like a bit of a junk drawer.
Re:TBOX: A Multi-Platform C Library
by onetwotree on Thursday January 28, 2016 @03:43PM
(#10991156)
I haven't taken much time to read the source, but it might be a good idea to break some pieces off into their own repos, perhaps with a required 'tbox_core' type lib.
Otherwise it's...eminently useful, and boring in a good way.
Re:TBOX: A Multi-Platform C Library
by noselasd on Thursday January 28, 2016 @03:37PM
(#10991096)
Which means you didn't really read the source code, this is not a collection of other available libraries. Boost ASIO is C++, this is a C library, they only share the name as they're both implementing async IO. Code in the libc/libm folder isn't a rip of from somewhere else.
Re:TBOX: A Multi-Platform C Library
by huhtenberg on Thursday January 28, 2016 @03:42PM
(#10991137)
Yeah, excellent.
You may want to read some code before making derogatory comments based on basic name collisions. asio doesn't imply boost, nor is there a single libm out there.
Re:TBOX: A Multi-Platform C Library
by zik on Thursday January 28, 2016 @06:32PM
(#10992380)
The library looks neat but I'm horrified that he says "optimizates"... repeatedly. That is not a word. The word is "optimizes". The English pedant in me is having trouble getting past that.
Re:TBOX: A Multi-Platform C Library
by PeCaN on Thursday January 28, 2016 @07:00PM
(#10992529)
The English section of the readme looks like it's a more-or-less literal translation of the Chinese section, so I think we can forgive a little spelling when it's clear his native language isn't English.
Re:TBOX: A Multi-Platform C Library
by eatonphil on Thursday January 28, 2016 @06:46PM
(#10992461)
Judging by the site and the readme, it makes sense to assume that English is not the author's native language... It would make more sense to judge by the quality of the universal language there (C) and not half the readme (which can be easily fixed with a PR).
Re:TBOX: A Multi-Platform C Library
by giancarlostoro on Thursday January 28, 2016 @02:31PM
(#10990559)
I appreciate the licenses folder but could you add that information to the readme as well? It's useful sometimes to gather all the information I need about a project in the "readme" at least for me, just the names of the licenses and the files they affect could work if it's not too much trouble, but even just naming the licenses works. Thank you! :)
Strange that they don't use trailing commas in aggregate initializers though.
Thank you for release this nice and util library !
And will call them if some libc functions are not supported in the current toolchain.
Otherwise it's...eminently useful, and boring in a good way.
What libs are these specifically?
That's just from reviewing front pages of github repo and official site.
You may want to read some code before making derogatory comments based on basic name collisions. asio doesn't imply boost, nor is there a single libm out there.
It's the sort of thing one inevitably ends up with after enough C development, but this looks much more complete than average.
Another rewrite of malloc() and string utils is not that useful.