8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 4y ago · link · parent
This is because Helium has very weak intermolecular forces due to its electronic symmetry. For that same reason, it's also as close to an ideal gas, giving you the most pressure/volume bang for your mass buck (only hydrogen is better, and that's bad for oxidizer tanks for obvious reasons).
But this also limits the ability to cryogenically condense helium, which would improve storage density. But you really don't need much in turbopump fed engines.
comment 4y ago · link · parent
Article> It's the fruit of my experience working with C, Python, TypeScript, Go, and Rust and my frustrations with the latter.
I don't really see the influences from anything other than Go here.
Don't get me wrong, I love both Go and Rust, for very different reasons.
993.
Why isn't 1 a prime number? (2019)(blogs.scientificamerican.com ↗)
2 points · by kortex · 4y ago · 1 comment
comment 4y ago · link · parent
Precisely
Sometimes (often) that something is merely a transient disconnect between their lizard brain reward/fear-centers and their rational cortex. There's not much to be done other than wait for the jello computer to stabilize itself.
This is surprisingly applicable to humans of all ages.
comment 4y ago · link · parent
If you use pydantic, it supports a secrets dir with a predefined path.
https://specifications.freedesktop.org/desktop-entry-spec/de...
comment 4y ago · link · parent
That does not bear out in practice. In my experience, bugs have almost nothing to do with LoC. A short bit of complex, I/O heavy code with lots of state is going to be way more bug prone, and far harder to unit test correctly, than 10x the LoC of purely functional, well-typed, stateless code.
Mutation, parallelism, IO, and complex state space are the four horsemen of the bugpocalypse.
But in fact, I find functional, well-typed, properly abstracted code ends up with less LoC in the codebase, because it's more reusable and composes well.
comment 4y ago · link · parent
My stack is pycharm, mypy, pydantic, sqlalchemy stub, several mypy plugins, black, isort, tabNine completion, and a bunch of custom scripts/Make to automate the common tasks. I'm not even sure I'm on the same planet as the author. I can practically spot incorrect type hints, mismatched types, weakly defined interfaces, from orbit, that's how well they are highlighted. Since every type is known, between pycharm and tabnine I can type 2-5 keys and spit out entire lines of code. And since it's all typed, automatic refactor is a breeze.
I remember the dark ages, before type hints. It was rough. I lived in the REPL. Write 3 lines, run, Exception. Write 3 more lines, run, NoneType error. Ad nauseum. Now I write for hours on end and don't wince when I hit execute. And I don't have to go bug coworkers with questions like "hey what keys are in this dict when we redirect from the oauth endpoint".
Sure, I have my gripes, but it's mostly with the lack of power of the type system, like lack of higher kinded types. But I'm confident it'll get there.
Come to the typed side. We have less mental fatigue and screaming at neverending runtime oopsies.
comment 4y ago · link · parent
> Typing encourages a large number of bad coding practices.
I'm sorry, what? What exactly is the bad practice here? Not passing random dicts to my coworkers only to surprise them because the key was userid and not user_id? Or wasting time bugging an overworked dev to ask what their crazy 8 levels of dynamic indirection magic are doing, vs just being able to Cmd-B and step through the code path?
> If you can apply typing to a Python program then you are not taking advantage of the dynamic nature of the language to write simpler and shorter code.
Yeah, no, flat out wrong. You can use typing with dynamicism to do magical things. FastApi works a near miracle, generating serializers, deserializers, openapi docs, automatic api deprecation warnings, not to mention type safety.
Properly typed python is faster to write and safely magical.
comment 4y ago · link · parent
Okay, this myth that Pythonic == loosey-goosey duck-type-everything slinging dicts and strings nothing static cause that's too slow, really needs to die.
Pythonic is all about pragmatism and parsimony. If that means not typing anything cause it's a 50 line script, do that. If it means the most efficient way for large dev teams to communicate on sprawling code bases is to use rich types, then do that.
Personally, I use types even in the short scripts, because then I can offload keeping track of what type everything is, instead of having to remember yet another user_dict with whatever keys the producer felt like using at the time. It makes autocomplete faster and I'm less mentally fatigued. Less mental fatigue == more pythonic.
comment 4y ago · link · parent
Rather, you have to look at it like an attribute based categorization:
Compiled:
- types known at compile time
- limited runtime features like stack traces, introspection
- working closer to primitive data types
Interpreted:
- dynamic, with lots of indirection
- wrapped data types (eg PyObject) vs primitives
- rich runtime with stack traces, introspection, monkey patching
comment 4y ago · link · parent
- Antonin Scalia
A constitution without the ecosystem and institutions to carry it out is meaningless paper. Institutions without a constitution, but with a long history of case law can be just.
Governments are systems but people aren't computers and laws aren't source code.
comment 4y ago · link · parent
I know several folks that have their partner do it cause they just hate it.
So the "quite easy" is far from universal.
comment 4y ago · link · parent
Suddenly, my traffic quality was mysteriously better.
No idea what was actually going on, but the whole thing was a bit sus.
I definitely recommend using your own server and profiling tools if you are suspicious of speedtest.
comment 4y ago · link · parent
It would be an unmitigated disaster. There would be incalculable suffering. But all this talk of ending humanity as a species is not at all scientifically founded.
If anything, I think this raises the stake of responsible earth stewardship (same thing with climate change). If you believe you are well and truly fucked, fatalism kicks in and you mentally check out. But if you believe that you will most likely survive, and the amount of suffering you experience will be affected by your decisions, all of a sudden you have ethical skin in the game.
Why reduce nukes 90% if that 10% still glasses the planet? There is no qualitative change. But if a 90% reduction is the difference between 8B and 1B deaths, de-armament is now approachable, has real stakes, and makes a real impact.
comment 4y ago · link · parent
The average human wants to survive. If that survival is predicating on knowing about sustainable potato agriculture, you better believe that folks will learn.
comment 4y ago · link · parent
Biofuel can provide most of the roles of coal and oil. The rest could be obtained from cracking the gigatons of plastic trash.
We could be doing all this now, it's just not economical.
comment 4y ago · link · parent
Just because it's not economical to do these things now, does not mean it would be impossible, especially in dire straits.
Would it cut the human population to a few million? Probably. Reset to the middle ages? Hardly.
What are the real innovations that make the modern world?
- the surface plate and 3-plate method
- steel metallurgy
- certain key chemical processes: Haber, Bosch, etc
- electrical generation
- the radio/telegraph
- the transistor
- calculus and algebra
All would survive a full-blown nuclear attack. Rebuild would be slow and tedious, but completely plausible, if not guaranteed.
comment 4y ago · link · parent
comment 4y ago · link · parent
If you do, can you please tack on symbols for following external links, space bar symbol, and all the other miscellaneous internet adjacent characters I always have to reach to Fontawesome for?
comment 4y ago · link · parent
Number one post is the Linking Sigil. Neat.
If you know, you know.
As for how a chaos magick symbol concocted in the 21st century ended up in a 1994 font spec, clearly discordians used the power of fnord to retcon it.
comment 4y ago · link · parent
comment 4y ago · link · parent
- Love the idea overall of a fresh, new shell. I love novelty, features, ergonomics, and this pushes all the right buttons
- Looks gorgeous
- The mandatory Github login is...weird. I don't mind logging in, but it seemed unskippable, and conceptually that leaves a bad taste.
- Mandatory telemetry...ehhh. Like I get it, I use Sentry and OTEL, I love the visibility, and I get exactly why you want it in the beta, but ehhhh, really bad look. Especially in this community. Also the privacy policy doesn't seem to be linked from the app. I can get to it, but would be nice to just go there right from the about page. On the whole...I find it tolerable, but I don't work in a highly sensitive field at the moment. At $LASTCO, that would be a complete nonstarter. Between the squick factor and compliance, it would be good to at least allow some amount of opt-out on the phone home.
- I would easily pay $20-50 for a souped-up terminal (I spend all day in it), even a closed-source one, but the "we raised tons of money to build a free terminal and haven't figured out how to monetize it yet", again, understandable, but not the best look, given the mandatory data collection. Hey, dev's gotta eat, but I'd rather pay for OSS and transparency, rather than free-but-you-are-the-product, and I hope they go for the former route.