Better HN
topnewbestaskshowjobs
Log inSign up

Timwi

1,518 karma · joined Aug 28, 2017 (9y ago) · 989 submissions

Submissions

comment 1y ago · link · parent

Just use an AST if it parses, and fall back to plain text diffs if it doesn't.

comment 1y ago · link · parent

I don't understand why it can't just use an AST if it parses, and fall back to plain text diffs if it doesn't.

comment 1y ago · link · parent

How about a download button so I can run it locally and not cause you any costs?

comment 1y ago · link · parent

What would you propose as an alternative to regexes that provides the same functionality without the unreadable syntax?

I wrote something like that in C# once [0] but I'm not getting the impression that there's a lot of demand for that kind of thing.

[0] https://github.com/Timwi/Generex

comment 1y ago · link · parent

I know I'm being pedantic, but I just want to point out that even U+200E/U+200F are generally not needed. If you put a Hebrew word in the middle of an English sentence, it displays correctly all by itself. This is due to the Unicode bidirectional algorithm, which defines a super sensible default behavior. You only need the RTL control characters in weird circumstances, perhaps ones involving punctuation marks or unusual uses of special characters.

comment 1y ago · link · parent

It would indeed be nice if everything were just freely available to everyone, but barring that, a good first step is to let everyone partake in a fair share of everything, which is what UBI enables. Again, you're still thinking in terms of top-down authoritarianism: you're thinking somebody needs to make a list of things that we need and then dictate that to us. Instead, we want to make our own decisions. The amount of UBI should depend on what's available, not on what someone up high thinks we need.

comment 1y ago · link · parent

If you read the literature on AI safety carefully (which uses the word “goal”), you'll find they're not talking about LLMs either.

comment 1y ago · link · parent

I can't speak for every UBI supporter, but singling out food, and talking about “the food they want me to have”, suggests an authoritarian top-down structure that nobody wants. The whole point of UBI is to enable autonomy. People should be free to explore and understand what their own needs are and not have it be dictated.

I'll admit that I was unclear because I used the word “starve” in my message. Obviously this choice of word was borne out of the principle that food is among the most vital basic needs, and that depriving people of it is one prominent way in which our current society is cruel. Nevertheless, UBI is not about just food, but more generally about basic needs.

comment 1y ago · link · parent

> > It is similar to how human brains operate.

> Is it?

This is just a semantic debate on what counts as “similar”. It's possible to disagree on this point despite agreeing on everything relating to how LLMs and human brains work.

comment 1y ago · link · parent

The real challenge is not to see it as a binary (the machine either has feelings or it has none). It's possible for the machine to have emergent processes or properties that resemble human feelings in their function and their complexity, but are otherwise nothing like them (structured very differently and work on completely different principles). It's possible to have a machine or algorithm so complex that the question of whether it has feelings is just a semantic debate on what you mean by “feelings” and where you draw the line.

A lot of the people who say “machines will never have feelings” are confident in that statement because they draw the line incredibly narrowly: if it ain't human, it ain't feeling. This seems to me putting the cart before the horse. It ain't feeling because you defined it so.

comment 1y ago · link · parent

The author seems to want to label any discourse as “anthropomorphizing”. The word “goal” stood out to me: the author wants us to assume that we're anthropomorphizing as soon as we even so much as use the word “goal”. A simple breadth-first search that evaluates all chess boards and legal moves, but stops when it finds a checkmate for white and outputs the full decision tree, has a “goal”. There is no anthropomorphizing here, it's just using the word “goal” as a technical term. A hypothetical AGI with a goal like paperclip maximization is just a logical extension of the breadth-first search algorithm. Imagining such an AGI and describing it as having a goal isn't anthropomorphizing.

comment 1y ago · link · parent

> What we need is a way to make money off of local first software.

No, what we need is a way for people to not starve so that they don't have to make money at all and can focus instead on their passion project(s). Cough UBI cough

comment 1y ago · link · parent

The term is a little ambiguous. They're not referring to a website that is served from static files that never change (which would exclude forums like Hacker News). They're referring to websites that still work if you disable JavaScript, so Hacker News would still be included.

comment 1y ago · link · parent

Why would JIT be more likely to have such a vulnerability than a JavaScript engine without JIT?

comment 1y ago · link · parent

> if site owners can't easily assess the performance of their site

I would be more than happy to opt in to performance metrics or other reports if only I could have some level of trust that improving the UX is all it's gonna be used for. I want to live in a world where that is the everyday normal, and where the non-consensual collection and sale of personal data is a high-profile public scandal with severe legal consequences.

comment 1y ago · link · parent

It might remove it from your local repo, but not from GitHub, that's the point.

comment 1y ago · link · parent

Or JoeScript, substituting one slang term for “coffee” for another.

TypeScript is now called DecafScript.

comment 1y ago · link · parent

But it stops you from getting an equivalent coke from any other vendor, even if you might want to (because it might be cheaper). You're assuming that everyone finds it as important as you do that your “Coke” comes from a specific manufacturer regardless of what the product actually is or contains.

For Coke you might be right about most people (though not me) but there are plenty of products where brand loyalty isn't a thing. People just want some decent hand tissues around, nobody cares if it's made by actual Kleenex.

comment 1y ago · link · parent

The same is true if `return` is a statement, so this doesn't seem to have anything to do with `return` being an expression.

comment 1y ago · link · parent

I considered whether to mention C# in this thread but initially decided against it because it doesn't actually have a bottom type. You can't assign a throw expression to an implicitly-typed variable, or anywhere else where it is needed to infer a type. You can only use it in places where a type is already known so the throw expression can be coerced to it.

In fact, I recently ran into the finding that you can't use it with logical operators either: `return myBool && throw...` doesn't work. I assume that's because && can be used with many types even if the first operand is a bool, but the compiler error message doesn't explain that, it just says throw is an invalid token here, and if you parenthesize it, it says a throw expression can't be used in this context. I was very surprised by this seemingly arbitrary limitation.

comment 1y ago · link · parent

> This would be something the Boomer generation grew up with

... in your country I assume. I've never heard of these, but from the looks of it, they look like an American version of Playmobil or Fisher Price.

comment 1y ago · link · parent

I'm so glad to hear that from someone unprompted. I tried WPF and it was a million times harder to use than WinForms, and I couldn't even be bothered to try out MAUI (although I accept it as an apology for WPF lol). I'm still using a WinForms application every day (Git Extensions) and have been able to contribute to it not least because it's the good old familiar WinForms.

This is not to say that WinForms isn't without its problems. I often wonder what it could be like if all the effort of making WPF and MAUI had gone into maintaining, modernizing and improving it.

comment 1y ago · link · parent

I don't think the commenter you replied to disagrees with any of that. They were talking about poor rates of adoption, not its feature set.

comment 1y ago · link · parent

> Corrections and follow-up questions are welcome.

There are two places where you accidentally wrote “omega” instead of “\omega”.

comment 1y ago · link · parent

I would invite you to re-read some of the comments you perceived as judgement and condescension and keep an open mind. You might find that you took them as judgement and condescension unfairly.

Meanwhile, you have absolutely been judgemental and condescending yourself. If you really keep the open mind that you profess, you'll take a moment to reflect on this and not dismiss it out of hand. It does not do you any favors to blissfully assume everyone is wrong about you and obliviously continue to be judgmental and condescending.

comment 1y ago · link · parent

Here is how I might have handled it differently:

Instead of

> Meanwhile, plenty of us have found a way to enhance our productivity during deep work. No need for the patronization.

you could have written

> Personally, I found doing X does enhance my productivity during deep work.

Why it's better: 1) cuts out the confrontation (“you're being patronizing!”), 2) offers the information directly instead of merely implying that you've found it, and 3) speaks for yourself and avoids the generalization about “plenty of people”, which could be taken as a veiled insult (“you must be living as a hermit or something”).

Next:

> You can do better than a No true Scotsman fallacy.

Even if the comment were a No True Scotsman, I would not have made that fact the central thesis of this paragraph. Instead, I might have explained the error in the argument instead. Advantages: 1) you can come out clean in the case that you might be wrong about the fallacy, and 2) the commenter might appreciate the insight.

Reason you're wrong in this case: The commenter referred entirely to their own experience and made no “true programmer” assertions.

Next:

> Essentially, this is a skill issue [...] Dunning–Kruger curve [...] chose to assume that you knew better. [...]

I would have left out these entire two paragraphs. As best as I can tell, they contain only personal attacks. As a result, the reader comes away feeling like your only purpose here is to put others down. Instead, when you wrote

> You could have asked for tips

I personally would have just written out the tips. Advantage: the reader may find it useful in the best case, and even if not, at least appreciate your contribution.

comment 1y ago · link · parent

As an observer to this conversation, I can't help but notice that both have a good point here.

Soulofmischief’s main point is that meesles made an inappropriate generalization. Meesles said that something was impossible to do, and soulofmischief pointed out that you can't really infer that it's impossible for everyone just because you couldn't find a way. This is a perfectly valid point, but it wasn't helped by soulofmischief calling the generalization “patronizing”.

Bluefirebrand pushed back on that by merely stating that their experience and intuition match those of meesles, but soulofmischief then interpreted that as implying they're not a real programmer and called it a No True Scotsman fallacy.

It went downhill from there with soulofmischief trying to reiterate their point but only doing so in terms of insults such as the Dunning-Kruger line.

comment 1y ago · link · parent

> You could have asked for tips since I said I've found a way to work deeply with them

How do you work deeply with them? Looking for some tips.

comment 1y ago · link · parent

> It’s compelling OpenAI retain data they have the contractual right and technical ability to retain.

You were so close. It’s compelling OpenAI to retain data they also have the right and technical ability to delete. It removes OpenAI’s ability to protect privacy if they wanted to.

comment 1y ago · link · parent

Hm, have you been on the web lately? I've got bad news for you.
1
151617
33