Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wmanley
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
wmanley
1mo ago
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 to date as my app evolves. FWIW I have a potential sol
2.
▲
by
wmanley
1mo ago
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 each command invocation in bwrap (+http pro
3.
▲
by
wmanley
2mo ago
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 better if it were built in.
4.
▲
by
wmanley
3mo ago
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 purposes of diversity it's the sa
5.
▲
by
wmanley
3mo ago
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[2]. It's better that all the connections simply s
6.
▲
by
wmanley
3mo ago
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` syscall by default, but can optionally write via the mmap inste
7.
▲
by
wmanley
3mo ago
> seemingly because Zuck isn't aware of how untalented the guy is. Maybe Zuck just wanted his laptop to get better.
8.
▲
by
wmanley
3mo ago
> 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 because I have a use-case that the original aut
9.
▲
by
wmanley
3mo ago
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 browser * Show errors to the user - even if they are ugly
10.
▲
by
wmanley
3mo ago
The counterargument: In Defence of the Single Page Application: https://williamkennedy.ninja/javascript/2022/05/03/in-defenc...
11.
▲
by
wmanley
4mo ago
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 docker never supported it. I feel like if they h
12.
▲
by
wmanley
4mo ago
Wonderful. I love the poem at the end too.
13.
▲
by
wmanley
5mo ago
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 TRANSACTION; ROLLBACK; Otherwise the new change
14.
▲
by
wmanley
5mo ago
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/mmap.html : > The default mechanism by
15.
▲
by
wmanley
5mo ago
Business logic tests will rarely test what happens to your data if a machine loses power.
16.
▲
by
wmanley
7mo ago
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 actually support being used this way and require f
17.
▲
by
wmanley
7mo ago
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.
18.
▲
by
wmanley
9mo ago
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) in these discussions to prevent confusion.
19.
▲
by
wmanley
9mo ago
> 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 use of these features isn't possible.
20.
▲
by
wmanley
10mo ago
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 heavy. Also: use WAL mode and enable mmap.
21.
▲
by
wmanley
10mo ago
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 if time hasn’t elapsed it can just curl itself with the sam
22.
▲
by
wmanley
10mo ago
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 even with the backdrop-filter - and it makes no visual diffe
23.
▲
by
wmanley
10mo ago
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?
24.
▲
by
wmanley
10mo ago
What stickers did you used to have? I'm always fascinated with how people change their mind.
25.
▲
by
wmanley
10mo ago
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
26.
▲
by
wmanley
11mo ago
Even with volatile it’s a load and then a store no? It may not be undefined behaviour, but I don’t think it will be atomic.
27.
▲
by
wmanley
1y ago
> SSH is a "legacy protocol" and its users are "uneducated troglodytes", Who are you quoting here?
28.
▲
by
wmanley
1y ago
With jinja you’d use template inheritance and just update the base template for this: https://jinja.palletsprojects.com/en/stable/templates/#templ...
29.
▲
by
wmanley
1y ago
And also: > and so have 4 different libraries they rely on HTMX has no dependencies. https://htmx.org/essays/vendoring/ > and actually the most up to date version of two libraries you rely on are not interop
30.
▲
by
wmanley
1y ago
> Its always funny when i see these kinds of posts. What's funny about it?
More ›