Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 4y ago · link · parent

Nice writeup! Former chemist here. Helium is indeed poorly soluble in most liquids. It's actually used to sparge (purge by bubbling through) solvents to drive out other dissolved gasses.

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

Sure, it's absolutely great to learn from other languages. I guess what rubs me the wrong way is every point is explicitly or implicitly the Golang way of doing things. There's no real representation from other languages. That combined with being a relatively short list makes the whole article underwhelming.

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

> Probably not fixable in the moment.

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

I totally agree. Literally every point is "what if Rust did this thing that bugs me the Golang way?" Granted, it's a sort list, but it seems like the patterns are precisely golang influenced.

comment 4y ago · link · parent

I could totally see a Project Loon style craft which automatically surfs the crosswinds, going up above the clouds to radiate heat to the open sky at night, and descending to condense water.

comment 4y ago · link · parent

It's environment variables all the way down.

comment 4y ago · link · parent

I'm fond of the XDG path convention. Which basically boils down to putting configs in ~/.config/your_app/ and secrets in ~/.config/your_app/secrets.

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

> Typed Python is far more bug prone, why? Because structuring your Python code to support typing means writing considerably more lines of code.

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

I'm pretty sure the IDE uses either mypy or pyrite under the hood.

I don't know how this is a sign of python lacking. Works just fine in jupyter notebooks, too, and that is hardly an "IDE" (though it does have Jedi autocomplete).

comment 4y ago · link · parent

It's more so "this is my toolchain I use for my own ergonomics, and what you can achieve with the right kit".

Who cares if I'm "writing in python" at all? I'm solving problems. Honestly a good IDE (pycharm or vscode) will give you 80% of the ergonomics.

comment 4y ago · link · parent

This article is so hopelessly mis-informed, that it's practically hard to read without screaming "that's not how any of this works!" Most of their main arguments - type hints can be wrong, they can be ignored, and they don't inform you in a useful way about program state because of this - all evaporate as soon as you start using the correct tooling.

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

What.

> 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

> I understand why some who have a background in typed languages might prefer to use Python with type hints, but it should be understood that they aren't very Pythonic.

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

That's not really a good definition of compiled. Interpreted vs compiled is very much more a continuum than it was however many years ago when these terms originated - you had compiled ALGOL and interpreted BASIC, and little in between.

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

Cool project!

Does having the python interpreter be written in rust confer any benefit for writing python extensions in Rust, such as less overhead for moving data in/out of the extension?

comment 4y ago · link · parent

The only invalid character in a path is \0 (which of course would terminate the string immediately), and a particular filename cannot contain /, or be "." or "..". Doesn't even have to be unicode. Literally any other bytes.

comment 4y ago · link · parent

“If you think for a minute, is it not the case that every dictator in the world has a bill of rights, every banana republic, every republic has a bill of rights?”

- 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

The most cheritable interpretation I have is they meant no one directly voted on it, which like, is not how most of lawmaking in the US works.

comment 4y ago · link · parent

Yes, and it's awful. I have ADHD and even with turbotax handholding me and importing last years' data and grabbing some fields automatically, it's still quite stressful.

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

I was having issues with slow load times, high latency, dropped packets, the works. I had been profiling it and logging my bandwidth with (iirc) iperf on a raspi, over the past 48h. When I felt like I had collected enough data, I called Spectrum to give em a piece of my mind. One of the first things they had me do was use their online speedtest. Came up with 100Mbps...I had been getting 10 on iperf.

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

I think it's important to have accurate models of the world, in order to make sound decisions. I don't think playing a macabre Pascal's Wager with nuclear armageddon benefits no one.

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

Hackers will suddenly become some of the most valuable people in society. Those tractors will be jailbroken inside of a month.

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

Don't forget the billions of solar cells that would be literally all over the place, ready to be scavenged.

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

I'm quite acquainted with said knowledge. A small community surviving with a garage full of machine tools, some glassblowing, and a bookshelf of dusty encyclopedias, could easily bootstrap back to the early 20th century. A bit of steam reforming and the gigatons of plastic trash gives an ample source of chemical precursors to replace petroleum for chemical uses, and biofuel/gasification for energy. Not to mention millions of solar panels for the taking.

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

The longer the delay between writing some chunk of code, and executing it, the more valuable mental context is lost. I find it way more productive to work in small chunks iteratively, testing as I go along, rather than writing for a long chunk of time, then running tests and figuring out what bugs are making tests fail.

comment 4y ago · link · parent

There's a process for it. I'm not sure it costs anything but it's a bunch of paperwork. You have to justify what it's used for, why existing solutions don't work, etc. The working group is probably pretty reasonable, but I'm sure it's an involved process.

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?

http://www.unicode.org/pending/proposals.html

comment 4y ago · link · parent

Wake up, first thing that pops into my head, "I should check HN" (normally it's imgur, yeah bad habits).

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

US boomer subs are incredibly stealthy and can operate anywhere in the ocean, including spending much time and effort practicing under arctic ice (see the Ice-X series by SmarterEveryDay). I have no doubt US has the capability to camp subs under the ice, send launch codes via low frequency radio, surface and bring enough hurt to devastate Russia. The ability of Russia to effect a full decapitation first strike is on the order of nil.

comment 4y ago · link · parent

Not much new to say, just my $0.02.

- 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.

1
333435
85