Code Monkey home page Code Monkey logo

Comments (7)

kamidev avatar kamidev commented on August 17, 2024 1

Thanks. No obsession, I was just a bit too quick. Your code is straightforward but zig is moving fast, so I was basically scanning for build problems. Checking if tests and examples compiled and if the output seemed to match the code. After the last fixes, everything ran. Except one file seemed to hang, so I - incorrectly - assumed 1. it was an example and 2. it didn't build like the others. Sorry about that.

from zap.

renerocksai avatar renerocksai commented on August 17, 2024 1

No worries. And thx for the QA check you did there. I didn't understand where you were coming from at first. The wrk_zigstd is / might one day become part of the perf measurement suite. As such, it's important that it compiles. I don't like stale code in a project. A while ago I set up a CI cronjob that runs every day, builds all executables, and runs all tests with the then-current zig master. To ensure std lib / zig changes I'm unaware of don't break things w/o me noticing. What I hadn't thought about was wrk_zigstd though. So, thx to your scanning job, all buildable code is now checked every day (and every commit).

from zap.

renerocksai avatar renerocksai commented on August 17, 2024

sorry I replied to wrong issue #14 .

This is fixed in 0c18565

Thx for pointing it out.

from zap.

kamidev avatar kamidev commented on August 17, 2024

For me, it doesn't finish compiling. It hangs here:

➜  zap git:(master) zig build run-wrk_zigstd
steps [26/28] zig build-exe wrk_zigstd Debug native... LLVM Emit Object...

from zap.

kamidev avatar kamidev commented on August 17, 2024

Is that the expected outcome? Here is my setup:

➜  zap git:(master) zig version; sw_vers; clang --version
0.11.0-dev.3220+447a30299
ProductName:		macOS
ProductVersion:		13.4
BuildVersion:		22F66
Homebrew clang version 16.0.4
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin
➜  zap git:(master) git log -1 | tee
commit 0c18565cea2b31df688ff89c09a815acfd4be273
Author: Rene Schallner <[email protected]>
Date:   Fri May 19 15:37:58 2023 +0200

    fixed wrk_zigstd. It compiles but can't handle wrk :(

All other demo apps run without obvious problems.

from zap.

renerocksai avatar renerocksai commented on August 17, 2024

It finishes compiling and starts running. It just doesn't print anything to the console. Have you checked the source???

This is not a zap example / demo, it is like the rust, python, go projects: only used in the wrk measurements.

It is not part of examples/

Why are you so obsessed with it? It uses std.http server to send a fixed response and makes no sense running on its own.

from zap.

renerocksai avatar renerocksai commented on August 17, 2024

If you wanted to build it you would zig build wrk_zigstd. But building run-wrk_zigstd also runs it after building. Fyi

from zap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.