Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vdupras
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
121.
▲
by
vdupras
1y ago
In that context, it's not very small, it's 20% (all instructions are register-to-register instructions, so they all have the same weight). It's huge. Yes, there's the possibility that ecx is used elsewhere, and in that c
122.
▲
by
vdupras
1y ago
So why does conventional wisdom say that compilers will, in the vast majority of the time, outperform programmers doing assembly by hand? It seems contradictory to me.
123.
▲
by
vdupras
1y ago
In the part about "abs", there's an assembly breakdown: mov eax, edi sar eax, 31 mov ecx, eax add edi, ecx xor eax, edi Has this been generated by a C compiler? If yes, it's a bit puzzling, because can't you remove
124.
▲
by
vdupras
1y ago
Is this coordinated with other countries? In other countries, people will stay on the ByteDance TikTok, no? Won't this make the "isolated" TikTok much less interesting?
125.
▲
by
vdupras
1y ago
A while ago at a past job, I was working on OpenERP (now called Odoo I think). This "community" had instated this kind of "mandatory community review" policy so that each change had to be reviewed by X developers from ot
126.
▲
by
vdupras
1y ago
I remember, many years ago, when I was learning programming. When I grokked recursion, it was a revelation to me. Could I be a programmer without that revelation? Yeah, kind of, but I'd be a lesser one.
127.
▲
by
vdupras
1y ago
It's fine, I can't force you in either. Maybe one day you'll dive into the subject. From the look of the comments here, you have all the hints you need.
128.
▲
by
vdupras
1y ago
The mapping to assembly of: 42 = if ."hey!" then is much more straightforward than if (n == 42) printf("hey!"); I understand that to the newcomer, it might not appear that way, but implementing a Forth is really eye-open
129.
▲
by
vdupras
1y ago
No, that's not it. It's much simpler than that, yet has much deeper implications than you think. You don't see it in other languages. The closest thing would maybe be compile-time macros in Zig? But in Forth, the power it unl
130.
▲
by
vdupras
1y ago
As @addaon writes, your missing ingredient is immediateness. This is one of the most powerful, yet mind-boggling aspects of Forth. I encourage you to check it out, it will make you grow as a developer.
131.
▲
by
vdupras
1y ago
Unlike most languages, Forth has two stacks. It sounds trivial, but it changes many things. It allows for a leaner call convention. With a single stack, every function call has to "shovel forward" its arguments over the function r
132.
▲
by
vdupras
1y ago
What if it was some kind of "meta DDoS"? I mean, you can DDoS a server with simple requests, but here the effect is meta: it "DoS"es real humans. What if someone had something to gain from doing this? The tools to do thi
133.
▲
by
vdupras
1y ago
I think that saying this is a convenient cover up of the shortcomings of our own culture. I really don't think that in all of human history, there's been no culture having a more healthy relationship with their elderly. I'd e
134.
▲
by
vdupras
1y ago
HN moderation is routinely put in front of the most interesting dilemmas! Your response is, of course, sensible. Let's hope that if Slack does something similar to another non-profit, then it will rise again on the top of the front pag
135.
▲
by
vdupras
1y ago
"we'd", you mean in a collapse scenario? Forths are, by nature, "collapse-friendly", but one particularity with Collapse OS and Dusk OS is that they are fully self-hosted. This includes the tools necessary to improv
136.
▲
by
vdupras
1y ago
ARM is an interesting proposal if you want to order a SBC online and run software on it. Soldering an ARM CPU with low tech tools? That's something else.
137.
▲
by
vdupras
1y ago
Even for a Forth, 3KB of RAM is rather tight. Dusk OS intentionally de-prioritize compactness and it couldn't run on that amount of RAM. It can get a C compiler loaded in about 100KB of RAM, but 3? not enough to boot.
138.
▲
by
vdupras
1y ago
You're much more likely to stumble one something more modern, but that modern something is also much less repairable. It's great if it works and if it can run Linux or Dusk OS, but when it can't, you're out of luck. With
139.
▲
by
vdupras
1y ago
You begin by making a pen "from just the elements", then work your way up to there. In other words, it's a huge challenge, but 6502 is closer, in complexity, to the pen than to the, say, AMD Ryzen. But the primary idea behind
140.
▲
by
vdupras
1y ago
... and then the second republic, and then the second empire, and then a republic again. All part of the same movement.
141.
▲
by
vdupras
1y ago
I agree that the way I framed the comparison of the american civil war and the french revolution might appear disingenuous because of the omission of the napoleonic wars. It crossed my mind to include it, but because the parent comment was
142.
▲
by
vdupras
1y ago
Your experiment is certainly a good tool to grok stack mechanics, but that is only one element of what makes a Forth what it is. You're missing out on other crucial ingredients: colon definition and immediateness. I wrote a series of a
143.
▲
by
vdupras
1y ago
I stated this as a matter of course (as in, we'd see broad support for absolute monarchy in France if that wasn't the case), I have no insider information, I'm not even French. It seems I need to clarify "good move"
144.
▲
by
vdupras
1y ago
As Tocqueville writes in "De l'ancien régime et la révolution", centralization was already underway since Louis XIV, and heavily. Napoleon just picked up on it and continued the process.
145.
▲
by
vdupras
1y ago
Do you know of a french person who wants to return to the Bourbon rule? me neither. They like that they live within a republic. A revolution was necessary to achieve this. Hence my parent comment.
146.
▲
by
vdupras
1y ago
You'll see a lot more of the "dirt poor" class in american cities than in french ones. On that aspect, America is closer to third world countries than France.
147.
▲
by
vdupras
1y ago
The French Revolution is generally regarded as a good move. It did get rid of a lot of rich people.
148.
▲
by
vdupras
1y ago
10 years of covering 100% of spending? That sounds like a really sweet deal to me, and more than enough to invest into the nation enough to go back to a balanced budget in that time frame. I mean, try it with yourself. Imagine that you take
149.
▲
by
vdupras
1y ago
Going from an empire/reich to a democracy ain't quite the same thing as a presidential election. The USA will have a hard time recovering from institutional damage being done to it right now.
150.
▲
by
vdupras
1y ago
I think it's important to note that they were friends after a regime change .
More ›