Re:Why does an extraneous build step make my Zig app 10x fas...
by MatejKafka on Wednesday March 20, 2024 @09:42AM
(#39766352)
More compact example (not to scare the POSIX people away :) ):
[ Parent
| on HN ]
Re:Why does an extraneous build step make my Zig app 10x fas...
by poizan42 on Wednesday March 20, 2024 @10:00AM
(#39766643)
The streaming behavior of the range operator is weird though. This is tested on PowerShell 7.4.1
> 0..1000000000 | % { $_ }
# Starts printing out numbers immediately
> 0..1000000000
# Hangs longer than I had patience to wait for
> $x=0..100
> $x.GetType()
# IsPublic IsSerial Name BaseType
# -------- -------- ---- --------
# True True Object[] System.Array
It's an array when I save it in a variable, but it's obviously not an array on the LHS of a pipe.