Hacker Newsnew | past | comments | ask | show | jobs | submit | bootsmann's commentslogin

Oil markets are global, you cannot hike prices for China while enjoying cheap oil yourself.

Unless china is importing sanctioned oil from.... Iran, Russa, and Venezuela at discounted rates.

I think this has been the crux of many allegations against China. They don't operate fairly in global markets.


Just for my own understanding, you're not insinuating the US is currently playing fair with regards to starting the war that caused all this?

Just for my own understanding, you're not insinuating China isn't violating international sanctions to purchase oil at a discount?

I may be out of the loop, but who's sanctions is China violating?

Noone could’ve seen this coming, how were they supposed to know that the strait of hormuz is so important!

I'm actually somewhat surprised Iran is openly telling us they are using underwater drones for this. That piece of technological advance has gone mostly under the radar (!) so far.

> That piece of technological advance has gone mostly under the radar (!) so far

The Ukraine would like to have a word.


FYI, "The Ukraine" is politically charged wording held over from Soviet times, and implies that it is part of Russia. The independent country is known simply as "Ukraine".

There are plenty of languages with gendered country names. Ukraine is die Ukraine (feminine gender) in German and the article is necessary since changing the article changes the meaning of what you're expressing. Whenever I see/hear "the Ukraine" I assume English is their second language.

Yes, my bad, I am not an english native, thanks for the reminder.

How do you explain "back in the USSR"?

For the same reason as "The UK" or "The USA" - all of them are acronyms starting "The Union of ..." or "The United ...".

Similarly you say "The commonwealth of Massachusetts" but not "The Massachusetts".

This does not apply to Ukraine, unless you want to say "The Republic of Ukraine".


You don't know how lucky you are, boy...

... or "Born in the USA"

It’s Ukraine, no “the”.

In many languages the article is necessary. I assume English is their second language.

Yes but as one of the other commenters pointed out, its a charged term when it comes to Ukraine so its worth mentioning to people that use it accidentally.

The drones that are mainly used there are the flying kind.

"Mainly" but they've been assaulting Russian boats and ships with USVs and submersibles.

For example - https://en.wikipedia.org/wiki/Sea_Baby#Sub_Sea_Baby


Ukraine completely locked up the Russian fleet inside its bases with the underwater drones.

Underwater drones, not drones in general.

Ukraine has been sinking Russian warships in their harbor using underwater drones for at least a year now.

What defense is there against something like this? AFAIK only a few US aircraft carriers are equipped with anti torpedo torpedoes, and one of those sitting in the straight would be pretty vulnerable.

Of course that could be the entire idea.


The calculation is that of course there are defences, but if you have a big stockpile of $20K drones, and your opponent has a limited number of $2mil drone interceptors, then you can keep throwing drones and keeping your opponent busy there, and you're coming out ahead even before one finally gets through.

See: https://bsky.app/profile/mekka.mekka-tech.com/post/3mgrvx5gr...


This is very much a 'you break it, you buy it' situation. The US should be running destroyer screens for convoys a la WW2 today, yet AFAIK the US fleet is sitting hundreds of miles out of the Persian Gulf, within bombing range, outside of easy strike range.

The navigable part of the Strait of Hormuz is only 15-ish miles wide, maybe less. There is no way the US can convoy screen anything without significant loss in sailors and ships.

The WW2 convoy situation was far easier to escort (but still quite dangerous obviously) because:

1. The Atlantic is a much bigger place, even considering common routes and chokepoints.

2. U-Boats had to surface frequently, making them extremely vulnerable to Allied air cover.

3. U-Boats had to be within visual range to strike convoys, versus the drone and missile world we live in now.


Yes. I think the biggest issues though are:

- We likely don't have the assets to move the amount traffic that needs to get through

- We probably can't protect them perfectly (we don't have maritime supremacy) so ships will still take damage and that will stop the convoys pretty quickly

I suspect the escort ships would be fine though. They can defend themselves.

So if we did start them, they wouldn't continue for long until the economic pain was pretty massive and the cost of loosing ships was worth it.


> I suspect the escort ships would be fine though. They can defend themselves.

From underwater drones? Does that technology exist?


I know nothing of the rise of the underwater drone but I highly suspect they are loud and slow and no match for ships designed to look for modern submarines.

No match for detection, but do countermeasures exist? Can torpedos target them? Do the ships in question carry such torpedos, or any kind of torpedo?

It would be cheaper just to build an oil pipeline around it than to cover insurance and risk through that Strait. It would do well to just forget the Strait exists, our conflict has taken it out of commission for the indefinite future.

Cheaper but less resilient to attacks. Pipelines are fixed infra, and are imminently targetible by even the smallest drones. One successful attack and your entire pipeline is down.

Probably a 'why not both' question though. If the US could quick deploy enough pipelines to support the entire d-day offensive back during ww2 I don't see why we couldn't do so today


Good idea, but pipeline would need to be 100m underground

Let's replace a choke point by an even smaller single static point of failure transporting highly flammable content, are you an adviser for the white house? If not you should apply

You might be surprised to find out the Abu Dhabi pipeline, which does this exact thing, is still running.

The US shouldnt be starting wars with countries, and bombing civilians, at all.

Captain Obvious? Is that you??

> The US should be running destroyer screens for convoys a la WW2 today,

That's harder than bombing schools, goat herders or kidnapping the leader of the most corrupt country in the world, are you sure they can still pull it off, I'm starting to think even they know they cannot anymore.

After seeing the latest white house CoD style propaganda videos and Pete "Kafir" Hegseth speeches it's clear the people in charge completely lost it

> In After the Empire, written in 2001, Todd claimed that the reason for America’s “theatrical micromilitarism” was to prove that it was still an indispensable power in a post-USSR world. In his latest work, however, he revises this thesis, arguing that it would imply attributing rational intentions to Washington.13 The American liberal oligarchy is not driven by any clear project.

https://americanaffairsjournal.org/2024/11/how-the-west-was-...


Lol how did I know someone was gonna link Emmanuel Todd? Too bad more of his work isn't translated to english.

They forgot to add "check all angles (including the OBVIOUS ones!)" in the AI prompt.

I see what you did there

Idk how big your team is of course but imo try to hire a technical writer (they’re really cheap now), it pays dividends for a long time as consistent style and keywords build up SEO reputation. This article is making the rounds, some bigger papers picked it up, it is very valuable to land it well.

Thanks for the suggestion, will look into it.

This wouldn't happen if they used my CLAUDE.md of course!

Imo it might be worthwhile creating a job board that solves the “company-side” issue with the current recruitment process where 200 people will spam AI generated slop CV to every post that opens up. Some kind of account coupled with a ratelimit and you should already deliver some value to people recruiting.


Really? Doesn’t v4 locally make the inserts into the B-Tree pretty messy? I was taught to use v7 because it allows writes to be a lot faster due to memory efficient paging by the kernel (something you lose with v4 because the page of a subsequent write is entirely random).

https://www.thenile.dev/blog/uuidv7#why-uuidv7 has some details: " UUID versions that are not time ordered, such as UUIDv4 (described in Section 5.4), have poor database-index locality. This means that new values created in succession are not close to each other in the index; thus, they require inserts to be performed at random locations. The resulting negative performance effects on the common structures used for this (B-tree and its variants) can be dramatic. ".

Also mentioned on HN https://news.ycombinator.com/item?id=45323008


In more practical terms:-

1. Users - your users table may not benefit by being ordered by created_at ( or uuid7 ) index because whether or not you need to query that data is tied to the users activity rather than when they first on-boarded.

2 Orders - The majority of your queries on recent orders or historical reporting type query which should benefit for a created_at ( or uuidv7 ) index.

Obviously the argument is then you're leaking data in the key, but my personal take is this is over stated. You might not want to tell people how old a User is, but you're pretty much always going to tell them how old an Order is.


It's memory and disk paging both.

There's also a hot spot problem with databases. That's the performance problem with autoincrement integers. If you are always writing to the same page on disk, then every write has to lock the same page.

Uuidv7 is a trade off between a messy b-tree (page splits) and a write page hot spot (latch contention). It's always on the right side of the b-tree, but it's spread out more to avoid hot spots.

That still doesn't mean you should always use v7. It does reversibly encode a timestamp, and it could be used to determine the rate that ids are generated (analogous to the German tank problem). If the uuidv7 is monotonic, then it's worse for this issue.


v7 exposes creation date, and maybe you don't want that. So, depends on use-case

I think I read something once about using v7 internally and exposing v4 in your API.

Or even an autoincrement int primary key internally. Depending on your scale and env etc, but still fits enough use cases.

In distributed databases I've worked with, there's usually something like a B-tree per key range, but there can be thousands of key ranges distributed over all the nodes in the cluster in parallel, each handling modifications in a LSM. The goal there is to distribute the storage and processing over all nodes equally, and that's why predictable/clustered IDs fail to do so well. That's different to the Postgres/MySQL scenario where you have one large B-tree per index.

Holy hell you’re right, scrolling through the post history of this “person” is crazy wtf.

This is why we moved a lot of our concurrent python project to golang. There were a couple of cases where some engineer built the system by implicitly relying on the assumption that some coroutine would run blocking until a certain point was reached (avoiding a potential data race) that was then later broken by another change. At least in go we know we cannot rely on this so the concurrency safety has to be considered at all times, leading to better code.

> is the friction with all the alternatives you mention in getting something working

Have you tried to run openclaw? Their own docker container (apparently a compose now (???)) doesn't work for half the versions and the docs are probably the least informative thing you'll ever read.


That's still just one thing. Once they jump that single hoop and get OpenClaw going, everything moving forward is a prompt away.

This has already happened, its a key reason why the dollar is down 15% since the new admin took power.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: