Readit News logoReadit News
chen_dev commented on DNS traffic spiked as Musk–Trump clash boosted Truth Social (+268%) and X (+20%)   twitter.com/CloudflareRad... · Posted by u/emot
Spivak · 3 months ago
It's genuinely the funniest thing that these two grown ass men are writing about each other in what is essentially their own private diaries. The enemies to lovers to enemies story just keeps getting spicier. The fanfic is going to be legendaty.

I hope they each have a picture of each other on their dartboard. I hope Elon takes everything Trump ever game him and launches it into space in a fit of tearful rage.

chen_dev · 3 months ago
> writing about each other in what is essentially their own private diaries

And yet, those "diaries" are an incredibly effective way to control the public narrative.

chen_dev commented on API design note: Beware of adding an "Other" enum value   devblogs.microsoft.com/ol... · Posted by u/luu
bocahtie · 6 months ago
When the deserializing half of the protobuf definitions encounter an unknown value, it gets deserialized as the zero value. When that client updates, it will then be able to deserialize the new value appropriately (in this case, "Mint"). The advice on that page also specifies to not make the value semantically meaningful, which I take to mean to never set it to that value explicitly.
chen_dev · 6 months ago
> it gets deserialized as the zero value

It’s more complicated:

https://protobuf.dev/programming-guides/enum/

>> What happens when a program parses binary data that contains field 1 with the value 2?

>- Open enums will parse the value 2 and store it directly in the field. Accessor will report the field as being set and will return something that represents 2.

>- Closed enums will parse the value 2 and store it in the message’s unknown field set. Accessors will report the field as being unset and will return the enum’s default value.

chen_dev commented on Firebase bill is usually $50, but I was surprised to see a $70k bill in one day   twitter.com/tamarajtran/s... · Posted by u/plainOldText
ryao · 7 months ago
Oddly, they have no problem shutting things off when the limits of their free plan are exceeded:

https://firebase.google.com/docs/projects/billing/firebase-p...

I am not sure how they can do that, but cannot let people set their own limits on their paid plans.

chen_dev · 7 months ago
Limits Reached -> PubSub Notification -> Shutdown Sequence.

Because it's a free plan, the delay between 'limits reached' and actual shutdown only incurs the cost of providing the service during that brief period, not the potential liability of overcharging that might exist on a paid plan.

chen_dev commented on The Origins of Wokeness   paulgraham.com/woke.html... · Posted by u/crbelaus
malcolmgreaves · 7 months ago
I think it’s intentional and ironic. But I don’t think PG realizes what he did. I throughly believe he’s in the space of “I can do it because i am morally superior. But other folks can’t because they don’t get it like I do.” I get this feeling from reading not just this, but his other essays too.
chen_dev · 7 months ago
Not sure about 'I can do it because I am morally superior'. Is it required to be morally superior to have an opposing view?

> other folks can't because they don't get it like I do

His point of view undoubtedly resonates with 'some folks'.

chen_dev commented on The Origins of Wokeness   paulgraham.com/woke.html... · Posted by u/crbelaus
malcolmgreaves · 7 months ago
[flagged]
chen_dev · 7 months ago
This comment is kinda harsh isn't it? Do you have anything specific from his words to support:

> ... mind become filled with mush

> desperate pledge of allegiance ...

chen_dev commented on Phi-4: Microsoft's Newest Small Language Model Specializing in Complex Reasoning   techcommunity.microsoft.c... · Posted by u/lappa
lifeisgood99 · 8 months ago
The SVG created for the first prompt is valid but is a garbage image.
chen_dev commented on Atomic Operations Composition in Go   antonz.org/atomics-compos... · Posted by u/boyter
chen_dev · a year ago
1) what

#![allow(unused)]

fn main() {

    use std::sync::atomic::{AtomicI64, Ordering};

    let some_var = AtomicI64::new(5);
    
    if some_var.load(Ordering::Relaxed) % 2 == 0 {
        some_var.fetch_add(1, Ordering::Relaxed);
    } else {
        some_var.fetch_add(2, Ordering::Relaxed);
    }
}

chen_dev commented on Atomic Operations Composition in Go   antonz.org/atomics-compos... · Posted by u/boyter
chen_dev · a year ago
> People sometimes think that the composition of atomics also magically becomes an atomic operation. But this is not the case.

> var counter atomic.Int32

> func increment() {

> if counter.Load()%2 == 0 {

> sleep(10)

> counter.Add(1)

> } else {

> sleep(10)

> counter.Add(2)

> }

> }

Is "atomic operations composition" a real term? Or it's something like "monolithic microservice"? What does that even mean?

chen_dev commented on Oracle Cloud Outage    · Posted by u/chen_dev
chen_dev · 2 years ago
incident is showing up on the official status page:

https://ocistatus.oraclecloud.com/#/incidents/ocid1.oraclecl...

u/chen_dev

KarmaCake day36September 12, 2023
About
https://chen.dev
View Original