Better HN
topnewbestaskshowjobs
Log inSign up

echoangle

5,377 karma · joined Oct 20, 2023 (3y ago) · 2,450 submissions

Submissions

comment 4mo ago · link · parent

> if "2-3 requests per second" per author is what you wanna do on $10 server go ahead

That's not a Django limit and there's something going on with the authors setup. 100 RPS on a $16 instance would be easily doable with Django too.

> neither you are saving any time, nor money.

How do you know? I'm pretty sure I can set up the same webapp in Django much faster than in go, so I'm saving both.

> this is a myth, you'll not save anytime. Only way you can save time is if you've experience in this but same is true if you write your app from scratch in Go from your learned patterns.

Why do you think all the built in stuff in Django does not save time? Any argument for that?

comment 4mo ago · link · parent

How are you spending any non-negligible time reading from SQLite at 12 requests per second though? That would mean you’re spending something like 50 ms per request on reading from SQLite.

comment 4mo ago · link · parent

I still don’t get it.

Situation a: Someone searches for location XYZ. The geocoding API returns lat and Lon and canonical name ABC. You save that and the slugified name abc in your DB. (If the API doesn’t return a name, you can use XYZ instead of ABC). You return slug abc to the user.

Situation b: Someone requests weather for location at slug abc. You look in your DB, ask the weather API for the weather at lat/lon and return that to the user.

Situation c: Someone searches for a place that happens to already exist in the DB. You geocode the search term and get a lat/lon pair that’s already in the DB so you return the saved slug.

How is that different than using a shortcode? In which situation are you doing a geocoding API request you don’t need to do with the current system?

comment 4mo ago · link · parent

You can run multiple OS threads (gunicorn workers) on one VM thread so the workers don’t have to wait for each others request to finish though, right?

And if you pay $10/month for a single threaded machine, you’re overpaying by a lot.

comment 4mo ago · link · parent

I don’t get that reason, couldn’t you just use the location name as a field in the database just like you use the short code right now? Where’s the additional API call on lookup coming from?

comment 4mo ago · link · parent

> Some light load testing (with (ab -n 1000 -c 1) shows that right now we can serve about 2-3 requests per second (on a ~$10/month VM).

> After turning on template caching, it seems like the site can now pretty easily handle 12 requests per second or so without using all of the CPU. I have not carefully benchmarked the before and after but it seems like it’s made a pretty big difference.

That seems crazy low, I think there has to be something else going on here.

comment 4mo ago · link · parent

It’s also much smaller. The main problem will be that the people sitting outside experience a lot of vertical motion when the aircraft rolls. That’s only a problem with the full scale design.

comment 4mo ago · link · parent

Isn’t it also so you can look out to see if the emergency exits on that side are usable or if there is a fire or excessive debris blocking the exit?

comment 4mo ago · link · parent

Doesn’t that technically only mean that all windows that exist need to be open, and having no windows at all would satisfy the requirement “all windows are open”? Or is the second sentence an addition to the first?

comment 4mo ago · link · parent

> Food is not meant to be enjoyable, it's meant to nourish. But by a fortunate coincidence it may also be tasty.

Im pretty sure the taste is an evolutionary indicator of nutritional value (we now know how to cheat to make food that tastes really good but isn’t really healthy). But it’s not really an accident that some food tastes good.

comment 4mo ago · link · parent

I think according to the spec markdown can contain any JS program you want (inside raw html).

comment 4mo ago · link · parent

The original euro banknotes were replaced between 2013 and 2019 and are still accepted everywhere you can use the new ones.

comment 4mo ago · link · parent

Seems like some people are missing the joke

https://en.wikipedia.org/wiki/Birds_Aren%27t_Real

comment 4mo ago · link · parent

> Senior interface designer > if you click on the website, it sends out pixelated ripples over the whole screen

comment 4mo ago · link · parent

Rocket Lab has been printing engines for some time now

https://en.wikipedia.org/wiki/Rutherford_(rocket_engine)

comment 4mo ago · link · parent

You could allow the user to define an arbitrary number of pins with and allow the user to select which app to show for each. Then you could never know if you got everything if you want to check the phone.

comment 4mo ago · link · parent

I still don’t get why there’s no way to set up a second pin that unlocks the phone but hides sensitive apps and data.

comment 4mo ago · link · parent

> Also even if it would work (which it very much doesn't), whether it "hurts the original publisher" is actually literally one of the criteria for considering something fair use or not. Look it up.

I don’t know why you’re repeating the stuff I just wrote like I didn’t. My point is that this is only relevant for the fair use defense and not copyright in general.

Here’s what I said:

> The “does it hurt the original publisher” is a test for fair use BTW, just because you hurt the sales of someone doesn’t necessarily make it copyright infringement. That is only relevant if you try to defend using fair use (and it’s only part of the test that’s used to decide fair use).

comment 4mo ago · link · parent

> similarly, as has been shown (by numerous publishers and authors), LLMs are capable of producing nearly-verbatim versions of the texts they have been trained on, to a well enough quality that most people won't be able to notice the difference.

If that is true, you have a legal claim and can sue them. I doubt that’s true in the general case though.

The “does it hurt the original publisher” is a test for fair use BTW, just because you hurt the sales of someone doesn’t necessarily make it copyright infringement. That is only relevant if you try to defend using fair use (and it’s only part of the test that’s used to decide fair use).

comment 4mo ago · link · parent

The game doesn’t but the emulator doesn’t necessarily infringe copyright in itself just because it is based on the original console.

comment 4mo ago · link · parent

That’s not the legal criterion that’s used. Using a different codec is different that using the idea of a book to write your own book.

comment 4mo ago · link · parent

If you just use the abstract idea, you could have done the same thing yourself all the time already.

comment 4mo ago · link · parent

There’s a difference between an abstract idea and the concrete thing. Regurgitating an idea is different than repeating the text verbatim. Ideas are protected by patents, not copyright.

comment 4mo ago · link · parent

That’s some really obnoxious writing, somehow even worse than the usual AI spam (although this also reads like co-written by AI). Here’s the cleaned up version:

I built 160+ micro calculator tools across finance, math, health, fitness and more. I did the keyword research after and the data genuinely surprised me. There were 3,600 keywords total across the calculator hub. The estimated traffic potential is 341 million per month. The average keyword difficulty is 33. 1,784 of all the keywords sit at an easy KD of under 30. That means that 50% of the entire set have low competition. Small boring tools with exact match domains are one of the most underrated SEO plays.

I guess congrats to the author for saving 30 seconds by leaving out half of the words that can technically be inferred.

comment 4mo ago · link · parent

If you want to selfhost and use docker for Java edition, this is the easiest way:

https://github.com/itzg/docker-minecraft-server

There’s also a version for bedrock (the version that’s supported on mobile devices).

comment 4mo ago · link · parent

When will people learn that old/new comparisons should go left to right for people that read left to right?

comment 4mo ago · link · parent

And how would you validate that? Which arbitrary cutoff do you find reasonable?

And if your app crashes on an input like that, you should pick a different date Library or stop and rethink your coding skills.

comment 4mo ago · link · parent

Originally it meant video

comment 4mo ago · link · parent

In all contexts? If there is a paper to hand in and the instructions are that you’re not allowed to use LLMs, do you think it’s fine to circumvent that? If you have a math exam, would you say you can still use a hidden calculator even if calculators are forbidden?

comment 4mo ago · link · parent

Is there an invalid unix timestamp? What is there to validate?
1
101112
82