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

Every time I've looked into Julia (it's been a while, last time was around last year), I've hit one or more speedbumps or outright roadblocks in something which comes fairly naturally to python stdlib, or has a library ready to go. If I'm doing just mathy, data-sciency type work, it's usually pretty great. But domains like IO, http (servers or clients), IPC/RPC, database work, AWS, stuff like that always felt at best a bit unpolished.

That's not to say these are impossible in Julia, but there was enough friction to make me not really wanna use it, when python can do all that and more.

comment 4y ago · link · parent

I've been programming python for years, consider myself extremely knowledgeable in it, and...uhh... yeah TIL I've been using ABCs wrong.

comment 4y ago · link · parent

> Basically, are they "well-adjusted"?

was a terrible choice of words on my part, but I can't edit now. What I mean here by "well-adjusted" has nothing to do with "appears functional from the outside". I mean "they appear functional and actually are and didn't have to contort themselves to do so".

Does the patient self-medicate with nonmedical stimulants/stimulation? (caffeine, nicotine, other drugs, adrenaline junkie)? Did they have to struggle and claw to overcome executive issues and get some semblance of normalcy? Did they find a particular niche/trade where they can be successful? Do they succeed on the outside but feel burned out constantly inside? Those are not the folks I'm talking about. I'm saying folks who didn't need to go way out of their way to adapt in order to achieve an outward sense of normalcy.

My father is one of the least-ADHD people I know. His life wasn't easy by any means (grew up very poor, had to work his way through high school and college), but also he didn't have any of the kind of turmoil growing up that I see in myself and each and every neurodivergent person I know.

comment 4y ago · link · parent

> Is ADHD somehow the "default" state of a human mind, and the effect of maturing into a particular psychosocial niche that some level of coping mechanisms are required to "function" "correctly" per socially constructed standards?

IMHO, yes, but actually, no? ADHD is marked by executive dysregulation. An immature brain (they say the brain does not mature until the 20s) also shows poor executive control. However, ADHD is detectable as certain processing difficulties within an age cohort.

Similarly, I don't think it's a lack of coping mechanisms. It's very heritable, even controlling for upbringing/habits (I'm adopted by very obviously non-ADHD and disciplined parents - I did not pick up basically any of their coping skills naturally and had to develop my own).

I think it's almost entirely congenital - between genes and gestation, your neurodivergency die is cast at birth (unless acquired via brain injury).

> This was because he had developed a set of very successful coping strategies to make up for his lack of executive function.

I think this takes a special set of conditions, and/or a mild case of it. Some people do learn to cope. I would contend even these folks have indicators of stress/mental health problems, even if non-obvious. Or they just drew the best possible ADHD hand in terms of life events.

comment 4y ago · link · parent

> We're just reacting to what appears to be agreement with that approach, even if unintentional.

Agreed. I'm addressing precisely the point in GP comment "neurodiversity is not a falsifiable diagnosis", which is something I feel quite strongly about. Other issues in this complex space that I think also are worth being discussed but I am not trying to get into in this thread:

- overdiagnosis of ADHD/ASD

- underdiagnosis of ADHD/ASD in certain subgroups (especially women/NB, minority, and underprivileged groups)

- ADHD/ASD are/are not on the same spectrum

- drug-seeking behavior for access to stimulant meds

- overmedication, undermedication, and incorrect diagnosis leading to iatrogenic harm (eg giving antipsychotics to a "bipolar" individual whose "bipolar" is realdy emotional lability due to ADHD/ASD

Each one of those topics I could talk about at length. They are related, but distinct.

comment 4y ago · link · parent

"Trivial inconveniences" are a big hurdle when trying to build a habit, but are a great tool for breaking bad ones. Anything you can do to break the dopamine loop helps, however small it may be. I've had success with:

- setting long passwords to social media that aren't autofilled (saved in bitwarden) and logging out after each session

- nerfing addicting parts of webapps (plugins which block the facebook news feed but allow messaging/groups helped a TON)

- forbidding dedicated social media apps and only using "worse" internet sites

- router DNS blockers, even if I can get around them, the act of having to bypass it raises my awareness I'm doing something subpar for myself

comment 4y ago · link · parent

Sounds like a great way to get a bench warrant for avoiding a legal summons in today's day and age.

Knuth has a secretary which prioritizes his snail mail. I think filters are a great way to go. I have tried to pre-bin my mail but my tray organizer has just been covered over with assorted cruft, which kinda makes the system untenable until I stop procrastinating...

comment 4y ago · link · parent

> Just not happy or healthy or as successful as I could have been.

That is precisely what I mean. You were not naturally "well-adjusted", you just learned to adjust and adapt over time.

It wasn't the best choice of words but I can't edit.

comment 4y ago · link · parent

Gp wrote:

> "By what process can someone reasonably determine that they are NOT neurodivergent?"

You are talking about the opposite detection criteria, false positive vs true negative. I was speaking to "neurodivergence is not falsifiable". You are speaking to "one can fake neurodivergence, esp. to get prescriptions", which, of course, that is definitely a thing.

Of course, if you fake to the doctor that you don't have symptoms, well duh, of course they won't diagnose you. That also has nothing to do with falsifiability. You won't get a correct diagnosis by lying - doctors aren't psychics.

At its very most reduced form, falsifying neurodivergence as a hypothesis means basically demonstrating a single counter-example exists. Can we find someone who made it through high school, learned good study habits on their own, did average to well in college, held down a job, paid the bills, folded their close, made friends and raised a family, all without counseling, special classes, medication, self-medication, masking, hyper-extending themselves (beyond just "working hard"), or burning themselves out just to make ends meet? I think so. Neurodivergence, ADHD, and ASD are falsifiable diagnoses - a true negative result can be obtained.

comment 4y ago · link · parent

I think we are on the same page. Not being confrontational, but please re-read my comment, specifically:

> If they make it through school, college and adulthood without a ton of struggling

You wrote:

> but at the expense of my own mental health because I was fighting a constant uphill battle.

Gp wrote:

> "By what process can someone reasonably determine that they are NOT neurodivergent?"

I'm using "well-adjusted" here to mean like, naturally well-adjusted - you are able to complete life activities without constantly having to learn strategies and fight the good fight just to do what comes much more freely to neurotypicals.

I.e. being able to socialize well doesn't disqualify you from ASD, because masking is a thing.

A proper licensed professional will ask the right kind of questions to ascertain this. If you are successful but feel like if you stop struggling for a moment, that's a strong indicator.

comment 4y ago · link · parent

It's a data format which can be expressed as a contiguous series of bytes and sent/stored; it's a serialization format.

This is not just nit-picking, it's been used precisely as such:

https://phiresky.github.io/blog/2021/hosting-sqlite-database...

comment 4y ago · link · parent

> If you do a test that shows that X is faster than Y, you're allowed to say "X proved faster than Y".

No, you have the hypothesis X is faster than Y, and some evidence to back it up. It's no different than a scientist treating cancer cells with unobtainium, and claiming it "proves unobtanium cures cancer".

You need a lot more rigor to prove benchmarks. Notably absent is some independent verification and peer review. It's possible to write benchmarks in ways that bias the outcome.

If you have multiple different benchmarks written by independent authors and counter-reviewed, all showing 10x speedup, sure, call it "proven". A few benchmarks on 3 arches, no, use the word "shown" or similar.

comment 4y ago · link · parent

> much of it seems very difficult to falsify

It's quite straightforward, albeit involved (as in technically easy, but takes time) to falsify. You have to work with a licensed medical professional who will evaluate traits, strengths, and difficulties, and to what extent they impact functioning as a person in society. Basically, are they "well-adjusted"? If they make it through school, college and adulthood without a ton of struggling, therapy, possibly meds, you can almost certainly rule out neurodivergence (at the very least, it won't be clinically significant )

comment 4y ago · link · parent

> Ergo, the cutting edge of mathematics is bounded by how far a single human brain can go, but no further. Progress is achievable only through efficiency of thought, via shortcuts, elegance, abstraction, consistency, simplicity, and other similar means.

I think this is perhaps the strongest pro-tau argument. How many intuitive insights may have been missed or delayed, because a 2 was factored out of 2pi?

Perhaps a softer stance on the way to tauism is to encourage folks to keep the 2 and the pi together as a single pseudo-symbol 2pi. So you'd never factor out the 2 (A = 1/2(2pi)r^2) nor would you distribute over it ((2pi)^2 would never become 4pi^2). I don't think that would work well in the educational space - now there is this extra weird rule about reductions - but it might help in other fields. At that point I guess you might as well use tau though.

comment 4y ago · link · parent

> Haskell is the Mercedes of programming languages.

Comfortable, packed with features, pretty fast given its weight, kind of elitist yet approachable if you invest time in it? :p

comment 4y ago · link · parent

> Rust is quite an easy language to learn

It's funny. I hear two different things, all the time. "Rust is easy to learn" and "Rust has a steep learning curve". Personally, I found it to be the latter, and that's as a serial dabbler/language polyglot. I had a bear of a time wrapping my head around lifetime annotations, and needed someone already familiar with them to sherpa me through that stage.

I think it does a disservice to say, "Rust is easy to learn modulo these two really challenging concepts, plus some other things you are likely unfamiliar with". Python is easy to learn. C++ is hard to learn. I'd rate rust as medium difficulty.

It sure is enjoyable though, I don't think that's ever in doubt.

comment 4y ago · link · parent

Engineering solution: generate a system of valid commonly-pronounceable phonotactics (rules like consonant-vowel-consonant is an allowed syllable). Banlist any name with >N people bearing that name (there's always gonna be outliers/collisions/future names).

With Toki Pona's inventory (mnptkswljaeiou), limited phonotactics (CV), and 3 syllables you get about 45 unique syllables, or 91,125 words. Add more syllables or phonotactics as needed. Affix the year - "Kalada-22". Add filters (profanity, too close to certain names, etc) as needed, you have overhead. Regenerate/reuse yearly unless retired.

That should be easily enough to name every hurricane, heat wave, flash flood, tornado, pandemic, rat infestation, and mercury retrograde, while being pronounceable, and memorable enough if it becomes newsworthy.

comment 4y ago · link · parent

I bet you remember Delta and Omicron. They need not be human names.

comment 4y ago · link · parent

JWST folded is about 3 tiles wide, in a housing 4.7m in diameter, unfolding to 6.5m. So a JWST style fold in a Starship would be double. A one-mirror-segment-per-flight would be something like 36m, in the same arrangement. But since you would be constructing from separate sections, the diameter is theoretically limitless.

comment 4y ago · link · parent

I wouldn't worry. Lignin (in wood) is a bit more reactive than polyolefins. It was effectively indigestible for eons until fungi figured out how to break it down, and even then, wood only breaks down in certain conditions.

comment 4y ago · link · parent

Yeah, chromium and nickel, two of the chief components that put the stainless in stainless-steel, are rather toxic in most/all oxidation states (Cr3+ is weirdly biologically necessary but toxic in high doses). Their refining process is pretty nasty too - lots of cyanide / carbonyl (monoxide) complexes, and mining is just generally filthy.

Automation and cheaper electricity would drive down the cost of recovering metals from aqueous waste.

comment 4y ago · link · parent

> If dUT1 can become either negative or larger than 1,

Negative values should already be accounted for, afaict.

> UTC is maintained via leap seconds, such that DUT1 remains within the range −0.9 s < DUT1 < +0.9 s.

I can't imagine why it would ever be constrained to abs(dut) < 1, as that does not appear to be a hard spec anywhere, it's just the goal. But I could see some really stupid implementations, so maybe.

https://en.m.wikipedia.org/wiki/DUT1

comment 4y ago · link · parent

The rate of angular change divided by angle sure as heck sounds like units of time to me. The absolute angle isn't, but the rate of change is, and UTC still tracks with rate of change, with a phase angle we periodically twiddle.

That's like saying a watch or even an atomic clock doesn't measure time, it measures oscillations. It's being pedantic to the point of obtuse.

comment 4y ago · link · parent

> The problem is that UTC, despite its name, is not a time.

Could you elaborate on what you mean? What is UTC if not a time? Like, datetimes vs time?

Even if Unix time was based on TAI, you'd still need leap seconds in order to resolve the correct local time (which is based of even-minute offsets of UTC). Maybe it's easier to deal with in calculation post-hoc vs smearing on the day of, but that handful-of-accruing-seconds will always be there.

comment 4y ago · link · parent

I don't think we will ever need a negative leap second. We can just wait longer until dispatching the next positive one. The only situation in which we'd need a negative leap second is if Earth's rotation were consistently speeding up over many years. But we can tolerate some wiggle room (as in, several seconds) between UTC and TAI (since it's not in lockstep anyway).

comment 4y ago · link · parent

Yes, that's exactly what I said. dict.update is in C, because it's a core feature of the python vm. It's pure CPython. What do you think "pure python" is? There's no python hardware ISA (afaik). All cpython is manipulating data structures in C via Python VM opcodes. It just so happens that whatever opcodes that are dispatched in the course of solving this problem are quite efficient.

If you say "it does not count as Real Python if you dispatch to C", then you literally cannot execute any CPython vm opcodes, because it's all dispatching to C under the hood.

comment 4y ago · link · parent

But you are still wrong. As mentioned, Dicts are incredibly efficient data structures in Python (because they underpin everything) and the Counter class is pure python. That's 100% pure python. Saying dicts "don't count" because they are implemented in C would disqualify the entire language of CPython, as virtually everything under the hood is a PyObject struct pointer. It just so happens that "counting abstract objects" is the class of problem* CPython does basically all the time in normal VM execution anyways, so this task is easy and fast.

* looking up a reference of an attribute with a string key underpins the meat and potatoes of python's execution model

comment 4y ago · link · parent

How? Rail at least provides a direct conductive path. Electrified highways would require inductive charging at 65mph (not feasible) or building overhead pantograph systems (expensive but at least vaguely tractable). Either requires specialized vehicles.

Europe could pull it off due to its density, but the stretches of American highway which would benefit the most from it, would be a huge challenge.

comment 4y ago · link · parent

Can we move past the whole "it is not really python to use libraries written in C", especially when talking pure stdlib python?

Python is basically a DSL for C extensions. That is the whole point. It would be like criticizing any compiled language for essentially being a DSL for machine code, and not "Real Instructions".

Python's ability to interop with pre-built, optimized libraries with a lightweight interface is arguably its greatest selling point. Everyone and their dog knows purely interpreted CPython is slow. It doesn't need to be pointed out every single time python performance is brought up unless literally discussing optimizing the CPython vm.

1
282930
85