Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tyilo
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
tyilo
10d ago
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)
2.
▲
by
tyilo
4mo ago
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.
3.
▲
by
tyilo
5mo ago
There is a PoC that does exactly that here: https://github.com/tgies/copy-fail-c
4.
▲
by
tyilo
6mo ago
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.
5.
▲
by
tyilo
7mo ago
> 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 use
6.
▲
by
tyilo
8mo ago
You probably just want to use `.peekable()`: https://doc.rust-lang.org/stable/std/iter/trait.Iterator.htm...
7.
▲
by
tyilo
8mo ago
> 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
8.
▲
by
tyilo
10mo ago
I got a 403 Forbidden error when trying to register a user.
9.
▲
by
tyilo
10mo ago
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.
10.
▲
by
tyilo
11mo ago
What is the expected output of padding "﷽"? It is only one code point but very wide.
11.
▲
by
tyilo
11mo ago
I use the `self_replace` crate for this: https://docs.rs/self-replace/latest/self_replace/
12.
▲
by
tyilo
1y ago
Only half circle?
13.
▲
by
tyilo
1y ago
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
14.
▲
by
tyilo
1y ago
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.
15.
▲
by
tyilo
1y ago
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.", &qu
16.
▲
by
tyilo
1y ago
Why would you call that "ascii.txt"?
17.
▲
by
tyilo
1y ago
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 basic
18.
▲
by
tyilo
1y ago
I already use zstd_seekable ( https://docs.rs/zstd-seekable/ ) in a project. Could you compare the API's of this crate and yours?
19.
▲
by
tyilo
1y ago
Trait upcasting will land in Rust 1.86.0 which will be released in one week: https://github.com/rust-lang/rust/pull/134367
20.
▲
by
tyilo
1y ago
(2017) The examples don't compile without using Rust edition 2018 or older.
21.
▲
by
tyilo
1y ago
Floats are not guaranteed to be bit-identical at compile time and run time in Rust.
22.
▲
by
tyilo
1y ago
> Idiomatic Rust Not very idiomatic to not use the builtin code formatter...
23.
▲
by
tyilo
2y ago
> 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/
24.
▲
by
tyilo
2y ago
Seems to also work without any: type Values<T extends Record<string | number | symbol, unknown>> = T[keyof T]
25.
▲
by
tyilo
2y ago
It might also be the case that P=NP
26.
▲
by
tyilo
2y ago
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.
27.
▲
by
tyilo
2y ago
When opening the following hello world PDF, the trailer isn't shown correctly and both `startxref` and `%%EOF` are missing: https://ghostbin.site/bb7jb
28.
▲
by
tyilo
2y ago
Looks nice. Would be better if all of the PDF's bytes where shown. Seems like `endobj` and `xref` are not shown.
29.
▲
by
tyilo
2y ago
Also see https://math.andrej.com/2009/12/28/constructive-gem-irration... for a similar proof using 2^(log_2 3)
30.
▲
by
tyilo
2y ago
He also didn't state that the number is always in the set {59}, so you will always win 5 dollars.
More ›