Better HN
topnewbestaskshowjobs
Log inSign up

mandarax8

147 karma · joined Sep 1, 2021 (5y ago) · 87 submissions

Submissions

comment 1w ago · link · parent

That youtuber has been AI-upscaling a lot of his content for years. Perhaps he was able to 'upscale' his old video.

comment 1mo ago · link · parent

Because in your benchmark all std::map nodes were allocated in succession, most likely being placed in adjacent memory locations...

This likely won't be true in a real application with a non-trivial allocation pattern.

comment 5mo ago · link · parent

> I actually don't understand the tearing they're talking about. If the fields are final then you can't modify the Value Type anyway?

You can assign the object again to overwrite it 'in place'.

> And a simple write-lock bit for fat Value Types would solve everything while maintaining most of the performance benefits (both on read and write)

They even already have an extra 'null' bit tacked on to the value object.

comment 6mo ago · link · parent

Is there any reason that you couldn't implement this on Xorg?

comment 6mo ago · link · parent

Please read up some more about Java and GCs. Memory allocation and GC are heavily intertwined.

comment 8mo ago · link · parent

See https://fgiesen.wordpress.com/2012/07/21/the-magic-ring-buff... which takes it even further :)

comment 8mo ago · link · parent

Indeed I misread. I figured the NMI must have been nested or otherwise they wouldn't have gone through all this trouble just to drop samples :)

comment 8mo ago · link · parent

Not OP: how would you handle the second interrupt during the interrupt handler here then? I can see how you could use two separate ring buffers for different contexts, but I don't see how to handle the nested interrupt. Also indeed they just drop all these samples that get deadlocked.

Actually, as long as you use different ring buffers for interrupt/non-interrupt context, it should be fine to just drop if you encounter a deadlock due to interrupting an already running interrupt handler.

comment 8mo ago · link · parent

One thing wasn't clear for me in the article: is there only one such ringbuffer defined by the kernel or can the eBPF program specify as many ringbuffers as it wants?

comment 9mo ago · link · parent

I give up, tell me the AABB trick please

comment 11mo ago · link · parent

The entire point of the article is that you cannot throw from a destructor. Now how do you signal that closing/writing the file in the destructor failed?

comment 11mo ago · link · parent

Maybe we can even find some correlation in the bit pattern of the input and the Boolean table!

comment 1y ago · link · parent

The pixel position has to be known, how else are you rasterizing something?

comment 1y ago · link · parent

Their current OpenGL 4.1 actually does run on top of metal making it even more blatantly obvious that they just don't want to.

comment 1y ago · link · parent

I'm not sure exactly what you mean, but you can both output line primitives directly from the mesh shader or output mitered/capped extruded lines via triangles.

As far as other platforms, there's VK_EXT_line_rasterization which is a port of opengl line drawing functionality to vulkan.

comment 1y ago · link · parent

That said MSVC,GCC and clang all implement it to allocate an exact value.

comment 1y ago · link · parent

Can you point me to some good middleware then? I haven't been able to find any.

comment 1y ago · link · parent

Any kind of relative/offset pointers require negative pointer arithmetic. https://www.gingerbill.org/article/2020/05/17/relative-point...

comment 1y ago · link · parent

You can still statically link all your own code but dynamically link libc/other system dependencies.

comment 1y ago · link · parent

Yeah it's a shame that to go from your idea to something that's 'general' (ie just some arbitrary arguments) you need to write this arcane garbage.

comment 1y ago · link · parent

std::bind is bad for him for the same reasons std::function is bad though

comment 1y ago · link · parent

What he shows here is 75% of c++26's std::function_ref. It's mainly missing variadic arguments and doesn't support all types of function objects.

https://github.com/TartanLlama/function_ref/blob/master/incl...

comment 1y ago · link · parent

But you can embed this 1 byte lock into other bigger objects (eg. high bytes of a pointer).

With 4 byte locks your run into the exact same false sharing issues.

comment 1y ago · link · parent

Because the only way to do metaprogramming in C++ is via the type system. Thismakes it so you need to implement 'functions' as types.

comment 1y ago · link · parent

Guess: it's too much water to cool down in a small local reservoir.

comment 1y ago · link · parent

I would allow it, given they physically write down all N square root on a piece of paper.

comment 1y ago · link · parent

'So what are the requirements for this project?'

'Requirements? Were agile, we'll figure it out as we go!'

...

Actual conversation a while back at work regarding a (now failed) project.

comment 1y ago · link · parent

You're saying this as if psychedelics cannot 'have all sorts of severe, life-altering, mostly permanent side effects'.

comment 1y ago · link · parent

I've never had hotspot not be fast enough. Even on 20Gb traces, everything is instant.

Only thing that ever takes some time is the initial load of the perf file and filtering (bit still really fast).

comment 1y ago · link · parent

But this doesnt have the property that the product of the distances to the focal points is constant no?
123