Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
assbuttbuttass
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
assbuttbuttass
3y ago
> I expect it to be actual best practices that usually get documented somewhere that is a documentation resource well regarded by the "community" of that tool or language. It's documented in the Google go style guide: htt
92.
▲
by
assbuttbuttass
3y ago
OpenCL should also work on AMD cards, and is way easier to install
93.
▲
by
assbuttbuttass
3y ago
> I don't know how to configure users to be able to maintain their own (personal) units. This is something I use all the time! Just put unit files in ~/.config/systemd/user and use systemctl --user to start/enabl
94.
▲
by
assbuttbuttass
3y ago
For larger programs, the compiler can also generate the dependency tree for incremental compilation: https://www.gnu.org/software/make/manual/html_node/Automatic...
95.
▲
by
assbuttbuttass
3y ago
Data races can cause memory corruption. Make sure to run your test cases with --race
96.
▲
by
assbuttbuttass
3y ago
Ha, good one
97.
▲
by
assbuttbuttass
3y ago
The best part of C++ is you can ignore all the iostream nonsense and use printf
98.
▲
by
assbuttbuttass
3y ago
Gob is a great serialization format! It's super easy to use, and supports go native types (kind of like Python's pickle). For a recent project, I needed a simple key-value store. I was evaluating using a full RDBMS, but I ended up
99.
▲
by
assbuttbuttass
3y ago
> Pilat frequently refers to herself as a “propaganda artist” for machines At least she knows her role I guess
100.
▲
by
assbuttbuttass
3y ago
I love this advice, moving if statements "up" is something I've observed makes a big difference between code that's fun to work with and easy to maintain, and code that quickly gets unmaintainable. I'm sure everyone
101.
▲
by
assbuttbuttass
3y ago
Downloads will typically be cached by a module proxy, which can protect against downtime on the hosting site https://go.dev/ref/mod#goproxy-protocol
102.
▲
by
assbuttbuttass
3y ago
A common technique is to use a "struct of arrays" approach, rather than an "array of structs" This can save a lot on padding, and greatly increase the cache efficiency
103.
▲
by
assbuttbuttass
3y ago
sum types are awful for data modeling once you put them in an array. So much wasted padding around the tag bit, and wasted space to allow storing the largest variant
104.
▲
by
assbuttbuttass
3y ago
Another killer feature: cloud sync. I've been playing Baldur's Gate 3 recently, and it's an amazing experience to seamlessly switch between playing on my PC, and on the couch with my steam deck
105.
▲
by
assbuttbuttass
3y ago
One could even say... they have a dialectical relationship
106.
▲
by
assbuttbuttass
3y ago
This already exists. The point is you can still call methods on your mux instance from anywhere in the codebase
107.
▲
by
assbuttbuttass
3y ago
I'm pretty sure that example worked even before the recent changes. From the documentation: > Longer patterns take precedence over shorter ones, so that if there are handlers registered for both "/images/" and &q
108.
▲
by
assbuttbuttass
3y ago
function coloring is exactly the stackful/stackless division. Stackless functions can't be called from a stackful function without special ceremony
109.
▲
by
assbuttbuttass
3y ago
I'm still a little confused after reading through the goals. It seems like there are a bunch of different unrelated goals: - better js/wasm support - "platform native sdk" (I don't know what this is) - cross
110.
▲
by
assbuttbuttass
3y ago
The "inline else" gets expanded at compile time into a separate case for each enumeration tag.
111.
▲
by
assbuttbuttass
3y ago
I wish this actually worked
112.
▲
by
assbuttbuttass
3y ago
gdb has always been my go-to repl for C/C++
113.
▲
by
assbuttbuttass
3y ago
I'd be more convinced by a technical argument, than this appeal to "personal agency" Is there no value in following a convention?
114.
▲
by
assbuttbuttass
3y ago
Go has type classes, they're called interfaces
115.
▲
by
assbuttbuttass
3y ago
> We should have an official runtime, officially managed, and guided by the same thoughts that guide the rest of the language. Agreed, it feels like we're in a worst-of-both-worlds situation. On one hand, tokio is relied upon by tho
116.
▲
by
assbuttbuttass
3y ago
Yes, the FBI is reading your shitposts
117.
▲
by
assbuttbuttass
3y ago
Not sure why you find it enraging, it's quite common for new species to be well known in the hobby before they're officially named
118.
▲
by
assbuttbuttass
3y ago
It sounds like this species has been previously known to hobbyists under the name "Chilobrachys electric blue" I remember seeing this species in YouTube videos from at least a few years ago[0]. It's incredible to me how there
119.
▲
by
assbuttbuttass
3y ago
To be clear, the GNU+Linux copypasta is not a real quote. Though RMS doesn't fully disagree with the content https://www.gnu.org/gnu/incorrect-quotation.html
120.
▲
by
assbuttbuttass
3y ago
I managed to track down these code snippets. Feel free to check out these links if you're curious: https://github.com/adobe/kratos/blob/93246f92d53feba73743dbf... https://github.com/Stalk
More ›