Skip to content
#

Zig

zig logo

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. Focus on debugging your application rather than debugging your programming language knowledge. There is no hidden control flow, no hidden memory allocations, no preprocessor, and no macros.

Here are 574 public repositories matching this topic...

alexnask
alexnask commented May 7, 2020

Sooner or later we will need to add tests to check for regressions.

I propose the following three kinds of tests:

  • Function unit tests (mainly for the parsing functions)
  • I/O testing: simulate a client sending requests from a different process and check the responses are correct
  • Internal state testing: simulate a client sending requests from a different process and check our intern
DrDeano
DrDeano commented May 5, 2021

Currently when creating the FAT32 and MBR boot sectors, a stub x86 boot code is used to say that the image is non bootable.
The current x86 version (with the asm code) can be found in the kernel/arch/common.

There needs to be an ARM version.
All the code will need to do it print to the screen saying the image in not bootable and be a valid boot sector.

ehaas
ehaas commented Nov 29, 2021

An __extension__ keyword not followed by any other tokens will crash, e.g. a file that just contains __extension__

thread 26702182 panic: index out of bounds
/Users/ehaas/source/arocc/src/Parser.zig:169:18: 0x108f30147 in Parser.eatToken (arocc)
    if (p.tok_ids[p.tok_i] == id) {
                 ^
/Users/ehaas/source/arocc/src/Parser.zig:595:22: 0x108f1abf8 in Parser.parse (arocc

Created by Andrew Kelley

Released February 2016

Repository
ziglang/zig
Website
ziglang.org
Wikipedia
Wikipedia