Readit News logoReadit News
geon commented on I'm too dumb for Zig's new IO interface   openmymind.net/Im-Too-Dum... · Posted by u/begoon
speed_spread · 4 days ago
You absolutely should expect documentation this early. The chances of quality documentation being added as an afterthought are not good. If proper documentation isn't part of the original goals after that time, things aren't looking well. Nobody is going to come and just write docs for months.
geon · 4 days ago
Zig is open source, so the docs are pretty much a wiki. You can spend 5 minutes.
geon commented on I'm too dumb for Zig's new IO interface   openmymind.net/Im-Too-Dum... · Posted by u/begoon
viraptor · 4 days ago
That's ok. "It's an unstable, experimental, early version." is a valid explanation. GP put the lack of docs and the new interface together, which... isn't an excuse.
geon · 4 days ago
That Zig is pre 1.0 is a given. Not sure how you could take my statement as ”even post 1.0 releases don’t need docs.”
geon commented on I'm too dumb for Zig's new IO interface   openmymind.net/Im-Too-Dum... · Posted by u/begoon
stop50 · 4 days ago
I have never understood libraries or imterfaces that want me to allocate buffers for their type. I can't parse them (no need for the lib then) or write to them (would probably break the exchange).

The weird interface of go is probably due the fact that some interfaces can be used to extemd the writer like the hijacker interface (ResponseWriter.(http.Hijacker)) and the request object is used multiple times with different middlewares interacting with it. In short: request does not need to be extended, but the response can be an websocket, an wrapped tcp connection or something else.

geon · 4 days ago
Isn’t the whole point of an external buffer that the function won’t need to allocate?
geon commented on I'm too dumb for Zig's new IO interface   openmymind.net/Im-Too-Dum... · Posted by u/begoon
ulbu · 4 days ago
i find that zig is too oriented at doling out directives for what not to do instead of just collecting and teaching variants of how and what to do. the lack of documentation on this interface is a sore case in point.
geon · 4 days ago
You can’t expect documentation this early. The new interface was just released.
geon commented on I'm too dumb for Zig's new IO interface   openmymind.net/Im-Too-Dum... · Posted by u/begoon
0x696C6961 · 4 days ago
Writing good docs/examples takes a lot of effort. It would be a waste considering the amount of churn that happens in zig at this point.
geon · 4 days ago
Yes. For now, that effort is better spent writing clear test cases that can serve to illustrate the intended usage.

While tests aren’t quite as good documentation as actual documentation, they are guaranteed to not be out of date.

geon commented on Thai Air Force seals deal for Swedish Gripen jets   scmp.com/news/asia/southe... · Posted by u/belter
hubraumhugo · 11 days ago
> It's able to operate from airstrips that are no more than roads

The Swiss Air Force is regularly practicing starting and landing on highways: https://www.youtube.com/watch?v=wYkleF72du8

geon · 11 days ago
While sweden has a lot of straight road stretches specifically designed to serve as emergency airfields, it is a lot easier to find 500 m of suitable road than 1600.
geon commented on Thai Air Force seals deal for Swedish Gripen jets   scmp.com/news/asia/southe... · Posted by u/belter
gliptic · 11 days ago
> I think Sweden was deploying the Drakken (Dragon) and later the Vigen (Lightning).

The names are much less flashy, Draken (The kite, due to the shape) and Viggen (The tufted duck) :P.

geon · 11 days ago
Yes, Draken and Viggen are officially named after the kite and the tufted duck, respectively.

The names do however carry the other meanings as well.

Draken means (the) kite, dragon and male duck.

Viggen means (the) lightning and tufted duck.

geon commented on Thai Air Force seals deal for Swedish Gripen jets   scmp.com/news/asia/southe... · Posted by u/belter
Animats · 12 days ago
The Gripen is a good choice for geographically small countries. It's able to operate from airstrips that are no more than roads, with modest mobile ground equipment for support. Saab commercial for the Gripen: [1]

The USAF's force model involves basing at big, well-equipped, well-protected air bases. Those are now hard to protect from drone attacks, as Russia recently found out. From now on, air forces have to be able to operate from improvised bases, or build very strong bunkers at major bases.

[1] https://www.youtube.com/watch?v=QyD0liioY8E

geon · 11 days ago
If large air bases are hard to protect, wouldn’t the Gripen be good also for large countries?
geon commented on Blender is Native on Windows 11 on Arm   thurrott.com/music-videos... · Posted by u/thunderbong
bhouston · 15 days ago
It was announced two weeks ago. Details: https://youtu.be/JFtvdItYNBU
geon · 15 days ago
I think it has built for years. There just hasn't been a usable UI.
geon commented on GitHub is no longer independent at Microsoft after CEO resignation   theverge.com/news/757461/... · Posted by u/Handy-Man
wirrbel · 16 days ago
I always wonder at these attributions. Like all windows versions gave you bluescreen and ran Microsoft excel. To me not one stood out particularly bad or good compared to the others maybe after Windows 98 service pack something
geon · 16 days ago
Win98 was terrible. I used to reinstall it every month or so, as routine maintenance.

Win2k was so much better it's not even comparable.

XP had a bit of a rough start, but by sp3 it was a lot better than 2k.

I skipped the other windows-es until 10. It has been solid.

u/geon

KarmaCake day3993April 7, 2009View Original