HNHacker News
TopNewBestAskShowJobs

Cloudef

2,012 karma · joined October 5, 2020

submissionscomments
Cloudef··on More questions about whether researchers can trust OpenAI with unpublished math
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.
Cloudef··on Omarchy: Any User Process Can Escalate to Root
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.

Cloudef··on Omarchy: Any User Process Can Escalate to Root
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.

Cloudef··on AI is less likely to launch a nuclear strike when it reasons in Japanese
I chuckled, but isnt godzilla product of the nuclear aftermatch?
Cloudef··on SIMD for Collision
The way simd speeds up "compute" is indeed mainly the reason that you operate on multiple pieces of data at once.
Cloudef··on How to Train a Gen AI Kick Drum Model on Your Old Linux Desktop with 6GB VRAM
Its possible and boy do i have a youtube channel for you https://youtu.be/ndG-6-vONNc https://youtu.be/8dfgum9XlJc
Cloudef··on My car’s OTA update broke Android Auto
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.

Cloudef··on Zig – SPIR-V Backend Progress
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.
Cloudef··on Linux and Secure Boot certificate expiration (2025)
> 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.

Cloudef··on Epoll vs. io_uring in Linux
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

Cloudef··on Developer gets Half-Life running at 30 FPS on a Nokia N95
Symbian was really awful OS. Nokia's mistake was ignoring Maemo.
Cloudef··on Zig by Example
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.
Cloudef··on Zig by Example
Zig is not only a language. Its whole toolchain and takes freestanding as a target seriously.
Cloudef··on Wterm – Terminal Emulator for the Web
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.
Cloudef··on Claude Wrote a Full FreeBSD Remote Kernel RCE with Root Shell (CVE-2026-4747)
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.

Cloudef··on Looking at Unity made me understand the point of C++ coroutines
Wouldnt that be stackless (shared stack)
Cloudef··on Meta’s renewed commitment to jemalloc
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.
Cloudef··on How kernel anti-cheats work
Trusted computing isn't about security. Its about vendors not trusting you.
Cloudef··on RAM kits are now sold with one fake RAM stick alongside a real one
Why haven't prebuilt PC market been doing this to hide the fact they are using a single RAM stick?
Cloudef··on Zig – Type Resolution Redesign and Language Changes
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.
Cloudef··on Zig – Type Resolution Redesign and Language Changes
I think rust calls them "zero sized types".
Cloudef··on Type resolution redesign, with language changes to taste
Indeed what was referred to here is the zig build system cache.
Cloudef··on Zig – Type Resolution Redesign and Language Changes
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.
Cloudef··on Zig – Type Resolution Redesign and Language Changes
0.16 is the development version. 0.15.2 is latest release.
Cloudef··on Zig – Type Resolution Redesign and Language Changes
The language itself does not change much, but the std does. It depends on individuals, but some people rely less on the std, some copy the old code that they still need.

> Are there cases where packages you may use fall behind the language?

Using third party packages is quite problematic yes. I don't recommend using them too much personally, unless you want to make more work for yourself.

Cloudef··on Voxile: A ray-traced game made in its own engine and programming language
Very cool
Cloudef··on Why Go Can't Try
Every paragraph in the article is exactly what LLM produces
Cloudef··on I want to wash my car. The car wash is 50 meters away. Should I walk or drive?
I feel safe when claude outputs dd commands that wipe your drive to benchmark disk write speed :)
Cloudef··on Error payloads in Zig
You can enable error traces for release-fast builds as well, without enabling full debug info. Though the quality of call stack of course vary depending on optimization level.
Cloudef··on Error payloads in Zig
Note the person behind your link isn't Andrew Kelley
Page 1 of 30Next →