sounkou-bioinfo.github.io/ridiculousBu...
sounkou-bioinfo.github.io/ridiculousBu...
However there is s technique to avoid the overflow, see Tailcall().
However there is s technique to avoid the overflow, see Tailcall().
On the other hand there is currently no guarantee of tail-call optimization I think.
A RFC is in progress about this: github.com/rust-lang/rf...
And there is a crate: docs.rs/tailcall/lat...
So I'm for now a bit lost as a functional programmer...
On the other hand there is currently no guarantee of tail-call optimization I think.
A RFC is in progress about this: github.com/rust-lang/rf...
And there is a crate: docs.rs/tailcall/lat...
So I'm for now a bit lost as a functional programmer...
tc_rev <- function(xs) {
tc_rev_iter <- function(acc, xs) {
if (length(xs) == 0) {
acc
} else {
acc <- c(xs[1], acc)
# recursion!!!
Tailcall(tc_rev_iter, acc, xs[-1])
}
}
tc_rev_iter(xs[0], xs)
}
tc_rev <- function(xs) {
tc_rev_iter <- function(acc, xs) {
if (length(xs) == 0) {
acc
} else {
acc <- c(xs[1], acc)
# recursion!!!
Tailcall(tc_rev_iter, acc, xs[-1])
}
}
tc_rev_iter(xs[0], xs)
}
https://www.mattkeeter.com/blog/2026-04-05-tailcall/
https://news.ycombinator.com/item?id=47650312
https://www.mattkeeter.com/blog/2026-04-05-tailcall/
https://news.ycombinator.com/item?id=47650312
https://www.mattkeeter.com/blog/2026-04-05-tailcall/
[comments] [28 points]
https://www.mattkeeter.com/blog/2026-04-05-tailcall/
[comments] [28 points]
CVE ID : CVE-2025-38723
Published : Sept. 4, 2025, 4:15 p.m. | 56 minutes ago
Description : In the Linux kernel, the following vulnerability has been resolved:
LoongArch: BPF: Fix jump offset calcu...
CVE ID : CVE-2025-38723
Published : Sept. 4, 2025, 4:15 p.m. | 56 minutes ago
Description : In the Linux kernel, the following vulnerability has been resolved:
LoongArch: BPF: Fix jump offset calcu...