-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add Zig #136
Comments
Is Zig pretty stable now? It'll be a pain to keep up if it makes breaking changes frequently. Is the output of |
This comment was marked as resolved.
This comment was marked as resolved.
ziglang/zig#6621 was added recently. It should allow us to run
|
Tested on |
@k0tran Thanks for trying. |
@kazk the main problem with current test runner implementation (repo) is that |
FIY: #14152 makes using non-standard pipes okayish to use, which enables to refactor the test runner for the desired properties (using stdout, stderr for whatever you want). Before that it was extremely clunky. |
Would love to see Zig getting added to the list of coding languages in Code Wars, really looking forward to learning it. And it's pretty stable now, come on, the bun runtime is written in it. |
More personal opinion: Due to fundamental platform limitations of Unix (clone leaks file descriptor if done in parallel), the unit test runner and build design is unlikely to be changed or Zig would need a full mutex on every clone opting into slowness instead of performance. @kazk What is needed besides the message output?
What is the log stuff supposed to be used for? Are writes to stdout or stderr supposed to be logged or all file descriptors? I can write a test_runner, if I have more concrete instructions for adding language support. However, I'm not interested in adding the docker parts. |
@matu3ba I've updated my prototype version (k0tran/codewars_zrunner) to zig 0.11.0. You can use it as starting template or suggest changes. Here's few things about my implementation:
Now I'll explain why test runner is not complete. The main reason is that all testing functions use One of possible solutions is to integrate So basically test runner works, but cannot properly output information about test failures. |
If there is a problem with std.testing, couldnt we just use the C testing framework used by codewars to call the zig functions and use the zig compiler for building and linking the .zig / .c files together? |
Please complete the following information about the language:
The following are optional, but will help us add the language:
👍 reaction might help to get this request prioritized.
The text was updated successfully, but these errors were encountered: