Viewing profile — wmanley
wmanley
HN member- Joined
- Mon, Jun 18, 2018, 5:07 PM UTC
- HN karma
- 969
- Public activity
- 181 items
- HN profile
- View on Hacker News ↗
About wmanley
No profile information was provided.
Recent public activity
-
comment
Comment #49203511
You mean by having a function per fragment? I don’t think this solves the hard to maintain bit - which is “which fragments should I regenerate/send”, and how do I keep that list up…
-
comment
Comment #49196653
The agent should ask whether it's allowed to read/write particular files, rather than whether it's allowed to run particular commands. It would be much easier to review. Then wrap …
-
comment
Comment #48876407
We use this for migrations: https://david.rothlis.net/declarative-schema-migration-for-s... Discussed here: https://news.ycombinator.com/item?id=31249823 But it would be a lot bett…
-
comment
Comment #48772562
It's not diverse in that case - it's the same compiler source compiled to binaries twice - it's just that with one compiler you've gone via a C intermediate representation. For the…
-
comment
Comment #48768311
I use mmap with my SQLite database[1] because I have many concurrent SQLite connections (one per concurrent HTTP request) and I don't want each connection to have its own 2MB cache…
-
comment
Comment #48768222
The context is in the sentence before your quote: > The memory map can be used as a read-only or read-write map. So presumably lmdb writes to the database using the `pwrite` syscal…
-
comment
Comment #48730023
> seemingly because Zuck isn't aware of how untalented the guy is. Maybe Zuck just wanted his laptop to get better.
-
comment
Comment #48488925
> A good fix (which is the only acceptable fix in open-source software), is one that speaks for itself. I disagree. Often if I'm making a PR to an open-source project I'm doing so …
-
comment
Comment #48477121
I disagree. An HTML website which uses links, forms, buttons and inputs will by default: * Have working back/forward buttons * Have working progress indicator as provided by the br…
-
comment
Comment #48476547
The counterargument: In Defence of the Single Page Application: https://williamkennedy.ninja/javascript/2022/05/03/in-defenc...
-
comment
Comment #48370125
I design all my services expecting to receive sockets this way. It makes sandboxing easy as the service itself doesn't need network access to have a listening socket. It's a shame …
-
comment
Comment #48146174
Wonderful. I love the poem at the end too.
-
comment
Comment #47967579
I've implemented something similar in the past, but using inotify. You need to watch the -wal file for IN_MODIFY. To make it work reliably I found I had to run: BEGIN IMMEDIATE TRA…
-
comment
Comment #47793289
SQLite in mmap mode (not the default) will use mmap for reading. It will still use write using `pwrite` so it can detect and recover from write failures. See https://www.sqlite.org…
-
comment
Comment #47780736
Business logic tests will rarely test what happens to your data if a machine loses power.
-
comment
Comment #47180286
It's a shame that unix tools don't support file descriptors better. The ability to pass a file (or stream, or socket etc) directly into a process is so powerful, but few commands a…
-
comment
Comment #47081605
US borders are awful. I guess you get away with it because the USA is so large that most people rarely leave, so rarely have to experience it.
-
comment
Comment #46325476
I guess that means you're using the colloquial meaning of the word safety/unsafe rather than the rust definition. It's worth being explicit about that (or choosing a different word…
-
comment
Comment #46324592
> in C only specific language features are unsafe and not all code Using rust's definition of unsafe which is roughly "can cause undefined behaviour" then it seems to me isolating …
-
comment
Comment #46125686
Use a connection per-thread instead. By sharing a connection across threads you’ll be limiting concurrency - and transactions won’t work as you’d expect. SQLite connections are not…
-
comment
Comment #46066755
Retries won’t work in that case. Would be better to have two endpoints: get the time in x seconds and wait until time passed. That way retrying the wait endpoint will work fine and…
-
comment
Comment #45898710
No, actually the biggest difference is removing the `filter` property from the `.wave2` class which is used for rendering the background. With that removed the page is responsive e…
-
comment
Comment #45898302
It's also perfectly responsive if you disable JavaScript. Maybe something related to the --positionX and --positionY CSS variables that are updated on every mouse move?
-
comment
Comment #45898270
What stickers did you used to have? I'm always fascinated with how people change their mind.
-
comment
Comment #45889990
Looks like it's caused by `backdrop-filter: blur(6px);` on `.menu-content`. After disabling that it's slow, but not that slow. Edit: This is with Firefox 144 on Ubuntu 22.04