Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 2y ago · link · parent

I'll take your word for it, but the source code suggests not on all Linux distributions:

https://github.com/chromium/chromium/blob/2594d9f12f00ecdfbc...

comment 2y ago · link · parent

Chrome.

comment 2y ago · link · parent

Nearly 6%, really. Only misreported due to a certain browser not including 'Linux' in its user-agent string.

comment 2y ago · link · parent

If we take the logical extreme to mean that 50% of the transactions are carried out by 50% of the people, why would, at least where there are democratic governments, the people actively choose crypto because of its unregulated properties and then promptly undo it all with regulation?

But you're probably thinking of either cases where 50% of the transactions are carried out by a much smaller segment of the population or where there is a dictatorship?

comment 2y ago · link · parent

Unlikely, given that you see the 100x engineer as being only a 10x level up.

comment 2y ago · link · parent

Agile is from 2001. What you seem to be thinking of is the Toyota Production System. It is quite possible that TPS inspired Agile, but to claim that it is Agile is like saying that GPT is from the 1960s (because it shares some resemblance to Eliza).

comment 2y ago · link · parent

Agile says nothing about defining what is done.

Scrum uses the exact "Definition of Done" language, though. I suspect that you are really thinking of it...

Which is humorous given what you said about wrong usage of Agile. Case in point?

comment 2y ago · link · parent

> I rapidly learned never to use that word within earshot of my managers.

Stands to reason. Agile, in the Manifesto sense, defines the considerations to consider should managers be eliminated from the picture. Nobody is going to be comfortable knowing that their job is on the chopping block.

comment 2y ago · link · parent

> But your usual 10x engineer you'll meet is the guy who knows the ins and outs of all running systems at work giving him the ability to debug and solve issues 10x quicker than the rest

You're talking about the 100x engineer now. The 10x engineer is the normal engineer you are probably accustomed to working with. When you encounter a 1x engineer, you will be shocked at how slow and unproductive they are.

comment 2y ago · link · parent

So you already claimed, but, still, curiously we have no answer to the question. If you don't know, why not just say so?

That said, if you have ever used these tools to generate code, you will know that they are much better at some languages than others. In the general case, the target really is the problem sometimes. Does that carry into this particular narrow case? I don't know. What do the comparison results show?

comment 2y ago · link · parent

1. How would the abstraction be removed? Language generation is what LLMs do; a language abstraction is what you are getting out, no matter what. There is no magic involved.

2. The language has to represent a valid computer program. That is as true of SQL as any other target. You can know that it is correct by reading it.

comment 2y ago · link · parent

But, to stick with your example, you can then modify SQLite to accept byte code input – or straight up write your own database engine that uses said byte code. We already know how to solve that kind of problem. This is, comparatively speaking, child's play.

It is recognized that SQL as a target would theoretically provide a less labour intensive path for reasons of integrating into what already exists, but that only holds if natural language to SQL gets solved, and is not enough harder to solve than an alternative target.

A reasonable stretch goal, but if another target gets you there first, it would be foolhardy to cling to SQL. Replacing the database interface is a much simpler problem to solve.

comment 2y ago · link · parent

> I think the problem is the quirkiness on the English side

While likely, the question asked if there was any improvement shown with other targets to validate that assumption. There is no benefit in thinking.

> And often query results must be 100% accurate and reliable.

It seems that is impossible. Even the human programmers struggle to reliably convert natural language to SQL according to the aforementioned test study. They are slightly better than the known alternatives, but far from perfect. But if another target can get closer to human-level performance, that is significant.

comment 2y ago · link · parent

> What would that "something other" be?

Depends. Where is the problem? Is it the quirkiness of SQL? Perhaps something like QUEL or Datalog would yield better results? Is it declarative programming that it struggles with? GPT, for example, seems to be optimized for Python in particular. Perhaps an imperative approach is easier for the LLM to understand? It doesn't even have to be a language suitable for humans. Perhaps it would fare better with something like SQLite's byte code language?

> If the goal is to talk to a SQL database

While being able to talk to an existing SQL database would no doubt simplify the problem in a lot of cases, which is of merit, I doubt that is the actual goal. The user doesn't care about the technology, as they say. Getting the expected results out of the database is undoubtedly the actual goal.

SQL as a target is all well and good if it works reliably, but the claim was that it doesn't. If some other target performs better, there is no need to cling to SQL. It is merely an implementation detail.

comment 2y ago · link · parent

> The problem of going from natural language to SQL is still a far from solved problem.

Is there any improvement going from natural language to something other than SQL? Certainly SQL can be cut out of the picture if it is what confuses these systems.

comment 2y ago · link · parent

> Interesting considering GM's announcement to move away from Apple Carplay to a proprietary tech system.

Said proprietary system was built by Google, though, so no need for in-house people for it.

comment 2y ago · link · parent

In what way is the operation common? We obviously would never say that there is never a use for such thing as there are clear edge cases where it is necessary, but as jerf points out, it is probably not what you actually need in most cases.

Even ignoring that in the most common case the map isn't the right structure to begin with, what even is the general case for the situations that remain? You mentioned the marshalling of arbitrary data case, but in that case you also have reflection details to worry about, and which you can optimize for with a custom implementation, and thus wouldn't likely use the built-in anyway. A sibling thread discussed the cache benefits of colocating the values with the keys if a map is exceedingly small, but as soon as the map is of any reasonable size the added overhead of the values is almost certainly going to blow the cache even where the keys alone might still fit.

All of which is to say that the best approach is highly context dependent. How do you even begin to choose which is the general case if you were to include such a function?

comment 2y ago · link · parent

> both encoding/json and text/template guarantee sorted iteration order of maps. I don't think it's an edge case at all.

That is literally the edge case example I gave. Perhaps there is a better way to describe it than "edge case", but semantics is a silly game.

> then the built-in map still seems like the right choice, and having a standard way to iterate it is a reasonable request.

And, indeed, the standard library provides slices.Sorted(maps.Keys(m)) for exactly that. Ergonomic enough, while making the compromise being made reasonably explicit to help with readability – which is far more important than saving a few keystrokes. If typing is your bottleneck, practice will quickly solve that problem.

comment 2y ago · link · parent

There is another, perhaps more important, reason: If you need sorted keys, the map is almost certainly the wrong data structure.

Sure, there may be some edge case situations, like where you are dealing with someone else's code where you don't have control over the structures you've been given, but:

1. The standard library doesn't appeal to edge cases.

2. The "noiser" solutions to deal with the edge case serve as a reminder that you aren't working in the optimal space.

comment 2y ago · link · parent

Not completely pointless. It avoids the need to retain a full copy of all the values.

But a good demonstration of why this kind of thing isn't a good fit for the standard library.

comment 2y ago · link · parent

> And yet slices.Sorted was added which does exactly this already

It does not. slices.Sorted accepts an iterator, but returns a slice.

Like the earlier comments point out, Go tries its best to give a reasonable idea of what kind of complexity is involved at the API level. slices.Sorted returning an iterator would mask that. By returning a slice, it makes clear that the entire collection of data needs to be first iterated over as the parent described.

comment 2y ago · link · parent

> But I still feel that it is unnecessary

So did Go in the early days, which quickly proved to be problematic. Randomization was eventually added to try and call attention to buggy (in the typical case; yours may be an exception) code.

comment 2y ago · link · parent

> Hmm, I guess I don't really consider throwaway assertions in pursuit of debugging "tests" in the typical sense.

I agree it is not "tests" in the documentation sense, and I did mention that, but, regardless, you do seem to align on "throwaway". Now you have me curious, what kind of ephemeral "tests" were you imagining if not something similar to what I described in more detail later?

comment 2y ago · link · parent

Debate is for maladjusted high school students. All we have here is laughing at he who thought that there are no costs to transition from using Google's ad service to something else, and continuing to laugh at the doubling down on the out-to-lunchery that followed.

You'd have known that if you read the comments.

comment 2y ago · link · parent

> The thread started by someone saying switching costs are zero.

And as discussion continued, it was asked what the transition costs are for advertisers. He who answered that question clearly claimed it was also zero. This "someone said something about search users earlier", while technically true, is unrelated to anything being talked about here.

In danielmarkbruce speak: Actually read the comments. Whatever it is that you missed is leaving you horribly confused.

1
252627
256