Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,276 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 1y ago · link · parent

The best faith thing I can think of here is that these rules are requiring that live events do much more than "just" display the full price. For example in ads they _must_ show the all inclusive price.

An example of a thing that movie theaters can do that live event shows can no longer do is say "a ticket costs $14", while in reality there's a booking fee to cover card payments if you pay online, but you can walk into a movie theater and pay just $14.

I think the FTC is saying that while there might be good faith reasons to have booking fees, the industry clearly is using this stuff in bad faith so the industry no longer has this sort of good faith "out" to simplify messaging on pricing.

comment 1y ago · link · parent

Yeah you can make Django go really fast, especially when you have pages that well scope what data they are pulling from (though you seem to know it better than me).

I think B2B SaaS, for "normal" teams (read: people not that adept at building scalable systems), when not careful, tend to make omnipages where about 20 different things are happening. Even just navigating to a page ends up triggering random side effects (driven by various needs).

There you can easily find yourself in a performance pit that you have to dig yourself out of (often redesigning features in the process to remove some stuff).

I just find that setting fairly easy performance goals can help to make perf seem more tractable.

comment 1y ago · link · parent

Regarding the slowness, I think it's super important when working with slow stuff like Django to have good SLOs in your head.

"Home page should load under 2 seconds at P95", "reports should load under 10 seconds at P99", "this background task should take under 30 seconds at P99".

Having these targets (and, frankly, remembering in the B2B space is that the status quo is _so slow_) can let you set performance objectives without chasing milliseconds that you don't need to.

Django has a lot of intrinsic slowness to it, "easy" DB access patterns often lead to heavy messes, but if at the end of the day most customers are getting served under some benchmark you can reap the advantages of the tooling without sweating perf too much.

And when you set these SLOs, you can then push for even tighter ones as you figure out your problem space!

In the B2B space companies get away with _so much_ sluggish behavior, if you're better than the median that's already improving things.

comment 1y ago · link · parent

I'm not against this notebook style, I have runbooks in Jupyter notebooks.

I just think it's pretty easy to do things like start a flow back up halfway through the book and not fix some underlying ordering issues.

With scripts that you tend to have to run top to bottom you end up having to be more diligent with making sure the initial steps are still OK because on every test you tend to run everything. Notebook style environments favor running things piecemeal. Also very helpful! It introduces a much smaller problem in the process of solving the larger issue of making it easier to do this kind of work in the first place.

comment 1y ago · link · parent

I mean it feels pretty obvious to me that cell execution order is a pretty real issue for a runbook with a bunch of steps if you're not careful.

I do think that given the fragile nature of shell scripts people tend to write their operation workflows in a pretty idempotent way, though...

comment 1y ago · link · parent

At least on iOS an update requires an explicit unlock, is this not the case on Android?

There could be secret pathways but I don’t know them.

comment 1y ago · link · parent

I was going to write something glib about getting things fixed but that thread looks gnarly!

To be honest I know so many people who use Pydantic and so many people who seem to get stuck because of Pydantic 2. I’m glad I have minimal exposure to that lib, personally.

I suppose the biggest issue really is type annotation usage by libs being intractable

comment 1y ago · link · parent

I have to imagine at that size they have an ops team already for all the other services so those are pretty amortized.

comment 1y ago · link · parent

> I'm very sorry, but such timelines are extremely disheartening and sound like a joke. The problem is, factually, other countries can build out HSRs within 5-10 year horizons, from planning to finishing a route. If it takes 2+ generations to even get a single line... I'm not sure what I can say.

While there are places where the build out itself looks fast, in reality I think most any train line ever build spends decades in "would be a good idea" phase of planning. The Hokkaido Shinkansen idea was on the books since the 70s, and we're still just up to Hakodate!

The Utusnomiya rail line (a local tram line) was in the proposal phase since 2001, and launched in 2023. It's been super successful (profitable!), but was still 20+ years for a single line.

Having said all of that, plenty of ideas gestate for a while, so hooking into an existing idea and getting that actually happening feels like a very good use of energy compared to trying to come up with your own special new idea.

comment 1y ago · link · parent

Aliexpress my impression is you can get "useful" stuff that are odd but usable. But I've had the impression that temu and shein was all "direct to garbage" devices, was this not the case?

comment 1y ago · link · parent

Typescript is so much better than almost every other dependently typed language in terms of expressing these things[0], and it's still kind of miserable.

We still have a long way to go in figuring out how to get our type systems to be easy enough to use to where this stuff doesn't surprise people anymore (because it shouldn't! identifier manipulation should be table stakes and yet)

[0]: modulo soundness of course! Though I don't think that's intrinsic to the expressiveness

comment 1y ago · link · parent

I do like the idea of a variant of this that also includes some signing and logs that share, well, more of the state involved in this.

This sort of work would likely mean that test suites would be built in a way to be run in a more diverse sets of environments. That leads to just less brittle tests overall, and hopefully a better foundation to debug things.

comment 1y ago · link · parent

Very good point. While I think we could do away with the syntactic shorthand, definitely would want to keep some function/method around with the capabilities.

comment 1y ago · link · parent

printf-style formatting ("foo %s" % "bar") feels the most ready to be retired (except insofar as it probably never will, because it's a nice shortcut).

The other ones at least are based on the same format string syntax.

"foo {}".format("bar") would be an obvious "just use f-string" case, except when the formatting happens far off. But in that case you could "just" use t-strings? Except in cases where you're (for example) reading a format string from a file. Remember, t- and f- strings are syntactic elements, so dynamism prevents usage of it!

So you have the following use cases:

- printf-style formatting: some C-style string formatting is needed

- .format: You can't use an f- string because of non-locality in data to format, and you can't use a t- string due to dynamism in

- f-string: you have the template and the data in the same spot lexicographically, and you just want string concatenation (very common!)

- t-string: you have the template and the data in the same spot lexicogrpahically, but want to use special logic to actually build up your resulting value (which might not even be a string!)

The last two additions being syntax makes it hard to use them to cover all use cases of the first two.

But in a specific use case? It's very likely that there is an exact best answer amongst these 4.

comment 1y ago · link · parent

There are many long-term users of Python who participate in PEP discussion who argue for beginners[0], often because they professionally are teaching Python.

There are also loads of people basically defaulting to "no" on new features, because they understand that there is a cost of supporting things. I will often disagree about the evaluation of that cost, but it's hard to say there is no cost.

Nobody wants a system that is unusable, slow, hard to implement for, or hard to understand. People sometimes just have different weights on each of these properties. And some people are in a very awkward position of overestimating costs due to overestimating implementation effort. So you end up in discussions like "this is hard to understand!" "No it isn't!"

Hard to move beyond, but the existence of these kinds of conversations serve, in a way, as proof that people aren't jumping on every new feature. Python is still a language that is conservative in what it adds.

This should actually inspire more confidence in people that features added to Python are _useful_, because there are many people who are defaulting to not adding new features. Recent additions to Python speeding up is more an indicator of the process improving and identifying the good stuff rather than a lowering of the bar.

[0]: I often think that these discussions often get fairly intense. Understandability is definitely a core Python value, but I Think sometimes discussions confuse "understandability" with "amount of things in the system". You don't have to fully understand pervasive hashing to understand Python's pervasive value equality semantics! A complex system is needed to support a simple one!

comment 1y ago · link · parent

every rant like this inevitably goes into Gnome/GTK world. I must insist how much "better" (for these kinds of people) the Qt/KDE world is! People who are so passionate about this stuff just don't give any credit to one side of the equation that has stuck to its guns in terms of making apps that still have a billion buttons with text labels on them.

Seriously, if you find yourself annoyed at Gnome, you can set up KDE and (mostly) have no issues.

I say all this... Qt is a tricky beast to use. I prefer it to GTK but it's chunky.

comment 1y ago · link · parent

I also imagine that quite simply saying "look you can compile this binary as an alternative and run it on the machine" would fit the requirements, even if it doesn't entirely capture the spirit of anti-tivoisation

comment 1y ago · link · parent

> This leads to one of the things I love about Cage's music: it compels criticisms that reveal fundamental misunderstandings about music. E.g., you don't buy the radical case-- perhaps reasonable. But you then speculate there are no cases-- which is at odds with common musical practice.

Love this thought. You disagree with an extreme interpretation, do you take the exact opposite? If not, up to where do you go?

This idea is applicable to so much

comment 1y ago · link · parent

I can't believe I'm going to say this but if you go over to reason.com and look at reporting on the visa stuff, there are a loooot of arguments going on in the comments. We're not even talking free speech absolutionists! Just like "normal"[0] conservatives being like "this is actually kind of messed up what's going on to these visa holders".

Plenty of people happy to carry water for the admin as well. I just don't really have a great view of what people actually think about this issue.

[0]: to be clear, I do not believe there are normal people on that website.

comment 1y ago · link · parent

You can support free speech in the abstract, end up defending certain people whose views you hate, and still come up with a good amount of respect. The ACLU is able to maintain respect despite helping some pretty terrible people in court.

There's just a cohort of people who claim to be in favor of free speech, but also use it as a defense to associate themselves with people they really don't need to. Even the worst people in the world need _a_ lawyer, your local fascist doesn't need a booster on Twitter. There's a spectrum and subjectivity here of course.

"Free speech" has turned into a fun little bad faith thing to throw into arguments where it (for most people) doesn't belong. And even for fellow travelers, these people arguing in bad faith tend to throw in some other stupid garbage into their arguments! So it gets a bad rap, as an indicator that an argument is about to get stupid.

comment 1y ago · link · parent

Because people want strong typing, but also want other things. It's possible to want multiple things, and bemoan that whwat you use is still missing things you want.

Concretely, Django is way more usable than basically any web framework from the "strongly typed" space, especially for "dumb" CRUD stuff. And you're not hit with making decisions about how to do a bunch of things (though you can swap out mostly any part of Django for something else if you want to).

comment 1y ago · link · parent

I understand the frustrating with Django progress (and, to be honest, I would like for Django to more agressively upstream stuff).

I'm curious about what he would want to get into Django that feels like he couldn't though. Since this _is_ a fork of Django, he's still gonna hit a lot of issues that people wanting to improve Django hit.

Backwards compat is an issue, but "all of this code within the library is built off of existing assumptions" is _also_ an issue.

If all the improvements could be third party packages, just making plain be a big third party omnipackage that also has a helper to "fix" settings feels like it would go a long way.

comment 1y ago · link · parent

Measure measure measure measure. Each case is different.

But more seriously I think tree based algos tend to be overhyped, and people get a bit absorbed into thinking about big-O behavior when the constant factors are super important even when you’re looking at hundreds of thousands of elements. Not to mention stuff like data locality. Like sometimes your computer will be faster at just looking in a seq scan rather than dealing with the bookkeeping of a fancier structure. Sometimes.

I think a nicer argument overall is to build a tiny wrapper around your operations, build out what is easy, and then figure it out through measurements.

Worst case you end up entirely rewriting your program to accommodate a different structure to try for better perf but in my experience rewriting entire files from scratch tends to get you a good number of improvements for free.

comment 1y ago · link · parent

Im fairly certain the answer to this is “yes”. Probably need to futz with env cars to get all the caches etc into /tmp though. It needs to put Python _somewhere_

comment 1y ago · link · parent

It's super nice to have timestamps as a quick way to know what program you're looking at.

Sticking it into --version output is helpful to know if, for example, the Python binary you're looking at is actually the one you just built rather than something shadowing that

comment 1y ago · link · parent

I think the vibe is kinda like maintaining an old car or something. Some people like doing this kind of work, especially in a space where you get to decide how it all works.

Good way to explore ideas without having to do concensus building with those around you. Its your own little pet project!

1
262728
225