Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
killercup
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
Rust game engine Bevy's sixth birthday
(bevy.org)
2 points
by
killercup
1mo ago
|
0 comments
2.
▲
by
killercup
3mo ago
Is this the way forward for the EU? Genuinely curious: Are there any EU providers that host the very good recent Chinese open weight models? Like, an EU-based alternative to DeepSeek's own API offering? To me, that sounds like an easie
3.
▲
by
killercup
3y ago
Because this code block looks quite complex, I want to add that it can also be just smol::block_on(async { println!("I'm async!"); }); (I thought tokio had a helper like this too but could only find `toki
4.
▲
by
killercup
5y ago
Ripgrep includes one of the most prominent algorithms from Hyperscan internally for some expressions. Longer story: Ripgrep uses Rust's regex library, which uses the Aho-Corasick library. That does not just provide the algorithm it is
5.
▲
by
killercup
5y ago
> If the work is done I expect Rust to be faster than C and C++ for the same reason that C++ can sometimes be faster than C: a more advanced type system can allow better optimization in many cases. Every now and then I check in on whethe
6.
▲
by
killercup
6y ago
Technically, he only got tested the day after Christmas, so I'm assuming they picked the more dramatic date.
7.
▲
by
killercup
6y ago
I'm implying they did not read the article.
8.
▲
by
killercup
6y ago
There's no need to take that bet if you can instead just read the article, however. No idea why you bring up a German statistic.
9.
▲
by
killercup
6y ago
This is as suprising as the amount of comments assuming the nurse is female. Edit for those who just comment after reading the headline: The article clearly states the nurse is Matthew W. and uses the he pronoun in the following sentences.
10.
▲
by
killercup
6y ago
dupe of https://news.ycombinator.com/item?id=25149969
11.
▲
by
killercup
6y ago
> I don’t understand what a ‘packer’ is You've found the right series of articles then!
12.
▲
by
killercup
6y ago
Start at part 1. No, he doesn't give you an answer, but you might just find it interesting enough to no longer have the qusstion.
13.
▲
by
killercup
6y ago
Author here. Please note that the "cheap" in the title refers to the effort needed as well as how sophisticated the tricks are; benchmarking and optimizing your algorithms is still super important! This was discussed quite a bit o
14.
▲
by
killercup
7y ago
Tar was released in '79 iirc, so it's about the same age.
15.
▲
by
killercup
7y ago
The RFC for adding `?` to the language might be a good start: https://rust-lang.github.io/rfcs/0243-trait-based-exception-...
16.
▲
by
killercup
7y ago
Hi, author of large parts of this here! This was written in the lead up to the Rust 2018 edition release last year, but it should still be pretty much up-to-date. There is a lot of more info and discussions on the associated repo [1]. We di
17.
▲
by
killercup
7y ago
> Anyone have any ideas about which open source codebases UTF-8 validators exist in? Rust's std library -- the canonical way to read a text file to a string is to (implicitly) use `std::str::from_utf8`. If I remember correctly, the
18.
▲
by
killercup
7y ago
(2017)
19.
▲
by
killercup
7y ago
Not sure. Having the ability to abstract over tuples (using a similar mechanism as HLists for example) would help.
20.
▲
by
killercup
7y ago
I can't speak for the actix-web maintainers but I did find this in their examples: #[get("/resource1/{name}/index.html")] fn index(req: HttpRequest, name: web::Path<String>) -> String {
21.
▲
by
killercup
7y ago
Correct. Fun fact: The amount of traits implementations that need to be generated to support tables with 128 columns actually makes diesel an interest benchmark of the Rust compiler.
22.
▲
by
killercup
7y ago
The simple builder pattern often looks like a lot of boilerplate, I agree. But you can easily crank the coolness of it up a notch by using one of these properties: - Hide the fields of your struct to not break your users when adding/ch
23.
▲
by
killercup
8y ago
Took me a while to find it, but Rust's iterators have an `.inspect` method that gives you a read-only reference, so println debugging works fine. For more advanced tap-like stuff, use the `tap` crate (which allows you to write `array.t
24.
▲
by
killercup
8y ago
Scroll down: You can use the cv04 font feature to change the style of the lowercase l!
25.
▲
by
killercup
8y ago
This also makes incremental compilation faster, doesn't it?
26.
▲
by
killercup
8y ago
> Is there something genuinely computationally harder about compiling Rust? I'm not sure. Here's what I know: Rust has a complex type system. It also compiles whole packages (crates) at a time, and heavily uses monomorphization
27.
▲
by
killercup
8y ago
tracked in https://github.com/lukaslueg/macro_railroad/issues/5 if anyone cares
28.
▲
by
killercup
8y ago
> Who determines the output type of "a + b"? "a"? "b"? Both? Are there implicit type conversions? The Add trait is defined in `std::ops::Add` as: pub trait Add<RHS = Self> { type Output;
29.
▲
by
killercup
8y ago
Waiting to see an example with footnotes and auto references ;)
30.
▲
by
killercup
8y ago
Please note that upx also compresses your binary contents and decompresses it at runtime. When downloading a WASM file over HTTP, the server can gzip it transparently. It'd be interesting to compare the effects on the size with what up
More ›