Recent submissions

Comment · 1 year ago
Is it a coincidence that all these quality life things start to pop up after C++ is facing real competition for the first time? Seems a bit odd to add print after using std::out for 30 years.
Comment · 1 year ago
I've had great success with autovectorization in Rust. Majority of non-branching loops seem to consistently generate great assembly.
Comment · 1 year ago

  fn validate_ascii(bytes: &[u8]) -> bool{
      bytes.iter().fold(true, |acc, b| acc & (\*b <= 127))
  }
This check will likely be the best for english text/code. You can check in varying size chunks depending on how common you think non-ascii will be. If its ascii you can move 128 bytes forward on avx2 in a couple of cycles.
Comment · 2 years ago
Comment · 2 years ago
I've been wondering what is the "new" innovation about concurrency is in Go? Since most languages provide some type of channel/lightweight thread, what is the hype all about? I don't think Go makes the "hard" stuff in concurrency any easier, mainly the easy stuff becomes very easy, but in concurency most your time is spent in the "hard" parts.
Comment · 3 years ago
Couldn't agree more about the rust API. Python API seems OK. Found it very complicated to use and just clunky in general.
Comment · 4 years ago
I find it inconstant to be so pedantic about unused vars/imports to avoid bugs, but then leave error handling to what it is.
Comment · 4 years ago
I really want to love this language, a fast and simple garbage collected lang, but feel like they missed the spot a little. I just wish they did something different with error handling / nil, doesn't feel right for the language. Also whats up with stuff like unused imports being such a big deal?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton