Better HN
topnewbestaskshowjobs
Log inSign up

adamch

1,877 karma · joined Dec 2, 2015 (10y ago) · 173 submissions

Australian, reluctantly turned Texan.

Building CAD at Zoo.dev. Previously Cloudflare (Tunnel, Zero Trust, Data Loss Prevention).

https://blog.adamchalmers.com

https://twitter.com/adam_chal @adamchalmers.com on Bluesky

Submissions

comment 1w ago · link · parent

because they change the binary layout sometimes, and the benefits have not yet been judged to be worth freezing it.

comment 1mo ago · link · parent

I'm glad to see the donations from big companies to open source maintainers are making measurable difference to the Rust experience. Telling these companies that their employees spend 5% less time waiting for compilation might motivate future investment in people like Nick and the others mentioned.

comment 2mo ago · link · parent

Lovely to see Cloudflare Tunnel frontpage on HN. Working on Tunnel was the highlight of my career. It was a fun product with a lot of bugs to fix, features to add, architecture to design. We were all working in-person, solving incidents together, getting lunch together every day. Taught me so many important skills that have helped me in every other project I've ever worked on.

comment 5mo ago · link · parent

PRs are welcome.

5.

Announcing Rust 1.96(blog.rust-lang.org ↗)

143 points · by adamch · 6mo ago · 38 comments

6.

Git Absorb(github.com ↗)

2 points · by adamch · 9mo ago · discuss

7.

Rv 0.5: Windows support, rv run, rvx(spinel.coop ↗)

4 points · by adamch · 9mo ago · discuss

8.

Cloth Simulation(cloth.mikail-khan.com ↗)

208 points · by adamch · 11mo ago · 41 comments

9.

Reproachfully Presenting Resilient Recursive Descent Parsing(thunderseethe.dev ↗)

3 points · by adamch · 1y ago · discuss

comment 1y ago · link · parent

They'll announce that along with M5 Pro and Max in March or so.

comment 1y ago · link · parent

My guess is that users can select a query at runtime, sending it to you via http or any other text.

12.

Which Rust combinator should I use?(rustcombinators.com ↗)

2 points · by adamch · 1y ago · discuss

13.

The Case for a High-Level Kernel-Bypass I/O Abstraction(irenezhang.net ↗)

16 points · by adamch · 2y ago · 2 comments

comment 2y ago · link · parent

This is interesting. But how would you use it? You'd need to open up a new type of socket (neither TCP nor UDP but nyxpsi) and everything along your network route would need to support it. So it wouldn't be useful with existing mobile networks (middle boxes won't speak the protocol) nor within the data center (because it's used for high packet loss situations). So what's the use case? Custom wireless networks with embedded devices?

comment 2y ago · link · parent

I didn't mind the controls, they were somewhat clunky but fine once you got used to them.

The game suffered imo because the puzzles had nothing to do with the story. They felt arbitrary and disconnected from the world, unlike the puzzles in Myst. Solving them never felt very intriguing, I was motivated to solve them just because that's what you have to do to finish the game, rather than motivated to solve them because they were interesting.

comment 2y ago · link · parent

There are some CF SWEs in Australia. But few teams are willing to work across 3 timezones. The SRE teams might be more open to hiring, as there's a big SRE presence in Singapore.

17.

Free users are incredible(blog.adamchalmers.com ↗)

4 points · by adamch · 2y ago · discuss

comment 2y ago · link · parent

Nice job! I'm glad the team was able to ship a useful subset of the desired functionality. Yes the current implementation shipping next week has limitations, but they're clearly marked, the compiler helpfully explains them and warns you away from some sharp edges.

I'm glad the Rust project is willing to ship useful but limited features quickly, see how people use them, and then iterate and slowly remove the restrictions in the future. I think it'll be more productive than taking another 3 years to solve all the remaining rough edges and problems.

19.

Geometry to Algebra and Back Again(jackrusher.com ↗)

1 points · by adamch · 3y ago · discuss

20.

Rustconf 2023 Recap(blog.adamchalmers.com ↗)

3 points · by adamch · 3y ago · discuss

comment 3y ago · link · parent

> tokio uses a 'static, threaded runtime that has its benefits but requires its futures to be Send and 'static.

This is only partly true -- if you want to `spawn` a task on another thread then yes it has to be Send and 'static. But if you use `spawn_local`, it spawns on the same thread, and it doesn't have to be Send (still has to be 'static).

comment 3y ago · link · parent

Wow, I've been using tokio for years and never knew about this. Thanks!

comment 3y ago · link · parent

I love ligatures. First thing I do in a new machine is install this font. I won't use a terminal or IDE that doesn't support them.

comment 3y ago · link · parent

You don't need a websocket proxy. CF tunnel supports TCP and UDP just fine.

25.

Introduction to HTTP Multipart(blog.adamchalmers.com ↗)

79 points · by adamch · 3y ago · 17 comments

comment 3y ago · link · parent

Really excellent simulation and explanation. Thank you!

comment 3y ago · link · parent

I would choose [axum](https://docs.rs/axum) as my default Rust server framework. It compiles quickly, it's very ergonomic, and it integrates well into the rest of the ecosystem.

Never wrote a Java web server sorry cannot compare.

comment 3y ago · link · parent

I would love to use Haskell. The main reason I stopped writing Haskell and started writing Rust was that I could more easily teach new programmers Rust due to better compiler error messages, and Cargo is 10000x easier to use than the Haskell package managers, which never seem to be able to resolve the right set of versions for me.

Being able to write a lot of functional Rust and drop down to imperative/mutation when necessary also eases the curve compared to Haskell.

comment 3y ago · link · parent

Hello, author here. My coworker Olivia (of https://losslessbits.com/) really likes SQLx, I haven't personally used it though. I'd love to try it for a future project, as long as it can help typecheck my SQL queries.

comment 3y ago · link · parent

I started a personal blog two years ago, roughly. Even if nobody had read it, I'd feel successful, because I only write about things I'm confused about or learned recently. Then I can link them to my coworkers and they get an exact guide about this particular issue.

But, people _have_ actually read it, which is nice. I've hired at least one person through my blog (he emailed me after reading it), and he was awesome to work with. A lot of coworkers have messaged me saying "hey, I was googling for this problem I'm having, and I found your blog, and I realized you work at the company, so thank you!" I've benefited so much from reading developer blogs throughout my career, so it's nice to be able to give back and help others too.

I think it's helped me get better at technical writing and show employers that I can do more than just write code too.

123456