mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#zig

7 Beiträge6 Beteiligte0 Beiträge heute
Lobsters<p>Libghostty Is Coming <a href="https://lobste.rs/s/uirhie" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/uirhie</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://mitchellh.com/writing/libghostty-is-coming" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">mitchellh.com/writing/libghost</span><span class="invisible">ty-is-coming</span></a></p>
Hacker News<p>Zig got a new ELF linker – and it's FAST</p><p><a href="https://github.com/ziglang/zig/pull/25299" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/ziglang/zig/pull/25</span><span class="invisible">299</span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/Zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zig</span></a> <a href="https://mastodon.social/tags/ELF" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ELF</span></a> <a href="https://mastodon.social/tags/linker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linker</span></a> <a href="https://mastodon.social/tags/FAST" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FAST</span></a> <a href="https://mastodon.social/tags/performance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>performance</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/ZigLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ZigLang</span></a> <a href="https://mastodon.social/tags/openSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openSource</span></a></p>
Javier Salcedo<p>But the main reason I started a new renderer from scratch was to battle-test another project I've been working on: a very simple and strongly opinionated <a href="https://mastodon.gamedev.place/tags/Cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cpp</span></a> build system inspired by <a href="https://mastodon.gamedev.place/tags/Zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zig</span></a> and <a href="https://mastodon.gamedev.place/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <br>Because I just hate <a href="https://mastodon.gamedev.place/tags/CMake" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CMake</span></a>.</p><p>It's very WIP but I hope to publish the code soon.</p><p>It has the usual `init`, `build`, `run` commands, and projects are built from a single `build.cpp` file at the root that looks like this:</p>
Hacker News<p>I wrote an OS in 1000 lines of Zig</p><p><a href="https://github.com/botirk38/OS-1000-lines-zig" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/botirk38/OS-1000-li</span><span class="invisible">nes-zig</span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/OSDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OSDevelopment</span></a> <a href="https://mastodon.social/tags/Zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zig</span></a> <a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/TechInnovation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TechInnovation</span></a></p>
Hacker News<p>Is Zig's New Writer Unsafe?</p><p><a href="https://www.openmymind.net/Is-Zigs-New-Io-Unsafe/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">openmymind.net/Is-Zigs-New-Io-</span><span class="invisible">Unsafe/</span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/Zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zig</span></a> <a href="https://mastodon.social/tags/Writer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Writer</span></a> <a href="https://mastodon.social/tags/Unsafe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unsafe</span></a> <a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDevelopment</span></a></p>
Lobsters<p>Is Zig's New Writer Unsafe? <a href="https://lobste.rs/s/js25k9" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/js25k9</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://www.openmymind.net/Is-Zigs-New-Io-Unsafe/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">openmymind.net/Is-Zigs-New-Io-</span><span class="invisible">Unsafe/</span></a></p>
Hacker News<p>Zedis – A Redis clone I'm writing in Zig</p><p><a href="https://github.com/barddoo/zedis" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/barddoo/zedis</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/Zedis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zedis</span></a> <a href="https://mastodon.social/tags/Redis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Redis</span></a> <a href="https://mastodon.social/tags/Zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zig</span></a> <a href="https://mastodon.social/tags/clone" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>clone</span></a> <a href="https://mastodon.social/tags/open" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>open</span></a>-source <a href="https://mastodon.social/tags/project" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>project</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
Lobsters<p>Be Careful When Assigning ArenaAllocators (2024) <a href="https://lobste.rs/s/zxkefm" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/zxkefm</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://www.openmymind.net/Be-Careful-When-Assigning-ArenaAllocators/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">openmymind.net/Be-Careful-When</span><span class="invisible">-Assigning-ArenaAllocators/</span></a></p>
Lobsters<p>Writing an operating system kernel from scratch via <span class="h-card" translate="no"><a href="https://hachyderm.io/@binjip978" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>binjip978</span></a></span> <a href="https://lobste.rs/s/aokjpu" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/aokjpu</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/osdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>osdev</span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://popovicu.com/posts/writing-an-operating-system-kernel-from-scratch/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">popovicu.com/posts/writing-an-</span><span class="invisible">operating-system-kernel-from-scratch/</span></a></p>
Lobsters<p>Flow Control: a programmer's text editor via <span class="h-card" translate="no"><a href="https://hachyderm.io/@vulcan" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>vulcan</span></a></span> <a href="https://lobste.rs/s/tranme" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/tranme</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/editors" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>editors</span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://github.com/neurocyte/flow" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/neurocyte/flow</span><span class="invisible"></span></a></p>
Karsten Schmidt<p>After almost a week of refactoring and experimenting with several different approaches, I've updated my Zig nD SIMD vector library to be compatible with the latest Zig 0.15.1, and at the same time cleaned up some internals.</p><p>The solution I settled on is a mix of techniques proposed by others, and was needed due to the removal of the struct/namespace-merging syntax in the new Zig version, which this library heavily relies on. I don't like that the new source code is now more than 2x larger and involves a huge amount of duplication to address the many special cases of supported operations for different vector sizes and types. I might still take another pass to eliminate those (by using `@compileError()` for unsupported cases), but that'd be an implementation detail downstream users don't have to care about. I tried AOT code generation as well, but the special case handling made this feel less maintainable...</p><p>UPDATE: The only breaking change is the handling of vector swizzles. I had to remove the hundreds of named swizzle functions and replaced them with a single (comptime optimized) `.swizzle(vec, pattern)`, e.g. `.swizzle(vec, "xxyy")`...</p><p>If you're interested, the new code is here:<br><a href="https://github.com/thi-ng/zig-thing/blob/main/src/vectors.zig" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/thi-ng/zig-thing/bl</span><span class="invisible">ob/main/src/vectors.zig</span></a></p><p>The readme contains details about the many supported operations:<br><a href="https://github.com/thi-ng/zig-thing/blob/main/doc/vectors.md" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/thi-ng/zig-thing/bl</span><span class="invisible">ob/main/doc/vectors.md</span></a></p><p>Installation instructions in the main repo readme:<br><a href="https://github.com/thi-ng/zig-thing/tree/main" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/thi-ng/zig-thing/tr</span><span class="invisible">ee/main</span></a></p><p><a href="https://mastodon.thi.ng/tags/Zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zig</span></a> <a href="https://mastodon.thi.ng/tags/Ziglang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ziglang</span></a> <a href="https://mastodon.thi.ng/tags/ZigThing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ZigThing</span></a> <a href="https://mastodon.thi.ng/tags/Vectors" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vectors</span></a> <a href="https://mastodon.thi.ng/tags/Refactoring" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Refactoring</span></a></p>
Lobsters<p>Jetzig Web Framework for Zig via <span class="h-card" translate="no"><a href="https://hachyderm.io/@vulcan" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>vulcan</span></a></span> <a href="https://lobste.rs/s/fzzobp" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/fzzobp</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/web" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>web</span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://www.jetzig.dev" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">jetzig.dev</span><span class="invisible"></span></a></p>
Lobsters<p>Behind The Scenes of Bun Install <a href="https://lobste.rs/s/0pkut7" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/0pkut7</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/nodejs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nodejs</span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://bun.com/blog/behind-the-scenes-of-bun-install" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">bun.com/blog/behind-the-scenes</span><span class="invisible">-of-bun-install</span></a></p>
Umur Gedik<p><span class="h-card" translate="no"><a href="https://mastodon.gamedev.place/@floooh" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>floooh</span></a></span> is there a way to use sokol-gfx from multiple threads with completely isolated states? No need to synchronize or anything I just want each thread to have it is own state. </p><p>Im building a painting app for android. I have canvas (painting) functionality and rasterizer (reading from document and renders the whole document at once) functionality. But I export one dynamic library. Therefore I assume gfx globals shares data between threads? Is there a way to make it thread local?</p><p><a href="https://mastodon.social/tags/sokol" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sokol</span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a></p>
Jacket<p>This is not helping me in the market but what I love doing the most is computer language engineering. I'm learning how to write an <a href="https://tech.lgbt/tags/LSP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LSP</span></a> right now to support my born language in neovim. I also discovered <a href="https://tech.lgbt/tags/LLVM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LLVM</span></a> recently. It lets you compile to any target from a generic ASM. It made me realize something. The first languages where all compiled. Then, we got the interpreted languages. But recently, the new languages are all compiled again! Think of <a href="https://tech.lgbt/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a>, <a href="https://tech.lgbt/tags/go" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>go</span></a>, <a href="https://tech.lgbt/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a>, <a href="https://tech.lgbt/tags/elixir" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>elixir</span></a>. I wonder if it's because we perfected the tooling in a way that maintaining a compiled language is not that hard anymore. Go is a weird one. It has a garbage collector. Yeah! A compiled language with a garbage collector. It means that there is a process that is embedded in the executable to just do garbage collection. We might now have a real reason anymore to interpret.</p>
Lobsters<p>The First ziglang.org Outage <a href="https://lobste.rs/s/vjuviw" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/vjuviw</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://ziglang.org/news/first-outage/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">ziglang.org/news/first-outage/</span><span class="invisible"></span></a></p>
Lobsters<p>Everything is a []u8 <a href="https://lobste.rs/s/htogek" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/htogek</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://www.openmymind.net/Everything-Is-A-u8-array/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">openmymind.net/Everything-Is-A</span><span class="invisible">-u8-array/</span></a></p>
Lobsters<p>Hitting Peak File IO Performance with Zig via <span class="h-card" translate="no"><a href="https://social.treehouse.systems/@RunxiYu" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>RunxiYu</span></a></span> <a href="https://lobste.rs/s/vnkmbc" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/vnkmbc</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://mastodon.social/tags/performance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>performance</span></a> <a href="https://mastodon.social/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a><br><a href="https://steelcake.com/blog/nvme-zig/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">steelcake.com/blog/nvme-zig/</span><span class="invisible"></span></a></p>
Hacker News<p>Hitting Peak File IO Performance with Zig</p><p><a href="https://steelcake.com/blog/nvme-zig/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">steelcake.com/blog/nvme-zig/</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/Hitting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hitting</span></a> <a href="https://mastodon.social/tags/Peak" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Peak</span></a> <a href="https://mastodon.social/tags/File" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>File</span></a> <a href="https://mastodon.social/tags/IO" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IO</span></a> <a href="https://mastodon.social/tags/Performance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Performance</span></a> <a href="https://mastodon.social/tags/with" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>with</span></a> <a href="https://mastodon.social/tags/Zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zig</span></a> <a href="https://mastodon.social/tags/performance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>performance</span></a> <a href="https://mastodon.social/tags/optimization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>optimization</span></a> <a href="https://mastodon.social/tags/Zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zig</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/NVMe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NVMe</span></a> <a href="https://mastodon.social/tags/technology" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>technology</span></a> <a href="https://mastodon.social/tags/file" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>file</span></a> <a href="https://mastodon.social/tags/IO" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IO</span></a></p>
Duke of Germany 💫<p>Thank you! 🙂 </p><p>The workarounds mentioned there did not work for me, but they helped me figure out how to somehow make it work. </p><p>In my case (under Linux Mint), I had to create a symlink (libasan.so -&gt; libasan.so.8.0.0) for the <a href="https://mastodon.gamedev.place/tags/zig" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zig</span></a> compiler to find it.</p><p>Not a big deal, but still feels like an oversight.</p><p><span class="h-card" translate="no"><a href="https://mastodont.cat/@lapesanta" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>lapesanta</span></a></span></p>