Giter Club home page Giter Club logo

Comments (2)

slimsag avatar slimsag commented on June 20, 2024

This will happen in mid-late May, after SYCL.

from mach.

slimsag avatar slimsag commented on June 20, 2024

Tips for upgrading your code

build.zig

  • .{ .path = "foo" } -> b.path("foo"):
  • lib.installHeader("src/c/m3d.h", "m3d.h"); -> lib.installHeader(b.path("src/c/m3d.h"), "m3d.h");
  • lib.installHeaders and lib.installHeadersDirectoryOptions have been merged into lib.installHeadersDirectory:
-    lib.installHeadersDirectory("c/include/brotli", "brotli");
-    lib.installHeadersDirectory(b.path("c/include/brotli"), "brotli", .{});
-    lib.installHeadersDirectoryOptions(.{
-        .source_dir = b.path(""),
-        .include_extensions = &.{".h"},
-        .install_dir = .header,
-        .install_subdir = "spirv-cross",
-    });
+    lib.installHeadersDirectory(b.path(""), "spirv-cross", .{
+        .include_extensions = &.{".h"},
+    });

zig-cache renamed

The local zig-cache/ directory has been renamed to .zig-cache/, so you may need to update your e.g. .gitignore file and delete the older one.

other

  • std.ComptimeStringMap(T, values) -> std.StaticStringMap(T).initComptime(values)
  • std.os.exit(1); -> std.process.exit(1);
  • std.ChildProcess.run -> std.process.Child.run
  • std.tar.Options.Diagnostics -> std.tar.Diagnostics
  • Many POSIX APIs have been renamed from e.g. std.os.chdir to std.posix.chdir
  • std.os.pid_t -> std.c.pid_t
  • std.math.degreesToRadians(f32, 90) -> std.math.degreesToRadians(90) - type is now inferred
  • In @Type calls, various enums are now lowercase instead of uppercase:
    • .Auto -> .auto,
    • .Packed -> .@"packed"
-        const download_step = @fieldParentPtr(DownloadSourceStep, "step", step_ptr);
+        const download_step: *DownloadSourceStep = @fieldParentPtr("step", step_ptr);

from mach.

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.