並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 7 件 / 7件

新着順 人気順

Zigの検索結果1 - 7 件 / 7件

  • GitHub - judofyr/spice: Fine-grained parallelism with sub-nanosecond overhead in Zig

    Spice uses heartbeat scheduling to accomplish extremely efficient parallelism in Zig: Sub-nanosecond overhead: Turning your function into a parallelism-enabled function adds less than a nanosecond of overhead. Contention-free: Threads will never compete (i.e. spin) over the same work. Adding more threads to the system will not make your program any slower, but the extra threads might be completely

      GitHub - judofyr/spice: Fine-grained parallelism with sub-nanosecond overhead in Zig
    • Effective TypeScript › A TypeScripter's Take on Zig (Advent of Code 2023)

      What can Zig learn from TypeScript, and what can TypeScript learn from Zig? The Advent of Code is a fun annual programming competition with an Elf theme. It consists of 25 two-part problems of increasing difficulty, released every day in December leading up to Christmas. Every December, I complete it in a new programming language. Every January, I intend to blog about the experience. Usually this

        Effective TypeScript › A TypeScripter's Take on Zig (Advent of Code 2023)
      • Basic MetaProgramming in Zig

        While I've written a lot about Zig, I've avoided talking about Zig's meta programming capabilities which, in Zig, generally falls under the "comptime" umbrella. The idea behind "comptime" is to allow Zig code to be run at compile time in order to generate code. It's often said that an advantage of Zig's comptime is that it's just Zig code, as opposed to a separate, often limited, language as seen

        • ZIG | PRODUCTS | ZANE ARTS

          上部リング、中央シリンダー、下部ファンネルにより横から真下まで広範囲に光を拡散。最大200lm/7hの高効率リチャージャブルランタン。

            ZIG | PRODUCTS | ZANE ARTS
          • ZIG 3D STORM HYDRO。 - カメラ屋元公式中の人 アオキのブログ

            昔からそうですけど マニアックなハイテクスニーカー好きです♪ よくこのブログを見ていただいている方はご存知ですが、そんなに出かけないのにスニーカーやたら買ってます(笑)しかも8割リーボックです(笑)なんですかね、何か昔からリーボック好きなんですよね♪ naoyafs1.hatenablog.com naoyafs1.hatenablog.com naoyafs1.hatenablog.com naoyafs1.hatenablog.com naoyafs1.hatenablog.com naoyafs1.hatenablog.com naoyafs1.hatenablog.com naoyafs1.hatenablog.com naoyafs1.hatenablog.com まだおろしていないものもあるので山積みになっていますが(笑)スニーカーっていうのは買う事に意味がありますから(笑)あ

              ZIG 3D STORM HYDRO。 - カメラ屋元公式中の人 アオキのブログ
            • 既存のC言語による実装をインクリメンタルにZigに移植する

              興味深い記事を見つけました。 気に入ったところだけピックアップして紹介するので、ぜひ原文も読んでください。 Zig is an ideal language for incrementally porting existing C code to as I’ll hopefully show. Zigは既存のCのコードをインクリメンタルに(少しずつ)移植するのに理想的な言語です。これからそれを紹介します。 Mini-RV32ima Mini-RV32imaはひとつのCのヘッダファイルからなるRISC-Vのエミュレータです。(このエミュレータでLinuxカーネルを起動することが可能です) 私(元のブログの筆者)はRISC-Vのことをあまり知りません。RISC-Vのリファレンスを見るよりもCのコードを一行ずつ忠実にZigに書き直しました。 最初の一歩 zig はCコンパイラとして使うこともでき

                既存のC言語による実装をインクリメンタルにZigに移植する
              • ざっくりZig - アロケータの使い方

                Zigは開発進行中のため仕様が変更される可能性があり、各所に掲載されている情報がすでに古くなっている場合があります。本稿も例外ではありません。くれぐれもご注意ください。 アロケータ(Allocator)は処理の実行中に新たなメモリ領域を確保するときと確保した領域を解放するときに使用します。var buf: [3]u8 = undefined;のようにあらかじめ確保されたバッファ領域はアロケータの対象になりません。 まずはテスト用のアロケータであるstd.testing.allocatorを直接使ってアロケータの基本的な操作をしてみます。このアロケータはtest {...}の部分でしか使用できません。 単独の値を格納するメモリ領域の確保と解放 u8型をはじめ、単独の値を格納するメモリ領域の確保はcreate(型名)で行います。createの戻り値はポインタで、メモリを確保できないときはerr

                  ざっくりZig - アロケータの使い方
                1