profile
viewpoint

tiehuis/2048-cli 170

The game 2048 for your Linux terminal (https://github.com/gabrielecirulli/2048)

tiehuis/libhcs 20

A partially Homomorphic C library.

tiehuis/HeborisC7EX 11

A high speed puzzle action game

tiehuis/faststack 8

If you want to stack blocks kind of quick

tiehuis/Football-Fumble 4

Android game

tiehuis/ansiz 3

ansi escape code library for zig

tiehuis/euler 3

Solutions for

tiehuis/chrono 1

Timing library in C

tiehuis/dotfiles 1

Dotfiles

issue commenttiehuis/zig-rosetta

Command-line argument parsing example does not compile

Most of the code here is targeting a much older zig version. I imagine most examples will need to be scoured through and changed to fit. I will probably hold off until things stabilize more since I personally unfortunately don't have the time to keep these up to date right now.

djmattyg007

comment created time in 2 days

push eventtiehuis/tiehuis.github.io

Marc Tiehuis

commit sha 38b0fd58a2954709a4a1c916e6b9e09144059419

regen html for previous commit

view details

push time in 2 days

push eventtiehuis/tiehuis.github.io

Anthon van der Neut

commit sha 67a5b05434083edef5e6d7e40bf119a493a1f157

fix typo: pefomance Didn't update the HTML, assume that is (re)generated

view details

Marc Tiehuis

commit sha 397e79386dc6c40f4e42fe1b057bb304bd7b104e

Merge pull request #2 from AvdN/patch-1 fix typo: pefomance

view details

push time in 2 days

PR merged tiehuis/tiehuis.github.io

fix typo: pefomance

Didn't update the HTML, assume that is (re)generated

+1 -1

0 comment

1 changed file

AvdN

pr closed time in 2 days

pull request commenttiehuis/zig-regex

Fix shouldVisit logic for backtracking VM

Thanks for the fix. Sorry for the delay in merging.

LemonBoy

comment created time in 2 days

push eventtiehuis/zig-regex

LemonBoy

commit sha 00b3838bd07d0aa273a0b41924686f56b7b9569a

Fix shouldVisit logic for backtracking VM The visited bitset has a bit for every instruction and every input position, the correct formula to find the correct slot is input_position * total_instructions + current_instruction Fixes #5

view details

LemonBoy

commit sha 47984db3ae0654b05561165eb563d5360d212f1b

Uncomment two more tests that are now fixed

view details

Marc Tiehuis

commit sha ded13665f0d0cb880a9741f29a023089a406df7b

Merge pull request #9 from LemonBoy/fix-5 Fix shouldVisit logic for backtracking VM

view details

push time in 2 days

PR merged tiehuis/zig-regex

Fix shouldVisit logic for backtracking VM

The visited bitset has a bit for every instruction and every input position, the correct formula to find the correct slot is

input_position * total_instructions + current_instruction

Fixes #5

+6 -5

1 comment

2 changed files

LemonBoy

pr closed time in 2 days

issue closedtiehuis/zig-regex

Incorrect match results

Example to reproduce:

const std = @import("std");

const regex = @import("zig-regex/src/regex.zig");

pub fn main() !void {
    var gpa = std.heap.GeneralPurposeAllocator(.{}){};
    const allocator = &gpa.allocator;
    var re = try regex.Regex.compile(allocator, ".*emacs.*");

    std.debug.print("{}\n", .{try re.match("emacs-packages.nix")});
}

Output:

false

I'll try to look into what is causing this issue.

closed time in 2 days

joachimschmidt557

issue commentziglang/zig

Ugliness in "Async Function Example"

There are three different forms of an if statement which change what the type passed to if is expected as: https://ziglang.org/documentation/master/#if

// No capture on either, a is boolean
if (a) {
} else {
}
// Capture on first, a is an optional
if (a) |value| {
} else {
}
// Capture on first and second, a is an error union
if (a) |value| {
} else |err| {
}

I suppose a broader question/proposal here would be whether there is merit in inferring the type of a, instead of relying on the structure of the if clause. This would allow errors to be unwrapped without an else clause with capture.

subylan

comment created time in 2 months

push eventtiehuis/zig-regex

joachimschmidt557

commit sha fd8bb8ab3bc9cb6c42799ac61cf0720cb1e1f241

zig syntax in README

view details

Marc Tiehuis

commit sha 98fd0882d5205887811a5625820b717315897470

Merge pull request #4 from joachimschmidt557/readme zig syntax in README

view details

push time in 2 months

PR merged tiehuis/zig-regex

zig syntax in README

Enable syntax highlighting in the Readme

+8 -8

0 comment

1 changed file

joachimschmidt557

pr closed time in 2 months

pull request commenttiehuis/zig-regex

Fixed min concat lower bound

Thanks for these changes!

kivikakk

comment created time in 2 months

push eventtiehuis/zig-regex

Asherah Connor

commit sha 7cbb9bced0ec5205d6494d1d276ec2fdf12b3968

add failing test for fixed min repeat

view details

Asherah Connor

commit sha 24e3ff7cd1f3e1a36f853a06a0eecfe3602d430d

fix lower bound on repeat

view details

Marc Tiehuis

commit sha 94862cc2c7549ecfc8c2f9528a010477148aa75d

Merge pull request #8 from kivikakk/fixed-min-concat-lower-bound Fixed min concat lower bound

view details

push time in 2 months

PR merged tiehuis/zig-regex

Fixed min concat lower bound

a{3,} was being compiled as:

L0: save(1), 0
L1: char(2) 'a'
L2: char(3) 'a'
L3: char(4) 'a'
L4: char(5) 'a'
L5: split(6) 8
L6: char(7) 'a'
L7: jump(5)
L8: save(9), 1
L9: match
L10: split(0) 11
L11: any(10)

There's one too many as.

+2 -2

0 comment

2 changed files

kivikakk

pr closed time in 2 months

push eventtiehuis/zig-regex

Asherah Connor

commit sha dc20badee4224e3f2cd3b217378b8bcc987fd5b4

fix alternate compile by initialising hole

view details

Marc Tiehuis

commit sha 702b79d66ad75eba2f74a08bd4584ffcdb7c5801

Merge pull request #6 from kivikakk/fix-alt-compile fix alternate compile by initialising hole

view details

push time in 2 months

PR merged tiehuis/zig-regex

fix alternate compile by initialising hole

We need to initialize this; missed during 2444081bbb42f55f2ca55e1961fe88ae1a0a4125.

+1 -0

0 comment

1 changed file

kivikakk

pr closed time in 2 months

issue commentziglang/vscode-zig

release anytype highlighting to marketplace

Small addition to the previous point I made. I can add other users to be able to publish under the existing url tiehuis.zig, since the namespace is a publisher itself, and not tied strictly to my account under the marketplace.

markfirmware

comment created time in 3 months

issue commentziglang/vscode-zig

release anytype highlighting to marketplace

Closed in https://github.com/ziglang/vscode-zig/commit/0d9b619b8d3cb8a27472d6c9949afadbdf6c488d.

markfirmware

comment created time in 3 months

push eventziglang/vscode-zig

Marc Tiehuis

commit sha 0d9b619b8d3cb8a27472d6c9949afadbdf6c488d

Version 0.2.5

view details

push time in 3 months

more