Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mk12
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
mk12
1y ago
> For most "good enough" use cases, garbage collectors work fine and I wouldn't bother with a system's programming language at all. It's not just about performance, it's about reusability. There is a huge am
32.
▲
by
mk12
1y ago
Another thing to watch out for with SVGs is how they appear in RSS readers or browser reader views. If you're using external SVG files then it should be fine. If you've optimized them by embedding into the HTML, then you need to b
33.
▲
by
mk12
1y ago
Good thing libuv is written in a "safe" language.
34.
▲
by
mk12
1y ago
Canadians don’t need a visa to visit the US, they are visa-exempt.
35.
▲
by
mk12
1y ago
I used that Hario grinder for years but eventually the clear base part broke. I continued using it by grinding directly into the AeroPress but it was pretty annoying. I finally upgraded to a KINGrinder K6 and it’s amazing how much better it
36.
▲
by
mk12
1y ago
For example `((n++))` where n is 0. I’m used to it enough that I usually remember to add `|| :` to the end of lines like this.
37.
▲
by
mk12
1y ago
Assuming you’re seeing the same issue as me: I find the parenthesis spacing is messed up whenever there are unnecessary \left and \right, as there are in some of the samples, which leads to an extra <mrow> in the MathML. If you only u
38.
▲
by
mk12
1y ago
If you want to test out some examples from your website to see how they'd look in KaTeX vs. browser MathML rendering, I made a tool for that here: https://mk12.github.io/web-math-demo/
39.
▲
by
mk12
1y ago
Bubblewrap is another convenient sandboxing tool for Linux: https://wiki.archlinux.org/title/Bubblewrap
40.
▲
by
mk12
1y ago
I agree with you. My point is that the additional feature (references) creates a new potential for UB that doesn’t exist in C, and that justifies the “doesn't really ever occupy my mind as a problem” statement being criticized upthread
41.
▲
by
mk12
1y ago
There is an important difference for this case though. It C it’s fine to have pointers into uninitialized memory as you as you don’t read them until after initializing. You can write through those pointers the same way you always do. In Rus
42.
▲
by
mk12
1y ago
I do this but additionally with an always-on Raspberry Pi, so syncing works perfectly even if the laptop and phone aren’t able to sync directly to each other. The SyncTrain iOS app arrived just in time for me: https://t-shaped.nl
43.
▲
by
mk12
1y ago
You can login with a passkey now: https://tailscale.com/kb/1341/tailnet-passkey-admin . It looks like you still have to use Google/etc. for your main account initially. But still, this would prevent getting lo
44.
▲
by
mk12
2y ago
Kudos for finishing it. I’ve gone on a similar quest with https://mk12.github.io/sicp , but I’m still on chapter 3. I keep getting distracted by new ways of improving the website rather than making progress in the book.
45.
▲
by
mk12
2y ago
One reason it’s harder to follow is you can’t have references to uninitialized memory. In Zig pointers to uninitialized memory are fine as long as you don’t dereference them. That’s also true of Rust’s raw pointers, but most Rust code uses
46.
▲
by
mk12
2y ago
This is another big difference between Rust and Zig. Rust lets you have it both ways with configuration. Zig places much more value on being able to read and understand any Zig code in the wild, based only on “it compiles”. Rust’s “it compi
47.
▲
by
mk12
2y ago
It’s a trade-off. If you allow shadowing, then you rule out the possibility of the value being used later. This prevents accidental use (later on, in a location you didn't intend to use it) and helps readability by reducing the number
48.
▲
by
mk12
2y ago
It’s harder to write correct unsafe Rust than correct Zig because (1) Rust uses references all over the place, but when writing unsafe code you must scrupulously avoid “producing” an invalid reference (even if you never deference it), and (
49.
▲
by
mk12
2y ago
I host my site on NearlyFreeSpeech for about 40 cents a month and there’s no bandwidth limit. The FAQ has always said: “Currently we are not tracking (and hence not billing for) extra bandwidth usage. This could change in the future, but cu
50.
▲
by
mk12
2y ago
The problem is not that + calls a function. The problem is that + could call one of many different functions, i.e. it is overloaded. Zig does not allow overloading plus() based on the argument types. When you see plus(), you know there is e
51.
▲
by
mk12
2y ago
FWIW the goal for comptime Zig execution is to be at least as fast as Python. I can’t find it now but I remember Andrew saying this in one of his talks at some point.
52.
▲
by
mk12
2y ago
I just started a new job where I’m collaborating with the maintainers of mercurial, and was asking them about these alternative VCSs last night. It was interesting to learn that all these people are in contact with each other and there’s a
53.
▲
by
mk12
2y ago
I find it weird how so much generation discussion seems to skip gen x. I see references to boomer, millennial, and zoomer/gen z way way more often than gen x.
54.
▲
by
mk12
2y ago
Yeah I think it's a copypasta. I've seen it elsewhere with the details slightly different.
55.
▲
by
mk12
2y ago
I like this approach. It makes me wonder though, what about <i>, <em>, <dfn>, <cite>, etc.? They all look the same by default and as far as I know there is no UX advantage to using them properly. Do screen readers di
56.
▲
by
mk12
2y ago
I know it’s not the point of your example, but you should not check if a file exists right before opening it. It could get deleted in between exists(file) and open(file), so you still have to handle the case where opening fails with FileNot
57.
▲
by
mk12
2y ago
kitty is extremely customizable. That's the main reason I use it.
58.
▲
by
mk12
2y ago
I'm not entirely convinced by it. But even if I was, I'd still stand by my claim that many people speak about this with unwarranted confidence. This comment thread has lots of people who seem to know for sure that they do/don
59.
▲
by
mk12
2y ago
I think it should work in the other direction though. You might draw well even without mental pictures, but if someone has AR-glasses-style superimposed images but can't trace them on paper, that would seem strange to me.
60.
▲
by
mk12
2y ago
It's a well known thought experiment: https://plato.stanford.edu/entries/qualia-inverted/ . I'm not arguing for or against it being true.
More ›