8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 6y ago · link · parent
https://www.sciencedaily.com/releases/2019/10/191007113314.h...
comment 6y ago · link · parent
comment 6y ago · link · parent
I think anyone neurodivergent stands to benefit, and if they are not, well, sounds like they have a decent handle on life already.
> Breaking this cycle lets you have some relief
+1
Edit: That's not to say people living a content life would not benefit from doses, micro or otherwise. It's just probably much harder to detect in a clinical setting.
comment 6y ago · link · parent
Opinion: It's (nigh) 2020. If you aren't using an editor which supports inspection and jump-to-declaration, you are doing it wrong. Similarly, if you are using a dynamic language and not leveraging type hinting or similar, you are doing it wrong. Where "doing it wrong" == doing a disservice to yourself, your coworkers, and future you.
We have so much powerful metadata available right now. So with the examples above, you should be able to focus on `employeeRoles`, hit `hotkey`, and see a gist of the types, key format, what to do with that thing, and why it's there.
Names should be unique and memorable enough that once you form that mental schema, you can quickly scan through code and understand its role in the greater machinations, without too much mental re-parsing.
comment 6y ago · link · parent
If you are interested, media forensics is an entire field about this sort of thing.
comment 6y ago · link · parent
Now take all that and multiply by the complexity of world languages, many which don't even map to one glyph == one morpheme. The ol' apple message crash bug was due to the property of some Arabic not being monotonic in rendering space vs string length.
I think we could have skipped utf8 and just gone to 4byte runes. But even then, that would not have avoided the above bug.
Utf16 is a hot mess though, worst of all worlds.
comment 6y ago · link · parent
func fixPy3CacheFile(src, dst string) error {
...}
Yeahhh, that is your classic example of "things you definitely DO want an explanation comment for"comment 6y ago · link · parent
comment 6y ago · link · parent
I still would not be able to evaluate any sort of crypto program and certify its integrity, nor find any (save for the most eggregious) flaws. Even then, I have brought up questions in code reviews of "this seems to be flawed" only to learn "technically yes, but we have to do such gymnastics because of constraints xyz".
I, too, was big on the "blockchain is gonna make e-voting possible! Ra ra ra!" hype train for a while, but eventually wisened up to my own naivety.
I think paper is great because it's both proof of work (it had to be printed/written/modified) and proof of stake (e,g. I possess it and I can attest to its chain of custody), with zero lines of code!
comment 6y ago · link · parent
I imagine it takes a more aggresive formulation to be effective orally, whereas injection is a straight shot into the fray of the immune system's war on pathongens. These more active forms seem to raise the risk of mutation to active virulence.
comment 6y ago · link · parent
Left-pad is IMHO "too simple". Packages on the median should be in a 1-2 pizza team effort with some ongoing maintenance, even if only a few pizzas a year. Left-pad is like, 2 pizzas and a weekend.
(were it not for string.prototype methods) a viable package would be something on the order of Python's str.format(). Can left pad and right pad!
comment 6y ago · link · parent
* > as the dependencies of a project approach infinity, the odds of two branches of a dependency tree wanting to rely on two different versions of the same library approach 100% *
With experience, I've found that this is precisely the case, with bounds much, much smaller than infinity. The ersatz standard lib can't even standardize, there's underscore and lodash. I think eventually the community will Ostwalt ripen in a sense, small packages will dissolve by attrition and big ones will grow. But the argument is strong for simply decreasing n = number of discrete packages.
comment 6y ago · link · parent
comment 6y ago · link · parent
Encrypted shards partially solves this, but then you hit the quandry of "But what if I have a shard of something illegal or undesired enough to upset the wrong people?" which has not been thoroughly tested in our legal system.
comment 7y ago · link · parent
try:
something() # that throws nonfatal errors frequently
except:
pass
"it saves time in development" they say. Good luck if something in that (non trivial) function call breaks.Ugh.
Don't be like that.
If you don't know the precise error, heres the solution (in python):
except Exception as exc:
log("{}: {}".format(type(exc).__name__, exc))
Bingo, you now know what to catch. Catch that error, move your broad exception down (or remove if you can)comment 7y ago · link · parent
Basal fiber is about 3GPa tensile, call it a MoS of 6 for a neat 500MPa working strength.
If you plug int wolfram alpha `1 atmosphere * 1 square meter / 500 MPa` you get 2 cm^2 of support (tethering) per sq m of roof. That's reasonable.
But here's the rub: compressive strength lags tensile strength. Even granite is a mere 130 MPa. So even a strut which has some compression resiliance is not gonna be enough to fully abate a collapse. So it's very likely a Martian structure would have some arc to it, as it both benefits tension under nominal operation and some compression in failure mode, at least long enough to keep pressure from dropping too low.
I imagine rip-stop at all sorts of scales will be implemented. It's not gonna be like an inflatable golf dome.
https://www.engineeringtoolbox.com/compression-tension-stren...
comment 7y ago · link · parent
Perhaps the framing needs tweaking. It is inaccurate to say "if we don't fix climate change, it will end humanity". But "unmitigated climate change could spell the end of the world as we know it. Do you like the world as it currently is, or do you wanna roll the dice and risk apocalypse/Mad Max/ etc?" is completely plausible.
Is there a semantic and ontological difference between "er'rybody gonna die!" and "[almost] er'rybody might die!"? Of course. Is there a difference in terms of expectation value of human quality of life in the future? Not a very big one if you ask me.
comment 7y ago · link · parent
Protobufs are neat but `protoc` is an absolute nightmare. I would warn against going down the path of transpiling to lang-specific message files if at all possible (I don't think you are taking that approach, but github freezes my phone browser, I'll look more on my dev machine)
Great stuff! I would love to see this get more traction. Interchange formats are a classic victim of critical mass necessity.
comment 7y ago · link · parent
I can see with a few more small parts an application which persists as bson, streams / tempfile / and/or mmaps to yaml/hcl/whatever you like, opens that in your editor of choice, and translates back to bson.
comment 7y ago · link · parent
But instead let's say you have some register which gets rotated/xor'd in some way based on the relationship of a to b.
I don't think you can do branching logic though.
comment 7y ago · link · parent
Yeah I love DRY and code reuse as much as the next guy, but sometimes copypasta makes sense.
I will say go's nature and/or culture make grafting in functions a lot easier.
comment 7y ago · link · parent
Yes, completely absurd. For one, many places are too sparse, poor, or unstandardized for this to be remotely economical. Two, people often don't cross at crosswalks (jaywalking). Level 5 AV is a thing where 99% coverage isn't good enough. You need a lot of nines.
That's why many think lidar systems are a crutch. If lidar can't work in snow or heavy rain (at least 1-2% of days in the north), then you need fallback which must still be >99% as effective to avoid incidents. But then why not just use the fallback?
Generating data? Sure. But for actual use in the data pipeline? Makes you rely on an ultimately untenable solution.
comment 7y ago · link · parent
Yes, he's got a point about over-relying on layers of abstraction, but that abstraction was written with untold millions of dev-hours across thousands of organizational structures and independent individuals. The only way to get pieces of such disparate pedigree to operate together is abstraction and APIs. You have to bottleneck and standardize complexity to logical boundaries or else everyone ends up rewriting their OS to ship with their game. A standardized ISA wouldn't fix this because you still need standardized OS ABIs, hardware wire protocols, network protocols, media write protocols.
His argument boils down to "get all engineers to agree upon an ISA, OS, SoC, hardware interface". As a start, he suggests "Simplify the NIC, SATA, USB and video interface". Yeah, ok, I'll believe that can happen when engineers agree upon bike shed colors reliably.
When you're basically the only person in the stack, it's easy to naively say "just standardize everything!" but as anyone who has been to any organizational meetings knows, getting humans to agree on ANYTHING is an involved process.
comment 7y ago · link · parent
Some people aren't much affected by screen time at night, and some people can readily get up before dawn. I for one have to be very careful to limit my exposure at night, and waking up before sunrise (artificial or natural) is excruciating. I have been diagnosed with DPSD. I vastly prefer to go to bed and wake up later than average