_ahxg's comments

_ahxg | 2 years ago | on: Why Async Rust?

Do you know an example of such case in the Rust ecosystem?

_ahxg | 2 years ago | on: Ask HN: Is it just me or is mobile web browsing awful?

> the relentless nagging by some sites to install the mobile apps needs to die.

It seems all about the hope that you can keep the user engaged long terms. I don't blame them, competition for user attention is brutal in the age of the SEO content farms, oligopoly of social networks and the "Tyranny of the Marginal User" as posted here a few days ago.

But probably way less effective now that most users seem overwhelmed by so many push notifications and instinctively learned to mass ignore or dismiss them (myself included, just randomly noticed that background habit a while ago). And then we end-up with piles of installed unused apps just like lost websites in the browser history.

_ahxg | 2 years ago | on: Making Rust supply chain attacks harder with Cackle

Quite interesting. That doesn't seems like a complete falling apart but rather a (unintentional?) attempt of best of worlds since once set your dependencies on your binary, they will be pinned until you manually run a cargo update.

Granted that the supply chain attack defense would fall on the hands of the users of the library. Unless the library writer aggressively pins of dependencies on the Cargo.toml (not the default semver action), problematic, but at least Cargo allows multiple versions of dependencies on a program, on Python for instance this is much complicated scenario (but still the smallest of the dependencies problems there).

_ahxg | 2 years ago | on: The HTTP/2 Zero-Day Vulnerability, and Israel-Gaza Internet Patterns

Nice podcast. So how bad was the impact of the attacks on Google, Amazon, Cloud Flare and the likes with this vulnerability? I recall a thread here about Google managing to defeat the worst attack ever too, so in the end nothing so bad really happened with the big players?

_ahxg | 2 years ago | on: How to speed up the Rust compiler

You can enable optional features on Rust analyser. For example, to enable ssr Leptos feature on VSCode, you'd need to create a .vscode/settings file:

{ "rust-analyzer.cargo.features": [ "ssr" ] }

Currently, though, you cannot enable the incompatible "hydrate" feature at the same time, sadly.

_ahxg | 2 years ago | on: Rust vs. Go in 2023

That's a fair point, although there is a simple solution in Rust (and other RAII languages) to use heap allocation if what you want is moving big chunks of data (so only the pointer is moved) or in case you really want copies, reference counting (Rc/Arc in Rust).

_ahxg | 2 years ago | on: Rust vs. Go in 2023

> Is Rust's compile-time GC about something other than performance somehow?

AFAIK, memory safety and language features as RAII is also available in C++, for instance. About the reasons for slow compilation, take a look at https://www.reddit.com/r/rust/comments/xna9mb/why_are_rust_p...

Not having a GC is also about not having a runtime as you mention (e.g. nice for creating Python extensions and embedded systems programming) and also more runtime deterministic performance: on that, if I'm not mistaken that was the reason for Discourse switching to Rust and also, e.g.: "the choice of Rust as the main execution language avoids the overhead of GC pauses and results in deterministic processing times" https://github.com/apache/arrow-ballista/blob/main/README.md

page 2