Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slaymaker1907
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
slaymaker1907
2y ago
Have you looked at idiomatic Racket code? You can freely switch between () [] and {} which makes things a lot cleaner.
32.
▲
by
slaymaker1907
2y ago
The only thing I can think of that really matters which can’t be solved by just wrapping the data in an inner heap allocation (like std::vector) is with the pointer to the vtable for virtual function calls. If anything, I’ve found it’s more
33.
▲
by
slaymaker1907
2y ago
Depends on who you are and if you have an eating disorder.
34.
▲
by
slaymaker1907
2y ago
I also think that the GC of D is really a nice feature. Sometimes you want manual memory management in low level code, but there is also a ton of stuff where it doesn't really matter and a GC just makes things easier. For example, if y
35.
▲
by
slaymaker1907
2y ago
Why R4RS? Was that just the standard at the time? I know R6RS is kind of huge and difficult, but R7RS seems pretty reasonably sized.
36.
▲
by
slaymaker1907
2y ago
I don't use the heated hose, but the humidity is invaluable since my sinuses often end up clogged if I don't use it. However, I also live in a desert and regularly have ~20% humidity in my house.
37.
▲
by
slaymaker1907
2y ago
Have you tried playing around with the humidity? If I have it set too low, that definitely makes a big difference. There are also other treatments for sleep apnea that you could look into which might work better.
38.
▲
by
slaymaker1907
2y ago
I don't think doc comments are warranted in every case and definitely don't think you need to document every single parameter, return value, etc. for every single function, but they sure do come in handy for complicated APIs.
39.
▲
by
slaymaker1907
2y ago
> In recent years I see more people arguing that whys do not belong in comments either, that they can be embedded into LongFunctionNames or the names of test cases. Who is arguing this? Usually, if I'm adding a comment on why someth
40.
▲
by
slaymaker1907
2y ago
Best practice IMO would be to wrap the closable thing in a wrapper object that handles the case where Close is called multiple times and then defer close that one as well as closing at the end of the function. Another idea would be to defin
41.
▲
by
slaymaker1907
2y ago
You missed the ole' reliable, temp tables. I always end up using them heavily for non-trivial analytic queries since it gives you so much control over query execution. In terms of actually using SQL more effectively, I think the ideal
42.
▲
by
slaymaker1907
2y ago
I'm by no means a professional photographer, but better zoom is definitely a big selling point.
43.
▲
by
slaymaker1907
2y ago
This really doesn't reflect the actual structure of Western music for those without absolute pitch (the vast majority of people). Instead, it's pretty much just relations that matter between pitches which makes things way more dif
44.
▲
by
slaymaker1907
2y ago
I’m not sure, you should look up functional neurological disorder (FND). It’s very much a real disorder, but it’s 100% causes by our subconscious brains. There are honest people who just suddenly lose the ability to walk *or even go blind*.
45.
▲
by
slaymaker1907
2y ago
Talking about tooling, it’s kind of incredible how good John the Ripper is at cracking passwords. I think a lot of people would benefit tremendously from seeing how fast their “clever” tricks for coming up with passwords are demolished.
46.
▲
by
slaymaker1907
2y ago
I actually work on SQL Server, but I also write a lot of KQL queries which also work this way and I totally agree that the sequential pipe stuff is easier to write. I haven't read through the whole paper, but one aspect that I really l
47.
▲
by
slaymaker1907
2y ago
Yes, you get some performance improvements, but I think that comes at the price of security isolation. Think about it, your application probably requires tons of libraries and evolves really quickly compared to the database itself. Addition
48.
▲
by
slaymaker1907
2y ago
Oh, I've definitely seen N+1 problems with a SQLite database before. It's more resilient than a traditional DB server, but it can still run into performance issues when doing too many select queries.
49.
▲
by
slaymaker1907
2y ago
Yeah, if you really need non-guessability, you should be using the version that’s completely random anyways.
50.
▲
by
slaymaker1907
2y ago
This is assuming people don’t abuse it and pass around raw references/pointers to it (they will). The safest construct, though with definite performance impact, is std::shared_ptr but people think they are smarter than they are and don
51.
▲
by
slaymaker1907
2y ago
I wonder how much of a test this is for the LLM vs whatever tokenizer/preprocessing they're doing.
52.
▲
by
slaymaker1907
2y ago
I don't think it's always necessary if the paper makes it really clear how things were done. And just because the code is available, it doesn't mean that it is actually reproducible or comprehensible.
53.
▲
by
slaymaker1907
2y ago
A trampoline is less efficient theoretically because it implies that you must check a condition and that you can't make an unconditional tail-call. It's also not quite equivalent since it's a non-local compilation technique r
54.
▲
by
slaymaker1907
2y ago
It can't be rewritten as loop due to function pointers. Using JS notation to avoid noise: function logAndCall(statement, func) { console.log(statement); return func(); } Tail call optimization is actually possible here since we call fu
55.
▲
by
slaymaker1907
2y ago
I posted this in another comment, but I've found sports is kind of a tossup. My current glasses are large aviators because they do a great job at keeping gnats out of my eyes that are all along my favorite trail right now. If I wasn&#x
56.
▲
by
slaymaker1907
2y ago
That's why I order mine online from Zenni. I've heard reports of some quality control before and I've had one pair come that was a bit off, but I've still saved an ridiculous amount of money as someone who loses glasses
57.
▲
by
slaymaker1907
2y ago
I've tried contacts and as a counterargument, I've found that there are few scenarios where contacts work but glasses don't and that it's way more effort and expense to use contacts vs glasses. People have mentioned spor
58.
▲
by
slaymaker1907
2y ago
Tim literally wrote the Zen of Python and also came up with Timsort, he’s not just some random contributor.
59.
▲
by
slaymaker1907
2y ago
I think it's funny how many people really don't want to just wear glasses. I love that I can completely change my look just by getting some new glasses, though I'm admittedly fortunate to have a low rx such that I can get awa
60.
▲
by
slaymaker1907
2y ago
Besides passwords, I know EMDR is basically an attempt at an antimemetic for PTSD. However, one thing I’ve wondered about that therapy is how effective it is at also reducing the behaviors of PTSD. I had almost total disassociative amnesia
More ›