Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,663 karma · joined Jun 14, 2010 (16y ago) · 1,502 submissions

Submissions

comment 3y ago · link · parent

It's not just lawyers who think that ChatGPT is a search engine. I've observed this many times in my vicinity, people from all walks of life think that Star Trek is here and computers now respond accurately to natural language queries. For non-techies, "just asking the computer" is so much more convenient than translating your question into traditional search queries.

So I guarantee you that stuff like this is happening daily across all industries. Depending on the profession, people will lose money or get hurt as a result of someone blindly trusting this technology. I can't prove it, but statistically, that's basically a certainty.

In my opinion, you can't overstate the importance of articles like this, which point out the limitations and highlight the dangers. I'm also against banning. But lay people need to be informed what ChatGPT is and is not, and OpenAI won't do it because they want to ride the hype train.

comment 3y ago · link · parent

> something about the idea of indiscriminately running binaries invisibly downloaded over the WWW rubs me the wrong way

I think that's because the word "binary" has connotations that aren't strictly technically justified. There's no difference between running WASM and running JS (which is usually obfuscated anyway). Both are JITted into machine code, and it's important the JIT is implemented securely. (JIT compilers have been sources of exploits.) The only difference is complexity of the source language, where simpler languages are easier to secure. And WASM is orders of magnitude simpler than JS.

comment 3y ago · link · parent

Python packaging is a special kind of dependency hell, you get the feeling that forward compatibility is an unknown idea and everything depends on the precise version of anything else. Last time I checked, some of the most popular packages hadn’t even been ported yet to a stable Python release that was six months old at the time, forcing me to downgrade. It’s essentially the most unpythonic aspect of working in Python: a zillion incompatible ways to do things, and nothing works out of the box.

comment 3y ago · link · parent

> A classic job interview question is finding the employee with the highest salary in each department.

Here’s a cheat code, in case you need to write a database query and don’t remember all the fancy join tricks: Problems like this often have a very straightforward solution with subselects. In this case, the main select gets the departments, and a subselect (with limit 1) fetches the top employee for each department.

That’s a very natural, compositional way of thinking. Granted, it’s not the most optimized way to do it, but more often then not, the resulting query plan is perfectly fine.

comment 3y ago · link · parent

JSON as a computer-generated serialization format doesn't need any of those features. But for human-written configuration files, at the very least trailing commas and comments are basically a necessity. The question then is which features to pick beyond that (in my humble opinion, none), and how such a new standard would gain traction. JSON5, JSON6, JSONC all basically attempt to solve the latter problem by branding, but so far, mostly have failed.

It doesn't help that there's an insane amount of bike-shedding going on in this space. The people who have forked JSON5 to create JSON6 for example have created an endless amount of confusion over which standard to use, harming both of them. I think they might want to think really hard whether the inclusion of octal literals was really worth the hostile fork.

comment 3y ago · link · parent

> I get tired of the VB.NET hate.

You read a bit much into my comment. My point is just: If two languages are largely equivalent in terms of difficulty and ecosystem, why pick the more obscure one? That's not "hate".

> Any kind of coding is good coding.

Any kind of coding is better than no coding, but that doesn't mean you can't make distinctions. I simply don't see a point in making learners later lives more difficult for no obvious pedagogic benefit.

comment 3y ago · link · parent

I think we agree, but I'm not sure I get your last point. PHP, for all its (in parts very weird) flaws, always had the advantage of how fast it is to get a website up and running. But AFAICT, VB.net isn't actually any easier to get running than C# is?

comment 3y ago · link · parent

> when you graduate to Visual Basic

Please don't. I don't mind Microsoft pushing .NET languages, that's sort of expected, but why VB? Getting started with modern Visual Basic isn't actually all that much easier than with C# -- both target the .NET runtime, and the deeper semantics are actually largely the same. And C# is infinitely more relevant in the job market.

comment 3y ago · link · parent

This thread will unfortunately be full of boring ("I tried this in UltraGPT 35.6 and here's its output") posts, but the research itself is interesting, and robust detection of bots will be useful.

Unfortunately, the given prompts are way too specific to work in an adversarial setting. It would be too easy to special-case these concrete examples. Maybe further research will find ways to counteract that.

I also wonder why can't simply keep the term "CAPTCHA".

comment 3y ago · link · parent

My reading of these events is that the jailbreak is successful, but some other, slower system detects it after the fact and deletes the message. Given the delay, I've seen speculation that there's a manual step involved.

comment 3y ago · link · parent

I wonder if it’s possible to somehow train these models to recognize additional out-of-band data, e.g. annotate every character with a “color” that can’t be faked by the user to signify its origin. Everything that’s in-band seems potentially injectable.

comment 3y ago · link · parent

> It is an NFA in every way except

So not an NFA. That's fine, you can always define "extended NFAs", and some variants are practically useful. For example, most practical "regex" implementations have features like backreferences that are very convenient, but strictly more powerful than DFAs. You just have to be aware that you lose all the well-established theory around NFAs if you do something like that.

comment 3y ago · link · parent

You wonder if its feasible to create what, a binary format?

comment 3y ago · link · parent

Presumably, most of the code doesn't change often, and consequently, should be kept in the filesystem cache and never actually read from disk. So the numbers could apply, I think.

comment 3y ago · link · parent

> The thing about html is that it's a verbose text format on the surface, but it compresses incredibly easily, and support for gzip is widespread. If you're concerned about size, brotli is better again.

That's why I said it wastes 15%, not 100%. Whenever text-based formats and binary formats are compared, the results after compression (of both) are usually in that range. You can debate those precise numbers, they might be lower for the brotli/HTML combination. That won't really change the point I was making in context: That a few extra bytes for backwards compatibility in the TLS handshake pale in comparison to the amount of waste we accept for encoding the payload.

comment 3y ago · link · parent

That kind of stuff is necessary for binary protocols to evolve in a compatible way. When a TLS 1.4 is defined, we need a window where clients and servers can still negotiate 1.3 until both have been upgraded. And 1.3 had to find ways to be compatible with 1.2, and so forth. Decades of that kind of evolution are guaranteed to leave some marks in the protocol.

But let's keep a sense of proportion. I find it hard to worry about "wasting" maybe 0.01% of the total internet bandwidth for a few extra bytes here or there, when that's necessary to keep the internet working at all, when on the other hand, for no end-user benefit, we don't hesitate to waste maybe 15% (after compression) by insisting on using text-based formats for the payload in all our web standards.

In fact, I'd love to see a back-of-the-envelope calculation of how many tons of CO2 would have been saved in total if HTML was a well-engineered binary format. (Including bandwidth, storage, parsing on the client etc.) The number must be insane.

comment 3y ago · link · parent

Although it's technically a more complex case, I think many developers would intuitively understand something like this:

    const base: BaseClass = new SubClass();
    const keys = Object.keys(base); // should give you the subclass keys as well
(This is pseudo-code that might not quite work due to how prototypes and classes interact, but I'm trying to illustrate a principle.)

What's perhaps a bit surprising is that all types in TypeScript behave like BaseClass in this example. Object types (e.g. {a: number, b: string}) specify the minimally required properties, not the maximally allowed properties -- they are effectively the same thing as interfaces. Any concrete object that implements the interface can have more properties than the interface requires.

That's so fundamental to the type system that I think if you want to work around it, you might not fully understand how TypeScript works yet.

comment 3y ago · link · parent

I think this will allow for some of the most confusing possible domain names.

IT person: What’s the address?

Customer: It’s www.http.web.

IT person: That can’t be right, please check again.

Customer: No, really…

comment 3y ago · link · parent

I mean, there's nothing about an SPA that forces you to break the back button, to the contrary, it's possible to have a very good navigation experience and working bookmarks. But it takes some thinking to get it right.

comment 3y ago · link · parent

I'm not sure if it's common knowledge that "ur-" means "original".

comment 3y ago · link · parent

I always thought that the "message passing" style of OO (which I always hated as a term, because it implies asynchronicity, but I digress) is firmly something else than the "classes and interfaces" style of OO, and that it's an unfortunate accident of history that we give them the same name.

comment 3y ago · link · parent

Ruby is mostly a Self in this classification, right? Or maybe a Self/ALGOL hybrid. It does have iteration as a method (.each), but also has traditional if statements.

comment 3y ago · link · parent

Once you recognize the patterns, it seems clearly in the ML tradition. Some bits and pieces look exactly like Haskell at first glance.

comment 3y ago · link · parent

I'm not sure I fully agree with that characterization. Many people would intuitively classify assignment as a statement, yet it's an expression in C, which is fully in the Algol tradition. And Rust is certainly a descendant of C, but blurs the lines a lot further with loops being expressions.

comment 3y ago · link · parent

Hmmm. I tried about a dozen times before giving up. I thought the game was broken before reading your comment.

Nothing in the game visually indicates that going back is worse than going forwards. As the level is symmetrical, the distance is literally the same. A one-way door, or crumbling floor, would have been easy solutions I think.

comment 3y ago · link · parent

Why do you believe this to be a market failure?

comment 3y ago · link · parent

The year is 2023. Everyone who believes either Microsoft or Google are the good guys here is either not paying attention, or works for either of the companies (not so unlikely on Hacker News). Both companies use every imaginable dark pattern to trick users into agreeing to whatever tracking bullshit they added last week. With one company controlling the OS and the other the browser, the question is just which dark patterns preempt the other company's dark patterns in the battle for user attention and data in the advertisement wars.

I long for the days where I was able to pay for a piece of software. The nature of the transaction ensured that the software did what I as a user wanted it to do, and served no hidden agenda. But those days are gone, possibly forever.

comment 3y ago · link · parent

> The post is about removing some unnecessary wording from technical documentation that doesn't add anything, and as an aside can sometimes imply complex tasks are simpler than they are to the detriment of the app/library/service it's documenting.

I'm not sure that's a fair summary of the article. I just reread it: at no point does it suggest removing superfluous words in general, it's specifically about "words such as easy, painless, straightforward, trivial, simple and just", because those in particular are "jolting", "upsetting and annoying" and "infuriating". What you frame as an "aside" is in fact the first and last paragraph of the article.

> I have no idea why you'd think this implies some personal failing or that it is advice for "babies"

You're missing a level of indirection here, the readers of the documentation are the “babies”, not the writers who take this article's advice. This is advice for people who write for people who act offended when reading the word "simply" in technical documentation, and I'm questioning the dynamics of that.

It's obviously fair to criticize the word choice on my part, there were less incisive ways to phrase that. But then, it's the article that claims that the usage of the word "just" in the sentence (the article's example) "[then] we will just edit the users_controller.rb" is "condescending", and I think that's "simply" (sic) insane.

comment 3y ago · link · parent

Or maybe -- controversial opinion here -- people shouldn't be such babies. I'm looking around the HN discussion here and can't quite believe how personally offended people are by these words.

Yes, at the beginning of the first semester at university, hearing a math professor say a step is "trivial", when it was quite hard, was a bit grating. One month in, I realised that the intended meaning of the word was that no special clever trick was required to make the deduction, just a lot of perseverance.

Similarly, when documentation mentions to "simply" do something, and I don't get it, isn't that a clear hint that I'm still missing a concept somewhere and need to look around for an explanation?

What I wonder is: Why is this so personal? Are people really shamed into quitting their career over a misplaced "simply" in a piece of tech writing because it triggers their impostor syndrome? Is that the reason why tech documentation has slowly been evolving into 50-minute step-by-step YouTube tutorials that start with installing the IDE? What happened to the expectation of people being adults?

1
151617
51