2,490 karma · joined Dec 13, 2022 (3y ago) · 418 submissions
comment 2y ago · link · parent
Yet, the linked repository shows a huge list of cases in which simple, documented use of Rust can cause Undefined Behavior (a.k.a. 'UB')
Pretty much every argument of Rust advocates against C/C++ boils down to either 'but memory safety' or 'but UB'.
Yet there are many convincing counter-arguments that boil down to 'but CompCert' or similar, and, as the linked repository shows, there might be at least some truth in there?
comment 2y ago · link · parent
comment 2y ago · link · parent
So: whatever you put on GitHub (or wherever) is available for anyone to use for any purpose, as long as they re-contribute their changes to your code and/or the source code for directly-linked projects.
To anyone who doesn't want to meet those obligations, you can offer a proprietary license, allowing them to use the code in any way you see fit.
Turning this into a sustainable business, however, may be a challenge. So, some questions to consider: why do you want to open-source? Because you have existing dependencies? Existing contributors? Or just because it sounds good?
If the latter, just forget about it, and go full-proprietary: nobody will care. If you depend on contributors that might insist on open-sourcing their code, talk to them to figure out the best way forward. And if it's because of dependencies: you'll have to respect their license, and good luck with building a business on top of that...
comment 2y ago · link · parent
That means the outage was either short-lived (doubtful, as it's not 9AM in Seattle yet, and Microsoft outages typically only start to get resolved around that time, weekdays only, mind you), or that... shockingly... it was DNS.
comment 2y ago · link · parent
Sorry, but that's just business as usual. Document checks on trains have continued to be a thing despite Schengen since its inception, and are even common on commuter lines. I don't have any hard numbers on their effectiveness, but it's not unusual to see people being detained as a result (which is risky for the detaining agency, as mistakes are quite costly), so I guess there is a net positive there?
Note that, from a passenger PoV, these checks usually consist of "vaguely waving your ID card at the officers passing by" (i.e. less effort than having your ticket checked, which involves interaction with an RFID scanner...), which makes this ominous think-piece even less convincing.
comment 2y ago · link · parent
In transportation, the biggest polluter (by direct emissions) by far is shipping. This is about 8/65 (12%), compared to 1/65 (1.5%) for the much-maligned aviation sector, or the 4/65 (6%) for cars, that, for some reason, nobody likes to talk about.
Then, when it comes to electricity, data centers are really quite marginal: 0.4/65 (about 0.6%). And, like aviation, the sector is taking measures to Be Better: higher airco setpoints, mandatory purchase of "green" electricity, etc. etc. Unlike the shipping sector, which pretty much continues to burn raw dinosaurs just because they're based in a jurisdiction that allows, nay, encourages that.
So, if you want to get mad about emissions, start with things that actually matter, would be my take? I happen to be of the opinion that AI is bunk, and any energy invested in it is wasted, but that goes doubly or triply for the shipment of novelty hats...
comment 2y ago · link · parent
Instead, let me offer the following, alternative snark: "If I were to share with you the secret of renaming your C-*.sys files to C-*.tmp prior to trying to ingest them, so that if you crash while doing so, you will not repeat that mistake right after rebooting, how many US$10 gift cards is that worth? Keeping in mind, of course, that is, like, 2 hours of parking where I live?"
comment 2y ago · link · parent
If $whatever were the dominant platform today, the number of incompetently-coded-but-mandatory-in-many-sectors kernel extensions would be, best-case, exactly the same as it is for Windows today, with pretty much the same outcomes (i.e.: generally not much, with entertainingly spectacular outliers like, well, Crowdstrike).
For $whatever to be actually better in a meaningful sense of the word, it would need to:
-Have a market share that, if not equivalent to that of Windows today, at least makes ISVs pay attention. This is really, really hard: not because "M$ controls all the hardware vendors historically and forever", but because hardware is an extremely low-margin business, and the room for experimentation is minimal...
-Similarly: most OS sales are to enterprises, and they have certain control issues that need to be addressed. "All that Active Directory (or whatever Microsoft marketing chooses to call it this decade) does" is a good starting point. Yes, this "compromises user freedom", bot possibly not in the way you think...
-Finally: in order to lock down kernel-mode access, offering user-mode APIs that are both completely fail-safe as well well as fool-proof for 80%, if not better, of use cases is mandatory. The engineering effort required to achieve this would most likely look a lot like that involved with, say, AWS, Azure or Google Cloud, with, say, similarly impressive results?
comment 2y ago · link · parent
if(!Whatever.TryParse<Thingy>(input, out var output)) output = some-sane-default;
or: if(!Whatever.TryParse<Thingy>(input, out var output)) throw new ApplicationException($"Not a valid Thingy: {input}");
Protip: don't do the latter in your kernel-mode driver.comment 2y ago · link · parent
Once you run into limitations there (which can already be due to something like "needing to use VLANs"), it's all CPU-based, which isn't necessarily a problem (the amount of switching performance you get out of a Tile-based 'router' is pretty amazing).
The most interesting piece of documentation about any piece of Mikrotik kit is the block diagram, followed by close reading of the L2/L3 offload docs...
comment 2y ago · link · parent
"Will the hardware offload actually do anything useful?" is a time-honored Mikrotik game: see the sometimes surprising limits at https://help.mikrotik.com/docs/display/ROS/L3+Hardware+Offlo...
comment 2y ago · link · parent
In the case of the CRS312, its potato-class CPU means that even NAT at 10Gb/s can be challenging. However, if you pair it with something like a CCR1036 (discontinued, but still available and sporting a 36-core CPU) or its successor, the CCR2004 (or even something like the RB5009UPr, which adds PoE, but is limited to 2.5Gb/s) you'll be all set.
comment 2y ago · link · parent
I don't feel better, worse, or, basically anything because of that fact.
And no, none of the options switch to Linux, evict all security vendors and/or go and live on an island (tempting though the latter is) would have made anything any better, thank you for (not) asking...
comment 2y ago · link · parent
Right now, pretty much everyone is looking to outsource their "security" to a single vendor, disregarding the fact that security is not a product, but a process.
That... won't change! And incumbents will get less-awful about their impact on "protected" systems.
And yet, there's an opportunity here! Do you truly understand Windows? And whatever happens on that platform? And how to monitor that activity for adverse actions? Without taking down your customers on a regular/observable basis?
Step right up! There are a lot of incumbents facing imminent replacement...
comment 2y ago · link · parent
I know that in the US, ISP-wise, mostly Comcast has a bad reputation, but in the EU and from a business perspective, Deutsche Telekom is also not, eh, universally liked...
comment 2y ago · link · parent
TL;DR as well as hot-ish take: whether your diet is healthy or not doesn't actually depend that much on the quality of your baking fats. Oil, butter, margarine, whatever: it's more about quantity than quality.
And of course, truly bad products will damage your health (so, yeah, glycol-infused oil is way worse than any butter, and vice versa), but otherwise: just use what the recipe says, and enjoy in moderation...
comment 2y ago · link · parent
Having said that, I'm not sure how actually-useful this particular reference card is: huge hex conversion table, but no instruction timing chart?
Anyway... pure nostalgia caused me to go through an old Z80 assembly book just now ("Advanced Spectrum Machine Language"), and I found some code I wrote a good 35 years or so ago: https://ibb.co/fvqtwkQ
This was printed on thermal paper (not sure about the printer model: I don't think it was the original ZX Printer, as that used differently-sized paper), so sort-of impressed it survived that long (most printouts I had from that time long faded). As to why I wrote the code or what it does: I think it was to create an animated tape loading screen, but...
comment 2y ago · link · parent
This will avoid all the issues alluded to here. And yes, I know that it's stupidly simple to go the wrong route, but I also think by now people would be wise to all of this, since the proper functionality has only been there for a decade or so. But, hey, apparently total helplessness keeps getting clicks.
comment 2y ago · link · parent
A lot of people moved in on that, making it not entirely unlikely that supply now outstrips demand?
Same thing happened in various regions in France at various points in time. The viable plots will be reclaimed at some point, and make some fine wines in the future, except possibly not at the price point the original owners had in mind...
comment 2y ago · link · parent
[1] https://techcrunch.com/2021/06/02/stack-overflow-acquired-by... [2] https://www.google.com/search?q=prosus+multichoice [3] e.g. https://www.icann.org/en/registry-agreements/terminated/mult...
comment 2y ago · link · parent
comment 2y ago · link · parent
My Mi-26 experience was as a staff tech (military, but as part of a humanitarian effort) airlifting medical trucks into a flood-struck area in India, like, 30 years ago or so, but as I understand it, they're still used pretty widely outside NATO, even today.
comment 2y ago · link · parent
comment 2y ago · link · parent
And yeah, sure, you want to use structured logging. So, in addition to the greppable log message, include a Magic Separator Character (say, \t) that you treat as 'end-of-line' in human-oriented processing, and have your key-value-pair structured data following that for automated tooling to have its way with. Or, be really creative with [key=value] blocks that are both human- and machine-readable.
Some of my most painful logging experiences were having to extract application logs from binary blobs created by a proprietary Windows tool (no, not the main Windows event log: that's bad, but at least documented). Even the most recent versions of the official viewer just crashed, the vendor was not interested in fixing that (since we were not a customer, just a third party in need of log data, but even an offer of a modest payment was met with indifference...), and the actual format turned out to be byzantine beyond words.
So, yeah, give me plain text all day, every day...