HackerLangs
TopNewTrendsCommentsPastAskShowJobs

Cloudef

no profile record

Submissions

Show HN: Simple random access archive format with no compression

github.com
1 points·by Cloudef·6 maanden geleden·1 comments

comments

Cloudef
·15 dagen geleden·discuss
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
·18 dagen geleden·discuss
> 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
·20 dagen geleden·discuss
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
·29 dagen geleden·discuss
Symbian was really awful OS. Nokia's mistake was ignoring Maemo.
Cloudef
·vorige maand·discuss
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
·vorige maand·discuss
Zig is not only a language. Its whole toolchain and takes freestanding as a target seriously.
Cloudef
·vorige maand·discuss
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
·3 maanden geleden·discuss
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
·4 maanden geleden·discuss
Wouldnt that be stackless (shared stack)
Cloudef
·4 maanden geleden·discuss
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
·4 maanden geleden·discuss
Trusted computing isn't about security. Its about vendors not trusting you.
Cloudef
·4 maanden geleden·discuss
Why haven't prebuilt PC market been doing this to hide the fact they are using a single RAM stick?
Cloudef
·4 maanden geleden·discuss
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
·4 maanden geleden·discuss
I think rust calls them "zero sized types".
Cloudef
·4 maanden geleden·discuss
Indeed what was referred to here is the zig build system cache.
Cloudef
·4 maanden geleden·discuss
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
·4 maanden geleden·discuss
0.16 is the development version. 0.15.2 is latest release.
Cloudef
·4 maanden geleden·discuss
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
·4 maanden geleden·discuss
Very cool
Cloudef
·4 maanden geleden·discuss
Every paragraph in the article is exactly what LLM produces