Better HN
topnewbestaskshowjobs
Log inSign up

kortex

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

Submissions

comment 6y ago · link · parent

I was actually talking about gun ownership, not nukes, but it's eerily similar.

You don't glass everybody immediately. Nuclearia basically does a protection racket. Do what we want, or we progressively make an example of you. Each "round" is 1) issue demand 2) if no compliance, respond with N units of force 3) N++ 4) repeat until results. Rebels get the Alderaan treatment. Rule by fear. Either every country decides to let themselves get scorched to prevent Nuclearia taking resources as a last FU, bend the knee, or re-arm. But one well-placed rebel ICBM ought to dissuade Nuclearia from their racket.

Having some subpopulation (police or even military) with guns but not the populace is a similar power dynamic. It doesn't take many "rebels" to make the hegemony think twice about a takeover. But a complete monopoly on power means a "clean sweep" military coup with minimal bloodshed is possible. My finding of the world is that most people just want to live their life and do their thing. So in such a takeover, I believe most people would just fold. But a small rebel % can turn that bloodless takeover into an indefinite boondoggle.

comment 6y ago · link · parent

Do you reckon LMDB would be reasonably performant compared to raw mmaped files for zero-copy passing large images between processes? I want something like a ring buffer but mitigate the risk of use-after-free if the consumer lags. Seems like lmdb automatically re-uses memory that's long been freed but is sensible to detect that an incoming write needs more space.

Python/c++.

I've looked into mmap and flock but it's messy and not highly portable.

comment 6y ago · link · parent

Game theory. The instant someone doesn't agree not to destroy, they have a massive upper hand.

comment 6y ago · link · parent

How difficult would it be to write a python runtime, let's call it MPython (meta), that forks into separate Python interpreters, 100% orthogonal, except for channels/shm. Could even use separate entry points, but all the same PID. Multiprocessing (iirc) forks from the first python process (this breaks some things depending on when you fork, eg gRPC with torch.dataloader with multiprocessing will crash).

Does that get you anything, or am I misunderstanding how multiprocessing/fork works?

comment 6y ago · link · parent

Exactly. This is precisely the time for "move fast, break things". They have comfy traffic with their Falcon like, and can (and should) be going full-Kerbal with Starship as long as they can afford to. Especially with all the new techniques they are experimenting with.

comment 6y ago · link · parent

The purpose of an armed populace isn't to "win" tactically, it's to win strategically and psychologically. It's basically like a poison pill clause, you want to make totalitarian takeover so unpallatable that every victory is a pyrrhic one. You want to force the occupiers to have to choose between killing your own countrymen or defecting, setting up more of a resistance. All the while, you shine light on all the atrocities.

With a sparsely-armed populace, it's easy for the occupying force to roll through without much conflict or challenging decisions.

Winning occurs through attrition of the occupiers, which, unlike Vietnam, can't just "back out".

comment 6y ago · link · parent

Right? DRM water filters is about one of the most neoliberal ideas out there.

comment 6y ago · link · parent

You want a stable, easy-to-use platform. Setting /var/log to something other than the main disk risks all kinds of difficult to diagnose problems. If that means burning through SD cards, so be it. It's relatively easy to mod it to write elsewhere, that's exactly the purpose of user customization.

What they ought to do is put an easy way to set that in `raspi-config`

comment 6y ago · link · parent

Fascinating, quoting the query changes results. Pipes represent the search field:

__________________________

|who founded the new york times|

__________________________

> Search Results

> The New York Times/Founder

> Henry Jarvis Raymond [link to google query |Henry Jarvis Raymond|]

> The New York Times was founded as the New-York Daily Times on September 18, 1851. Founded by journalist and politician Henry Jarvis Raymond and former banker George Jones, the Times was initially published by Raymond, Jones & Company.

> The New York Times - Wikipedia [https://en.wikipedia.org/wiki/The_New_York_Times]

> People also searched for...

___________________________

|"who founded the new york times"|

___________________________

> Henry Jarvis Raymond [link to google query |Henry Jarvis Raymond|]

> People also searched for...

comment 6y ago · link · parent

Immutable infrastructure / functional programming / crash-only code. In conjunction with lots of docker, ansible, studying FP, and trying to adopt these principles in all my main languages (python, go, c, c++, bash)

Those 3 ideas all kind of mushed together radically changed my overall approach to development. What do they all have in common? Avoiding complex state.

State is hard to reason about. Each piece of state that can interact introduces combinatorially-growing complexity.

Crash-only code may seem like the odd one out but think about it: if your program dying at literally any point has the potential for data corruption, you probably have some sort of issue with state management.

I guess you could call it anarchy coding, because it tries to completely eliminate state ;)

comment 6y ago · link · parent

histdb is one of my top favorite tools. And I've come to the conclusion flat files can only get you so far. sqlite is probably the next best thing to flat files, and I think history is one of those things where switching to a db is an immediate win.

comment 6y ago · link · parent

You just taught me something! I've been using keyboard hotkeys to jump to source. On mac, I can hold down command (probably ctrl on linux) and it lights up like a link, shows the gist, and let's me click to go to source.

This is why I love these sorts of threads :)

comment 6y ago · link · parent

Not sure when you started, but I've been using tabnine in Pycharm for a few months and it is absolutely mindblowing. I've had long line autocompletes (no multi-line) and often time it suggests things I may not have thought of, "now that you mention it, I DO want that idiom". It's snappy enough for me and I am not exactly a patient individual.

comment 6y ago · link · parent

Communicating Sequential Processing. It's a multithreading/processing model which as the name suggests, leans more on communication, less on sharing memory.

It's not as efficient for some types of computing, like doing tons of operations on the same buffer, but it scales horizontally very nicely.

comment 6y ago · link · parent

Factorio has genuinely taught me lessons about software design.

- learn where in your stack it's worth optimizing vs just let it chug along inefficiently. - Unintuitively, often a simple, inefficient, unmaintainable automation slapped together is better than something well-written, especially in the domain of ML/data munging - feedback is essential. When I started, I didn't spend much time in the plots windows. This is your QA dash. Pushed me heavily into using integrated CI pipelines - don't be afraid of rewrites. But do have ample tests. - CSP rocks

It's even pushed me from a "pythonic" dynamic style to writing much more golang and python that feels a bit like go.

comment 6y ago · link · parent

> Those interfaces are usually intentionally bland and typically dated - meaning really simple, standardized graphical assets

This sounds kind of like "worse is better". it got me thinking about user interactions, both gui and physical objects, from the angle of "what if I had to make these as 3D assets?"

Screens suffer from limited real estate. But what could eg a CI pipeline dash look like in VR? You could have a whole virtual "control board" like a power plant.

comment 6y ago · link · parent

Actually spark gaps are less efficient than corona discharge. Usually ozone generator just apply high electric field to plates and run air/oxygen through it.

Now I'm curious what the energy efficiency of this process is.

I wonder if the rarefaction at that altitude makes it easier or more challenging.

comment 6y ago · link · parent

Not a mech eng but I've taken several eng classes and do a lot of DIY stuff. I've been designing a swing set/exercise rig for myself in Inventor and using FEA to sanity check my beam sizes for the given loads, just cause why not. Since I already had it parameterized, I wanted to see what load it would take with legs made out of 1.25x5.5 boards, just cause. The sim showed it would take several hundred pounds with almost no lateral deflection. Hmmm.

Anyone who's worked with decking boards knows they are pretty wobbly by themselves. I'm staring at the results, intuitively knowing they're dead wrong. So I model a plain column of one of these boards 16' long and 2000lbs, straight down. Zero side deflection.

Ah, I realized, it doesn't model buckling.

Map != territory.

It's always important to have multiple perspective of inference on a problem.

comment 6y ago · link · parent

I mean, like I said, there's really just venv and pip, and mentally I almost consider them the same tool (some say they ought to have been).

Node avoids the need for a "venv" because each project has its own "venv", which if you have a 700mb pytorch install, ick.

Rust/go don't deal with .so files to the extent python does, so cargo/godep have an easier time. Python is a C abstraction layer.

So like, I'm not sure how much less you need than "package manager" and "env manager".

comment 6y ago · link · parent

YES I need this in my life! Tried searching for such a thing but I guess had the wrong keywords.

comment 6y ago · link · parent

> On the other, I am really happy he didn't censor the stories (or himself!) and share both processed and raw experiences

This should be the default reaction when it comes to metaphysical phenomena like ESP, consciousness, and the like. If he had self-censored, that's less of another human's experience shared.

Sure, enough off-beat ideas label you as a kook, but I think if we entitled every human to one or two write-off beliefs, without labelling them as a kook, we'd discover more interesting things about the world. It's so easy to go, "that person believes in X, clearly they lack skepticism" and write off every other stance by them. Instead if we the listener accept these data points as "interesting but potentially erroneous" we can build better mental models than if we reject outright ideas contrary to our worldview.

comment 6y ago · link · parent

Psychedelic trips aren't a permanent cure for depression though. They have really good long-term effects on remission, but that still means nearly half won't remit.

> At a follow-up appointment after three months, 5 out of 12 patients were still in remission and 7 out of 12 showed a continued response

It often shines a light on the causes, but sometimes the causes are intractable/ongoing, or the only resolution is to learn to accept.

[1] https://tidsskriftet.no/en/2018/11/oversiktsartikkel/psyched...

comment 6y ago · link · parent

Moderate does trips aren't for everyone. The HN crew is full of novelty-seeking, curious, open-minded explorers, already drawn to this sort of experience. Your average, vanilla soccer mom who is largely okay with life but struggles with panic attacks because her brain isn't great at damping the amygdala-cortical loop, may not necessarily be ready/interested in a trip through psychedelic space.

comment 6y ago · link · parent

"Life is the never-ending psychedelic trip, maaaan"

On a serious note, this isn't what GP is referring to. Generally psychedelics in the work day are self-limiting. A microdose that is more of a mesodose makes for some interesting Zoom meetings. People learn the right dose to get a boost without excess distraction/warping. Fadiman's research [0] suggests the best dose is well below the threshold of "trip" effects. So there's no risk of never-ending daytrips, unless one desires that thing. So why limit access?

Aspects of American culture have a strong stigma against "fun", euphoria, and to an extent, any effect beyond "restoring normal". eg nootropics are popular in young, hip crowds like HN, but kinda sketch among many MDs, from "I don't think these are safe" to "why do you need that?" It's a "if it feels good, stop" sentiment that runs as an undercurrent through American history and you can see signs of it in Protestant work ethic, Prohibition (of alcohol and cannabis), and of course the war on drugs.

Keep in mind, LSD and MDMA were very hotly researched back in the day, but when subcultures started associating them with parties, that's when things started getting the kabash.

"But addiction bad" - this would be a fair argument if it weren't for the near lack of correlation between DEA schedule and addiction potential [1], as well as the rapid action to ban analog drugs without any consideration to addiction potential. This is the fate of most Shulgin compounds, many exhibiting the typical rapid tolerance of psychedelics.

That leaves the theraputic dose. These are typically administered in a guided setting, either in the clinical sense, or trip-sitters/sherpas, in the informal. This is the best mitigation against trips that leave lasting psychological harm (the term "bad trip" is very loaded, as it doesn't distinct "hard lesson trips" from "no this actually messed them up long term"). If the concern is really "harm trips", then the solution is logically harm-reduction, not prohibition.

Wew, that turned out longer than expected.

Edit: added more

[0] - https://www.thecut.com/2018/05/microdosing-guide-and-explain...

[1] pdf - http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.868...

comment 6y ago · link · parent

Click has one feature which is huge for me: parsing env variables following some pattern eg MYAPP_FOO.

For lazy import - You can do it with click, too, just put your imports in your entrypoint functions.

Click isn't minimalistic though. Nor is poetry or pyenv. Seems to be the main complaints about the article.

comment 6y ago · link · parent

I've been running stacks with venv and pip for years and it's been perfectly adequate. The main addon I use is virtualenvwrapper which basically just give sugar for mkvirtualenv and workon.

comment 6y ago · link · parent

> People will choose which servers to use based on the nature and quality of moderation;

That was literally my entire point. The broader issue is can entity X force entity Y to shut down a service, eg shutting down Stormfront. If one country allows them to stay up, they stay up. This is how the internet is supposed to work. The alternative I pointed out was deliberately dystopian for the point of satire, apparently that was lost.

comment 6y ago · link · parent

I notice this too. A ton of mental energy gets siphoned due to just corralling and confining my thought processes. I think at work office it's just easier to a) be mentally primed for work b) stay on task and not get distracted.

comment 6y ago · link · parent

Such a tough subject.

The problem is this tactic is consistently agaisnt many dissident publications, often on pro-democratic ones by autocratic countries. So what/where do you draw the line for "this speech is unacceptable so we won't propagate DNS entries for it", and who draws it? USA? ICANN? The host country? Each DNS gets to pick and choose?

Going in the other direction, if this speech is so bad, why don't ISP's just ban the IP? We could do like Youtube automated takedowns, only it's a packet blackhole.

At the expense of pushing the satire, what we really need is Deep Packet Free Speech Inspection (tm). All packets are inspected by a blockchain-powered AI in the cloud for acceptibility and lack of Nazi content. All servers which respond to HTTPS must escrow TLS keys to enable Freedom Audits.

If allowing an operator to have DNS records or an IP address "legitimizes" them, then we need some full-blown worldwide consortium which determines the (il)legitimacy of each and every domain. Who has votes in this consortium? What if China wants to put the kabash on some Uyghurs because of "Terrorism" but Netherlands want to keep it up. Sounds like a beaurocratic nightmare.

comment 6y ago · link · parent

This is a start. It can even be done steganographically, embedded in the picture in a non-visual way, which is robust against compression and "social media laundering" (term of art for uploading then downloading from social media).

The problem is people just don't care. See "cheap fakes" like slowing down a video of Pelosi and claiming she's drunk. People actually believe that garbage. No amount of fancy math can fix that.

1
727374
85