8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 4y ago · link · parent
You have execution engines (a web framework and sql engine) that encap a block of pure function. There's no side effects (save maybe logging) whatsover inside your mini-program.
FP patterns like monads let you compose blocks of execution so you can have bigger mini-programs that are more ergonomic to write.
SQL query builders are (I think) a kind of Monad. You can compose selections, filters, groups, etc without ever executing, building up a big "what if" into a transaction. No side effects until you execute, it's pure data in data out. Which means for example you can write true unit tests without mutating a "real" db by composing transactions together.
FP falls apart when you have to reason about "nuts and bolts" of actual computation models, IO, network, time, RNGs, DMA, gpus, large data arrays. FP acolytes say "just let the computer/compiler do it" eg write in FP and compile to optimized imperative machine code, but someone still has to write drivers at the end of the day.
comment 4y ago · link · parent
Computers that do anything useful have all manner of I/O. Highly oversimplified in modern architecture, but you can think of I/O as a bunch of memory cells that are DMA'd by external forces. Literally the exact opposite of functional, IO registers are the epitome of global mutable state. Then you have interrupts and the CPU operates in response to these events.
The viewpoint of "computers are mutable state" is inherently better because of parsimony - it requires less degrees of indirection to explain what is happening. Just because you could shoehorn reality into a physical model, does not make it equally valid. You basically need to break it down to the Schrodinger equation level to have a purely functional model when even idealized gates are involved because propagation delay impacts things like how fast you can DMA.
comment 4y ago · link · parent
This looks like a classic case of "automating the wrong way" and thinking in terms of agents instead of tools (force multipliers).
What beekeepers really benefit from are tools that let them do more work with less effort. Hive lifters are a perfect example [1]. The most popular design has a couple of mechanical flaws that can lead to buckling, and the hand winch is kind of a pain to use with really heavy supers. That's the real kind of innovation the field would benefit from.
Another is logistics. Schlepping around hive boxes, sugar water, tools, supplies, through loose farm mud, is a real hassle. Tractors are expensive and not really maneuverable. A "farm tug" would be crazy useful - something like an electric wheelbarrow (which exists) but a more generic/modular form factor.
1 - https://beehivelifters.com/product/beehive-lifter-manual-2-w...
comment 4y ago · link · parent
Risk is rarely phrased in terms of "100% correct" because risk-management in engineering is well aware of the "swiss cheese model" of failure. More accurately, disaster occurs not when things go less than 100% perfect, but when things start approaching 100% wrong. All of the redundant layers of safety have to fail such that catastrophic failure is the outcome.
The real question is how many layers of safety is enough? Chernobyl, clearly insufficient. Fukushima, still flawed, and folks knew so at the time. The high water mark is such that none of the mistakes of Chernobyl or Fukushima would ever be made again, and we have not one, but two generations and 50 years of improved designs since Fukushima.
comment 4y ago · link · parent
That's literally what makes it not exponential (I.e. when it falls low enough that it is no longer proportional to the derivative). Sigmoid functions, catenary functions (hyperbolic trig), even the complex exponential (regular trig), and the like all have exponential terms. We don't use the term "exponential growth" in any of these cases unless there is growth without bounds - aka the real coefficients are positive.
comment 4y ago · link · parent
And frankly...bash kinda sucks as a programming language and environment. It's a footgun factory. Even when I was most fluent, I constantly had to deal with nested quotes, escaping, stringly types, empty variables, implicit behavior.
Python's biggest weak point is definitely its packaging and dependency ecosystem... but it at least has one. Bash doesn't even have modules. And it's gotten MUCH better over the years, with pyproject.toml, poetry, actual version resolvers, pipx makes managing venvs for cli tools way easier.
"but bash is everywhere" says many folks. yeah, and? There was a point in time where it wasn't. Python is seeing way more market penetration.
Xonsh (python based shell) and plumbum (python library which makes pipe-operating and subprocessing easier) are both great.
comment 4y ago · link · parent
Basically Katai struct but can also be used to serialize, not just deserialize?
comment 4y ago · link · parent
comment 4y ago · link · parent
Ah! So actually, they implemented a really (technically) cool DRM that is totally sideband to the bits of data on the media. It relied on tracking servo feedback that most (all?) cd burners ignored.
Though, this pertains to ps1, I'm sure they did something similar and perhaps harder to spoof for ps2.
https://hackaday.com/2018/11/05/how-the-sony-playstation-was...
comment 4y ago · link · parent
That makes it really tempting to think "well maybe it's the model/equation that's wrong", which has been exactly the case throughout scientific history: planet Vulkan vs Relativity, phlogiston vs oxygen, luminiferous ether vs QED.
comment 4y ago · link · parent
comment 4y ago · link · parent
Isn't that the major point (aside from get the heck out of the way) of these anti-idling laws? Reduce the localized noise and air pollution.
Also NYS gets a ton of electricity from carbon-free sources.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
It's certainly less impactful than doing something substantive but it also costs nothing to signal boost. Same like boycotts, it only works en masse.
comment 4y ago · link · parent
I have a Moonlander and have it totally tricked out so I have no problem with qwerty hotkey locations. It's basically just the time delta to grind a new layout. When I learned Dvorak around 2009, it took me about a month to reach parity. It might be even faster this time around since I'm constantly messing with my layout with small tweaks and having to relearn muscle memory.
Also if you aren't using some kind of layer scheme to map things like ~./()= up/down/left/right to home keys, you are really missing out :p
comment 4y ago · link · parent
Still, switching hands is super impressive. Were you already ambidextrous?
comment 4y ago · link · parent
I have 16 layers of possible keys activated by thumb chords (though in practice my brain runs out of awareness of different combos far before my ~1000 unique keys). So I just dedicate a layer to this pseudo-qwerty.
Need to get around to writing that emoji layer...
comment 4y ago · link · parent
Hashicorp HCL2 might also be, but I don't know if they are turning-complete off the top of my head. Some blog suggests it actually is TC, but I cannot corroborate.
Starlark/bazel is TC.
You can add Berkeley Packet Filters and BLooP to the list of TI languages: https://www.quora.com/What-is-an-example-of-a-Turing-incompl...
comment 4y ago · link · parent
No red lights, so it's probably not something catastrophic like that facebook DNS SNAFU, but it definitely smells infrastructure- or deployment-scoped. Like either small DNS issue, or some load balancers are sending traffic to servers which cannot handle it programmatically (schema change?) so they are barfing.
comment 4y ago · link · parent
comment 4y ago · link · parent
The CFAA uses "intent" and "defraud" quite a few times. That's not gonna stop some DA from trying to throw it at you, and your life is gonna suck, but state of mind is going to be the most important factor. The disclosure shows you weren't in it to defraud. Obligatory IANAL.
comment 4y ago · link · parent
Normally we'd do this in the high potency suite but the reaction scale was too big so we did it in the conventional GMP pilot plant. Bunny suits and cyanide meters for all three chemists.
I calculated that dose-wise, it was enough to kill tens of thousands, were it directly delivered, however if it were merely vaporized, it would only kill those in the immediate area, and would hydrolyze quickly. There's a great article linked elsewhere in thread about the ineffectiveness of chemical weapons, I've added it for convenience because it's a great read. Air is big, the distance-cubed law really dilutes any toxic agent beyond dangerous limits quite fast (comparing pound for pound lethality of conventional explosives).
https://acoup.blog/2020/03/20/collections-why-dont-we-use-ch...
comment 4y ago · link · parent
The bottom line is the resource permissions weren't scoped right, like at all, and no amount of SSL is gonna fix it - that's what logins and tokens and oauth and that whole dance are for.
Sorry, endpoints aren't doors of a house, where "waltzing in just because it's unlocked is breaking and entering." They are protocols. Merely "talking" to open protocols is/should not be a crime.
comment 4y ago · link · parent
I'm not sure where the line of "trying to break security" it, but none of the above count. Even accidentally blasting some endpoint with automated garbage. Intent matters.
comment 4y ago · link · parent
Also I would not be surprised to see JIT-like behavior from go tooling, first party or otherwise, if that sort of approach takes off.