Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xscott
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
331.
▲
by
xscott
3y ago
Maybe you'd include Twobit in that list: http://larcenists.org/twobit.html
332.
▲
by
xscott
3y ago
> It's easy to have sympathy for the otherwise destitute grandma who has a little apartment she rents out and lives off of that rent. I'm not talking about sob story grandmas. I'm talking about people in the tech industry
333.
▲
by
xscott
3y ago
Sympathy or not, I don't think the problem was evil investors. Imagine you're retired, or close to retired, and you've got your various nest eggs of money that you need to live off for the rest of your life. Keeping it in c
334.
▲
by
xscott
3y ago
I can see your enthusiasm for Rust, but my comment was more directed to whether criticisms of UB in C can be taken seriously considering suggestions to remove it where possible have almost always been shot down in the name of speed. > I
335.
▲
by
xscott
3y ago
I know you're just trashing C UB because that's fashionable, but if you really think about it there are two popular options, and you can't have both at the same time: a) UB enables valuable optimizations and is important to k
336.
▲
by
xscott
3y ago
> The lawmakers pressed Fed Chair Jerome Powell to “avoid engineering a recession that destroys jobs and crushes small businesses.” Damned if you do, and damned if you don't. The Fed doesn't have a lot of tools to slow inflati
337.
▲
by
xscott
4y ago
I'm pretty sure koboll's point was that by having a doctor in the loop, the hospital can wash their hands of that one person's malpractice suit easy enough. Just fire the doctor, let their individual insurance deal with it,
338.
▲
by
xscott
4y ago
No, not in my experience. It seems to vary by city with drivers and pedestrians, but the only time in recent memory I've had any interaction at all with a driver was when I was jay-walking and they thought I didn't see them. So
339.
▲
by
xscott
4y ago
Yes, the hypocrisy is so thick it's suffocating.
340.
▲
by
xscott
4y ago
Most of this discussion is a "cars are bad and drivers are evil" circle jerk, so I'm compelled to point out that when the tables are turned, cyclists are the bigger assholes. I routinely take walks on a "multi use"
341.
▲
by
xscott
4y ago
It is a mistake, because if you can't do "1.0 - z" or "0.5 * A", I don't know why you have operator overloading at all. What types with useful binary operators don't need to interact with scalars? Sets?
342.
▲
by
xscott
4y ago
Wren seems pretty elegant, but it makes the same mistake a lot of languages do when it comes to operator overloading. If you put the binary operator as a method on the first object, then there isn't a simple way to have "builtin_
343.
▲
by
xscott
4y ago
I honestly can't tell if you intentionally take stuff out of context so you can argue against it, or if your reading comprehension and logic skills are really just that bad. I said, "instead of a regular language". You even
344.
▲
by
xscott
4y ago
Yeah, I agree that part is kind of a bummer. It's really just a compromise to get up and running quickly. And it's not necessarily the best approach for everyone.
345.
▲
by
xscott
4y ago
He didn't misunderstand. He likes starting arguments, and he's really just waiting for an opportunity to tell you about the silly flavor of lisp he invented. Being helpful or on-topic is not his goal.
346.
▲
by
xscott
4y ago
> I bought the dragon book long ago. That makes me think you might've forgotten what it's like to be a beginner. Imagine teaching a high school student and that every other word you're using doesn't make complete sen
347.
▲
by
xscott
4y ago
That's disappointing. I don't have any stats, but I imagine 90% of beginners writing an interpreter (much less a compiler) start a lexer and parser and quit before getting to the good stuff. Skipping the tedium until you've
348.
▲
by
xscott
4y ago
It's trivial for you, but are you sure you've got the OPs best interest at heart? Remember, you're trying to help someone else here. I think the magic is in getting the interpreter to work, and depending on the personality,
349.
▲
by
xscott
4y ago
I'm assuming that uses back-references to handle the matching parens, but I don't like reading regexes (even my own). It's funny that paren matching used to be an example of why you needed to use a push down automata instead
350.
▲
by
xscott
4y ago
This isn't a traditional approach, but you might consider using a JSON parser in your favorite language and then implementing `eval` and `apply` over that data structure [0]. It saves you from dealing with the mundane lexer/parse
351.
▲
by
xscott
4y ago
Since I guess we're talking about Earth, where's the "No, because it's a bad idea" option? Go prove you can make Venus or Mars livable before you poison the ocean or skies and unintentionally kill off all the fish o
352.
▲
by
xscott
4y ago
As I expected, you haven't backed up your claims. Maybe you should admit they aren't true, at least to yourself.
353.
▲
by
xscott
4y ago
> They can't be "used generate branchless code" because it's completely the wrong layer. I guess precision in language is valuable, and I did make a typo by neglecting to type the word "to". I should'v
354.
▲
by
xscott
4y ago
You've got "natural" in quotes there, but I honestly don't understand your intent. Do you think ternaries are unnatural? Do think they can't be used generate branchless code? Something else?
355.
▲
by
xscott
4y ago
> I will try to come up with something. Looking forward to it.
356.
▲
by
xscott
4y ago
> I'm sorry, but the shockingly common belief that C's ternary operator has anything at all to do with branchless code being emitted is completely unhinged from reality. Not sure what you're sorry about. The author doesn&
357.
▲
by
xscott
4y ago
He wrote: "I can look at blurry C code and know generally what things are and what’s going on without a single character being legible. Lisps don’t typically have the same convenience"
358.
▲
by
xscott
4y ago
That's good context. Thank you for the reply. A few years back, both my brother and father wanted to learn to program. Actually, relearn in the case of my dad. He was doing assembly programming for fun when I was a kid, and he taugh
359.
▲
by
xscott
4y ago
> It's basically impossible to optimize induction variables without undefined signed overflow Here's a piece of code you can compile with: gcc -O3 -Wall -Wextra mandel.c -DINTEGER=size_t -o mansize gcc -O3 -Wall -We
360.
▲
by
xscott
4y ago
> But that has nothing to do with overflow being undefined; That's not the whole story [0]. It looks like JF Bastien managed to convince everyone that 2's complement is the only signed representation that exists and is worth c
More ›