AI 摘要The article describes a common pitfall in formal specification (particularly in Alloy): using 'facts' to enforce constraints like 'no self-dependencies,' which makes illegal states unrepresentable and prevents the model checker from verifying how software handles bad inputs from its environment. The author recommends using predicates instead, so constraints are explicit and testable, and reserving facts for legitimate uses such as narrowing the scope of a problem, ruling out uninteresting cases, optimizing slow models, and defining relationships Alloy can't express natively.
AI 摘要Bun v1.1.3 fixes 5 bugs and makes bun install 50% faster on Windows. The fixes address a rare hang in bun install, missing non-zero exit codes on errors, failures with certain dependency combinations, unexpected CTRL+C behavior in cmd.exe after exiting bun, and crashes caused by missing directory read permissions on Windows.
AI 摘要Bun v1.1.2 fixes four bugs, including an EBUSY error on Windows in vite dev and next dev, a TypeScript parsing edge case, and 'unreachable code' errors. Object cloning is now 6x faster, and fs.watch on Windows has been rewritten to improve performance and reliability. Additionally, Bun Shell gains support for seq, yes, basename, and dirname.
AI 摘要The author discusses 'ownership' not in the sense of Rust's type system, but as a concept within the Rust open source community, where it has become unclear who is entitled to make decisions. Over the past six months, they have been developing a project goals proposal to reinvigorate Rust's roadmap process, with a key element being the assignment of an owner to each goal. The post aims to explore what it means to be an owner and what it does not.
AI 摘要Bun v1.1.1 fixes 20 bugs and adds subshell and positional argument support to Bun Shell, resolving an issue with bun install + sharp on Windows. The release upgrades JavaScriptCore, bringing performance improvements to RegExp, typed arrays, and string methods, while reducing memory usage for error objects and JIT'd function calls. It also fixes several bugs affecting bun install and Bun.serve() on Windows, as well as a TOML parser bug with escape sequences and Windows paths.
AI 摘要The V8 Sandbox, a lightweight in-process sandbox for V8, has matured from an experimental security feature to the point of being included in Chrome's Vulnerability Reward Program, with Chrome 123 effectively serving as its 'beta' release. The article explains that V8 vulnerabilities are typically subtle logic bugs rather than classic memory corruption issues, meaning existing solutions like memory-safe languages or hardware memory tagging are ineffective. The sandbox addresses this by isolating V8's heap memory and replacing raw pointers and sizes with sandbox-compatible alternatives (such as offsets and pointer table indirections), preventing memory corruption in V8 from spreading to the rest of the host process.
Introducing a more simplified project creation flow in Deno Deploy, including seamless CI/CD setup, a more transparent build and deployment step, and more.
AI 摘要The article dissects the shell script component of the xz backdoor attack disclosed by Andres Freund in March 2024. It explains how a maliciously modified build-to-host.m4 file included in the xz 5.6.0 and 5.6.1 tarballs locates a hidden payload embedded in fake 'test files', decompresses it, and executes additional stages of the attack during the configure/build process. The ultimate goal is to install a nefarious ifunc resolver that replaces RSA_public_decrypt with a version running attacker code when a specific SSH certificate is presented.
AI 摘要Over more than two years, an attacker using the alias "Jia Tan" earned trust within the xz compression library project through seemingly legitimate contributions and social engineering, ultimately gaining commit access and maintainership. They then installed a carefully hidden backdoor in liblzma that enabled unauthenticated, targeted remote code execution over SSH on affected systemd-based Linux distributions. Publicly disclosed on March 29, 2024, the attack is considered the first serious known supply chain attack on widely used open source software and a watershed moment for open source supply chain security.
AI 摘要This April 2024 Svelte update announces the upcoming Svelte Summit Spring livestream on April 27 and highlights numerous new features merged into the Svelte 5 preview, including reactive Map, Date, and Set classes in svelte/reactivity, the new $bindable rune, improved SSR error messages, and several breaking changes to $props and slot handling. SvelteKit also gained updates such as Skew Protection for adapter-vercel, Cloudflare platform emulation, graceful shutdown and compression defaults for adapter-node, and Google Cloud support in adapter-auto. The post rounds out with community showcase apps, talks, and tools built by Svelte contributors.
AI 摘要The author investigates whether the name 'Daniel'—first attested in the Ugaritic Tale of Aqhat around 1350 BCE—is the ancestor of the modern name, tracing it through the fall of Ugarit, the Phoenician/Canaanite world, and into the Hebrew Book of Ezekiel. Despite sparse evidence caused by Bronze Age Collapse and the use of rotting papyrus, the author argues the name persisted through a shared Canaanite cultural consciousness, with the Ugaritic and Hebrew versions both meaning 'God judged.' The piece concludes that Daniel may be the oldest attested name still in common use today.
AI 摘要Bun v1.0.36 fixes 13 bugs and adds support for `fs.openAsBlob` and `fs.opendir`. The release also addresses edge cases in `bun install` with multiple `bin` entries, fixes encoding in `bun build --target bun`, and resolves issues with process.stdin/stdout, http2, and .env handling in `bun run`. Additionally, it fixes various Bun shell bugs and improves Node.js compatibility.
Deno 1.42 revolutionizes dependency management with the seamless integration of JSR, enhancing Node/npm compatibility and introducing significant performance improvements.
AI 摘要The article examines best-of-k load balancing, a powerful stateless technique for distributed systems, and shows that it performs poorly when workers have tight capacity limits. Through simulations and a probabilistic analysis of an iterative variant, the author demonstrates that as utilization approaches capacity and per-worker capacity is small (e.g., c=1), best-of-k requires far more retries, offering only marginal improvement over random placement. The takeaway is that best-of-k isn't magic: systems that must find the rare workers with free capacity slots likely need a different approach, such as maintaining an explicit list of available workers.