Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maxdamantus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
61.
▲
by
maxdamantus
2y ago
In this case it is portable, because the Zig compiler source tree includes an interpreter for the blob (WASM) in portable C. It's not objectionable to have non-portable source code anyway. I think it's fine having architecture-spe
62.
▲
by
maxdamantus
2y ago
> Without essentially a formal proof that the output of the compiler is what you expect, you will have to manually inspect every aspect of every output phase of any bootstrapping process. And why would it be easier to manually inspect (p
63.
▲
by
maxdamantus
2y ago
But that doesn't conform to the "Descent Principle" described in the article. I haven't really been following Zig, but I still felt slightly disappointed when I learnt that they were just replacing a source-based bootstr
64.
▲
by
maxdamantus
2y ago
Then I would ask why the system they're reviewing is different to any other which is meant to be guaranteed-secure (or check that others are asking those questions). We're told every year or so about some SecureBoot vulnerability,
65.
▲
by
maxdamantus
2y ago
As a software developer myself, if an "independent expert" comes out and says that some software system is fully verified, I might trust their allegiance, but I probably won't trust their competence. I wouldn't expect th
66.
▲
by
maxdamantus
2y ago
I have a self-built binary at ~/bin/tmux-old dated 2012-09-19, so that provides an upper bound of when I switched from screen. (And to this day I'm still using tmux + irssi)
67.
▲
by
maxdamantus
3y ago
Presumably because they're one of the two maintainers: https://web.archive.org/web/20240329182607/https://xz.tukaan...
68.
▲
by
maxdamantus
3y ago
In modern OSRS I believe the main way of training Runecrafting is through the Ourania altar, and at higher levels the Soul/Blood altars, both OSRS-specific (I've used both as an Ironman player, but haven't played in the last
69.
▲
by
maxdamantus
3y ago
Pretty sure I used to buy them for 1k each. Identified Ranarrs would sell for around 7k each, and I think prayer potions (4) would sell at a slight profit for 9k. I guess the lack of "make X" and automatic decanting made skilling
70.
▲
by
maxdamantus
3y ago
This will still result in bluriness, since it is scaling the already rasterised image, instead of informing the application to render at a different pixel resolution. X11/Xorg has long supported proper per-display fractional scaling, s
71.
▲
by
maxdamantus
4y ago
Earlier versions of gcc actually used to support this in a very restricted context in C90 (or maybe gnu89) mode: struct foo { int a[10]; }; struct foo f(void); int b[10]; b = f().a; In C90, you can't actually do anything w
72.
▲
by
maxdamantus
4y ago
The basic reason for octave equivalence is not from human subjectivity. It's from the fact that something that repeats "x" times is also something that repeats "x/2" times, eg a sequence such as: ABCABCABCA
73.
▲
by
maxdamantus
4y ago
How do you write zero in Roman numerals? Answer: you can't. Even though they used their number system for adding amounts of money, they hadn't figured out "cardinal zero" yet. It was introduced into western mathematics t
74.
▲
by
maxdamantus
4y ago
Haven't used Swift, but looking at the documentation, it seems to support `...` for end-inclusive and `..<` for end-exclusive. Looking at the Swift standard library, end-exclusive ranges seem to be far more commonly used: ~/
75.
▲
by
maxdamantus
4y ago
Indeed. End exclusion is advantageous because we don't need to add or subtract 1 when constructing or interpreting ranges. Forgetting to add or subtract 1 is basically why off-by-one errors exist (and doing add rather than subtract or
76.
▲
by
maxdamantus
4y ago
[0, 1, 2] would be how I would refer to my 3 apples. Each apple is identified by the number of apples that precede it. I don't think it's inherently more natural to start from 1, just conventional. Disregarding history/conven
77.
▲
by
maxdamantus
4y ago
Since as you say, C doesn't carry size information, you would actually need to do it each time a pointer is created from an object. In C you can have arrays of arrays (not pointers) or arrays in structs, where there is no pointer on cr
78.
▲
by
maxdamantus
4y ago
The problem is that this is what currently happens when people enable fractional scaling (ie, setting the scale to 1.5 rather than 2), which I'm fairly sure is common. Try running a web browser with fractional scaling, open up a JS con
79.
▲
by
maxdamantus
4y ago
> Maybe screenshots would be helpful! Okay, so for reference, here's how I normally see text rendered (I opt in to FreeType's v35 TTF interpreter, which hints (aligns) to full pixels rather than subpixels [0], which to me produ
80.
▲
by
maxdamantus
4y ago
This is not limited to XWayland windows. See the relevant issues: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/i... https://gitlab.freedesktop.org/wayland/wayland-protocols&
81.
▲
by
maxdamantus
4y ago
I really don't think this is correct. It is possible that you're just not able to notice the blurriness due to the scaling method used, the resolution of the display and the fact that text rendering tends to be blurred nowadays an
82.
▲
by
maxdamantus
4y ago
Right, the effective DPI switching works for Firefox on Wayland, but like all other applications on Wayland, fractional scaling will result in blurriness. I was looking into this less than 6 months ago, and I don't see any relevant upd
83.
▲
by
maxdamantus
4y ago
> But I don't think that's Wayland's fault - it's up to those apps to upgrade their UI libraries (which might be a monumental task, I'm not sure). Actually, it is Wayland's fault[0], and arguably Xorg is abl
84.
▲
by
maxdamantus
4y ago
I really wish more systems would adopt the "copyindent" pattern, where indentation is simply copied from the existing line. I've primarily developed in vim for 15 years and have similarly minimal `vimrc`s (no plugins), but so
85.
▲
by
maxdamantus
4y ago
Unlike "com", Anguilla's TLD, "ai", has an A record pointing to a usable HTTP server: http://ai/ A few years ago I tried all two-letter ([a-z]) TLDs and found some others that were able to handle HT
86.
▲
by
maxdamantus
4y ago
Have you tried this before? As far as I can tell, tmux expects to pass the client's terminal fd over the unix socket. When I try it, I get something like this in strace (passing fd 7): > sendmsg(5, {..., msg_control=[{cmsg_len=2
87.
▲
by
maxdamantus
5y ago
It happens all the time when you're working with substrings. Under your encoding, "é" would be a substring of "ჩ": 10000011 11101001 U+E9 "é" 10000001 10000011 11101001 U+10E9 "ჩ"
88.
▲
by
maxdamantus
5y ago
That's only really true when the entire string is using CJK characters, but as far as I know, that's going to be fairly rare. For example, this Chinese Wikipedia page is almost twice as big in UTF-16 as in UTF-8, because the vast
89.
▲
by
maxdamantus
5y ago
It should work one way or the other, not both. For current logging APIs, the format string is used. It actually turns out that the call using string concatenation corresponds to log4j1 rather than log4j2 (looks like this was an error in the
90.
▲
by
maxdamantus
5y ago
The post has been partially updated to log4j2 [0] (the import is still log4j1, but I imagine this will be updated soon [1]). And yes, I'm actually not sure log4j1 is vulnerable. I assumed it was because the sample code in the post was
More ›