Better HN
topnewbestaskshowjobs
Log inSign up

Cloudef

2,025 karma · joined Oct 5, 2020 (6y ago) · 967 submissions

Submissions

comment 1w ago · link · parent

HDR is extra brightness on your display. In practice it's kind of a mess, as both the hardware and software implementation has to be good. If you have cheap display, you'll get something marketed as HDR even though it would look better with it turned off, as they likely use very big extra brightness zones, so it won't end up looking right. On software side, unless it's a console, the PC stack was not designed for HDR and it really takes co-operation of the whole stack to make it look correct on the display. For a while, for best result you had to basically bypass most of your display stack to get correct results. Valve's been working on it for their own platform, and wayland has some experimental support.

EDIT: For TV, HDR works well assuming you don't have cheap TV.

comment 1w ago · link · parent

Thanks. Thought it would be more interesting though. This is literally what colorspaces are for.

EDIT: I think there's a good point though that the game assets should be produced to the asset pipeline losslessly so that they can be transformed to the game's own internal colorspace(s) (depending what the renderer is doing, it can make sense to have multiple colorspaces for different calculations)

comment 1w ago · link · parent

Is there repost that's not on that garbage site?

comment 4w ago · link · parent

I disagree. Webgpu is completely useleless middleware that is already outdated, and it bugs me it killed compute shaders for WebGL proposal. In addition webgpu still does not work on browsers out of box.

Interacting with webgpu from wasm is also often slower than webgl because the api is lower level and causes more gc overhead on js side.

comment 4w ago · link · parent

I think it's because of the webgl demo at top stealing focus

comment 1mo ago · link · parent

They are, but nobodys making kids

comment 2mo ago · link · parent

Relying on cloud services is a big liability. I'd think twice before feeding data to these LLM cloud products. If you make them a fundamental part of your product / development / workflow, be ready for the eventual moment the pricing and terms change.

comment 2mo ago · link · parent

Hello, can you tell me if I can filter syscalls made from a memory address in macos without virtualizing the process, or requiring special entitlements and root? I currently have a project where sandboxing is important and i need to prevent all syscalls from a region. This is very simple in linux, and on openbsd i dont have to do anything because openbsd by default does not allow untrusted callsites from making syscalls (and the region in this case is not loaded by openbsd's dynamic loader).

On macos i currently virtualize the process itself, but this has virtualization overhead and some emulation overhead because macos does not let you map all the host process pages to a guest.

comment 2mo ago · link · parent

Its opposite. Windows and MacOS lacks proper sandboxing. While openbsd has pinsyscalls and linux has seccomp-bpf. Windows and MacOS only have filesystem and worse version of user namespace sandboxes, anything else and you need to write a kernel extension or rely on a hypervisor.

> Unfortunately implementing an Apple style architecture on Linux would be very difficult.

The apple apps kind of thing already exists and its called flatpak.

comment 3mo ago · link · parent

I chuckled, but isnt godzilla product of the nuclear aftermatch?

comment 4mo ago · link · parent

The way simd speeds up "compute" is indeed mainly the reason that you operate on multiple pieces of data at once.

comment 4mo ago · link · parent

Its possible and boy do i have a youtube channel for you https://youtu.be/ndG-6-vONNc https://youtu.be/8dfgum9XlJc

comment 4mo ago · link · parent

Apple does not allow running code from internet either (even if interpreted iirc)

That said shipping JIT / interpreter with your program to recompile updates / parts of it sounds silly to me.

comment 5mo ago · link · parent

Try reading zig code. For me its much more readable than the other languages, and does not suffer the fact go doesnt have language level errors. Local allocators are very useful and if you dont think so, perhaps you havent dwelved too deeply into systems programming or the language isnt targeted for you.

comment 5mo ago · link · parent

> Secure boot prevents tampering of your kernel and/or bootloader, nothing about Linux prevents this from being possible.

By trusting another chain of trust and firmware binary blobs involved in booting your PC.

Secure boot exists only as one of the puzzle pieces for remote attestation for MS and trusted OEMs, nothing to do with your security.

comment 5mo ago · link · parent

Quite depends, I had times when my posix emulation of io_uring (with poll, not epoll) was faster than io_uring. For large zero-copy buffers, io_uring is king however. Also io_uring is useful even for non asynchronous IO as it can implement chain of operations as single atomic operation (mkdir + open it for example).

For something like networking, if you are maximizing packets per second, you'll hit kernel limits[1] very quickly and instead have to start leveraging features like GSO/GRO or completely bypass the network stack.

1: https://github.com/axboe/liburing/discussions/1346

comment 5mo ago · link · parent

Symbian was really awful OS. Nokia's mistake was ignoring Maemo.

comment 5mo ago · link · parent

Rust unsafe is less safe than writing C code. Rust is not good language for writing "unsafe code". C++ smart pointers are really bad compared to arena allocators, and not allocating at all. It's very easy to end up with dangling references in C++, or double frees with smart pointers. Also the fact that C++ initialization itself is a huge foot gun.

comment 5mo ago · link · parent

Zig is not only a language. Its whole toolchain and takes freestanding as a target seriously.

comment 5mo ago · link · parent

Lot but not enough still. Most web tech is like that, almost there but not really. Webaudio prob being the worst one. Webgpu being weird thing that nobody really knows who it is for.

comment 7mo ago · link · parent

You can let agent churn unattended if you have some sort of known goal. Write a test that should not pass and then tell the agent to come up with something that passes the test without changing the test itself.

For this kind of fuzzing llms are not bad.

comment 8mo ago · link · parent

Wouldnt that be stackless (shared stack)

comment 8mo ago · link · parent

You are not wrong and this is indeed what zig is trying to push by making all std functions that allocate take a allocator parameter.

comment 8mo ago · link · parent

Trusted computing isn't about security. Its about vendors not trusting you.

comment 8mo ago · link · parent

Why haven't prebuilt PC market been doing this to hide the fact they are using a single RAM stick?

comment 8mo ago · link · parent

I see. I can not give more insightful answer here then. From personal experience, I've noticed with 0.16 with the std.Io async stuff that you cannot do:

   io.concurrent(foo, .{});
where foo's return type is `error{foobar}!noreturn`, because the compiler crashes when it tries to use that type as a std.Io.Future(T)'s struct field. Might be related or not.

comment 8mo ago · link · parent

I think rust calls them "zero sized types".

comment 8mo ago · link · parent

Indeed what was referred to here is the zig build system cache.

comment 8mo ago · link · parent

AFAIK garbage collection is basically not implemented yet. I myself do `ZIG_LOCAL_CACHE_DIR=~/.cache/zig` so I only have to nuke single directory whenever I feel like it.

comment 8mo ago · link · parent

0.16 is the development version. 0.15.2 is latest release.
12345
33