105 karma · joined Jan 22, 2013 (13y ago) · 46 submissions
comment 1mo ago · link · parent
Yes, but the amount of work needed here is overstated. With good orchestration/prompting in the task[1] (and token budget), the work on this end is significantly reduced.
… and then the brain drain issue returns.
[1] https://claude.dev/blog/solving-code-review-at-anthropic/
comment 2mo ago · link · parent
< README.md \
tr -c '[:alpha:]' '\n' \
| tr '[:upper:]' '[:lower:]' \
| awk '
NF {
if (!($0 in count)) order[++n] = $0
count[$0]++
}
END {
for (i = 1; i <= n; i++) {
print count[order[i]], order[i]
}
}
'
If you don't allow `awk` in your "pure bash" then ofc this is not satisfactory. But it has the upside that the associative arrays are pretty explicit data structures (for the ordering and counts, respectively).comment 2mo ago · link · parent
In contrast to the "we need a frequency table" idea in the article, this solution trades off memory by transferring all the line numbers in the stream. This is very much in the spirit of the infamous McIlroy/Knuth "bakeoff"[1] -- tradeoff some efficiency (via extra book-keeping or sorts) in return for composability.
Agreed, very neat.
[1] https://homepages.cwi.nl/~storm/teaching/reader/BentleyEtAl8...
comment 4mo ago · link · parent
It’s fine.
When running many agents something like the “idle/working workstreams” gutter is honestly helpful though.
comment 5mo ago · link · parent
In my experience it takes a while (<=3 months) for folks to become proficient when they see an alien dialect of c++. That may sound totally unacceptable to you (fair). Cpp is also a “big tent” language in that it is genuinely multi-paradigm.
I think LLM’s might help, but sometime they hurt too (confidently/persuasively wrong analyses). The gain is large for small/trivial contributions. For changes that require genuine understanding, I’m not sure (large error bars personally as to whether the sign is even positive).
comment 5mo ago · link · parent
At the time, I found this a bit irritating, but with a few weeks time I see the merit. The informational content tends to fall into “derivative” territory when LLM’s write stuff. And people are here for novelty and some socialization.
Also LLM prose seems optimized for engagement rather than concise communication. Takes longer to sift through linguistic boilerplate to get to the point. (The quoted bit being a case in point)
comment 6mo ago · link · parent
The initial plain/dense algorithm looks pretty straightforward, but not sure about the tree construction.
comment 7mo ago · link · parent
That's the hope!
> Saw it's written in Zig, how's that been for this kind of systems tooling?
Zig has been pretty fine. It could have just as well been done in C/C++ but as a hobby thing I value (a) fast compilation (rules out building stuff in C++ without jumping through hoops like avoiding STL altogether) and (b) slightly less foot guns than C.
The source code itself is largely written with LLM's (alternating between a couple models/providers) and has a bit of cruft as a result. I've had to intervene on occasion/babysit small diffs to maintain some structural coherence; I think this pretty par for the course. But I think having inline unit tests and instant compilation helps the models a lot. The line noise from `defer file.close();` or whatever seems pretty minor.
Zig has pretty easy build/distribution since the resulting executable has a dependency on just libc. I haven't really looked into packaging yet but imagine it will be pretty straightforward.
My one gripe would be that the stdlib behavior is a bit rough around the edges. I ran into an issue where a dir was open(2)'d with `O_PATH` by default, which then makes basically all operations on it fail with `EBADF`. And the zig stdlib convention is to panic on `EBADF`. Which took a bit or reading zulip+ziggit to understand is a deliberate-ish convention.
All this to say, it's pretty reasonable and the language mostly gets out of the way, and let me make direct libc/syscalls where I want.
comment 7mo ago · link · parent
ZFS -- slow reads due to pool-level decompression. zfs has it's own utilities, iirc it's something like `zpool iostat` to see raw disk vs filesystem IO.
RAID -- with heterogenous disks in something like RAID 6, you get minimum disk speed. This shows up when doing fio benchmarking (the first thing I do after setting up a new filesystem/mounts). It could be that better sw has ameliorated this since (last checked something like 5ish years ago).
14.
Show HN: Jbofs – explicit file placement across independent disks(github.com ↗)
4 points · by aozgaa · 7mo ago · 4 comments
15.
Why Lean?(leodemoura.github.io ↗)
3 points · by aozgaa · 8mo ago · discuss
comment 9mo ago · link · parent
comment 1y ago · link · parent
LLM’s are fundamentally text generators, not verifiers.
They might spot some typos and stylistic discrepancies based on their corpus, but they do not reason. It’s just not what the basic building blocks of the architecture do.
In my experience you need to do a lot of coaxing and setting up guardrails to keep them even roughly on track. (And maybe the LLM companies will build this into the products they sell, but it’s demonstrably not there today)
comment 1y ago · link · parent
> Turns out, it doesn’t matter that much where your first offer is from, or even how much they’re offering you. Just having an offer in hand will get the engine running.
> If you’re already in the pipeline with other companies (which you should be if you’re doing it right), you should proactively reach out and let them know that you’ve just received an offer. Try to build a sense of urgency. Regardless of whether you know the expiration date, all offers expire at some point, so take advantage of that.
Anecdotally, I have seen this work many times to great effect.
comment 3y ago · link · parent
comment 4y ago · link · parent
Managing a landfill/sewage plant can be worthwhile.
comment 4y ago · link · parent
* if your post gets reported 10 times, it gets taken down
* if your post gets reported (# of followers / 10) times, it gets taken down
* if your post gets reported (# of followers * 100) times, it gets taken down
Which of these are fair in your opinion? For an account with a huge # of followers, the last one effectively means their posts can't be taken down.
It seems a system like XCheck is a step function where at a certain point, you get exempt from certain checks altogether.
The "equality" here could refer to each account's potential to go through the vetting that would give them exempt status.
==============
Maybe this deserves a separate response, but another way to think of this is to compare it to income taxes. There are different income brackets that affect your marginal tax rate in the US. Is it equal for everyone to pay the same dollar amount in income taxes? The same rate? A progressive rate? Are people treated equally under the law in all these cases? In none of them?
comment 4y ago · link · parent
The timing of his announcement was suspicious: https://m.youtube.com/watch?v=CH55WpJxF1s
And he’s gotten some flak from a high profile Republican as well: https://m.youtube.com/watch?v=7kT_80NaS6A