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

I can't find it now, but I distinctly remember dang talking about his moderation philosophy being based on what he's read about the activation of the parasympathetic nervous system

I don't think Assange was overly concerned with privacy, transparency was more his wheelhouse.

potato potatoe

I'm skeptical of your second claim; being able to find such places ex nihilo would seem to require precisely the skills nerds lack

Strictly speaking, the capacity is still stored internally to the allocation (it needs to be, in order to implement realloc)

You don't, as the capacity is always the next power of 2 of the length.

If you were to implement your own realloc for the purpose of this data structure, you could do that. However, a generic realloc implementation needs to know how many bytes to copy, and generally that means storing the capacity just in front of the allocated region. I don't think there is another feasible way. On e.g. glibc, you can use `malloc_usable_size` to extract this information (modulo certain caveats).

This is not bizarre, it's a reflection of how the IMO is scored: 6 questions with scores from 0-7 but partial credit is rare. It's really a score of 5/6.

> Partial credit is rare

It's not rare at all. I can't find the 2026 results, but here are the 2025 ones.

https://www.imo-official.org/results/individual/year/2025/

The top of the table is full of 7 and the bottom is full of 0, but in the middle there are a lot of intermediate points. It's not uncommon "7 ? 0 7 ? 0" because the 1st and 4th are usually the easiest and the 3rd and 6th the hardest. But there are a of of other combinations due to stupid mistakes and lucky solutions and different personal styles/preferences that make some problems easier/harder for each contestant.


You're right, it's less uncommon than I recalled, and thanks for the source. But I don't think that 35/42 is suspicious/bizarre, and it does look like the 5x7 scores make up the bulk of the 35s.

I agree. If 6 was too hard and 3 "easy", then it would be common to get 777770.

Fork isn't necessary for this, you could just exec directly?

The point is that the OOM killer shouldn't exist and arguing about how to tweak it is addressing the wrong problem


I agree that that's the point he's making, but I don't see how that would work practically. His attitude is that malloc(1<<63) should immediately crash the system, every time? How is that better?


No, if a process allocates an infeasible amount, malloc fails and the process needs to deal with the failure (which is what already happens, "malloc doesn't fail on Linux" is only really true for smaller-than-page-size allocations). The point being made is that the system should account conservatively for all memory that can be used, not just the optimistic underestimate that overcommit enables (i.e. the plane should always carry enough fuel for contingencies, and landing with extra fuel is a good outcome).


You never need to crash the system if you remove overcommit. You just crash the one process. Practically speaking, you don't even need to crash here; you just return null (which malloc is always free to do) and let the consequences speak for themselves.


malloc can just return NULL (in specific, mmap returns -ENOMEM and your libc translates that). Applications need to check for success anyway

But the second clause doesn't follow from the first!

I don't think Linux was plausibly going to remove the OOM killer in 2004 or later. So the right solution for Linux is very much to tweak it to be less painful.


Often the frontpage will include a new submission with few votes at the top, I recall others in other threads speculating that this is an intentional way (rather than an edge case in the ranking algo) of getting new posts evaluated without people having to visit /newest


I am missing some context here what was wrong with the original description?


The original title was this:

> Graph substitution of two octahedra inside an icosahedron connected at p=1: disconnected at p=0 ( concept similar to two tetrahedra inside a cube).

Can you explain what that means, and how it leads to a sequence of integers? I think it is nonsense.


Since no one is being quantitative, here's a medical source:

https://my.clevelandclinic.org/health/diseases/water-intoxic...

> In some people, water intoxication symptoms can develop after drinking about a gallon (3 to 4 liters) of water over an hour or two.

> More than 32 ounces (about a liter) of water per hour is probably too much.


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

Search: