Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 3y ago · link · parent

Not necessarily - the actual output exe doesn't actually use the .NET framework for anything at all, besides invoking the main. The actual logic of outputting the bytes to the console is done via a pinvoke (c# ffi) call to the underlying unmanaged (non-.net) code exposed by ucrt.dll

But anyway, this other article [0] (shared in another comment here) about creating the smallest version of Snake (the game) was done on top of .NET Core (the new version of .NET that isn't bundled with Windows) and effectively does the same thing, but actually produces a non-.NET binary, if that's more to your taste.

[0]: https://medium.com/@MStrehovsky/building-a-self-contained-ga...

comment 3y ago · link · parent

> I wonder if this could be used to make C# webassembly more viable.

You might enjoy reading this GitHub thread [0] where the community contributed a WASM library wrapping the C# regex code so that regex101.com could have a "C# mode". Lots of nerd sniping about reducing the payload size.

(There's also another thread [1] discussing the minification of a rust version of that same regex101 wasm library to provide a "rust mode" using @burntsushi's regex crate.)

[0]: https://github.com/firasdib/Regex101/issues/156

[1]: https://github.com/firasdib/Regex101/issues/1208

comment 3y ago · link · parent

Your take is valid though /somewhat/ biased towards the first-world experience. The scenario you dismiss is, for example, actually rather likely for someone living in Dhaka – and that's not to use an extreme "open air prison" example like Gaza where 2 million people are confined to 140 sq miles (365 sq km) without benefit of national parks and with an extremely small fishing zone.

(Although I think one can still do better than being literally within 10m of an individual at all times, which is a bit extreme.)

comment 3y ago · link · parent

Call me old school, but licking the tip of my finger and carefully touching parts has worked for me in the past! (You usually get a sense for which parts are the most likely to generate heat fairly quickly, so it's just a matter of confirmation.)

comment 3y ago · link · parent

In case anyone has trouble getting the link to load: https://archive.is/zO7dg

comment 3y ago · link · parent

I started blogging here [0] in 2004 or so on any tech-related issue that would cross my mind; as I gathered viewers and matured, I began writing less and less until now I only write when I feel I have something actually valuable to share. These days it is mostly about open source, rust, and .NET.

[0]: https://neosmart.net/blog/

comment 3y ago · link · parent

Wikipedia has a decent overview of the why and how, as well the challenges with this approach:

https://en.wikipedia.org/wiki/Multiversion_concurrency_contr...

comment 3y ago · link · parent

“Download” here seems to mean anything from actually downloading a file from a remote http server to copying a file from an accessible/open smb share (makecab example).

Also layout is confusing, capabilities don’t appear after the executable name, rather the executable name iis vertically centered against the list of features.

comment 3y ago · link · parent

It's unfortunate that pretty much all decisions become precedent (given that Canada/Saskatchewan has Common Law). In a case like this where the farmer responded with the thumbs up emoji, claims it was only to signal "ACK'd and will respond later", but didn't respond with "yes" or "no" afterwards, I suppose it's fine to assume that the thumbs up was a sign of legal/contractual assent and he's trying to retcon what actually happened.

But do you want it to be codified as precedent that signing with a thumbs up is a valid legal signature? Also, the meanings of emoji change (see the sexual connotations that many emoji have picked up since their release - those connotations weren't present on day zero), so how do you protect against that?

comment 3y ago · link · parent

I’ve devoured your FreeBSD networking presentations but I guess I must have confused a post about tracking down a ZFS bug in production written by someone else with all the other content you’ve produced.

Back to the topic at hand, it’s actually scary how few software expose control over whether or not sendfile is used, assuming support is only a matter of OS and kernel version but not taking into account filesystem limitations. I ran into a terrible Samba on FreeBSD bug (shares remotely disconnected and connections reset with moderate levels of concurrent ro access from even a single client) that I ultimately tracked down to sendfile being enabled in the (default?) config - so it wasn’t just the expected “performance requirements not being met” with sendfile on ZFS but even other reliability issues (almost certainly exposing a different underlying bug, tbh). Imagine if Samba didn’t have a tubeable to set/override sendfile support, though.

comment 3y ago · link · parent

Actually, Drew's presentations about Netflix, FreeBSD, ZFS, saturating high-bandwidth network adapters, etc. are legendary and have been posted far and wide. But having him available to answer questions on HN just takes it to a whole 'nother level.

comment 3y ago · link · parent

No, per the RHEL agreement they have the right to terminate your subscription "upon review" if you do any of this. It's a subtle difference but it's also worlds apart from "you will have your subscription terminated" (i.e. automatically, as a matter of fact/contract) in the court of law (and in terms of real world repercussions for anyone that isn't building a competing distro).

comment 3y ago · link · parent

XFS doesn't have native snapshot support, though?

comment 3y ago · link · parent

Absolutely. Submitted: https://news.ycombinator.com/item?id=36589269

1695.

The Certificate Authority model does not work for LAN devices(neosmart.net ↗)

8 points · by ComputerGuru · 3y ago · 5 comments

comment 3y ago · link · parent

So you're proposing that Netflix have two completely separate pipelines, one for browser traffic and the other for first-party traffic? With separate CDNs, separate delivery mechanisms, separate client-side algorithms, etc?

comment 3y ago · link · parent

I had a different (and imho, more pressing) argument for rejecting the "all-or-nothing" approach Google has taken towards HTTPS, namely that it actually punishes basically all non-enterprise intranet/lan devices using TLS/SSL because it makes them harder to access than if they only used HTTP instead [0].

The question that Google seemed to ignore (and still does) is "how do you expect a newly unboxed network device to ship with a non-self-signed SSL certificate?" The workaround some manufacturers have come up with is more repulsive than the original (There was one Chinese manufacturer that tried to get a signed certificate for a domain, then mapped that domain to 192.168.0.1 and shipped the private ssl cert w/ every router iirc. TP-Link has their own weird workaround where they give you a domain to log in to the router instead of the IP, and their router MITMs the connection and redirects to HTTP.)

Google forcing everyone to HTTPS is one thing, Google forcing everyone to HTTPs and universally treating self-signed HTTPS connections as scams is another.

[0]: https://neosmart.net/blog/lets-stop-punishing-iot-devices-th...

comment 3y ago · link · parent

Probably because for static text sites the compute cost of TLS is negligible (and we're largely talking about either small personal blogs or the long tail of historic content, so traffic is already assumed to be minimal). In your case, TLS is rather unfortunate since you can just include a crypto hash (or merkle tree or whatever) of the payload in your HTTPS control connection, then just load your video payloads over HTTP and check for a mismatch client-side. Basically, Google is saying they don't trust "you" to get it right.

The bigger problem with TLS is that it adds so much brittleness and complexity (do you know how many times I've broken ACME/LE python dependencies by accident?) and increases the time-to-first-byte for so many sites, especially if you're not getting your hands dirty with nginx and OpenSSL internals.

(Even if you are tuning all the right knobs, one thing we didn't realize was that at some point using an EV SSL certificate (before Chrome removed the UI benefits of doing so) began causing a massive increase in TTFB that there doesn't (didn't?) seem to be any way to avoid, so we ended up moving to regular TLS/SSL certs w/ Let's Encrypt not for the free cost of entry but for the reduced initial connection time. I can't remember the exact details now as it's been some years, but I think with EV SSL there's a secondary cert or revocation lookup to a remote url even if you have correctly configured ocsp stapling.)

comment 3y ago · link · parent

So shocking to see PostgreSQL in that list. MySQL was definitely what was in vogue at the time.

comment 3y ago · link · parent

It does have to do with BitWarden: they wrote and shipped the buggy config.

comment 3y ago · link · parent

Editorial note: actual NYT title is “G.O.P. Threatens Spy Agencies’ Surveillance Tool” but I think the submitted title (currently “GOP disdain for FBI jeopardizing renewal of warrantless domestic surveillance” more accurately and informatively reflects the actual contents of the article. NYT headlines have increasingly just become variations on “GOP bad” and I think HN submissions deserve better.

(The “tool” in their opaque headlines is Section 702 warrantless surveillance of domestic communications of flagged terrorists which may “incidentally” include intentionally surveilling communications of American citizens.)

1702.

GOP disdain for FBI jeopardizing renewal of warrantless domestic surveillance(nytimes.com ↗)

10 points · by ComputerGuru · 3y ago · 5 comments

comment 3y ago · link · parent

> Turns out that the phone was still locked, the seller had neglected to logout from his Xiaomi account. Even worse though he had forgotten his login and password.

I thought this bit was phrased a little too kindly. While it's unclear whether it was the case here or not [0], usually when you buy a locked phone off eBay and the seller has "forgotten" to log out of their cloud account and has "forgotten" their password (and login too, to boot!) it's because the phone was stolen.

[0]: OP claims "seller went above and beyond" to get the phone unlocked, which I initially interpreted as "figured out the locked account info" but then continued to read and learned that the use of an unlock tool was involved.. making me once again doubt the veracity of the "forgetful seller" story.

comment 3y ago · link · parent

SIMD is stable in rust, it just requires unsafe.

Here's an article I wrote about using SIMD in rust, with a real-world example: https://neosmart.net/blog/using-simd-acceleration-in-rust-to...

comment 3y ago · link · parent

Mentioned above: https://news.ycombinator.com/item?id=36545326

comment 3y ago · link · parent

Mastodon absolutely does not load quickly. I clicked the link and saw the followup tweet/post/whatever for a couple of seconds before it reflowed and showed me the actually linked tweet in a smaller body font. The had to wait longer for the whole thing to finish loading. There is a ton of unnecessary JS bloat on the linked site.

comment 3y ago · link · parent

Right but reloading a static html asset (the reply iframe consisting of just a textbox) is basically free. So long as you separate the chat history window and the reply textbox/form into two separate frames, I don’t see the problem.

comment 3y ago · link · parent

I’m not sure what context you were using it in? It still works for non-HTML content types, can be used for mjpeg video streams, etc but you shouldn’t be able to use it to replace the previously rendered HTML contents of a frame.
1
565758
277