HNHacker News
TopNewBestAskShowJobs

paavoova

113 karma · joined June 19, 2018

submissionscomments
paavoova··on Stop Memsetting Structures
My post is sarcasm, I just find it humorous that one's efforts to eliminate explicit memset doesn't stop the compiler from going one step backwards and embedding it just the same. If you replace the initialization with memset, it still generates identical code for both Clang and GCC.
paavoova··on Stop Memsetting Structures
Interestingly enough, Clang (but not GCC) appears to embed memset for you despite the code using initializers: https://godbolt.org/z/khJQLV

The author of the article should file a bug report. After all, if they wanted to memset, they'd just do it themselves.

paavoova··on Stop Memsetting Structures
So if you're zeroing out a struct like so

  struct S {size_t a, void *p;};

  foo = (struct S) {0};
Does the standard require the compiler to set any pointers to NULL, or will everything be implicitly zeroed leaving pointers possibly improperly initialized to NULL?
paavoova··on Setting Up an Ad-Blocking VPN with WireGuard and Pihole
MT7621-based devices can all handle GbE and are supported by OpenWRT. Xiaomi among others sell routers based on this chipset, but personally I'd avoid them due to their locked-down bootloaders which complicate flashing. I myself purchased the YouHua WR1200JS, which is currently available rebranded on Aliexpress for under $35 USD as model "WR330" with OpenWRT pre-installed (although you should still reflash to be safe). It saturates LAN ethernet (~936mbps avg.) in my tests, but probably needs software/hardware offloading for Gb WAN, which I think is only enabled in snapshot versions of OpenWRT.

WLAN throughput is not so good, about 288mbps at 80mhz, but this was only one client device tested and not thoroughly because I don't know enough to diagnose bottlenecks. Regardless, this is more than enough to saturate my WAN connection - no issues with 6+ simultaneous wireless devices.

paavoova··on Setting Up an Ad-Blocking VPN with WireGuard and Pihole
It's not just ads, if you're concerned about privacy then DNS-level blocking won't cut it. For example, you can't block cookies or third-party scripts via DNS blocking.

> So all in all, I don't see much benefit from DNS adblocking

The benefit is as a tack-on for a home network for devices and traffic that doesn't go through a web browser. E.g. for mobile apps connected to the network. But once again, as far as privacy is concerned, that won't block e.g. Facebook SDKs embedded in apps unless you block the relevant domain entirely.

paavoova··on Setting Up an Ad-Blocking VPN with WireGuard and Pihole
> $50 for a Pi starter kit

And $35 for an OpenWRT router that does the same thing and also offers a web interface. Why pay more for a second standalone device?

paavoova··on Excerpts from Richard Stallman's talk in Mandya, India
You can do this by putting a phone in a faraday cage. A quick search shows various wallet-sized poaches available, but I can't vouch for their effectiveness. I wonder why they're not more popular, nor even mentioned, among all the talk of "hardware switches".
paavoova··on Excerpts from Richard Stallman's talk in Mandya, India
> moral flexibility

It's not necessarily an issue of morals. Take cellular tracking [1], for example: avoiding carrying a phone around with you 24/7 is the only real way to address things like carriers from selling your realtime location data. Then, simply borrowing someone else's to make a convenient call doesn't open you up to anything. And then morals do come into it because you can say "well, at least I'm trying".

And convenience and other values such technology offers is non-arguable, it's just unfortunate it's so anti- freedom and privacy. In that regard you can't blame Stallman for participating when society as a whole is pushing such complete and utter reliance on mobile devices. That's like calling someone who advocates for privacy disingenuous for using a CC over cash 100% of the time; you can't even book most hotels without a CC, (and ID, and other identifiable information tying you to that exact location at that exact date). So what choice does even the privacy-advocate have, besides camping out on the road in a tent and boycotting anti-cash establishments? I've read of some Scandinavian countries already phasing out cash, which is once again a reliance society fosters. If Stallman walks into a store and asks someone to pay for his purchase with their CC because the store doesn't take cash, are you too going to make some contrived anti-vaccination comparison?

1. https://www.washingtonpost.com/technology/2019/01/10/phone-c...

paavoova··on Mozilla WebThings
Yes, by design, it's a package manager. Rather than bundle dependencies such as libraries, they're pulled in system-wide and dynamically linked. This preserves both flash and memory space on embedded systems, which with consumer routers are fairly constrained. My router has 16MiB of flash and 128MiB of RAM, and that is more or less typical for consumer non-x86 routers.

Likewise, uninstalling via a package manager handles orphaned dependencies automatically for you.

> How often do you want to go messing with your router

That's the thing when you're running what is essentially Linux (in the case of OpenWRT): it's not a router, it's an OS and you can manage just like you do any other OS. Your description of "apps" as containers seems to abstract away the OS level and leave you with just some frontend (which is probably running Linux/*BSD underneath) and no control.

paavoova··on Mozilla WebThings
What exactly differentiates "apps" here from regular programs you can install on routers? If your router runs a hosted system such as Linux and isn't locked down (e.g. OpenWRT), you can install/compile for any existing program that supports the architecture and system. Installing tor as you in linked post is just "opkg install tor". A lot of packages have webgui frontends, too.

Edit: I've read the article and Mozilla even mentions reskinning/basing off of OpenWRT. Which only puzzles me even more given you write "the beginning of apps for routers" as if OpenWRT/pfSense/etc doesn't exist.

paavoova··on Announcing AMP Real URL
So if you block this Google JS, you cannot access said AMP page? Does AMP implicitly mandate users subscribe not only to said content provider but the third-party AMP host?
paavoova··on Announcing AMP Real URL
But here [1] it says "One of AMP's biggest user benefits has been the unique ability to instantly load AMP web pages that users click on in Google Search. Near-instant loading works by requesting content ahead of time". So AMP content is implicitly prefetched. How is this any different than regular prefetching?

And as far as mobile is concerned, the trivial optimizations that are available on desktop, such as firewalling by content type via e.g. uMatrix, are not at all advertised to end users. AFAIK Chrome browser on mobile does not allow such extensions. Page load times are significantly reduced by using such browser extensions effectively. Why skip to the "extreme" that is AMP?

[1] https://webmasters.googleblog.com/2019/04/instant-loading-am...

paavoova··on Announcing AMP Real URL
I don't understand why AMP is targeted at the "mobile web". What exactly makes browsing the web on mobile different than other platforms?
paavoova··on Setting Up a Pi Hole Made My Home Network Faster
And the conclusion was, at least for me, is that this doesn't require Pi Hole if your router software supports ad-blocking (OpenWRT, pfSense do), and that DNS-level blocking cannot replace wide-spectrum content type blocking such as in browser addons like uMatrix.
paavoova··on VSCodium – An Open Source Visual Studio Code Without Trackers
I used past tense, and the parent comment I replied to writes "just disable the telemetry", linking to the same FAQ the OP of the linked issue tried to follow to disable telemetry.

The VSCodium docs (linked in an above comment) mentions baked-in telemetry. Presumable this refers to the binaries rather than the source code, but then the issue is two-fold, being telemetry in the source and telemetry Microsoft may insert into the binaries. So following some FAQ to disable telemetry will not address the latter if you're not building from source.

paavoova··on VSCodium – An Open Source Visual Studio Code Without Trackers
That comment is replying to another post by bsr203, not the OP.
paavoova··on VSCodium – An Open Source Visual Studio Code Without Trackers
GPS-related telemetry, say in modern cars or smartphones, is akin to being followed. The latter isn't even anonymized, e.g. recently police identified suspects by issuing a warrant to Google for devices in the vicinity, or Tesla having all the car data in case of an accident. Web tracking such as analytics or canvas, things like "advertising tags" being assigned to your profile, is you being digitally followed across various sites you visit. "Usage-data" decided by developers, malicious or otherwise, may not be just usage data from the user's perspective.

You can hardly dismiss all telemetry concerns as invalid when "telemetry" is a catchall term for most any data collection. And the other side of it is the user and being in control of the software they run, which entails opt-in or at the minimum leaving the option to opt-out.

paavoova··on VSCodium – An Open Source Visual Studio Code Without Trackers
> Telemetry helps improve products and opt-out

Did you mean to write "opt-in", or are you suggesting it's OK for software to refuse the choice to opt out of data tracking? "Power users" simply do not use such software or block connections via firewall.

paavoova··on VSCodium – An Open Source Visual Studio Code Without Trackers
This has been an issue in the past: https://github.com/Microsoft/vscode/issues/16131

Telemetry not being disabled I have disabled telemetry as described in the FAQ. I have set the following properties in the settings: [..] Now despite of this, when I log my network traffic (with Wireshark) I can see that Visual Studio Code periodically contacts vortex.data.microsoft.com.

For the record,

Even with: [..] I still see connection attempts by Visual Studio Code to marketplace.visualstudio.com and vortex.data.microsoft.com at startup.

Response is: I'm pretty sure we [VS Code Core] are doing the right thing here and we would love any pointers (all code is OSS).

Which almost sounds like a complete deflection of the issue. The ticket was locked.

paavoova··on Matrix.org hacked
Why would they do this? It's pure negligence. I don't even sign anything important and still worry about my keys.
paavoova··on Unheard History of Bodybuilding Forums
Elliot Rodger posted on the Misc subforum. In retrospect, reading his posts is like a morbid dark comedy - the lack of social awareness, the insecurity, all shone through to the point of feeling insincere. It could very well have been a troll, there was no way to know. It's no wonder he barely aroused alarm despite posting his ideologies on many a public forum including Youtube. He indirectly mentions posting on Misc in his manifesto, and how he ultimately failed to reach his fitness goals and the subsequent insecurities. I can't help but wonder if people like him would be or have been better off without ever coming across communities like BB forums. There's little to glorify, it's not a part of internet "culture" to look fondly back on.
paavoova··on 2.7M Americans Still Get Netflix DVDs in the Mail
Assuming the title is even provided in 4k/HD. For example, I checked right now and Bram Stoker's Dracula is 540p at a reported 838 kb/s, and picture quality is worse than the DVD, with horrible aliasing indicating poor encoding, so it's even below that of SD. This film has a true 4K Blu-ray remaster, so you'd be doing yourself a huge disservice streaming it in the quality Netflix serves.

To really put this in perspective, the picture quality that Netflix provides is worse than pre-digital analog film projection. Dracula originally screened in cinemas in 1992 looked (far) better than what you stream on Netflix right now in 2019. Now I know the consumer has always traded convenience for picture quality, hence the popularity of early home media such as VHS, but that was bound by the limitation of the technology back then. Right now, there's zero technical reason for why quality can't be better, ignoring bandwidth. It's a digression and the fact it's so tolerated makes me feel like I'm taking crazy pills. I'm not even a film buff, it's just that it's apparent like night and day, like a re-compressed jpg is.

paavoova··on Dear Mozilla, please stop spamming
Requests like what, updating extensions? Telemetry? There's quite a bit that ships on by default but that can be disabled in about:config. What proof do you have they're data mining besides FUD?
paavoova··on Electric Cars Hit Record in Norway
Society's purchasing power worries me. How environmentally sustainable is it to replace all the billions of cars with electric? And then decades later, perhaps even under a decade given how fast some technologies develop, how sustainable is it to replace these electric vehicles with newer models? If people have the money, that's what they're going to do.

And specifically in regards to Norway, the country exports its oil to other countries and owns its wealth to oil, being one of the largest exporters. So while headlines on electric car adoption are nice, they really miss the big picture.

paavoova··on Electric Cars Hit Record in Norway
My concerns are less about the vehicle technology but what gets implicitly bundled with it. Privacy, for example, being an issue, with newer cars being cellular equipped and having telemetry enabled and no way to opt out. Tesla is allowed all my GPS data, which I don't feel comfortable with. With an older car you're free to rebuild it within your means - can you legally do the same with an electric vehicle? With the hardware and software being so locked down, it may not even be legal to tamper with it, which on one hand is a valid concern for stuff like self-driving technology, but at the same time makes these newer cars proprietary black boxes that you can only ever send back to the factory.
paavoova··on Fuchsia OS Introduction
I think it's a valid concern, look at how many originally open-source Android APIs and frameworks Google has pushed out in favor of their proprietary one's. Similar concerns I've seen voiced is there being a inseparable integration with Google services, like how Google has pushed Gapps dependency onto Android, but now baked into the OS-level.
paavoova··on Fuchsia OS Introduction
How exactly does that work, what stops anyone from maintaining a 1:1 branch, the "fork", with upstream and claiming it's GPL?
paavoova··on Twitter forces all new users to enter a valid phone number
But why do you require phone numbers instead of offering them as an option alongside email? What about people who don't have a mobile number?
paavoova··on GNU Nano 4.0
Yes, but now if you do $ wc -l hello.txt, it will say 0. If a program is reading line by line, it won't get a full line if the last line is not terminated - this can lead to unwanted behavior, such as when you're matching end of line with regex.
paavoova··on Streaming video has surpassed cable subscriptions worldwide
Quality is still an issue for streaming. Anyone who's ever compared a blu-ray to what Netflix offers knows it's night and day, especially for grainy old films. Netflix so-called "1080p" frequently has compression artifacts, and banding (most visible in dark shots). There's also disturbing aliasing (most visible in logos and on-screen fonts, causing jagged edges) which is more reminiscent of DVD-era MPEG-2 encoding than modern codecs. I'm constantly put off anytime I find a title on Netflix the minute I compare to it bluray screencaps (good resources are blu-ray.com or caps-a-holic) and notice the glaring contrast in quality.

And this is only for the titles Netflix offers in HD: there are many, probably due to licensing issues, which are offered only in SD resolution (which can be confirmed during playback vie the web player debugger). Netflix originals, while seemingly having the most consistent quality, still suffer from poor encoding issues I've noticed, which makes me think most of all that this is aggressive bandwidth management if even their own titles aren't given a proper encoding treatment.

And then for 4k playback on PC, it's required you have not only a compatible browser or app (4k playback in Firefox will not work), but also a recent CPU that supports hardware DRM - just awful. The future of streaming is bleak if you ask me, albeit convenient for the average consumer. And I guess that's the real demographic.

← PreviousPage 2 of 6Next →