dpwm / zig-capnp Goto Github PK
View Code? Open in Web Editor NEWYet another capnproto code generator for zig
License: MIT License
Yet another capnproto code generator for zig
License: MIT License
After migrating from std.mem.readIntLittle
to std.mem.readInt(..., .little)
I was able to compile and run the tests but I'm receiving the following error:
Test [1/14] test.simple struct unpacking... segmentCount = 65280
file Read segment Length = 50
thread 17268 panic: reached unreachable code
C:\Users\giova\scoop\apps\zig-dev\0.12.0-dev.1879\lib\std\debug.zig:342:14: 0x7ff609311aad in assert (test.exe.obj)
if (!ok) unreachable; // assertion failure
^
C:\Users\giova\repos\other\personal\zig-capnp\src\capnp.zig:609:25: 0x7ff60931138c in fromFile (test.exe.obj)
std.debug.assert(segmentLengthsBuffer.len == try file.read(segmentLengthsBuffer));
^
C:\Users\giova\repos\other\personal\zig-capnp\src\capnp_tests.zig:60:45: 0x7ff609312406 in test.simple struct unpacking (test.exe.obj)
var message = try capnp.Message.fromFile(file, std.testing.allocator);
^
C:\Users\giova\scoop\apps\zig-dev\0.12.0-dev.1879\lib\test_runner.zig:181:28: 0x7ff609329c12 in mainTerminal (test.exe.obj)
} else test_fn.func();
^
C:\Users\giova\scoop\apps\zig-dev\0.12.0-dev.1879\lib\test_runner.zig:36:28: 0x7ff609319be8 in main (test.exe.obj)
return mainTerminal();
^
C:\Users\giova\scoop\apps\zig-dev\0.12.0-dev.1879\lib\std\start.zig:350:69: 0x7ff609319963 in WinStartup (test.exe.obj)
std.os.windows.ntdll.RtlExitUserProcess(initEventLoopAndCallMain());
Seems that in the first bytes it's expecting the number of segments but it's not the case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.