HNHacker News
TopNewBestAskShowJobs

randomdata

8,634 karma · joined June 23, 2011

submissionscomments
randomdata··on Critique of Freakonomics interview with psychologist Ellen Langer
> Shouldn't that be expected of any interviewer?

No? Imagine how ridiculous that would become if interviewers actually followed that logic. "Great gameplay out there, <insert professional sports star>, but nevermind the sport we are all watching, my research identified that you erroneously wrote 1+1=3 in Kindergarten. What was your thought process?"

The podcast in question is known as "People I (Mostly) Admire" from the Freakonomics podcast network. The name should tell you that it is going to be about the people, not diving deep into their work. Perhaps there is room for a Podcast that scrutinizes the work of scientists, but one that literally tells you right in its name that it is going to be about people is probably not it.

randomdata··on Critique of Freakonomics interview with psychologist Ellen Langer
It’s not a cop-out to complain, but one has to remember that complaints only mean so much. McDonald’s isn’t becoming a Michelin Star restaurant because you complain its food isn’t fancy enough either.

It not like there can only be one Podcast. If you see that the world is missing something, create it! Nobody else is going to do it. If they would, you already wouldn’t have found it lacking.

randomdata··on Critique of Freakonomics interview with psychologist Ellen Langer
The complaint seems to be that Freaknomics and related Podcasts, which are created for the sake of entertainment, are not the peer-reviewed journals he wishes they were.
randomdata··on Ask HN: What Are You Working On? (October 2024)
> Rather I think it has to do with the kind of person that lives in each place.

This does seem to be the repeated consensus – that suburbanites choose to live in suburban areas because they want the isolation. Which, I suppose, makes sense as it is not like you have to live there. People by and large live where they want to above all else. Obviously there can be exceptions (e.g. children needing to live where their parents do), but as far as what prevails goes.

> There's also other reasons to oppose current suburb development patterns. Suburban sprawl is highly inefficient in many ways. It takes dramatically more infrastructure to serve the same number of people that you could in a denser area.

Is denser the actual alternative, though? It seems that if you took suburbs away from these people, they'd most likely try to move into more rural areas, so then you just end up with the same there (without the practical reasons traditionally associated with subsidizing rural areas).

In fact, I'm seeing more and more spreading of the so-called "15-minute city" conspiracy, which has people believing that there is some kind of organized plot out there working towards forcing people into living in dense cities. While the conspiracy itself is not particularly important here, the sentiment of people fearing that they might be forced into the city conveyed alongside it seems quite real and indicative that denser is not the direction they are willing to head.

randomdata··on Ask HN: What are you working on? (October 2024)
I think it is fair to say that large cities are more likely to cater to those who are unique, but large cities return to the same problem again: Everything is far away and you have to get into vehicle (granted, it might be a publicly operated one) to reasonably be able to engage with it. The chances of your neighbour being of the same unique blend that you seek is no greater in the city than in the country.

At which point it really makes no difference if you physically reside within city limits or live in a suburban/rural area as the time and effort to get to the places that cater to your particular niche approaches being about the same in all cases. In fact, in my experience, it is often easier to access the amenities of a large city when you don't live in it!

randomdata··on Ask HN: What Are You Working On? (October 2024)
Rural areas tend to have strong social communities, though, despite all of those same, if not exacerbated, conditions.

Based on several adjacent discussions it seems not that the suburbs cause isolation, but that those who prefer to live in isolation are more likely to choose to live in the suburbs – presumably because it offers the isolation they seek. Even if an individual in the suburbs does not wish for isolation, if everyone else there does that limits the social possibilities.

randomdata··on Ask HN: What Are You Working On? (October 2024)
Roads have been around for several hundred years or more, along with public transportation (trains were commonplace in rural areas in the past), and the car has been the primary mode of transportation for about a century. After all that time, why is this still becoming a big problem?
randomdata··on Ask HN: What Are You Working On? (October 2024)
That's fair. Also a lot of "our great-grandparents were friends, so I implicitly trust that we are also friends".

But what about the suburbs destroys that? Or, would it be more accurate to say that those who already don't have connections have a preference towards living in suburbs? Perhaps that is where they feel most at home?

randomdata··on Ask HN: What are you working on? (October 2024)
> social isolation is becoming a huge problem

It is interesting that you say it is becoming a problem. Why was it not a problem in a past?

> It's a smaller town

Towns are usually considered urban. I was imagining actual, by definition, rural. Living in a small town (~2,000 people) right now, I'd say it has less of a social community that the rural areas I've lived in previously. Still nothing that should leave you feeling isolated, but there is certainly less of a "automatically friends with everyone" vibe. Granted, my rural experience is strictly in agricultural areas where everyone are farmers, which gives common ground on which to "automatically" become friends. If nothing else, you can talk about farming.

Is that the problem with the suburbs? That the people there can't find common ground on which to build friendships?

randomdata··on Ask HN: What Are You Working On? (October 2024)
What makes that different from rural areas, where social communities thrive?
randomdata··on Ask HN: What are you working on? (October 2024)
How does that meaningly differ from rural homes, which do not have the isolation problem? Rural areas have the strongest social communities I have ever seen.
randomdata··on Ask HN: What Are You Working On? (October 2024)
> It causes social isolation.

What is it about suburbs in particular that causes social isolation?

randomdata··on Toasty, an async ORM for Rust
Active record traditionally depends on ORM, but cannot implement it. ORM exists at a lower layer of abstraction.
randomdata··on Toasty, an async ORM for Rust
> If I'm understanding you correctly, then you can do something like

That gets you halfway there, perhaps, but I'm not sure it explains how you would use it in an actual application. Are you back to writing hundreds of "SELECT * FROM recent_admin_users"-type queries in the application, once again exploding the development effort and maintenance surface – exactly what you're trying to avoid with these types of tools?

> ORMs, the original topic at hand, are an entirely different beast.

The original topic at hand is active record, not ORM. ORM is, as the name literally tells, about mapping between relations (or, in practice, tables) and objects. No sane person is going to bash ORM. They may dislike a particular toolkit that tries to help with ORM, but at very least they are going to do ORM by hand.

But that's not what we're talking about. The original comment that set the context for this particular discussion is about query building. It literally proposed using an LLM to generate queries instead. You can query build in the active record style: e.g. `User::all().admins().latest()`, but that's still query building, exactly like the earlier example except with a different API.

randomdata··on Why ghosts wear clothes or white sheets
Folklore suggests that we only meet aliens during probing. Who’s to say they don’t wear clothes the rest of the time?
randomdata··on Toasty, an async ORM for Rust
> choice of the word relation was because typically people don't think of things like views and CTEs and subselects as "tables"

The T in CTE literally stands for table. Even if you're right about the others, how could someone not think of that one as being a table? Regardless, now they can! Isn't education a wonderful thing?

> postgresql documentation uses

In fairness, Postgres originally implemented QUEL, which is relational. It didn't move to SQL until quite late in its life. It often takes longer to update documentation than to write code, especially in open source projects where the contributors tend to much prefer writing code over updating documentation.

> and have a method chaining syntax.

And this is often how composition is implemented. Not strictly so, but a common way to do it. Consider:

    users = select("*").from("users")
    admin_users = users.where("role = 'admin'")
    recent_admin_users = admin_users.where("created > LAST_WEEK()")
And now imagine having tens, maybe even hundreds, of slight variations on the same query in the same vein. Each used in different parts of the application, which is quite common in any kind of line of business application. I'll save your bandwidth and not spell them all out as this is just a contrived example anyway, and I'm sure your imagination can fill in the blanks.

Of course, you could do the obvious and write out 100 completely separate almost identical SQL queries, but that's not exactly maintainable and it's not the 1940s anymore. You are going to quickly hate everything about your existence as soon as those queries need to change. This is the reason people turn to query builders. If you only had to ever write one or two queries there'd be no point, but that never happens within the domain where these tools are used.

But perhaps there is a better way. This is where you would give us example code to show how you would replace that query builder code with a pure SQL solution.

randomdata··on Toasty, an async ORM for Rust
> I'm not sure what distinction you're making besides allowing duplicate rows

Duplicate rows, NULLs, ordering, etc. But there is no distinction to be made here, just calling attention to your grievous error so you don't make it again. We don't want to look like a fool again next time. Viva la education!

> I'm also not sure how to answer your question.

You put a lot of effort into a rather detailed response not once, but twice. You obviously know how to answer the question at a technical level, but perhaps you don't understand the nuance of my question? What I mean is: Show us some example code that demonstrates query builder composition and the pure SQL that you would use to replace it.

randomdata··on Toasty, an async ORM for Rust
1. SQL has tables, not relations...

2. I may be misinterpreting you, but you seem to be talking about composition of data, while the rest of us are talking about the composition of the language.

But, hopefully I've misinterpreted you. Perhaps you could demonstrate how query builder composition is best replaced in pure SQL?

randomdata··on Toasty, an async ORM for Rust
You seem to be thinking of query builders. I would posit that they are still useful in many real-world scenarios because SQL still stupidly does not support composition. Maybe some day it will catch up with the 1950s, but until that day...

ORM has nothing to do with queries. It is about the data. You will still want to map your database structures to your application structures (and vice-versa), else you'll end up with a weird and ugly chain of dependencies that will forever ruin your codebase.

randomdata··on Toasty, an async ORM for Rust
I expect the parent meant to write R instead of O. It is misleading as nobody ever maps relational databases. As the parent points out, usually they reach for tablational databases. This project also supports a key/value database. But it does not even support relational databases.

Further, the project is focused on implementing the active record pattern, so it would be more appropriately called an async active record than an "async ORM".

randomdata··on Tiny Town in Ontario, Canada Selling Properties for $10 a Pop
> Muphry's

Indeed i does.

randomdata··on Tiny Town in Ontario, Canada Selling Properties for $10 a Pop
Funny attempt at correcting a misspelling that isn't there, but he wrote "the mayor [as in a person] cites [as in what he said]", not "the major city".

From the article: "We also have a dome of free Wi-Fi coverage over part of our downtown [Chochrane]. Do you have that in Toronto?"

randomdata··on Geoffrey Hinton said machine learning would outperform radiologists by now
Average Canadian Joe, at least.

I don't expect anyone in Zimbabwe knows who he is, just as I cannot name a single person in Zimbabwe despite being sure they too have household names. His capital enablements, while significant, haven't become world changing.

randomdata··on Lingo: A Go micro language framework for building Domain Specific Languages
> CEL exists for Go and (safely) solves many of the problems you might also want a DSL for.

Seems like it would be difficult to use for what they are trying to achieve. Lua would be a better fit, however it is noted that they tried it first, but ran into some kind of issue with it. So now Limbo is among the "off the shelf" options.

randomdata··on Pretty.c
> you'll also see scripting used to refer to languages embedded in larger projects.

Yes, but this is conceptually exactly the same as the aforementioned shell scenario. This is not something different.

Just as I suspected, there is only one definition, and one that has proven to actually be well defined to boot as you managed to reiterate the only definition I have ever known to perfection.

randomdata··on Lingo: A Go micro language framework for building Domain Specific Languages
> is there a way to reduce complexity here?

Yes, you can generate your test data in the host language. That dramatically reduces upfront complexity.

But that doesn't come free. Now it is not easily transferrable to other languages. If you recall rsc's somewhat recent talk on testing, they benefited greatly by being able to use similar DSLs from other projects in tests to ensure feature parity. It can be a huge boon to have your test data scripts in an "agnostic" language for 30 years down the line when you are no longer working in the same environment.

Tradeoffs, as always.

> I was expecting more than a few real world use cases

Maybe that's the only use-case they know of? The project was clearly built for a specific purpose.

That's not to say that it cannot be found useful elsewhere, but that doesn't mean they have found it to be. If someone else finds it useful in other applications, I'm sure they'll write their own document about it. That's what the web is for, after all.

randomdata··on Lingo: A Go micro language framework for building Domain Specific Languages
> I am missing the most important thing when it comes to CSV which is configuration of the input.

1. Given that their stated use-case for this tool is generation of data for testing purposes, why would input configuration be relevant?

2. It doesn't have any CSV-associated features to begin with. If for some reason you wanted to use this for that, you would interact with your own bound Go functions to facilitate working with CSV, just as demonstrated in the article. Within those functions, you can setup any configuration your heart desires.

randomdata··on Geoffrey Hinton said machine learning would outperform radiologists by now
Hinton has become a household name, at least here in Canada. But only within recent years as his discoveries have now proven useful in capital creation. Nobody knew who he was in the 1980s when his discoveries were "useless".

Which stands to reason. People only think about you if you do something for them. Newton and Einstein enabled the creation of capital that changed the world, so they are remembered. The guy who discovered something amazing beside them, but that which we still haven't figured out how to use, remains unknown.

randomdata··on Geoffrey Hinton said machine learning would outperform radiologists by now
Well, let's put it to the test. What "useless" scientific discovery has given someone a household name in recent years?
randomdata··on Geoffrey Hinton said machine learning would outperform radiologists by now
Some schools would consider their ideas capital. But, regardless, if what they did wasn't useful in the development of capital, nobody would have cared. It is their contributions to capital development that have made them household names.
← PreviousPage 8 of 34Next →