Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xorvoid
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
121.
▲
by
xorvoid
3y ago
I used to lament having a bad memory until one day I realized: forgetting is a feature, not a bug. I’ve meet people with great memories. They can have a tendency to become bitter that the world keeps making the same mistakes or the conclusi
122.
▲
by
xorvoid
3y ago
I also came here to say this. Thank you! It’s a slur and not everyone seems to realize that…
123.
▲
Milk and Cookies: An Abstract Algebra
(xorvoid.com)
1 points
by
xorvoid
3y ago
|
0 comments
124.
▲
by
xorvoid
3y ago
Building on this a little. I’m very worried that Rust is growing the same problem. Although it does seem that one can be more successful in learning a subset and interacting with other’s code without everything falling over.
125.
▲
by
xorvoid
3y ago
I’ve definitely met people who actually did know C++. Turns out they were also on the committee or frequently talked to other people on the committee. If you spend a large amount of time investing in learning it.. it is possible. However, f
126.
▲
by
xorvoid
3y ago
How good do you need it? Lol. This is the approximation that I used in for the animated sinwave example for SectorC: y ~= 100 + (x*(157 - x)) >> 7 https://github.com/xorvoid/sectorc/blob/main/exampl
127.
▲
by
xorvoid
3y ago
There must be other context to the tweet because I’m sure that Walter Bright knows all of that..
128.
▲
by
xorvoid
3y ago
TIL! Fascinating! Of course my first thought was.. “what about hash collisions?” And naturally each state has selected their own resolution. In Illinois you can apparently be detained for a while due to a hash collision with a suspect.. pla
129.
▲
by
xorvoid
3y ago
(Bryan Catrill enters the chat) Paraphrasing: There’s a war coming and you have to pick a side. Humanity vs Firmware. https://youtu.be/XbBzSSvT_P0
130.
▲
by
xorvoid
3y ago
I came here to say the same haha. It’s like an “article” or “preposition” in English. Arguably not required, but in practice invaluable. One could argue that shell could have been designed better to not need it but, meh, that ship sailed. U
131.
▲
by
xorvoid
3y ago
This! Wisdom! I’ve experienced exactly this multiple times and felt this way. Thank you thank you for the words to describe it John Ousterhout.
132.
▲
by
xorvoid
3y ago
Oversimplify until you can solve a toy version and then try to see if it has an extension to the full problem or if there is some reason it can’t be extended. Sometimes you’ll learn the core reason it’s unsolvable, other times you’ll solve
133.
▲
by
xorvoid
3y ago
I think regardless we should celebrate small wins. After all, small wins lead to bigger wins. In the courts, it’s builds a legal precedent. We really should be celebrating. There’s always more to do and more to criticize, yes. But, we have
134.
▲
by
xorvoid
3y ago
Yup. See “rt/lib.c” A bunch of inline machine code. The assembly mnemonics are in the comments.
135.
▲
by
xorvoid
3y ago
Hard to say. I’m fairly sure that all of modern software could easily be 2-3 orders of magnitude smaller. But, the world has decided (and I think rightfully so) that it doesn’t matter. We have massive memories and storage systems. Unless yo
136.
▲
by
xorvoid
3y ago
Good tip! Yeah, there’s ~20 bytes unused at the end. I kept finding ways to squeeze out a few more and had to tell myself to stop and just publish it already. You could take this further if you really wanted. But it’s already sufficiently a
137.
▲
by
xorvoid
3y ago
It’s written in x86-16 real mode because all immediates are smaller and switching to 32-bit mode takes a fair amount of code. I would have preferred 32-bit mode because real mode is awkward with its seg:off addressing scheme. Using the bios
138.
▲
by
xorvoid
3y ago
I considered self-modifying code, but somehow I kept finding more ways to squeeze bytes out. I’m half convinced that you could condense it another 50 ish bytes and add operator precedence or even local vars. But.. frankly.. I was ready to s
139.
▲
by
xorvoid
3y ago
I’ve considered that. I’ve long been interested in bootstrapping. Lots of unpublished projects in the archive that I should also write up. I considered writing a self-hosting compiler. It should be doable without too much work. I was going
140.
▲
SectorC: A C Compiler in 512 bytes
(xorvoid.com)
465 points
by
xorvoid
3y ago
|
80 comments
141.
▲
by
xorvoid
3y ago
Lol. I find this hilarious. It’s like you walked into a posh hotel and had this conversation with the front desk staff who are perennially apologetic. (I do apologize, sir, it is not in my programming to be anything but apologetic. I hope y
142.
▲
by
xorvoid
3y ago
People who think this way haven’t written boot code.. I suppose you’re gonna link the c runtime too and it’s assumption of being a “process” under some “operating system”.. oh wait. Compared to the rest of the task, writing a sort is pretty
143.
▲
by
xorvoid
3y ago
Agreed. Something about the suffering you experience ultra-running rewired my brain, actually. I came to think that we try too hard (in the first world) to make ourselves overly comfortable. And, in fact, some amount of suffering and strugg
144.
▲
by
xorvoid
3y ago
Lolz. Delightful!
145.
▲
by
xorvoid
3y ago
Sounds like a great way to damage your brand. If you spent money on this, how eager are you going to be to buy the next fancy gadget they release? I really hope we see a counter movement away from walled-garden devices like this.
146.
▲
by
xorvoid
3y ago
How many 0.7x engineers are there? If num(0.7x) >> num(10x) then this is an optimal strategy. IMHO, this is why you see large companies operate this way. Also, the 10x engineers are often repelled by overly large orgs anyways.. furthe
147.
▲
by
xorvoid
3y ago
Except most legal systems don’t see it that way. When you say this, they hear “if you have a copy of the key to a house/car/etc, then you also own it”. Cryptocurrency theft is a crime by the basic definitions of the legal system.
148.
▲
by
xorvoid
3y ago
Thank you thank you for this perspective!! I've always had trouble finding community in some groups that are so focused on gear. I rarely know enough about gear to carry on a conversation for more than a few minutes, and even if I did
149.
▲
by
xorvoid
3y ago
One more thing: codegen Getting good codegen out of Rust is 5 times harder than C. And sometimes it’s not really possible.
150.
▲
by
xorvoid
3y ago
I switch between both depending on my mood and the particular application. For me: Rust killed C++ but not C I have an on-again off-again love affair with C. And in its domain it’s still unmatched: low-level close to hardware where you dire
More ›