News for hackers. Stuff that matters.

tyilo

Re:Bbtree: Fastest Ordered Map on Saturday October 24, 2026 @08:26PM (#50226925)
> No human can write better code than LLMs.

Bold claim...

.gh is Ghana, not Greenland
Re:Making a Python interpreter in 1024 bytes on Monday September 07, 2026 @03:27AM (#49595067)
It's not a subset of python.

For instance this program works in this interpreter, but not in python:

    fxx i in rxxxx(10):
        pxxxx(i)
Re:Floats Don't Agree with Themselves on Friday May 08, 2026 @07:19AM (#48061539)
If the original code was written in Rust, then I don't think the Rust compiler is allowed to do any of these "optimizations" of rewriting floating point expressions.
Re:Copy Fail – CVE-2026-31431 on Thursday April 30, 2026 @07:49AM (#47961088)
There is a PoC that does exactly that here: https://github.com/tgies/copy-fail-c
Re:SSH Secret Menu on Wednesday March 11, 2026 @01:35PM (#47338623)
I have set up Ctrl+k to kill (SIGKILL) the front process in my terminal. I just use that for hanging connections and other hanging processes.
> The only real disruption I'd say is if you happen to be buying something online that triggers the 3DS prompt (an additional security layer to prevent cards getting stolen/scam). In Denmark the 3DS prompt for VISA at least uses MitID to verify you are the owner of the card, so that'll obviously not work when MitID is down.

If you use Lunar, the 3DS prompt uses the Lunar app and not MitID.

Re:SIMD Programming in Pure Rust on Wednesday January 21, 2026 @06:01PM (#46712896)
You probably just want to use `.peekable()`: https://doc.rust-lang.org/stable/std/iter/trait.Iterator.htm...
Re:Date is out, Temporal is in on Tuesday January 13, 2026 @03:30AM (#46598537)
> Invalid Date is just a Date with the "Unix epoch timestamp" of NaN. It also follows NaN comparison logic: > > > invalid === new Date(NaN) > false

This is just because a JS Date is an object and have nothing to do with the inner representation.

    > new Date(0) === new Date(0)
    false
Re:YesNotice on Tuesday December 02, 2025 @03:12PM (#46126196)
I got a 403 Forbidden error when trying to register a user.
I have created a Python library called "z4-solver" that adds some nice utility functions on top of z3: https://github.com/Tyilo/z4

I always use that instead of the z3-solver directly.

Re:Breaking "Provably Correct" Leftpad on Thursday October 16, 2025 @11:55AM (#45606971)
What is the expected output of padding "﷽"? It is only one code point but very wide.
Re:Updating Desktop Rust on Wednesday October 15, 2025 @06:35AM (#45590406)
I use the `self_replace` crate for this: https://docs.rs/self-replace/latest/self_replace/
Only half circle?
It seems like `etcetera` has better defaults: https://docs.rs/etcetera/latest/etcetera/#native-strategy

> `choose_base_strategy()` and `choose_app_strategy()` will use the XDG strategy on Linux & macOS, and the Windows strategy on Windows. This is used by most CLI tools & some GUI tools on each platform.

I can't get https://shaderacademy.com/challenge/intro_1 to work on Firefox 142.0b5. Even with the provided answer the output is just a red rectangle.
Re:"Email is Easy" email address quiz on Monday August 18, 2025 @04:31PM (#44944968)
Last week I created a script for finding which TLD's have MX records. Result:

    cf: ["mail.intnet.cf."]
    gp: ["ns1.nic.gp."]
    gt: ["aspmx.l.google.com.", "alt1.aspmx.l.google.com.", "alt2.aspmx.l.google.com.", "aspmx2.googlemail.com.", "aspmx4.googlemail.com.", "aspmx5.googlemail.com."]
    hr: ["alpha.carnet.hr."]
    km: ["mail1.comorestelecom.km."]
    mq: ["mx1-mq.mediaserv.net."]
    mr: ["mail.nic.mr."]
    tt: ["ASPMX.L.GOOGLE.COM.", "ALT1.ASPMX.L.GOOGLE.COM."]
    ua: ["mr.kolo.net."]
    ws: ["mail.worldsite.ws."]
    موريتانيا: ["mail.nic.mr."]
    عرب: ["your-dns-needs-immediate-attention.عرب."]
PS: Only http://uz/ seems to have a "working" HTTP server, returning the 500 status code.
Re:Modern Node.js Patterns on Monday August 04, 2025 @03:20AM (#44782898)
Why would you call that "ascii.txt"?
Correct me if I'm wrong, but it doesn't seem like you provide the equivalent of Seekable::decompress in zstd_seekable which decompresses at a specific offset, without having to calculate which frame(s) to decompress.

This is basically the only function I use from zstd_seekable, so it would be nice to have that in zeekstd as well.

I already use zstd_seekable (https://docs.rs/zstd-seekable/) in a project. Could you compare the API's of this crate and yours?
Re:Exploring Dynamic Dispatch in Rust on Thursday March 27, 2025 @04:50AM (#43491553)
Trait upcasting will land in Rust 1.86.0 which will be released in one week: https://github.com/rust-lang/rust/pull/134367
Re:Exploring Dynamic Dispatch in Rust on Thursday March 27, 2025 @04:45AM (#43491523)
(2017)

The examples don't compile without using Rust edition 2018 or older.

Re:Crabtime: Zig's Comptime in Rust on Saturday March 22, 2025 @06:55AM (#43444898)
Floats are not guaranteed to be bit-identical at compile time and run time in Rust.
Re:Idiomatic Rust on Thursday March 20, 2025 @04:43AM (#43420930)
> Idiomatic Rust

Not very idiomatic to not use the builtin code formatter...

Re:A 10x Faster TypeScript on Tuesday March 11, 2025 @11:13AM (#43333288)
> Go and Rust are both memory safe.

Go doesn't seem to be memory safe, see https://www.reddit.com/r/rust/comments/wbejky/comment/ii7ak8... and https://go.dev/play/p/3PBAfWkSue3

Re:TypeScript types can run DOOM [video] on Wednesday February 26, 2025 @02:41PM (#43187327)
Seems to also work without any:

    type Values<T extends Record<string | number | symbol, unknown>> = T[keyof T]
Re:Why cryptography is not based on NP-complete problems on Thursday February 13, 2025 @06:57AM (#43035026)
It might also be the case that P=NP
Re:Smuggling arbitrary data through an emoji on Thursday February 13, 2025 @03:22AM (#43033889)
Kitty terminal shows non-payload letters and emojis normally, but with a payload a letter is shown as one box and an emoji is shown as two boxes.
When opening the following hello world PDF, the trailer isn't shown correctly and both `startxref` and `%%EOF` are missing: https://ghostbin.site/bb7jb
Looks nice.

Would be better if all of the PDF's bytes where shown. Seems like `endobj` and `xref` are not shown.

Older »