HNHacker News
TopNewBestAskShowJobs

mishafb

117 karma · joined August 1, 2021

submissionscomments
mishafb··on Zig's New Writer
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··on I've started using Firefox and can never go back to Chrome
1. You mean ctrl-shift-r?
mishafb··on Minikube now supports rootless podman driver for running Kubernetes
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··on Bunny fonts – privacy respecting drop-in replacement for Google Fonts
It is a real cdn with paying customers, trying to advertise its product, there is no catch
mishafb··on LineageOS 19
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··on Git security vulnerability announced
Daemons that care about security setuid temporarily before opening a file and then setuid back
mishafb··on Reliably Send an HTTP Request as a User Leaves a Page
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··on Process Scheduling in Linux (2021)
Try replacing medium.com with scribe.rip
mishafb··on New Linux bug gives root on all major distros, exploit released
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··on The prospects for 128 bit processors (1995)
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··on The Paywalled Garden: iOS is Adware (2020)
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··on I don't know how to browse the internet anymore
A timeline for seeing what tabs were open yesterday at any hour
mishafb··on IPv6 Progress Top Sites 2021
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··on Printf(“%s %s”, dependency, injection)
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··on [dead]
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··on Raspberry Pi as a router using a single network interface
What kind of home routing would require a Pi?
mishafb··on Maintain It with Zig
Zig has painless cross compilation, with gcc or clang it's a nightmare
mishafb··on Facebook Undermines Privacy Protections for Its 2B WhatsApp Users
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··on Researchers studying Facebook misinformation say they were deplatformed
Yeah, but obviosuly facebook doesn't have shadow profiles /s
mishafb··on GitHub Codespaces vs. Gitpod: Choosing the Best Online Code Editor
So our computers are getting more powerful every day for nothing but Electron?
mishafb··on Arc – A P2P CDN that runs in the browser
Before this is loaded and completely ready, you probably load resources with your regular CDN
mishafb··on Kubescape – tool for testing if Kubernetes is deployed securely
This is equivalent to running a Makefile or a pre-built executable as your user which you're bound to do anyway
mishafb··on Today Sci-Hub is 10 years old. I'll publish 2M new articles to celebrate
Is it compressible or already compressed?
mishafb··on Tomu – An ARM microprocessor which fits in your USB port
Truly wireless keyboard where every key is connected via bluetooth
mishafb··on Lenovo tablet forced update shows un-dismissable, un-mutable, ad notifications
I know it works but it just feels wrong
mishafb··on Improving Git protocol security on GitHub
They already know everything you do on the site...
mishafb··on M1 Icestorm cores can still perform well
These days nanometers are just marketing, they are disconnected from the actual chip density
mishafb··on Docker Desktop no longer free for large companies
You probably can, there's nothing about containers that shouldn't work on WSL2
mishafb··on Apple proposes adding "model" element to HTML that displays 3D content
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
mishafb··on The rise of user-hostile software
Isn't this true for any app that has updates though?
Page 1 of 2Next →