8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
E.g.
- 1-4 bits for the piece class to move.
- 3 bits for the column of the destination
- 1-3 bits left over for disambiguation. E.g. Column
That's perhaps a bit too much optimization for a troll project. But fun nonetheless.
comment 4y ago · link · parent
I've used them a few times, mostly in the embedded space, and mostly in conjunction with lookup tables and/or Newton's method, but yes I've absolutely used them outside school (years ago, I forget the exact details).
- implementing my own trig functions for embedded applications where I wanted fine control over the computation-vs-precision tradeoff
- implementing my own functions for hypercomplex numbers (quaternions, duals, dual quaternions, and friends).
- automatic differentiation
Does the Taylor series form survive to the final application? Usually not, usually it gets optimized to something else, but "start with Taylor series and get back to basics to get a slow but accurate function" has gotten me out of several pickles. And the final form usually has some chunks of the Taylor series.
comment 4y ago · link · parent
A good compromise might be to put the equation in the comments in symbol-heavy form, and use the spelled out names in code.
comment 4y ago · link · parent
If you have a problem with that, well, I have some bad news about how commerce, medical, and industry go about wastage in general. Bought 1000' of foobar filler rod and only used 50'? Chuck the rest cause it'll cost more in labor to deal with the excess.
comment 4y ago · link · parent
Still not...great. But at least trending in the right direction.
On the other hand, the privacy situation... jesus I've never seen more analytics and cookies in my life than when I inspect my profile page on zoom.us.
comment 4y ago · link · parent
http://www.catb.org/jargon/html/Q/quantum-bogodynamics.html
In all seriousness, it probably has to do in large part with gestures broadly global state. Registry, configuration, what else is running on the system, how up to date it is. There are so many possible different settings, parameters, processes doing weird api calls, that it's a combinatoric explosion.
comment 4y ago · link · parent
What's the alternative? If you want an I/O system interface into WASM, something POSIX-like is probably the sanest choice one could make. Portable is literally in the name. In fact I'd say POSIX the least obviously biased system interface.
Is there some other syscall interface out there which implementS files, sockets, and clocks, which is simpler than POSIX?
In fact WASI seems quite stripped down from POSIX.
comment 4y ago · link · parent
We need every fossil fuel plant around the world offline yesterday, and every coal plant offline 50 years ago. The anti-nuclear sentiment really is a shame.
comment 4y ago · link · parent
- Pcmag wants to push notifications (deny)
- give us your email! (full page sudden popover, tiny "no thanks" text)
- ads every paragraph (big enough to disrupt reading flow)
- ads in floating banner at the top
- browser creaks and groans trying to paint as I scroll, white blocks if I go too fast.
It's almost like they are trying to demonstrate why Craigslist looks the same by giving a vivid counter-example.
comment 4y ago · link · parent
comment 4y ago · link · parent
(simplification) With any time you are mapping some file to some data structure (dbm, sqlite, mmap), the file descriptor generally stays open while you are working with it, meaning reads/writes/seeks are just about as fast as IO can go.
comment 4y ago · link · parent
The big difference is how easy it is to step into the game. I'd probably need millions of dollars, oodles of lawyer-hours, a bunch of employees, and a mountain of paperwork, to start a bank and participate in the banking system as a peer. I just need 32Eth (roughly $50kUSD) and some computers to participate as a validator.
The hard fork only "worked" cause enough people went with it. If enough people said "f it, no fork", then the fork still happens, but loses the social capital and thus the old chain "wins".
The internet struggles with ipv6 because not enough nodes support it. Politics breaks down when parties can't reach agreement. I don't know of any system which is truly tolerant to byzantine / 51% attacks.
comment 4y ago · link · parent
Edit: Actually not sure if you are talking about Point of Sale, Place of Service, Piece of $#!7, or something else. Case in point: context matters.
comment 4y ago · link · parent
If I cat all those patch objects to a file on a shared drive, knowing that at midnight UTC every day, it'll get picked up and applied, that's still an API, albeit a kinda janky transport layer.
comment 4y ago · link · parent
comment 4y ago · link · parent
Much of that work can and is researched in parallel, but there will be inevitable integration hell that has a burning fusion reactor core as a prerequisite.
comment 4y ago · link · parent
The intake from the environment would be micrograms/day, if not even less, above natural background. There are water sources with far higher natural concentrations.
comment 4y ago · link · parent
> Real computers constructed so far can be functionally analyzed like a single-tape Turing machine (the "tape" corresponding to their memory); thus the associated mathematics can apply by abstracting their operation far enough. However, real computers have limited physical resources, so they are only linear bounded automaton complete. In contrast, a universal computer is defined as a device with a Turing-complete instruction set, infinite memory, and infinite available time.
https://en.m.wikipedia.org/wiki/Turing_completeness#Non-math...
comment 4y ago · link · parent
@inject
def main(service: Service = Provide[Container.service]) -> None:
...
FastAPI also does a similar sort of trick, for DI and also request parsing.https://python-dependency-injector.ets-labs.org/introduction...
comment 4y ago · link · parent
The three first principle components of a drug's harm are the therapeutic window (log ratio of LD50 to median active dose), addictivity (harder to quantify, but we have models based on pharmacokinetics and dynamics), and degree of harm to others when altered.
Alcohol is dangerously toxic on the order of ~15-25 units, has fast onset and hits GABA so rather addicting, and as a CNS depressant, is obviously very risky to others.
If a designer analog came out with the profile of EtOH, it'd immediately go to Sch I.
comment 4y ago · link · parent
As long as alcohol is a legal substance to consume, it makes no sense to criminalize substances widely shown to have lower harm coefficients than it. There's tons of studies which mostly-objectively quantify harm/addiction caused by substances. The only drugs squarely as bad or worse than alcohol are tobacco products (also legal, contains many more psychoactives beyond nicotine), meth, crack cocaine (delivery route matters), cathinones, GHB, certain gaba-ergics, and most opioids.
Nicotine in isolation, ketamine, classical psychedelics, cannabis, MDMA, most of the Shulginoids (phenethylamines and tryptamines), all fall short of the harm caused by alcohol.
https://www.frontiersin.org/articles/10.3389/fpsyt.2020.5921...