Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,15 @@
# Start at `start`
create or replace function task(start) as table (
with recursive cte as (
select start::BIGINT as n
union all
select
n // 2 as n
from cte
where n > 0 -- "while n > 0"
)
from cte
where n > 0 -- comment me out to include the last 0
);
from task(1024);

View file

@ -0,0 +1,6 @@
1024
(dup 1 >=) (
puts
2 /
) while
pop

View file

@ -0,0 +1,5 @@
local i = 1024
while i > 0 do
print(i)
i //= 2
end

View file

@ -6,5 +6,5 @@ REBOL [
value: 1024
while [value > 0][
print value
value: to-integer value / 2
value: to integer! value / 2
]

View file

@ -0,0 +1,4 @@
i =: 1024
?* i >= 1
print i
i =: i // 2 \ integer division"

View file

@ -0,0 +1,6 @@
var n = 1024
loop {
if not (n > 0) { break }
print(n)
n := n >>> 1
}

View file

@ -1,7 +1,10 @@
const std = @import("std");
pub fn main() void {
var i: u11 = 1024;
while (i > 0) : (i /= 2)
std.debug.print("{}\n", .{i});
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
var n: u16 = 1024;
while (n > 0) : (n = @divTrunc(n, 2)) {
try stdout.print("{d}\n", .{n});
}
}