Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aktau
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
aktau
1y ago
But there is a grain of truth to their commentary. "Modern" gets old fast, it probably shouldn't be used, just like "new" shouldn't be used in project/library names. IMHO, removing "modern, flexible a
62.
▲
by
aktau
1y ago
Thanks for that reference. Do you know if the JVM still uses thin locks? Did they migrate to thin locks? I ask because I found a 9 year old reference with a JVM calling futex: https://stackoverflow.com/questions/32262
63.
▲
by
aktau
1y ago
> In theory compare-and-swap or the equivalent instruction pair load-exclusive/store-conditional are more universal, but in practice they should be avoided whenever high contention is expected. The high performance algorithms for ac
64.
▲
by
aktau
1y ago
Reminds me a bit of Steve Yegge's latest [^1]. He gives an LLM full control over his editor (Emacs) by allowing it to call eval (as I understand it). He doesn't talk about which guardrails (if any) he put on this. [^1]: https:&#x
65.
▲
by
aktau
1y ago
Not sure if there is already quorum on what a solution for adding labels to non-point-in-time[^1] profiles like the heap profile without leaking looks like: https://go.dev/issue/23458 . [^1]: As opposed to profile that
66.
▲
by
aktau
1y ago
This goes straight into my reference list. Sandboxing a process is confusing on Linux. I appreciate that the article focuses on approaches that drop privileges without having root oneself. I've seen landlock referenced at time ( https:
67.
▲
by
aktau
1y ago
This is one area where Gerrit Code Review is (was? I don't know if it changed) is superior. It stores everything it knows about in git repositories (preferences in a separate meta git repository, comments, patches). With the right refs
68.
▲
by
aktau
2y ago
Does anyone know how this contrasts with `text-align: justify` (mentioned in https://news.ycombinator.com/item?id=43258709#43260606 )? In Chrome (can't test Safari), `text-wrap: pretty` has a much milder effect. Should
69.
▲
by
aktau
2y ago
I have the opposite experience. I find Cortazar impenetrable, but the Borges stories "speak to me".
70.
▲
by
aktau
2y ago
I should correct and clarify: I meant 3-4x more expensive in relative terms. Meaning: - For C++ programs, the allocator (allocating+freeing) consumes roughly 5% of cycles. - For Go programs, the allocator (runtime.mallocgc) used to c
71.
▲
by
aktau
2y ago
It is not. Please see my answer ( https://news.ycombinator.com/item?id=43545500 ).
72.
▲
by
aktau
2y ago
Side note: see https://tip.golang.org/doc/gc-guide for more on how the Go GC works and what triggers it. GC frequency is directly driven by allocation rate (in terms of bytes) and live heap size. Some examples: -
73.
▲
by
aktau
2y ago
Comparing with a fairly optimized malloc at $COMPANY, the Go allocator is (both in terms of relative cycles and fraction of cycles of all Go programs) significantly more expensive than the C/C++ counterpart (3-4x IIRC). For one, it has
74.
▲
by
aktau
2y ago
Upstream thinks a type-safer `sync.Pool` is a good idea too. It's being discussed in https://go.dev/issue/71076 .
75.
▲
by
aktau
2y ago
I've experienced quasi-remission twice now. Both times when I got so sick from food in a foreign country that I couldn't eat for days (and had no appetite for it either). I lived on water. Afterwards, for 1-2 weeks, I did not requ
76.
▲
by
aktau
2y ago
That sounds like double-buffering. Or did I misunderstand? Is it actually a ring-buffer? Can you give more details? What is a Half-Transfer interrupt?
77.
▲
by
aktau
2y ago
I actually like `nvim --clean`, which is just the basics. Early on in the Neovim project, a lot of heirloom defaults were changed to be more modern, resulting in a better (IMHO) out-of-the-box experience. I use `nvim --clean` as my man-page
78.
▲
by
aktau
2y ago
I highly recommend this to anyone reading HN. I wouldn't say it changed my life, but I think about Borges and Fictions/The Aleph at least once per year.
79.
▲
by
aktau
2y ago
Copying makes for surprising semantics, and prevents some representation changes. An example w.r.t. the surprising semantics: var ms []mypb.Message = ppb.GetMessages() // A repeated submessage field for i, m := range ms {
80.
▲
by
aktau
2y ago
I would.
81.
▲
by
aktau
2y ago
> > - Messages (especially opaque ones) are not supposed to be copied. > So? If you have a []mypb.Message, and range over it in the normal way: if _, m := range msgs { // Use. } That makes a copy of the struc
82.
▲
by
aktau
2y ago
It's true that this would perform better, and greatly reduce allocations. But: - Messages (especially opaque ones) are not supposed to be copied. The recommendation is to use `m := &mypb.Message{}`. - This would make migr
83.
▲
by
aktau
2y ago
Can you be specific? I'm curious.
84.
▲
by
aktau
2y ago
Both, actually. Without accessor methods, laziness couldn't be implemented.
85.
▲
by
aktau
2y ago
The author disables SMT (hyperthreading) like this: disabled_cpus=(1 3 5 7 9 11 13 15) for cpu_no in $disabled_cpus ; do echo 0 | sudo tee /sys/devices/system/cpu/cpu$cpu_no/online done B
86.
▲
by
aktau
2y ago
You've obviously done a bit of research. Have you ever seen the vitamin B12 link referenced in other studies? Are you taking supplements or did you get it tested?
87.
▲
by
aktau
2y ago
At least if one self-compiles Neovim (which I do), it's statically linked.
88.
▲
by
aktau
2y ago
I'd love to use this to profile Neovim, where (nowadays) user scripts are often written in Lua 5.1. Neovim by default embeds LuaJIT (close to HEAD). Being able to see Lua functions and C functions in the stack would be amazing. Is ther
89.
▲
by
aktau
2y ago
I bought UT2004 (Editor's Choice Edition) in 2022 on Steam ( https://store.steampowered.com/app/13230/Unreal_Tournament_2... ). It seems like I can still download it, phew.
90.
▲
by
aktau
2y ago
Objective-C? That seems like an odd choice, did they want to attract iOS developers? (I know someone ported the mobile game Angry Birds to PSP at some point). Do you have more information about this?
More ›