Live data from Hacker News

Zig: Upcoming release postponed two more weeks and lacks async functions

ziglang.org

1–10 of 62 posts

Re: Zig: Upcoming release postponed two more weeks and lacks async functions

#2
>I’m not on Twitter anymore - my goal is to instead channel that micro-blogging energy into regular blogging energy on my personal website as well as posting Zig project news here on ziglang.org.

Cool, I like this!

I realized last year that I was investing too much time into sharing things on Twitter that I'd subsequently forget about or be unable to find.

Instead, I created a separate section on my personal blog for "notes" where the idea is to house content that I'd otherwise post to Twitter. It's been working well, and I like owning my own content rather than contributing it to another platform.

I'm especially glad for this change after seeing what's happened in the past few months with Twitter and Reddit. It's been unfortunate to see those platforms become so much more possessive of the content that their users generated. If you publish to your own platform, you're safe from that. At least until LLMs bury your platform in noise.

Re: Zig: Upcoming release postponed two more weeks and lacks async functions

#5
post #2

> I’m not on Twitter anymore - my goal is to instead channel that micro-blogging energy into regular blogging energy on my personal website as well as posting Zig project news here on ziglang.org. Cool, I like this! I realized last year that I was investing too much time into sharing things on Twitter that I'd subsequently forget about or be unable to find. Instead, I created a separate section on my personal blog fo…

> At least until LLMs bury your platform in noise.

Curious, but how exactly would they do that? Are you talking about scraping your website and adding garbage filler content from LLMs and republishing to divert traffic?

Re: Zig: Upcoming release postponed two more weeks and lacks async functions

#6
post #2

> I’m not on Twitter anymore - my goal is to instead channel that micro-blogging energy into regular blogging energy on my personal website as well as posting Zig project news here on ziglang.org. Cool, I like this! I realized last year that I was investing too much time into sharing things on Twitter that I'd subsequently forget about or be unable to find. Instead, I created a separate section on my personal blog fo…

> At least until LLMs bury your platform in noise. Curious, but how exactly would they do that? Are you talking about scraping your website and adding garbage filler content from LLMs and republishing to divert traffic?

Oh, I just mean like filling the web with so much garbage that nobody can find your website.

Re: Zig: Upcoming release postponed two more weeks and lacks async functions

#7
post #4

Why Async, especially considering Zig intends to be something like a High Level "portable Assembly"?

Waiting for IO is never cool. Also, zig's version of async is pretty low level and still obeys the no hidden control flow mantra (at least how it was implemented until 0.9.0).

Re: Zig: Upcoming release postponed two more weeks and lacks async functions

#8
post #4

Why Async, especially considering Zig intends to be something like a High Level "portable Assembly"?

Go through Zig’s Async. Its a bit like co-routines but low level. You are required to keep track of memory allocations and pointers to function “frames”. For someone coming from a high-level language POV, frames were a new concept. But Zig does it so superb.

Zig just needs some runtime event loop like Tokio or AsyncIO from Rust to get up and running with its fantastic async model.

Re: Zig: Upcoming release postponed two more weeks and lacks async functions

#9
post #4

Why Async, especially considering Zig intends to be something like a High Level "portable Assembly"?

Having some form of coroutines or green threads seems like a good idea to me for something low-level. Otherwise countless projects that need something like it will re-implent their own incompable version with longjmp or similar means.

Re: Zig: Upcoming release postponed two more weeks and lacks async functions

#10
post #4

Why Async, especially considering Zig intends to be something like a High Level "portable Assembly"?

Zig's async, like Lua's, lets people write libraries that are generic over async-ness by default. "dump my registers and jump to another stack" is also a legitimate move in assembly (though that's not how this implementation actually works).
Post reply on HN