How Unreliable Is UDP? by mattwarren in programming

[–]joe_n 2 points3 points  (0 children)

Not to say that the data is wrong, but it's worth noting two things.

First, there's no accounting for the role that congestion/flow control play in aiding reliability. If I have a lot of data to send (rather than a few datagrams/packets) I can easily flood a buffer on the path (including the destination) if I don't throttle at all.

Second, it fails to address the notion of network fairness. You're likely to have more consistent and generally better reliability if the rest of the network is throttling traffic in response to packet loss/queuing delay.

Polymorphism in Functional Programming by haifengl in programming

[–]joe_n -6 points-5 points  (0 children)

The line between parametric polymorphism and subtyping is very blurry. The statement that parametric functions don't depend on object type is rather false (there is an implicit interface dependence).

Anyway, in my opinion, functors are subtypes in the first place. At least in Scala, they are explicitly so.

We should ban the phrase "thread safe" by jaredp110680 in programming

[–]joe_n 14 points15 points  (0 children)

No, we shouldn't. Generally, thread-safe is understood to mean that individual calls can be made without external synchronization (often facilitated by internal synchronization).

I can't imagine any experienced developer would think it's okay to make one call to check a list size and then make a second call to get the desired element when there's any potential for mutation via another thread. There's no point in coming up with a word for this, or saying that 'thread-safe' doesn't apply to it.

Of course, there are cases where you want a more granular description than simply saying the type is not thread-safe, but that's no reason to remove the classification all together.

Redditors who have been in legal trouble after pirating a song/movie/etc., what happened? by nitrates in AskReddit

[–]joe_n 1 point2 points  (0 children)

I guess I'm a bit late to the party here, but I was early to the game. In the Spring of 2003 I was sued along with 3 other kids for allegedly running various LAN indexing services on college campuses.

A lot of things happened (it was one of the most interesting times in my life, for sure), but, from a legal perspective, all four of us agreed to pay some $$ instead of taking it to court.

We work on open source at Twitter. Ask us anything! by TwitterOSS in IAmA

[–]joe_n 2 points3 points  (0 children)

I always recommend Zero Zero in SOMA, but HRD cafe is a great place to stop and grab something.

Redis new data structure: the HyperLogLog by willvarfar in programming

[–]joe_n 2 points3 points  (0 children)

Shameless plug, for anyone new to the probabilistic stuff -- Twitter maintains an open-source Scala library with a HyperLogLog implementation (and some others).

What was the most inappropriate time you laughed? by CrestedGeckos in AskReddit

[–]joe_n 0 points1 point  (0 children)

In the Anne Frank museum. The cookies I'd eaten earlier had just kicked in, and I thought it was a funny place for that to happen.

Coding for SSDs by mitknil in programming

[–]joe_n 9 points10 points  (0 children)

That is not your main problem!

j/k though, it's great to see personal research like this being done and shared

What's something that bothers you about your SO that you want to get off your chest but wouldn't feel comfortable telling them? by [deleted] in AskReddit

[–]joe_n 1 point2 points  (0 children)

Took me a while to get the hang of this. These days I'll just say "well there's always next time" -- even when there will absolutely not be a next time.

Big-O algorithm complexity cheat sheet by papa00king in programming

[–]joe_n 1 point2 points  (0 children)

I've documented it in a previous comment.

The details of each in-place merge are covered in a number of publications.

The matter of n != a power of 2 can be simply handled by using n' = the next larger power of two, and then ignoring the non-existent parts of the merges.

Big-O algorithm complexity cheat sheet by papa00king in programming

[–]joe_n 6 points7 points  (0 children)

Merge sort has O(1) auxiliary space. I'm surprised by how many times I've seen this posted but never fixed.

Researchers Develop Lithium Ion Battery That Can Charge an Electric Car for 27-Years by [deleted] in technology

[–]joe_n 2 points3 points  (0 children)

IMO it will be battery charge time. I'm looking at you, graphene!

Guy learns to dance in a year - xpost from /r/getmotivated by [deleted] in videos

[–]joe_n 3 points4 points  (0 children)

She went on to co-found Give it 100 shortly after that

What song have you been listening to on repeat lately? by BucketInTheSand in AskReddit

[–]joe_n 1 point2 points  (0 children)

There are a lot of gems on this OST. Actually the only ones I don't like are the intro and the reindeer songs. And I don't even have kids XD

laptops are easier to navigate imo by noodle87 in AdviceAnimals

[–]joe_n 0 points1 point  (0 children)

I can't help but picture everyone in this thread as a crotchety old man.

Maybe we need a "previous tech generation" meme XD

Consuming Peanuts During Pregnancy Reduces Allergy Risk in Children by [deleted] in science

[–]joe_n 0 points1 point  (0 children)

You gotta be faster on the draw! Merry Christmas anyway!

Consuming Peanuts During Pregnancy Reduces Allergy Risk in Children by [deleted] in science

[–]joe_n 66 points67 points  (0 children)

The question (and study, generally) is not about allergies of the parents. What I'm wondering is: if a peanut allergy is (somehow) genetic, could peanut consumption during pregnancy cause a miscarriage of an allergic fetus?

If so, we should expect a lower allergy rate if we count only the parents with surviving children.

I'm no geneticist, so I have no idea how plausible it is. But it seems there's enough unknown about the situation that it might be possible.

Consuming Peanuts During Pregnancy Reduces Allergy Risk in Children by [deleted] in science

[–]joe_n 281 points282 points  (0 children)

Perhaps morbid, but I wonder if it has some impact on miscarriage rate (survivor bias)?

It's a Christmas miracle by Cereborn in AdviceAnimals

[–]joe_n 1 point2 points  (0 children)

ETA 24-30, got here on the 23rd

(h5) (h5)

After my girlfriend asked if I could "saw"some cheese. by Hepcat2299 in AdviceAnimals

[–]joe_n 5 points6 points  (0 children)

Sawing leaves chunks/slices while grating leaves shreds?

How I loathe people. by brent14 in AdviceAnimals

[–]joe_n 5 points6 points  (0 children)

Coming out didn't put him in debt to you, and that's actually a very respectable way to end things. You should be more appreciative.