Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
waruqi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
waruqi
8y ago
C89 cannot mix variable declarations and code. printf("Hello World!\n"); int x = 7; printf("%d!\n", x); return 0; This is a very serious restriction for me.
62.
▲
by
waruqi
8y ago
There are some tests in the demo ( https://github.com/tboox/tbox/tree/master/src/demo ), but I still don't have time to write complete test cases. I'm sorry.
63.
▲
by
waruqi
8y ago
Yes.
64.
▲
by
waruqi
8y ago
I haven't got this plan yet., but the tbox has a lightweight and compact libc implementation built in. The interface name looks like this: tb_snprintf, tb_strlcpy, ... You can see https://github.com/tboox/tbox/
65.
▲
by
waruqi
8y ago
C89 is too old, too many grammar restrictions. And now the mainstream compiler basically supports c99.
66.
▲
by
waruqi
8y ago
Oh, got it, I will modify headers. Thanks.
67.
▲
by
waruqi
8y ago
Yes.
68.
▲
by
waruqi
8y ago
That is the standard library, TBOX is just a third-party library, providing some easy-to-use cross-platform modules.
69.
▲
by
waruqi
8y ago
c99
70.
▲
by
waruqi
8y ago
Their own account, only one.
71.
▲
by
waruqi
8y ago
No, some simple comments from some of my colleagues and friends were identified as bot comments. I'm sorry.
72.
▲
by
waruqi
8y ago
Ok, Now the title has been modified, maybe the previous title is not reasonable.
73.
▲
by
waruqi
8y ago
Yes, I agree.
74.
▲
by
waruqi
8y ago
I just used the Apache license.
75.
▲
by
waruqi
8y ago
I don't want to have any third-party library dependencies.
76.
▲
by
waruqi
8y ago
There is no support for u_128 yet, but I can consider it.
77.
▲
by
waruqi
8y ago
The rust/C++ syntax is too complicated, I don't like it.
78.
▲
by
waruqi
8y ago
Provides stream, container, iterator, algorithm, coroutine, database .. modules. And we use xmake to build it.
79.
▲
Tbox: A GLib-like cross-platform C library
(github.com)
152 points
by
waruqi
8y ago
|
64 comments
80.
▲
by
waruqi
8y ago
Great!
81.
▲
by
waruqi
8y ago
You can try clion/idea plugin for xmake. https://github.com/xmake-io/xmake-idea
82.
▲
by
waruqi
8y ago
thanks!
83.
▲
by
waruqi
8y ago
We can see an example about xmake.lua https://github.com/tboox/tbox/blob/master/src/tbox/xmake.lua
84.
▲
by
waruqi
8y ago
Thank you very much for your support.
85.
▲
by
waruqi
8y ago
Yes, I agree very much.
86.
▲
by
waruqi
8y ago
Xmake can only simplify the maintenance management of dependencies, improve the usability and maintainability, but can not fully realize the way you say
87.
▲
by
waruqi
8y ago
But it still depends on third-party IDE or build tools. It will be limited by their own features. There are still many differences in the behavior of different IDEs.
88.
▲
by
waruqi
8y ago
xmake also support conan, and vcpkg/brew
89.
▲
by
waruqi
8y ago
Xmake will be better, you can try it.
90.
▲
by
waruqi
8y ago
Support cross-build, but you need install mingw for linux, if you want to build win32 program on linux. You can see https://xmake.io/#/home?id=cross-compilation and https://xmake.io/#/home?id=mingw
More ›