Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adamch
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
Parsing Text with Nom
(blog.adamchalmers.com)
52 points
by
adamch
5y ago
|
19 comments
62.
▲
by
adamch
5y ago
Very happy about the speed and privacy improvements. I'm excited to install this.
63.
▲
by
adamch
5y ago
Yes, this is just a simplification of the real problem I was solving: docs.rs/restartables
64.
▲
by
adamch
6y ago
Rust 1.51 stabilized a lot of const generics use-cases, but there are still some advanced parts which are only on Nightly. For example, doing math with const generics, like an array [String; WIDTH * HEIGHT], still requires nightly.
65.
▲
by
adamch
6y ago
This is, literally, the exact same reason I use const generics. I was so excited when I started using them on Rust beta and could shave off some allocations!
66.
▲
by
adamch
6y ago
Unfortunately I can't answer because I never learned C++. By the time my career required me to learn a low-level systems language, Rust was available, so I didn't have any need for C++.
67.
▲
by
adamch
6y ago
Last night I was writing a blog post about how to use const generics. I included instructions on installing Rust Beta, and setting your directory to use the Beta compiler instead of Stable. I started to write a disclaimer like "By the
68.
▲
Using Const Generics in Rust
(blog.adamchalmers.com)
4 points
by
adamch
6y ago
|
2 comments
69.
▲
by
adamch
6y ago
Wow, awesome code. I really respect the 2000 line match, it's a really neat abstraction. Keep some state, have an exhaustive list of everything users can do, and define exactly how each possible user action can change that state. Beaut
70.
▲
by
adamch
6y ago
My job isn't to write a program that shares objects between threads. My job is to write a program that responds to web requests or stores user data or responds to queries or checks the state of certain services. In some languages and f
71.
▲
by
adamch
6y ago
This is pretty overblown. I write async rust every day for my job, just fine, with no real problems. Probably because I'm consuming other libraries, I'm not trying to write my own. I use well-tested libraries like Actix-Web or occ
72.
▲
by
adamch
6y ago
You can't abstract over it in the same way that you can in Haskell, because you have to manage ownership. You can't abstract away ownership as easily, because the language is designed to make you care about ownership. I write Rust
73.
▲
by
adamch
6y ago
Wow, higher-kinded data. I've never heard of that, but it would absolutely be useful. E.g. for converting JSON inputs, where any field might be missing, into a version of the data which definitely has values for all the fields. Or a ve
74.
▲
by
adamch
6y ago
How do you "own" something that everyone else can consume and replicate? Owning a physical item implies a degree of control over it. Owning a public digital item doesn't seem to grant any kind of control. I feel like this is
75.
▲
Python Cryptography, Rust, and Gentoo
(lwn.net)
3 points
by
adamch
6y ago
|
1 comments
76.
▲
by
adamch
6y ago
ripgrep's src/ contain both library code and unit tests. The grep source code appears to use different tests/ and src/ directories. ripgre's source code files appear to be between 1/3 and 1/2 unit tests, i
77.
▲
by
adamch
6y ago
Perhaps the developers had a success metric other than LOC.
78.
▲
by
adamch
6y ago
Yes, this was my immediate thought too. I love writing Haskell, but Rust has become my daily driver, both at work (Cloudflare) and personal projects. It gives me the excellent type system, better domain modelling, great ecosystem (serde, ac
79.
▲
by
adamch
6y ago
It's predictive of a forthcoming legally-significant event.
80.
▲
by
adamch
6y ago
At a general level, you may work with users, and it's important to not have fallacious thinking about users, e.g. "if I can dispel belief X their behaviour will change to Y". Instead, Talib would bet their behaviour will stil
81.
▲
by
adamch
6y ago
We use it for many projects at Cloudflare. My team, Argo Tunnels, uses it for our backend and our end-to-end monitoring/healthchecks.
82.
▲
by
adamch
6y ago
It's a little thing, but one of my favourite parts of any Rust release is seeing which stdlib functions become `const`. The ergonomics of build-time evaluation are slowly improving, and I'm very excited to slowly do less at runtim
83.
▲
by
adamch
6y ago
Postgres has great docs. It's one of the big reasons I love it so much. Very comprehensive, although I usually skip straight to the examples.
84.
▲
by
adamch
6y ago
At my job we use Actix Web for a server deployed in prod. We never use Nightly, I don't think Actix Web depends on any nightly features. All stable :)
85.
▲
by
adamch
6y ago
I think the docs are much better than they used to be. Just my personal experience, but I found Actix Web very easy to get started with for my job. There's also a Gitter chat room where people are pretty responsive.
86.
▲
by
adamch
6y ago
Congratulations to the team. I've been working on an actix-web service for my job for ~6 months now, and it's generally been very pleasant. I'm really excited at how well the transition from a single maintainer to a community
87.
▲
Actix-Web v3.0
(paper.dropbox.com)
1 points
by
adamch
6y ago
|
1 comments
88.
▲
by
adamch
6y ago
Restarting your tunnel should fix it. We're slowly triggering a graceful restart of all tunnels, but if you restart yours, you'll get fixed faster.
89.
▲
by
adamch
6y ago
I think the new connector is only on the 3090.
90.
▲
by
adamch
6y ago
I wonder if the pricing will drop once AMD releases their ray-tracing PC GPUs.
More ›