Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
JoshMcguigan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
JoshMcguigan
6y ago
Thanks for sharing. I’d like to hear more about the website described here, it sounds very interesting.
32.
▲
by
JoshMcguigan
7y ago
Thanks for sharing. Your book sounds very interesting to me. I like that it targets generating real ARM assembly. I've signed up for updates, looking forward to the release!
33.
▲
by
JoshMcguigan
7y ago
The pipeline approach here is interesting, but it seems you'd be on your own for filtering out changes in the build directory, etc. I typically use watchexec [1] for this. watchexec make By default, watchexec will filter out c
34.
▲
by
JoshMcguigan
7y ago
Hey HN, author here. I got curious about the performance cost of trait objects vs generics in Rust (and more broadly about the cost of dynamic vs static dispatch), so I created this series of benchmarks comparing the performance implication
35.
▲
The Cost of Indirection
(joshmcguigan.com)
2 points
by
JoshMcguigan
7y ago
|
1 comments
36.
▲
by
JoshMcguigan
7y ago
Having the right team and organizational structure can go a long way toward aligning incentives.
37.
▲
by
JoshMcguigan
7y ago
I'll second this recommendation. Every episode so far has been top notch! I really hope they are able to keep the quality bar high as they continue to make episodes.
38.
▲
by
JoshMcguigan
7y ago
Hey HN, OP here. This is the third post in a series about running your own authoritative DNS infrastructure. The previous posts were about why I'm doing it and how to setup an authoritative DNS server [0], and how I monitor these machi
39.
▲
Blue-Green Deployments and Immutable Infrastructure
(joshmcguigan.com)
11 points
by
JoshMcguigan
7y ago
|
1 comments
40.
▲
by
JoshMcguigan
7y ago
In my experience, languages with strict non-null guarantees (and optional types), do the exact opposite of "mask the error". If anything, they are sometimes faulted for being too verbose. The idea is, by explicitly marking things
41.
▲
by
JoshMcguigan
7y ago
The goal of `Optional[T]` is not to "make the problem magically go away", in fact that is almost the opposite of the goal. Optional[T] exists to make it very obvious when a value is nullable. Having non-nullable types as default,
42.
▲
by
JoshMcguigan
7y ago
For your `sqr` function, what is the benefit of writing `x * x` over using `x.powi(2)` [0]? You didn't mention it in the article, but did you find a performance improvement from doing this? [0]: https://doc.rust-lang.org
43.
▲
by
JoshMcguigan
7y ago
Thanks for the response. So it sounds like it is not so much the allocation/de-allocation savings that matters, but rather that you get to skip initializing the memory because it is already known to be a valid instance of a given struc
44.
▲
by
JoshMcguigan
7y ago
> On startup, 128 request and response objects are pre-allocated in per-thread pools. As a request comes in, one of them is checked out, populated, and handed off to user code. When that code finishes with it and the object is going out
45.
▲
by
JoshMcguigan
7y ago
I look forward to seeing the ladder logic editor. I run PLCFiddle [0], which is a purely React ladder logic editor. [0]: https://www.plcfiddle.com
46.
▲
by
JoshMcguigan
7y ago
Hi all, author here. I recently took an interest in running more of my own infrastructure, as I think that is the best way to deepen my understanding of how things work. This blog post outlines why and how I run my own authoritative DNS ser
47.
▲
Run Your Own Authoritative DNS Servers
(joshmcguigan.com)
11 points
by
JoshMcguigan
7y ago
|
1 comments
48.
▲
by
JoshMcguigan
7y ago
For those who haven't seen it, I believe reacweb is referencing this [0]. [0]: https://www.folklore.org/StoryView.py?story=Calculator_Const...
49.
▲
by
JoshMcguigan
7y ago
I found quadcopters to be a great way to get into embedded development. There are a couple posts on my blog [0] [1] related to getting Rust running on a quadcopter controller, although I never actually got my code controlling the drone in f
50.
▲
by
JoshMcguigan
7y ago
Is the 85MB test file available? I wasn't able to find it. I'd like to test this result against nerve [0], a brainfuck to x86_64 asm compiler I wrote (like funkicrab, it is also written in Rust). [0]: https://github.com
51.
▲
by
JoshMcguigan
7y ago
> Any titles for specific story IDs that change get tracked.. Can you talk more about the data infrastructure?
52.
▲
by
JoshMcguigan
7y ago
How do you view your Netlify usage while on the free tier? Your comment made me curious about my own usage, but I can't see a way to determine my current usage through the Netlify website.
53.
▲
by
JoshMcguigan
7y ago
I always thought it was "The Fine Article".
54.
▲
by
JoshMcguigan
7y ago
For anyone who hasn't seen it, I highly recommend structopt over clap. It is a wrapper around clap which provides type safe parsing of CLI arguments into a struct you define. It is also what TFA uses.
55.
▲
by
JoshMcguigan
7y ago
Here’s another fancy idea: Write that README before you write the code. I find this idea to be very effective, as long as the scope can be kept to a minimum (think MVP). I've seen it work not only for CLI apps, but also for simple HT
56.
▲
by
JoshMcguigan
7y ago
Thanks for sharing. I'm not familiar with D, but it looks like compile time type introspection is something which is built into the language, which removes the need for something like the serde derive macro. Is that correct?
57.
▲
by
JoshMcguigan
7y ago
> I want one casing rule for one target, and a different one for another Hmm, this is interesting, and something I hadn't thought of before. I'd probably try to solve it with a combination of the newtype pattern (create wrappe
58.
▲
Understanding Serde
(joshmcguigan.com)
121 points
by
JoshMcguigan
7y ago
|
38 comments
59.
▲
by
JoshMcguigan
7y ago
Is there a docker image available? I'd like to experiment with the package manager, but I'd rather not setup a VM.
60.
▲
by
JoshMcguigan
7y ago
I recently wrote a brainfuck compiler using Rust [0], but I targeted x86-64 asm directly. I implemented some very basic optimization (as you show at the bottom of your post), but I'd imagine llvm is able to take things much further. I&
More ›