Better HN
topnewbestaskshowjobs
Log inSign up

mishafb

117 karma · joined Aug 1, 2021 (5y ago) · 42 submissions

Submissions

comment 1y ago · link · parent

I agree on the last point of the lack of composition here.

While it's true that writers need to be aware of buffering to make use of fancy syscalls, implementing that should be an option, but not a requirement.

Naively this would mean implementing one of two APIs in an interface, which ruins the direct peformance. So I see why the choice was made, but I still hope for something better.

It's probably not possible with zig's current capabilities, but I would ideally like to see a solution that:

- Allows implementations to know at comptime what the interface actually implements and optimize for that (is buffering supported? Can you get access to the buffer inplace for zero copy?).

- For the generic version (which is in the vtable), choose one of the methods and wrap it (at comptime).

There's so many directions to take Zig into (more types? more metaprogramming? closer to metal?) so it's always interesting to see new developments!

comment 4y ago · link · parent

1. You mean ctrl-shift-r?

comment 4y ago · link · parent

You do need an suid binary to e.g. set a new user id map, since this requires comparing the user id range owned by you to what you're mapping, but you only do it once and it's a simple, secure operation.

comment 4y ago · link · parent

It is a real cdn with paying customers, trying to advertise its product, there is no catch

comment 4y ago · link · parent

There's a payment app that detects the installation source is not google play store, and I haven't found a way to use it

comment 4y ago · link · parent

Daemons that care about security setuid temporarily before opening a file and then setuid back

comment 4y ago · link · parent

On the mdn page for it they say there are other less legitimate techniques like adding an image which will start loading and delay the page unloading. So if they didn't add beacons it would mean other less performant ways would be (ab)used.

comment 4y ago · link · parent

Try replacing medium.com with scribe.rip

comment 4y ago · link · parent

I think you would need a pipe reading from (using splice) a file you're not supposed to write to, which also accepts your input, which you're very unlikely to find, and you would only be able to modify the file being read.

comment 4y ago · link · parent

We have atomic bitwise operations already (look at glibc's mutex implementation), and the unit atomic operations work on is a 64-byte cache line. Cache lines are useful because reading 64 bytes isn't really more expensive but it improves sequential memory access by a lot.

comment 4y ago · link · parent

You could encrypt and archive everything and back that up periodically with rclone, or get external hard drives with a copy and store them separately

comment 5y ago · link · parent

A timeline for seeing what tabs were open yesterday at any hour

comment 5y ago · link · parent

With IPv6, you don't have CG-NAT, or double NATting, at the ISP level. If both sides are behind CG-NAT, then direct peer-to-peer communication is impossible or at least unstable to establish.

comment 5y ago · link · parent

The lambdas aren't actually lambdas, they are anonymous classes with a single metthod according to the type-inferred interface, and they can't use variables that aren't effectively final.

comment 5y ago · link · parent

Many realtek wifi adapters cause issues on Linux, and require buggy kernel modules. You should do some research before getting a wifi adapter. I just repurposed a wifi extender to be a wireless "bridge" from wifi to ethernet.

comment 5y ago · link · parent

What kind of home routing would require a Pi?

comment 5y ago · link · parent

Zig has painless cross compilation, with gcc or clang it's a nightmare

comment 5y ago · link · parent

Signal has since changed their encryption methods so that it's harder to know who's sending messages to who, and what groups exist. On WhatsApp, these changes have obviously not been implemented, so it's not true that WhatsApp uses Signal encryption.

comment 5y ago · link · parent

Yeah, but obviosuly facebook doesn't have shadow profiles /s

comment 5y ago · link · parent

So our computers are getting more powerful every day for nothing but Electron?

comment 5y ago · link · parent

Before this is loaded and completely ready, you probably load resources with your regular CDN

comment 5y ago · link · parent

This is equivalent to running a Makefile or a pre-built executable as your user which you're bound to do anyway

comment 5y ago · link · parent

Is it compressible or already compressed?

comment 5y ago · link · parent

Truly wireless keyboard where every key is connected via bluetooth

comment 5y ago · link · parent

I know it works but it just feels wrong

comment 5y ago · link · parent

They already know everything you do on the site...

comment 5y ago · link · parent

These days nanometers are just marketing, they are disconnected from the actual chip density

comment 5y ago · link · parent

You probably can, there's nothing about containers that shouldn't work on WSL2

comment 5y ago · link · parent

I don't think you can use JS to get how the model looks on screen with this, whereas a canvas can be converted to an RGB grid

comment 5y ago · link · parent

Isn't this true for any app that has updates though?
12