Better HN
topnewbestaskshowjobs
Log inSign up

nice_byte

1,124 karma · joined Aug 23, 2015 (11y ago) · 406 submissions

Submissions

comment 9mo ago · link · parent

> No you don't, cuMemAlloc(&ptr, size) will just give you device memory, and cuMemAllocHost will give you pinned host memory.

that's exactly what i said. You have to explicitly allocate one or the other type of memory. I.e. you have to think about what you need this memory _for_. It's literally just usage flags with extra steps.

> Why would UMA be necessary for this?

UMA is necessary if you want to be able to "just allocate some memory without caring about usage flags". Which is something you're not doing with CUDA.

> OpenGL handles this trivially,

OpenGL also doesn't allow you to explicitly manage memory. But you were asking for an explicit malloc. So which one do you want, "just make me a texture" or "just give me a chunk of memory"?

> Let me create a texture handle, and give me a function that queries the size that I can feed to malloc. That's it. No heap types, no usage flags.

Sure, that's what VMA gives you (modulo usage flags, which as we had established you can't get rid of). Excerpt from some code:

``` VmaAllocationCreateInfo vma_alloc_info = { .usage = VMA_MEMORY_USAGE_GPU_ONLY, .requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT};

VkImage img; VmaAllocation allocn; const VkResult create_alloc_vkerr = vmaCreateImage( vma_allocator, &vk_image_info, // <-- populated earlier with format, dimensions, etc. &vma_alloc_info, &img, &allocn, NULL); ```

Since i dont care about reslurce aliasing, that's the extent of "memory management" that i do in my rhi. The last time i had to think about different heap types or how to bind memory was approximately never.

comment 10mo ago · link · parent

I would take all the ai-related research and infrastructure destroyed forever in exchange for just the steam frame alone getting released at a price that it actually costs.

comment 10mo ago · link · parent

I had stopped using linux at the start of the systemd takeover (it was not because of systemd).

What I don't understand is how this has happened. I didn't care either way but everybody who did seemed to really fucking hate systemd. Then how come it became the default in so many distributions, with so much opposition from the community?

comment 10mo ago · link · parent

relevant: https://www.youtube.com/watch?v=7pqF90rstZQ

comment 10mo ago · link · parent

it's hard to believe that using simd extensions in rust is still as much of a chaotic clusterfudge as it was the first time I looked into it. no support in standard library? 3 different crates? might as well write inline assembly...

comment 10mo ago · link · parent

it's "cryptic" for an interview problem. e.g. the fact that you have to actually look at the vm implementation instead of having the full documentation of the instruction set from the get go.

comment 10mo ago · link · parent

it's designed to select for people who can be trusted to manually write ptx :-)

comment 10mo ago · link · parent

+1

being cryptic and poorly specified is part of the assignment

just like real code

in fact, it's _still_ better documented an self contained than most of the problems you'd usually encounter in the wild. pulling on a thread to end up with a clear picture of what needs to be accomplished is like 90% of the job very often.

comment 10mo ago · link · parent

Here's a question, what's the point of having deep blacks when they're ruined by bright, distracting reflections? if image quality is going to be degraded either way, a dim, broad reflection is MUCH better than a sharp one. matte screens win in pretty much all scenarios except when the display is the only light source in the room.

comment 10mo ago · link · parent

Yes, absolutely. There's nothing more annoying than theming systems that don't allow an instant preview. Nobody wants to install a whole new theme just to decide if they even like it in the first place.

Not to mention, actually trying the theme might be completely impossible given the circumstances (e.g. browsing on an iPad).

comment 10mo ago · link · parent

painstakingly designed website

youtube video ambiance

NOT A SINGLE SCREENSHOT

crazy

42.

Shouting In The Data Center (2009) [video](youtube.com ↗)

1 points · by nice_byte · 10mo ago · discuss

comment 10mo ago · link · parent

it would be hard to say whether a given program making a syscall is trying to do a native linux sys call or a "naked" windows syscall (something that some windows programs actually do).

but yeah, somehow intercepting syscalls is a prerequisite for either emulating these naked windows syscalls or notifying the user about the native linux ones.

comment 10mo ago · link · parent

(author here) Both would work - doesn't fundamentally change the underlying idea. This particular representation is lifted from raytracing in one weekend and emphasizes the fact that we're really thinking of aabb as an intersection of three "slabs" of space. for me, it makes the ray intersection bit somewhat easier to explain.

comment 10mo ago · link · parent

nice joke

comment 10mo ago · link · parent

Yeah, xfce is as close to an ideal desktop experience on Linux as it gets. A competent desktop environment really doesn't need that much.

Post-2010ish Gnome and kde are like some sort of sick joke. The fact that there are people who actually contribute their precious free time to these, feels to me profoundly sad.

comment 10mo ago · link · parent

whether you allocate a big array and store indices into it or whether you keep pointers to dynamically allocated memory is orthogonal to how you actually represent the hierarchy.

48.

Non-Photo Blue(en.wikipedia.org ↗)

7 points · by nice_byte · 11mo ago · discuss

comment 11mo ago · link · parent

"We're ending the war on protein"

WTF is this even referring to? literally everyone here is _obsessed_ with their protein intake, regardless of whether they're a meat-eater or not. of all the things America's at war with, protein is definitely not one of them.

50.

Making a game engine based on dynamic signed distance fields [video](youtube.com ↗)

3 points · by nice_byte · 11mo ago · 1 comment

comment 11mo ago · link · parent

you might also like: myhouse.wad

52.

Representing Hierarchies(gpfault.net ↗)

2 points · by nice_byte · 11mo ago · discuss

53.

My 20-Year-Old Program(seminumerical.io ↗)

4 points · by nice_byte · 11mo ago · discuss

comment 11mo ago · link · parent

No, because if you have the capacity to make e.g. ram chips it makes more economic sense to sell them for ai bucks. Serving the other market segment is an opportunity cost unless you're selling to them at same prices. In the long run though if enough players emerge the price will eventually come down just due to oversupply.

55.

Canonicalization(sunfishcode.github.io ↗)

2 points · by nice_byte · 11mo ago · discuss

56.

A Couple 3D AABB Tricks(gpfault.net ↗)

5 points · by nice_byte · 11mo ago · discuss

comment 11mo ago · link · parent

You can play with a demo here: https://huggingface.co/spaces/microsoft/TRELLIS.2 (requires a hugging face acct)

The results from arbitrary pictures are not nearly as good as what's shown in the posting. So either the demo is running a gimped version of the model or the examples are _very_ handpicked.

comment 11mo ago · link · parent

these are garbage compared to what's shown in the posting.

comment 12mo ago · link · parent

I've had this experience a couple years ago where I had to go under for a sudden/unplanned surgery. It felt like I should be worried, but I realized that I was 100% ok with not waking up from that.

We already live so much further past what our lifespan "in the wild" would be. Even ~75yrs is already excruciatingly long. I don't understand people who want to prolong it even further.

12345
14