PS: Reddit doesn't allow edit post titles, needed to repost
But this is Lemmy.
PS: Reddit doesn't allow edit post titles, needed to repost
But this is Lemmy.
As it happens, this is strikingly similar to an interview question I sometimes ask: what parts of a multitasking OS cannot be written wholly in C. As one might expect, the question is intentionally open-ended so as to query a candidate's understanding of the capabilities and limitations of the C language. Your question asks about Python, but I posit that some OS requirement which a low-level language like C cannot accomplish would be equally intractable for Python.
Cutting straight to the chase, C is insufficient for initializing the stack pointer. Sure, C itself might not technically require a working stack, but a multitasking operating system written in C must have a stack by the time it starts running user code. So most will do that initialization much earlier, so that the OS's startup functions can utilize the stack.
Thjs is normay done by the bootloader code, which is typically written in assembly and runs when the CPU is taken out of reset, and then will jump into the OS's C code. The C functions will allocate local variables on the stack, and everything will work just fine, even rewriting the stack pointer using intrinsics to cause a context switch (although this code is often -- but not always -- written in assembly too).
The crux of the issue is that the initial value of the stack pointer cannot be set using C code. Some hardware like the Cortex M0 family will initialize the stack pointer register by copying the value from 0x00 in program memory, but that doesn't change the fact that C cannot set the stack pointer on its own, because invoking a C function may require a working stack in the first place.
In Python, I think it would be much the same: how could Python itself initialize the stack pointer necessary to start running Python code? You would need a hardware mechanism like with the Cortex M0 to overcome this same problem.
The reason the Cortex M0 added that feature is precisely to enable developers to never be forced to write assembly for that architecture. They can if they want to, but the architecture was designed to be developed with C exclusively, including interrupt handlers.
If you have hardware that natively executes Python bytecode, then your OS could work. But for x86 platforms or most other targets, I don't think an all-Python, no-assembly OS is possible.
To start, let's verify that Bluesky the app is indeed open-source. Yep, it is. But that's not the same as having all the machinery be open-source, where anyone could spin up their own, compatible service; maybe named ExampleSky. To be compatible, ExampleSky would need to use the same backend interface -- aka protocol -- as Bluesky, which is known as ATProto. The equivalent (and older) protocol behind Mastodon and Lemmy is ActivityPub.
ATProto is ostensibly open-source, but some argue that it's more akin to "source available" because only the Bluesky parent company makes changes or extensions to the protocol. Any alternative implementation would be playing a game of chase, for future versions of the protocol. History shows that this is a real risk.
On the flip side, Mike Masnick -- founder of Techdirt, author of the 2019 paper advocating for "protocols, not platforms" that inspired Bluesky, and recently added member of the board of Bluesky, replacing Jack Dorsey -- argues that the core ability to create a separate "Bluesky2" is where the strength of the protocol lays. My understanding is that this would act as a hedge to prevent Bluesky1 from becoming so undesirable that forking to Bluesky2 is more agreeable. To me, this is no different than a FOSS project (eg OpenOffice) being so disagreeable that all the devs and users fork the project and leave (eg LibreOffice).
But why a common protocol? As Masnick's paper argues, and IMO in full agreement with what ActivityPub has been aiming towards for years, is that protocols allow for being platform-agnostic. Mastodon users are keenly aware that if they don't like their home instance, they can switch. Sure, you'll have to link to your new location, but it's identical to changing email providers. In fact, email is one of the few protocol-agnostic systems in the Internet still in continued use. Imagine if somehow Gmail users couldn't send mail to Outlook users. It'd be awful.
Necessarily, both ActivityPub and ATProto incorporate decentralization in their designs, but in different fashions. ActivityPub can be described as coarse decentralization, as every instance is a standalone island that can choose to -- and usually does -- federate with other instances. But at the moment, core features like registration, login, or rate limiting, or spam monitoring, are all per-instance. And as it stands, much of those involve a human, meaning that scaling is harder. But the ActivityPub design suggests that instances shouldn't be large anyway, so perhaps that's not too big an issue.
ATProto takes the fine-grained design approach where each feature is modular, and thus can be centralized, farmed out, or outright decentralized. Now, at this moment, that's a design goal rather than reality, as ATProto has only existed for so many years. I think it's correct to say for now that Bluesky is potentially decentralizable, in the coarse sense like how Mastodon and Lemmy are.
There are parts of the Bluesky platform -- as in, the one the Bluesky organization runs -- which definitely have humans involved, like the Trust and Safety team. Though compared to the total dismantlement of the Twitter T&S team and the resulting chaos, it may be refreshing to know that Bluesky has a functional team.
A long term goal for Bluesky is the "farming out" of things like blocklists or algorithms. That is to say, imagine if you wanted to automatically duplicate the blocks that your friend uses, because what she finds objectionable (eg Nazis) probably matches your own sensibilities, then you can. In fact, at this very moment, I'm informed that Bluesky users can subscribe to a List and implement a block against all members of the List. A List need not be just users, but can also include keywords, hashtags, or any other conceivable characteristic. Lists can also be user-curated, curated by crowd sourcing, or algorithmically generated. The latter is the long goal, not entirely implemented yet. Another example of curation is "Starter Packs", a List of specific users grouped by some common interest, eg Lawsky (for lawyers). Unlike a blocklist which you'd want to be updated automatically, a Starter List is a one-time event to help fill your feed with interesting content, rather than algorithmic random garbage.
So what's wrong with Bluesky then? It sounds quite nice so far. And I'm poised to agree, but there's some history to unpack. In very recent news, Bluesky the organization received more venture capital money, which means it's worth mentioning what their long term business plan is. In a lot of ways, the stated business plan matches what Discord has been doing: higher quality media uploads and customizations to one's profile. The same statement immediately ruled out any sort of algorithmic upranking or "blue checks"; basically all the ails of modern Twitter. You might choose to take them at their word, or not. Personally, I see it as a race between: 1) ATProto and the Bluesky infra being fully decentralized to allow anyone to spin up ExampleSky, and 2) a potential future enshittification of Bluesky in service of the venture capitalists wanting some ROI.
If scenario 1 happens first, then everyone wins, as bridging between ActivityPub and ATProto would make leaps and bounds, and anyone who wants their own ATProto instance can do so, choosing whether they want to rely on Bluesky for any/all features or none at all. Composability of features is something that ATProto can meaningfully contribute to the protocol space, as it's a tough nut to crack. Imagine running your own ATProto instance but still falling back on the T&S team at Bluesky, or leveraging their spam filters.
But if scenario 2 happen first, then we basically have a Twitter2 cesspool. And users will once again have to jump ship. I'm cautiously hopeful that the smart cookies at Bluesky can avoid this fate. I don't personally use Bluesky, being perfectly comfortable in the Fediverse. But I can't deny that for a non-tech oriented audience, Bluesky is probably what I'd recommend, and to opt-in to bridging with the Fediverse. Supposed episodes of "hyping" don't really ring true to me, but like I said, I'm not currently an invested user of Bluesky.
What I do want to see is the end result of Masnick's paper, where the Internet hews closer to its roots where interoperability was the paramount goal, and the walled gardens of yore waste away. If ATProto and ActivityPub both find their place in the future, then IMO, it'll be no different than IMAP vs POP3.
At its very core, an insurance company operates by: 1) pooling policyholder's risks together and 2) collecting premiums from the policyholders based on actuarial data, to pay claims and maybe make a small profit. But looking broader, an insurance market exists when: a) policyholders voluntarily or are obliged to obtain policies, b) insurers are willing and able to accept the risks in exchange for a premium expected to support the insurance pool, and c) the actuarial risks are calculable and prove true, on average.
The loss of any of A, B, or C will substantially impact a healthy insurance market, or can prevent the insurance market from ever getting started. For some examples of market failures, the ongoing California homeowner insurance crisis shows how losing B (starting with insurers refusing to renew policies near the wildland-rural interface) and C (increase in insured losses due to climate change) results in policies becoming unaffordable or impossible to obtain.
As a broader nationwide example, an established business sector that operates wholly without insurance availability is cannabis. A majority of US States have decriminalized marijuana for medical use, and a near-majority have legalized recreational consumption. Yet due to unyielding federal law, no insurer will issue policies for marijuana businesses, to protect from risks that any business would face, such as losses from fire, due to a product recall or product liability, or for liability to employees. These risks are calculable and there's a clear need for such policies -- thus meeting criteria A and C -- but no commercial insurer is willing to issue. Accordingly, the formal market for cannabis business insurance is virtually non-existent in the USA.
With these examples, we can see that the automobile insurance market meets all three criteria for a healthy market, but it's how these criteria are met which is noteworthy. Motorists in the USA are obliged to insure in every state except New Hampshire and Virginia: it is a criminal offense to drive a car without third-party liability insurance, meaning the motorist might spend time in jail. Note: NH and VA won't send a motorist to jail, but they do have administrative penalties for driving without "financial responsibility", which includes insurance or a bond at the DMV.
The exact requirement varies per state, with some requiring very low amounts of coverage and others requiring extra coverage like Personal Injury Protection (PIP, aka no-fault insurance). The point is that criteria A is easily met: motorists want to avoid jail, but also want to avoid the indignity of being sued after having caused a road incident, in addition to protecting their apparently only viable mode of transportation.
Insurers can take into account the overall trends in national risks trends for automobiles (eg new car safety, through the Insurance Institute for Highway Safety, IIHS) as well as local or hyper-local risks (eg hail damage in the southeast, property crime in a particular zip code). And as a large country with nearly as many cars as people, many insurers are willing to meet the demand. This satisfies criteria B and C.
So well-organized is the automobile insurance market that you could almost say that it's vertically integrated: the largest nationwide insurers have contracts in place with every dealership network, auto collision chain, new and used parts dealers, as well as automatic data sharing with state DMVs, plus with firms like CarFax that buy information. Despite each state being slightly different, the insurers have overcome and achieved a level of near uniformity that allows an efficient market to exist.
Things are drastically different for the American healthcare system and for American health insurance companies. While most think of their healthcare provider as a national name like Anthem Blue Cross or Kaiser Permanente, the reality is that each state is an island, and sometimes counties in a state are enclaves. Even federal programs like Medicaid and Medicare are subject to state-level non-uniformities. For example, hospitals can be either privately operated (eg religion-affiliated, or for-profit) or run by a public entity (eg county or state), and can exist as a single entity or form part of a regional hospital network. Some entities operate both the insurance pool as well as providing the health care (eg HMOs like Kaiser Permanente) while others dispatch to a list of contracted providers, usually being doctor's own private practices or specialist offices.
With so many disparate entities, and where healthcare is a heavily-regulated activity by each state, the cost of insurable risks -- that is, for routine healthcare services -- is already kinda difficult to compute. Hospitals and doctors go through intense negotiations with insurers to come to an agreement on reimbursement rates, but the reality is that neither has sufficient actuarial data to price based on what can be borne by the market. So they just pass their costs on, whatever those may be, and insurers either accept it into their calculations, or drop the provider.
Suffice it to say, there are fewer pressure to push the total cost of healthcare down, given this reality, and more likely prices will continue to climb. This fails criteria C.
Briefly speaking, it's fairly self explanatory why people would want health insurance, since the alternative is either death or serious health repercussions, paying out-of-pocket rates for service, or going to the ER and being burdened by medical debt that will somehow haunt even after death. Criteria A is present.
As for Criteria B, that was actually resolved as part of the Affordable Care Act (ACA). During discussions with the drafters, insurers bargained for an obligation for everyone to have insurance (aka the individual mandate, bolstering criteria A), in exchange for an obligation to issue policies for anyone who applies, irrespective of pre-existing health conditions. Thus, Criteria B is present for all ACA-compliant policies in the USA, even though the individual mandate was later legislatively repealed.
So to answer your question directly, the costs for healthcare in the USA continue to spiral so far out of control that it causes distortions in the health insurance market, to everyone's detriment. Specific issues such as open-enrollment periods, employer subsidies, and incomprehensible coverage levels all stem from -- and are attempts to reduce -- costs.
Enrollment periods prevent people from changing plans immediately after obtaining an expensive service, like a major surgery. Employer subsidies exist due to a federal tax quirk decades ago, which has now accidentally become an essential part of the health insurance and health care situation. And coverage levels try to provide tiered plans, so people can still afford minimal coverage for "catastrophic" injuries while others can buy coverage for known, recurring medical needs.
But these are all bandaging the bleeding which is unchecked costs. It would take an act of Congress -- literally -- or of state legislatures to address the structural issues at play. The most prominent solution to nip costs is the bud is to achieve the same near-vertical integration as with automobile insurance. This means a single or very few entities which have contracts in place with every provider (doctors and hospitals), negotiated at once and uniformly, so as to achieve criteria C. The single-payer model -- which Medicare already uses -- is one such solution.
Going further would be the universal healthcare model, which discards the notion of health insurance entirely and creates an obligation for a government department to provide for the health of the citizens, funded by taxes. This means doctors and hospitals work at the behest of the department for the citizenry, or work privately outside the system entirely, with no guarantee of a steady stream of work. Substantial administrative savings would arise, since the number of players has been reduced and thus simplifies things, including the basic act of billing and getting paid for services rendered.
These models could be approached by individual states or by the nation as a whole, but it's unclear where the Overton window for that idea currently is.
I've never seen such a sign, but I'll take a guess what it might be referring to. Here in California, the definition of a freeway does not have anything to do with number of lanes, speed limits, the presence of freight traffic, or any affiliation with the National Highway System. Instead, it is defined in the California Vehicle Code section 332 as:
a highway in respect to which the owners of abutting lands have no right or easement of access to or from their abutting lands or in respect to which such owners have only limited or restricted right or easement of access.
This roughly corresponds to what the Wikipedia describes in its page on "controlled access highways", a term which includes the California and USA federal government's term of freeway or the eastern US states' term of expressway or the British motorway. That is, a road which all ways onto and off of the road are carefully crafted.
There are many roads in California and the United States which will meet the requirements outlined by the Interstate Highway standards, and will look and feel like an interstate freeway, from the signs and lane markings and shoulder sizing.
But none of that matters for the California legal definition of freeway. Indeed, some freeway-looking roads will have signs that say "end freeway" or "start of freeway" with no other visual cues. And this is because the California Department of Transportation (CalTrans) has not acquired the property rights from adjacent landowners to prohibit building driveways onto the public right-of-way.
To clarify, a right-of-way is not an individual right like free speech or freedom against unreasonable searches. Rather, it's a legal term referring to a property right, namely a grant of access on/over some piece of property in order to cross it. In the case of public roads, the property right is held by a public entity, and that means the public can use it. Since a right-of-way is a type of property, there are rights implied by a right-of-way. So a right-of-way right. Yeah, lawyers named things badly here. Anyway...
A feature of public rights-of-way is that any adjacent private properties can connect to and travel upon the right-of-way. The rationale -- to oversimplifying things -- is that if the public entity could deny the right -- including to build a driveway -- then a property could end up with zero ways to access it without trespassing, making it impossible to enter or exit, which makes the property near worthless. It is an age-old rule from English Law that rendering property worthless is bad, so private property rights necessarily comes with an implicit ability to connect to adjacent public rights-of-way.
But property rights are a bundle which can be sold separately by their owner. For example, many suburban property owners don't own the rights to minerals underneath the land, since the preceding developers sold that right to someone else. And so the state -- through CalTrans -- or the city or county can buy (often through eminent domain) just that single right from the property owners. Thus, the properties along a road might -- unnoticeable to the naked eye -- not be legally allowed to build a driveway, having shed that legal right away by forced-yet-fully-compensated sale.
To that end, it's possible that a sign warning against illegal driveways is the state's way of preventing future land owners from trying to build such driveways, since those owners would lose in court. If the state has acquired such rights, it's usually because the road is planned to become a freeway or expressway (a limited-access road, in California terminology), or they wish to preserve that possibility early and for cheap. So far as I'm aware, in California the right is only ever acquired for state roads, with the sole exception of the expressways in Santa Clara County, because they planned well ahead in the 60s.
Other states may be similar, by extrapolation.
TL;DR: OP's state might be hedging their bets to build a future freeway, and wants to prevent future legal issues with landowners, since the state knows it would win those cases
But they have also garnered a cult status among young people, who are using them to get around with friends, take their surfboard to the beach and commute to school.
Hmm, it's almost like young people aren't being given other viable transportation options, so they flock to the mode which affords them freedom and flexibility. Should we be surprised then, that the artificial barrier for youths was breached one day, and that day is now?
IMO, the story starts far earlier, with poor government policy failing to provide transport for all. I'm no expert on Australia transport priorities, but whatever they've been doing for the last so-and-so years clearly isn't working for the youth. So it's no surprise that these councils are being caught off-guard, when their negligence finally comes to bear.
I'm not a Rust developer (yet), but I understand its strength in this regard as: Rust is statically memory safe by default, and code which isn't statically memory safe must be declared with the unsafe keyword. Whereas C++ has not deprecated C-style pointers, and so a C engineer can easily write unsafe C code that's valid in a C++ compiler, and no declaration of its unsafeness is readily apparent to trigger an audit.
It's nice and all that C++ pioneered a fair number of memory safety techniques like SBRM, but the debate now is about safety by default, not optional bolt-on safety. All agree that the overall process to achieve correct code is paramount, not just the language constructs.
Oh wow, that might be the shortest-representation IPv6 DNS server I've seen to date: 2620:fe::9
For other people's benefit beyond my own:
RIIR: "Rewrite It In Rust"
OSM can definitely find you a bank near a freeway ramp, but it can also find you a bank near a creek to make an inflatable boat getaway. What it can't do is arrange for decoys to confuse the police while you eacape.
The inflatable boat robber was ultimately caught and sentenced a year later.
I'm not a lawyer, but I'm willing to have some fun with this idea.
A cursory review of the relevant California Government Code section 420 -- blaze it! -- provides a description of the California state flag, and also a picture of it. Or it would in the print version of the code. While there doesn't appear to be a specific bit of law which authorizes the state to retain the copyright on the flag, there is case law which disallows the state from retaining copyright for "government documents", with exceptions which wouldn't apply here. So it's reasonable to assume that California doesn't have the copyright on its state flag, with it likely being in the public domain.
This would suggest that Minnesota could indeed use the flag to mean something else, the same way anyone can with public domain material. Now, if this occurs outside of California, that state could not enforce any sort of rules pertaining to how the flag is used. Even within the state, California's authority to control how public domain material -- or more broadly, any material at all -- is circumscribed by the First Amendment in any case. The exception would be for those agencies and subdivisions of the state itself, which it can and does control. See Gov Code section 435, which disallows cities from having confusingly similar flags. The other exception would be uses of the flag which perpetuate fraud or some other related crime, since then it's not the speech being punished but the conduct, which happens to involve a flag-related expression. But neither of these really speak to the flag being used by another sovereign entity within the state.
Supposing for a second -- and this is where we're really departing from reality -- the several states had embassies at each other's state capitals, but without the equivalent protections afforded by the Vienna Convention on Diplomatic Relationships. And by that, I mean each state buys land in other states, without creating sovereignty issues, owning that land as any other individual or corporation could. In such a case, if the Minnesota Embassy in Sacramento were to fly the flag of California as its own, what could California do? If they drafted a law like section 435 that applies to individuals, the First Amendment would present a barrier. If the law applies to out-of-state entities, it might run against the Dormant Commerce Clause, in a very broad interpretation of interstate commerce. If they apply it to all sovereign entities operating within the state -- which would include the Minnesota Embassy, since the State of Minnesota owns it -- then the thorny question of state sovereign immunity in state court would arise.
In a California state court, would the State of Minnesota have sovereign immunity? If instead of Minnesota, it were a foreign country like Scotland, the answer would be a resounding yes. But here is a state vs state issue. The proper venue would be a court with original jurisdiction over states, and there's only one of those: the US Supreme Court.
As to what the state of California would assert as a cause of action? I suppose they could raise a criminal violation of their freshly-drafted law, with the risk of devolving into whether a US State has its own rights of free speech, which other states must respect. Alternatively, they could raise an action in equity, such as a tort (MN's use of the flag is costing CA somehow) or defamation (MN's use of the flag asserts falsehoods about CA).
At this point, we're deep into legal fanfiction and it's time to stop haha. Needless to say, I think the situation in real life would be messy if it were to happen.
Link to the blog post with the background on why this was made : https://ericwbailey.website/published/you-must-listen-to-rfc-2119/