HackerTrans
トップ新着トレンドコメント過去質問紹介求人

Laiho

no profile record

投稿

EOMM: An Engagement Optimized Matchmaking Framework (2017)

arxiv.org
1 ポイント·投稿者 Laiho·2 年前·0 コメント

Show HN: Gzip decompressor in ~300 lines of readable Python

github.com
4 ポイント·投稿者 Laiho·3 年前·1 コメント

Contains Method for a Slice

stackoverflow.com
1 ポイント·投稿者 Laiho·3 年前·1 コメント

Ask HN: What is a good first task for a new software developer?

5 ポイント·投稿者 Laiho·3 年前·7 コメント

コメント

Laiho
·昨年·議論
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.
Laiho
·昨年·議論
I've had great success with autovectorization in Rust. Majority of non-branching loops seem to consistently generate great assembly.
Laiho
·昨年·議論


  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.
Laiho
·2 年前·議論
If you prefer reading Python, I implemented the decompressor not too long ago: https://github.com/LaihoE/tiralabra
Laiho
·3 年前·議論
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.
Laiho
·3 年前·議論
Couldn't agree more about the rust API. Python API seems OK. Found it very complicated to use and just clunky in general.