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

> SQL has never been as popular as it is right now in history.

As a compiler target, but even then the SQL is compiled to another representation, so if you want to take that angle it isn't SQL that is popular. Turtles all the way down.

> Is there something they can adopt?

What Oracle is doing was already mentioned. I am personally not entirely sold on their technical choices, and feel that they are trying to stay too close to SQL unnecessarily, but at least they are trying something which is more than we can say for a lot of the other vendors out there. I commend them on that.

> If this X was indeed more popular

It isn't what I would call popular, but it is also rather new. It is quite unusual for a technology to become immediately popular. Though, frankly, I'm not sure it could become popular if never adopted by any other engine. Oracle doesn't have a stranglehold on databases, and if anything is losing ground. Popularity can never come before wide distribution.

> If you've been around long enough you wait until someone can bring the receipts.

But now we circle back to the original posts – there is no good vector for anything else to bring said receipts. SQL has things completely locked down, effectively, which you suggest can only be overcome by becoming more popular than SQL, but, again, popularly is impossible before wide distribution. So the only possible way off of SQL is to convince the SQL crowd that an alternative is possible in hopes that they will consider opening things up.

> You'd be better off proposing this as a feature addition to SQL

It is...? I believe it has been since the very beginning, or at least since the early days. It's such a glaring issue, of course it had to be dealt with. But you have to remember to enable it – which most of the time it seems developers forget, at least in my travels.

Of course, by the same token, if you are able to remember such things, what do you need Rust for? You can avoid bugs and security issues in C just fine if you keep a clear head and never make mistakes. So, Rust doesn't do anything meaningfully different from C, except in the places you suggest don't matter because as long as you don't make mistakes you'll never need it, and yet despite that has gained a decent following. Why it but not some SQL alternative?

comment 2y ago · link · parent

> Conceptually, any information created or consumed outside your organization is not valid as part of a surrogate key, so SSNs are not a surrogate key.

SSNs are created within the organization. Maybe not within your organization, but nobody is talking about you. They are a surrogate key.

comment 2y ago · link · parent

We do know because the database owner has openly talked about how the keys are derived. That still doesn't make it a good key for your database, but I can assure you that the world doesn't revolve around you. It is someone's surrogate key – therefore it is a surrogate key.

comment 2y ago · link · parent

> If you have two things that are roughly equivalent, it's always better to pick the more popular/standard option.

There is a good case to be made that, for better or worse, single page applications (SPAs) are the more popular/standard option as compared to generated HTML, even if roughly equivalent, for web applications. Does this mean that HN is making a mistake in not adopting that model? You did say always.

It is not like Postgres was a new project and they simply had to pick something. It had been with us for a decade before deciding to take the SQL direction. It could have much more easily continued down the path it was already going. There was a significant amount of cost involved to make the switch.

When Postgres was first created there was no clear winner, but by the time the switch was made it was apparent that SQL was becoming the more popular choice, I'll give you that. Is that the only reason for the move?

Thing is, I'm not sure SQL is even all that popular nowadays. I expect the vast majority of DBMS queries are only using SQL as a compiler target, more likely being written in a class of languages often referred to as ORMs. By your logic, databases should be adopting what best aligns with that programming model rather than clinging to SQL. You did say always, after all.

Granted, there are some half-hearted attempts to do exactly that by some DBMS vendors (e.g. recent Oracle releases support "3D" queries that return JSON structures rather than relations, more closely matching language semantics), but not in any way that appears to be all that serious and definitely not in any kind of consorted way. It seems the SQL crowd still can't get over that there might be an alternative. In fact, often they can't even envision anything other than SQL being possible. I don't know how many times I've heard someone claim that SQL is some kind of fundamental mathematical property.

> What was that?

The most common SQL bug I see in my travels can be distilled down to something like:

    SELECT t1.* FROM t1 INNER JOIN t2 ON t1.id = t2.t1_id
To be fair, I'm not sure the bug would go unnoticed with such a simple query - where one is able to keep the entire mental model in their head. But consider the basis of that query expanded into something complex, where one will struggle to maintain all of the minute details in active memory. That is where I see bugs be introduced all the time, even by experienced developers. A different design – including the originally designed database query language – has proven to eliminate this class of bug.

comment 2y ago · link · parent

> If you received a piece of information from an external source, it is data, not a surrogate key.

It may not be your surrogate key, but it is someone's!

comment 2y ago · link · parent

> That is why you have WASM nowadays

As an aside, I always figured that the "WASM" of databases would come some day. With SQLite recently publishing details about its bytecode engine, perhaps that is looking more realistic?

comment 2y ago · link · parent

> It's not that SQL is substantially better than QUEL, it's that QUEL was not substantially better than SQL.

You seem to have your own point backwards, unless you have failed to make one. The premise you gave, at least as I understand it, is that there is no reason to put in the effort in moving away from SQL because nothing else is substantially better. So, by the same token, unless SQL was substantially better than QUEL, there should have been no reason for Postgres to put in the effort to make the same transition.

Which implies that SQL was substantially better. The question was: In what way?

> I can't think of an example where one of these newer query languages actually solve bugs

Perhaps because you are getting hung up on newer? They need not even be newer. The most glaring bug-inducing "problem"[1] of SQL was already recognized and solved by the original database querying language, Alpha.

[1] Problem might not be the right framing, but I lack a better word. There is no problem if you write perfect queries every single time. But, like C, it opens opportunities for making mistakes that could have been made impossible with a different design.

comment 2y ago · link · parent

> SSN ... which are definitely not surrogate keys.

Surely SSN is a surrogate key? They are not naturally derived. The early ones were serial (i.e. an auto-incrementing field) and more recent ones are randomly generated (i.e. a UUID).

comment 2y ago · link · parent

I questioned where there idea that there are people on an Internet forum comes from. I don't see any people, only the output of software.

There was nothing about the quality of that output or an attempt to insult the software. By what mechanism could software even be insulted?

comment 2y ago · link · parent

No witnessing of a a person telling anything of the sort has occurred. Software has made a suggestion of that nature. Let me ask, software, how has this confusing software as a person managed to occur?

Furthermore, getting back to the topic at hand, expectations in an exchange cannot be defined by an individual. They must be defined and agreed upon by all acting entities. Google has made its end of the exchange clear with no evidence of wavering just for Nintendo, implying that Nintendo shared in the standard list of expectations.

comment 2y ago · link · parent

> I am describing the expectation

Yes, the expectation is that Google, and therefore its agents, are trustworthy. You would not give them your information otherwise. Who happens to working at Google at some moment in time is irrelevant. You have chosen to entrust an entity with a revolving door of individuals. Absolutely no expectation of who will access the information is defined, fundamentally. If that is important, you must go to the individuals directly.

You might assume that Google will "do the right thing" by working to keep the information away from those who don't need it, but that is entirely up to them. Hell, they might even do that, but then cycle all of their agents through positions where access is needed... In the end, if they choose not to, nothing about the trust expectation has changed.

comment 2y ago · link · parent

The expectation is placed on the entity the trust is given to. Unless you go to individuals directly, there can be so such expectation on individuals. There may be an assumption that the entity you have given trust to do will "do the right thing" with individual agents, but it there is no such expectation as you have already trusted the entity, meaning that you have already trusted its agents. What have you gained by keeping information away from people you have already entrusted with the information? If you cannot find the trust to give them, why are you giving it?

comment 2y ago · link · parent

Right, expectation is the standard. The standard is that anyone who is an agent of the entity you have entrusted is also considered trustworthy. After all, giving full trust to an entity you only trust partially is nonsensical.

However, you make a fair point that it is reasonable to assume that entities you trust are willing to go above and beyond, for various reasons.

comment 2y ago · link · parent

There may be a difference, but it seems you have them flipped. It is a reasonable assumption to think that they have controls to limit who is able to see information[1], but one must go in with the expectation that every acting agent has access.

[1] Of course, since you don't know who the individuals are, you still have to place your trust in every single agent that works for the entity you chose to entrust. As such, nothing is gained by restricting access. It remains that if it is important that it be private with only one or a few, you must go to those individuals you trust directly. Granting them private information by proxy will always be subject to man-in-the-middle-ing.

comment 2y ago · link · parent

I assume you are working with the AI definition that is along the lines of: "Problems a computer may not be able to solve"?

OCR was absolutely considered AI before we knew how to do it. Now that we understand it, it's just computing, of course. But it still is reasonably considered AI by any other definition of AI.

comment 2y ago · link · parent

Apple Computer is of no concern. Apple will ensure they are shut down long before they ever get around to you. Of course, Apple won't take a "Big Mac" computer lightly either.

comment 2y ago · link · parent

The private information is shared with Youtube/Google, so the assumption is that anyone who is an agent of Google is in on the secret. If it must only be in the hands of one or a small group of people at Google, you'd best go to those individuals directly, not through the overarching entity of Google as a proxy.

comment 2y ago · link · parent

Yes, indeed, people do know that when I say "I have some private information to share with you", it means I am going to let another party in on the secret.

comment 2y ago · link · parent

The friend is quite relevant. There is no expectation of a video stored on a Google system being private to Google employees, but there is an expectation that they will not take that information outside of Google.

comment 2y ago · link · parent

> Rust hasn't swept the world yet and it helps prevent real bugs and security issues.

As the inventor of the relational model has written about extensively, and as you have no doubt came to realize yourself if you've used SQL for more than a few minutes, a different query language could have prevented a whole lot of real bugs too. SQL also has its fair share of security problems that are only prevented by telling developers to be careful.

Rust will never sweep the world, of course, because there is no reason to choose a single language in the application space. Something sweeping the world tells that you royally screwed up the execution environment. But it is a viable contender, despite being no different than C in any meaningful way (clearly you don't see bug/security issue prevention as being meaningful).

> despite it's quirks, that there doesn't exist a language better enough to make it worth replacement.

As you know, Postgres went in the opposite direction, eventually switching to SQL. A DMBS – one which is probably the second most popular DMBS in existence at that – completely upending what query language it supports is not without precedent. What do you think it was about SQL that made it substantially better to justify the change?

comment 2y ago · link · parent

> But would that radically change how queries are written? Not really.

Rust didn't radically change how applications are written as compared to C, but that didn't stop us. Nor should it. Any improvement is worthwhile. It doesn't need to be radical.

But, like another commenter points out, SQL is like Javascript. Both having ecosystems so horrendously conceived that they have ensured there is no good path to replacing/augmenting them.

comment 2y ago · link · parent

> Feeling of loneliness is at its highest

The research attributes this mainly to the decline in alcohol consumption. Which I suppose isn't terribly surprising. Alcohol has been long known as the "social lubricant" for good reason.

> and so is pornography viewing (but, correlation does not mean causation).

Causation is not implied, but at the same time it wouldn't be very human-like to see that decline in alcohol consumption be replaced by nothing, so perhaps you are onto something. Perhaps alcohol consumption is on the decline because porn is taking its place. They do both target dopamine production, so it is not inconceivable.

The temperance movement putting more emphasis on pornography lends additional credence to the idea, although perhaps that is simply because they feel they are finally starting to "win the war" on alcohol.

> I'm curious, do you think AI boyfriend/girlfriend/friend is/will be a plus or a negative on society?

You can always tell when you are around tech people. Hint: The real world isn't binary.

comment 2y ago · link · parent

> as they are there to watch.

Or left to watch because they weren't good enough to be chosen to play? If a team pulled someone from the crowd to join in, the selected is saying no every time? Colour me skeptical.

> Well done, but you are an exception.

I'd say about half of the people I went to school with are still doing the same thing they were doing at 14. I'm not sure that is a marker of exceptionalism, but, indeed, that still leaves many 14 year-olds with only a job. But is there a meaningful difference between a career and a job in this context?

> i.e humans have 5 fingers. Yes, some have 6, but for the most part, we have 5.

And here I am counting ten. Do you hang out with inattentive lawnmower enthusiasts?

> In your school, were there no relationships?

Not something I ever felt the need to keep tabs on, I'm afraid. The data suggests that most 14 year-olds are virgins, though, so while it is possible respondents are prone to lie, if we take it at face value that would suggest that by and large they are not forming such romantic relationships, either by their own accord or because they are unable to find a willing mate.

comment 2y ago · link · parent

> If you're in a mixed gender school, you're basically in a building with hundred of potential candidates.

And if you are in a professional sports venue during a scheduled professional sporting event you are basically in a building with hundreds of thousands of potential athletes.

> Your only competition is other 14-16(hopefully not higher) year olds, none of whom have careers!

None of them? I had my career at 14. Still at it many decades later.

Regardless, I suspect at 14 the biggest competition you are up against is that which you have failed to mention: Nobody. It is not down to either you or someone else. The romantic interests involved can easily choose to not get involved with anyone.

comment 2y ago · link · parent

> I am not the one who wants to expose 14 year olds to sex.

You indicated that it would be a future relationship, so nobody was previously under the impression you would be exposing a 14 year old to sex. Of course, now that you have suggested it out of the blue...

> I was not sexually trafficked when I was 14 year olds, so what would I have gained from sex trafficking being illegal, right?

No. That does not logically follow. I would not have wanted to be trafficked at 14, so any circumstances that prevented that from happening would have been valued. The question was: What would I have gained by being restricted from accessing something I already had no interest in accessing?

comment 2y ago · link · parent

It is your life to live, but if your actions disgust you, why be that person?

I had no interest in smokes/vapes at 14 years old (or now, for that matter). What would I have gained by seeing restrictions on them when I was 14 years old?

comment 2y ago · link · parent

> And the marketing trick is called lowering supply.

The original contextual comment indicated that there was no reduction in supply, merely false claims of the "there is only one unit left!" nature. Normally a buyer would look around to make sure the claim is true, but I guess the idea is that people get so emotional about housing that they don't give it a second thought, which plays into why there is such inelasticity to exploit.

Try reading the thread before replying next time.

1
434445
256