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

The problem with sagas is that they only guarantee eventual consistency, which is not always acceptable.

There is also 2 phase commit, which is not without downsides either.

All in all, I think the author made a wrong point that exact-once-processing is somehow easier to solve than exact-once-delivery, while in fact it’s exactly same problem just shaped differently. IDs here are secondary.


I'd agree with that - two phase commit has a bunch of nasty failure cases as well, so there's no free lunch no matter what you do when you go distributed. So just ... don't, unless you really really have to.

You can't avoid distributed unless your users live inside your database.

That would be amazing if we could watch both Netflix and HBO Max content at the price of one subscription. At least for me, these two platforms covers 95% of my video content needs.

"The price of one subscription" being the price of Netflix plus the price of HBO. Streaming is turning back into cable where everything is trapped in one bill, no matter how expensive and uninteresting some part of that bill is.

Having Discovery's awful content push out quality HBO content was already a major blow.


I imagine major HBO resellers / direct Netflix competitors Amazon and Hulu (Disney) will insist on HBO remaining an extra-cost option, assuming these relationships survive the merger at all.

Well, I guess one more significant price jump would be a sign to finally replace streaming with reading

Yeah but there is 0 chance that the cost would remain similar to what it is now

> Netflix and HBO Max content at the price of one subscription

Yes, the price of one subscription. I think some cable packages in the US are $200 per month?


The cable thing in US is something Im struggling to wrap my mind around. I can’t imagine someone deliberately paying so much money for such a bad content.

The only explanation I can think of is that most of the subscribers are elderly folks who signed up long time ago and didn’t bother to look into current bills.

Also maybe some ardent sport fans?


Internet/TV bills can be negotiated, but it is usually something you have to do annually and most people, rightly so, hate it. The companies make it hard to do, so most people would rather pay an extra $5-10 rather than spending an hour or two on the phone. After 5-10 years, those fee bumps really add up.

The only way to keep Internet/TV costs low is to threaten to cancel or switch every year, and actually be willing to do it. For some that isn't an option because there is only 1 provider, and others I've talked to hate that idea because you have to learn a new channel lineup. It's amazing how much people will pay to not be slightly inconvenienced.


The question is why to keep TV subscription at all? Is there some very unique content which is not available on digital?

Live sports and public television was kind of the last bastion in my mind, but the former is piecemeal being acquired by streaming the platforms and the latter is largely being put on the internet for free.

Your last point is the stronger one. Live events, including sports, are a heavy driver of these subscriptions.

Another is broadband deployment. Choice is low in many parts of the country, and bundled service offerings are frequently priced near the "internet only" offerings to nudge customers into a "might as well" posture.


For me it's sports.

well, you'd get it at price of twice of current subscription

That’s super interesting, as I’m in the exactly same boat as OP.

Did you by chance went through this process yourself? If yes, would you mind describing the process in more detail?


I pretty new to Rust and I’m wondering why global mutables are hard?

At first glance you can just use static variable of a type supporting interior mutability - RefCell, Mutex, etc…


> I pretty new to Rust and I’m wondering why global mutables are hard?

They're not.

  fn main() {
      unsafe {
          COUNTER += 1;
          println!("COUNTER = {}", COUNTER);
      }
  
      unsafe {
          COUNTER += 10;
          println!("COUNTER = {}", COUNTER);
      }
  }
Global mutable variables are as easy in Rust as in any other language. Unlike other languages, Rust also provides better things that you can use instead.

People always complain about unsafe, so I prefer to just show the safe version.

  use std::sync::Mutex;

  static LIST: Mutex<Vec<String>> = Mutex::new(Vec::new());

  fn main() -> Result<(), Box<dyn std::error::Error>> {

      LIST.lock()?.push("hello world".to_string());
      println!("{}", LIST.lock()?[0]);

      Ok(())
  }

This is completely different from the previous example.

It doesn't increment anything for starters. The example would be more convoluted if it did the same thing.

And strings in rust always delivers the WTFs I need o na Friday:

    "hello world".to_string()

    use std::sync::Mutex;
    fn main() -> Result<(), Box<dyn std::error::Error>> {
        static PEDANTRY: Mutex<u64> = Mutex::new(0);
        *PEDANTRY.lock()? += 1;
        println!("{}", PEDANTRY.lock()?);
        Ok(())
    }

Still different. Yours only increments once. Doesn't pass basic QA.

And declaring a static variable inside a function, even if in main, smells.


OP you keep comparing to doesn't even declare the variable. I'm done with you.

That is correct. Kinda. Refcell can not work because Rust considers globals to be shared by multiple threads so requires thread safety.

And that’s where a number of people blow a gasket.


A second component is that statics require const initializers, so for most of rust’s history if you wanted a non-trivial global it was either a lot of faffing about or using third party packages (lazy_static, once_cell).

Since 1.80 the vast majority of uses are a LazyLock away.


I don't think it's specifically hard, it's more related to how it probably needed more plumbing in the language that authors thought would add to much baggage and let the community solve it. Like the whole async runtime debates

I read somewhere that Adderall does not improve cognitive function in people without ADHD and in some cases can even decrease it.

Have you ever taken a decent dose of an amphetamine? It isn't going to make you smarter but it will almost certainly boost your energy and ability to get stuff done.

The same is true for every individual person who takes it. At some dose it helps and at other does it doesn't.

And in the gym, it raises your heart rate so that hurts exercise, but without it I can't do any cardio because I get so bored 5 minutes in I have to stop.


>takes amphetamine

>performance enhanced

>welp, guess I have ADHD!

By this metric everyone has ADHD.


Do you use PiHole as your DNS server by any chance?

I think it’s just unique for Christ, who obviously a genius who can think in assembly code.

Maybe Anthropic simply don’t want to be acquired

You understand that doing an IPO is quite literally selling big chunks of yourself to the highest bidder, right?

Sort of. You can do what Zuck did; give your shares more votes, so you stay in control. (He owns 13% of the shares, but more than 50% of the voting power.) That's less doable with an acquisition.

In one case your ownership is diluted by maybe 10%, and you keep full decision making power and everything else. In the other it is diluted by 100% and you are now an employee. They are very different outcomes.

The current leadership retains power in an IPO. Is there a minimum size chuck one has to sell when IPO-ing? How do you know it will be big chunks?

Not necessarily controlling stakes.

uh... thats exactly why anthropic wouldnt want to be acquired? weird response to that comment IMO

Sounds like kremlebot’s, however it’s unclear for me the motivation behind pushing this narrative. Also, why don’t build DCs in Alaska instead?

actually it is more of the opposition's narrative, probably a way to explain such a pro-Russian position of Trump.

I think any such data center project is doomed to ultimately fail, and any serious investment will be for me a sign of the bubble peak exuberance and irrationality.


Can’t wait for all this cheap ddr5 memory and GPUs

I was looking at my Newegg orders recently. 7/18/2023 - 64GB (2 x 32GB) 288-Pin PC RAM DDR5 6000 (PC5 48000) --> $260. Now, $750+.

Don’t even get me started on this. I recently been shopping on eBay for some DDR4 memory. You may think - who’d need this dated stuff besides me? Yet 16Gb 3200Mhz is at least 60$. Which is effectively the price you paid for DDR5 6000. Crazy, right?

I have 4 32gb sticks of DDR5 6400 in my machine.

The RAM in my machine being worth more than the graphics card (7900XTX) was not on my bingo card I can tell you that.


Holy cow. I have 96GB of DDR5 I bought at start of year for a machine which never materialized. Might have to flip it.

Never in my dreams I could imagine PC parts could be an investment. Someone should start ETF tracking the prices.

For a while with bitcoin, it seemed GPU investing was almost a thing.

I just checked, the kit I bought in February was $270, today it is showing up for $1070. Woof. Now I have to decide if I should keep it on the off chance I do get around to that machine or dump it while the getting is good. Then again, who wants to buy RAM of unknown provenance unless they themselves are looking to scam the seller.


I'll give you $300 for it! With that kind of money, you can buy an ice-cold sixer and still have some walkin' around money.

GPUs have a very high failure rate…

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

Search: