Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alfons_foobar
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
alfons_foobar
18d ago
that link 404's :(
2.
▲
by
alfons_foobar
1mo ago
just curious, what problems do you see with gobgp? (I have only a rather basic familiarity with go, but was considering gobgp for an infra project...)
3.
▲
by
alfons_foobar
1mo ago
not an app per se, but pandoc is great...
4.
▲
by
alfons_foobar
2mo ago
ahh, gotcha! thanks!
5.
▲
by
alfons_foobar
2mo ago
Sorry, I am being dense... how does that solve the problem? I still have to get a connection from the pool, I just do it inside the function body now, right? So this @app.get("/users") def get_users(conn = Depends[g
6.
▲
by
alfons_foobar
2mo ago
I might be outing myself as a noob here, but... what is the (better) alternative?
7.
▲
by
alfons_foobar
2mo ago
Am I the only one seeing _crazy_ levels of CPU usage when opening the project's homepage ( https://buzz.xyz )? Like "maxing-out-8-cores"-crazy?
8.
▲
by
alfons_foobar
4mo ago
I am not a mobile dev :D I am aware that NAT is often used in corporate networks, but it does not automatically make any more sense there - the isolation is achieved by the firewall, not by NAT. NAT (address or port translation) and a firew
9.
▲
by
alfons_foobar
5mo ago
NAT is a crutch to circumvent the problem of "there are not enough addresses for each device". I _assume_ you are referring to a default deny inbound firewall (so that devices are not reachable from the outside), but these are ver
10.
▲
by
alfons_foobar
5mo ago
I am not sure this approach can take you very far. In my experience, CC makes it very very easy to _add_ things, resulting in much more code / features. CC can obviously read/understand a codebase much faster than we do, but this
11.
▲
by
alfons_foobar
5mo ago
I wondered about this as well. OTOH, consider that in the "pick the majority from 3 CPUs" approach that seems to have been used in earlier missions (as mentioned in the article) would fail the same way if two CPUs compute the same
12.
▲
by
alfons_foobar
7mo ago
While I agree in principle, as of now the latest commit to the pyaes repo and its latest release to pypi are from 2017...
13.
▲
by
alfons_foobar
7mo ago
> `NonZeroU32::saturating_add(self, other: u32)` is able to return `NonZeroU32` though! I was confused at first how that could work, but then I realized that of course, with _unsigned_ integers this works fine because you cannot add a ne
14.
▲
by
alfons_foobar
7mo ago
Would have to be F32, no? I cannot think of any way to enforce "non-zero-ness" of the result without making it return an optional Result<NonZeroF32>, and at that point we are basically back to square one...
15.
▲
by
alfons_foobar
9mo ago
> added random blank lines and deleted others from code that was not even in the file they were supposed to be working in. Maybe some kind of auto-formatter?
16.
▲
by
alfons_foobar
10mo ago
Agree that "splitting for splittings' sake" (only to stay below an arbitrary line count) does indeed not make sense. On the other hand I often see functions like you describe - something has to be executed step-by-step (and t
17.
▲
by
alfons_foobar
1y ago
Fair point! Maybe I am just a bit burned by this particular example I ran into (where this pattern should IMO not have been used).
18.
▲
by
alfons_foobar
1y ago
I ran into some code recently where this pattern caused me so much headache - class A has an attribute which is an instance of class B, and class B has a "parent" attribute (which points to the instance of class A that class B is
19.
▲
by
alfons_foobar
1y ago
Agreed that this "hack" is very ugly! On the other hand, I tend to take it as a hint that I should look at my module structure, and see if I can avoid the cyclic import (even if before adding type hints there was no error, there s
20.
▲
by
alfons_foobar
1y ago
He explicitly mentioned RAID0 though :)
21.
▲
by
alfons_foobar
1y ago
This sounds intriguing and terrible at the same time :D
22.
▲
by
alfons_foobar
1y ago
This 100%
23.
▲
by
alfons_foobar
1y ago
The formatter already exists, my understanding is that this is merely an alias for "uvx ruff"...
24.
▲
by
alfons_foobar
1y ago
> I think there's a distinction between worst-case and adversarial behavior. I think _technically_ there is no difference - it does not matter if the worst-case-behavior is triggered by an "adversary" or by chance. It _doe
25.
▲
by
alfons_foobar
1y ago
Huh, I had not heard of claude code cloud before. (Also almost swallowed my tongue saying that out loud)
26.
▲
by
alfons_foobar
1y ago
Why is it that regular git hooks do not work with claude code?
27.
▲
by
alfons_foobar
1y ago
I guess some prefer to stick with the stdlib instead of third party libs. Also, dataclasses feels more straightforward and less "magic" to me (in the sense that it is more or less "just" a way to avoid boilerplate for cl
28.
▲
by
alfons_foobar
1y ago
Pretty sure it has eSIM (at least my FP4 has it...)
29.
▲
by
alfons_foobar
1y ago
What do you mean, "unknown contents"? Just trace back the dict to it's origin, through all the places it can be modified, and you know what is (or could be) inside... /s
30.
▲
by
alfons_foobar
1y ago
That's a funny idea :) I think the first one should be very much doable, but I am not sure how I would build the "almost complete" and the "similar colors" features.
More ›