HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mishafb

no profile record

comments

mishafb
·12 เดือนที่ผ่านมา·discuss
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!
mishafb
·4 ปีที่แล้ว·discuss
1. You mean ctrl-shift-r?
mishafb
·4 ปีที่แล้ว·discuss
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.
mishafb
·4 ปีที่แล้ว·discuss
It is a real cdn with paying customers, trying to advertise its product, there is no catch
mishafb
·4 ปีที่แล้ว·discuss
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
mishafb
·4 ปีที่แล้ว·discuss
Daemons that care about security setuid temporarily before opening a file and then setuid back
mishafb
·4 ปีที่แล้ว·discuss
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.
mishafb
·4 ปีที่แล้ว·discuss
Try replacing medium.com with scribe.rip
mishafb
·4 ปีที่แล้ว·discuss
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.
mishafb
·4 ปีที่แล้ว·discuss
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.
mishafb
·5 ปีที่แล้ว·discuss
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
mishafb
·5 ปีที่แล้ว·discuss
A timeline for seeing what tabs were open yesterday at any hour
mishafb
·5 ปีที่แล้ว·discuss
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.
mishafb
·5 ปีที่แล้ว·discuss
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.
mishafb
·5 ปีที่แล้ว·discuss
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.
mishafb
·5 ปีที่แล้ว·discuss
What kind of home routing would require a Pi?
mishafb
·5 ปีที่แล้ว·discuss
Zig has painless cross compilation, with gcc or clang it's a nightmare
mishafb
·5 ปีที่แล้ว·discuss
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.
mishafb
·5 ปีที่แล้ว·discuss
Yeah, but obviosuly facebook doesn't have shadow profiles /s
mishafb
·5 ปีที่แล้ว·discuss
So our computers are getting more powerful every day for nothing but Electron?