Better HN
topnewbestaskshowjobs
Log inSign up

kortex

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

Submissions

comment 3y ago · link · parent

> Produce value for others, get paid

So if a human is unable to produce value, they don't get (food/education/heathcare/<resource>)? That seems to be the implication. We in developed countries already have some amount of "value risk hedging" (I'm loathe to say "socialism" here), we just disagree endlessly how much is the optimal amount. But we've determined that wards of the state, universal education, and some amount of food support for the poor is the absolute bare minimum for a developed society.

> People, NOT machines, are the ultimate judgers of what is valuable and the ultimate producers of value.

Uhhh we already have software which sifts through resumes to allow/reject candidates, before it gets to any kind of human judge, so we are already gating value assessments.

comment 3y ago · link · parent

Context for the unaware: https://en.m.wikipedia.org/wiki/Manna_(novel)

comment 3y ago · link · parent

No, but I imagine it's a bit easier to catch an unwanted proliferation of files vs unwanted proliferation of registry keys.

comment 3y ago · link · parent

> I think if someone went off and redesigned a global KV store for an OS they'd probably require authentication tokens for mutations, so your app would only be able to communicate with the subtrees of the store that it has permissions to (but also, kind of like a file system?)

If I had to design an OS from scratch, this is basically what I would do. I'd provide an API for a prefix-tree based KV store with specific data types (eg bytes, utf-8 string, bool, int, float, datetime...) with some mechanism for namespaces and path access controls or the like. Processes would always have their own space to use ad-lib, and would have controlled access to system-wide or cross-process spaces.

This sort of implementation lets you optimize access patterns so that basically each process gets its own KV/db (if it wishes) which should be roughly as performant as rolling its own kv running on the filesystem. Vs all processes all competing for the same data structure, all the time.

comment 3y ago · link · parent

No, because the filesystem is one layer of abstraction lower than the registry. There's nothing with less bottleneck to the filesystem besides raw device access. The registry runs on top of the filesystem. If you wish to use the registry for filesystem-like purposes (eg storing startup config specific to the app or user state), just use filesystem. If you wish to use it like a database for system-wide information, that's a better use-case, but the registry isn't quite a proper database.

Windows programs proliferate $HOME junk, too. And that's an issue in its own right, which should be addressed by platform-specific application dirs (e.g. the platformdirs library for python).

comment 3y ago · link · parent

Those sound like exactly the use cases the registry should be used for. However in practice all kinds of state ends up in there that does not need to be accessed by anything other than the game process.

comment 3y ago · link · parent

It feels like the Windows Registry is one of those well-intentioned ideas that ended up being a tremendous mess in actual implementation. "Let's use a central database to store things that the OS, drivers, and UI need to access" somehow became "half assed KV dumping ground for every process and their dog to litter with whatever while acting as a singular bottleneck".

See also: https://news.ycombinator.com/item?id=32275078

comment 3y ago · link · parent

The down would be separated by vacuum, which is even better of an insulator than air pockets. It's just that vacuum flasks are harder to manufacturer than bags of fluff.

On the moon or in space you could get by with layers of reflective foil with a gap.

comment 3y ago · link · parent

It's much easier to install a single static binary than to correctly set up and configure ssh in a safe way. If you need "one and done" file transfers without worrying about open port 22, key exchange, etc, this (or tools like it) is great.

comment 3y ago · link · parent

Yep. Also the main loop should cycle as fast as possible, and only execute the control loop as needed. Or really use a timer interrupt.

comment 3y ago · link · parent

> Deleted { deleted_at: DateTime<Utc> },

What does this look like under the hood (in memory)? Does the compiler automatically generate a struct/union? Does the value take up the same width regardless of state?

comment 3y ago · link · parent

Ah yes, the chaos monkey approach to plumbing. I buy it. The best time to have a leak is during or immediately after doing plumbing work. The worst time is when you are asleep, out of the house, or on vacation.

Isn't it code nowadays to have water hammer arrestors that trap air and create a cushion?

comment 3y ago · link · parent

The problem is "config" means different things to different people. Some people see config as "the collection of runtime parameters" basically a bank of switches: Pyproject.toml is config. Others see any form of declarative structured data ingested by a runtime as config: docker-compose.yml is config.

And of course to minimize impedance mismatch, the structure should be similar to the domain.

So yes I want a "config file" to handle at least a dozen levels of nesting without getting obnoxious.

comment 3y ago · link · parent

XML is overwrought, YAML is a foot-bazooka, JSON lacks comments, TOML gets unwieldy with more than a few levels of nesting, EDN is neat but kind of obscure...

Maybe we need a new configuration format...

ducks

Actually I think something in the space of JSON5, Jsonnet, GCL, HCL, CUE, etc, will be the one to win out in the long run. JSON-but-fix-most-of-the-warts.

Then there's things which almost sit between fully declarative and turing-complete. Maybe Dhall, if it picks up a few more language implementations. Or CEL.

https://github.com/google/cel-spec

comment 3y ago · link · parent

I've gotten bit by trailing commas enough times (both manual edits and writing generators) that I absolutely expect any reasonable syntax to tolerate them. It's just so much easier and more consistent to tolerate them.

comment 3y ago · link · parent

That definitely sounds like a loose connection, not an ECU problem. Usually it's a bad clamp on the battery terminal. Often it's the ground clamp in particular.

The easiest diagnosis is to rotate the cables on the terminal several times to rub off oxide build up, then leave them in an orientation so that the natural tension of the cable forces the clamp into good contact.

A "dead" (low voltage) battery will still cause some indicators/lights to come on when you crank, while a bad connection usually acts like zero volts.

comment 3y ago · link · parent

The "we've been automating since the industrial revolution and jobs have adapted" argument doesn't really account for scale. If I skin my knee (~1% of my skin) once a month for five years, that's hardly an issue. I might even form callouses. If I lose 60% of my skin to injury at once, that's a far bigger situation.

comment 3y ago · link · parent

As a really rough rule of thumb, in both Japanese and South Korean cultures, it would be fairly improper to address or refer to a "stranger" or any non-close-friend [1] by their given name. A jersey nameplate would absolutely constitute a stranger/formal context, so family name would be expected here. Even if you did not know that pretty universally, jersey nameplates/tags (and nameplates writ large) with only one name will be the family name.

1 - "stranger/non-close-friend" here means someone who you aren't already a) quite familiar with and b) in the age bracket / position in hierarchy c) in an informal friendly context. Any teacher, boss, employee, acquaintance, professional, etc, it'll be family name. Classmates, close friends, family members will usually use given name (in informal context - code switching).

As an amusing aside, this is a bit of an in-joke in the anime Mushoku Tensei (Jobless Reincarnation), where the main character is often using surnames and the formal or even Keigo register with his rough-and-tumble party mates and they are like "yo why are you so formal?".

But also, Park and Moon are common Korean family names. Because like the near-majority of South Koreans have the Kim surname, you'll often see initials like "H S KIM"

comment 3y ago · link · parent

> so instead they pick two names and combine them, or one name and rearrange the letters. So you get folks named Danold, Stevid and so on

This is also a great tip for generating names in fantasy or sci-fi settings.

comment 3y ago · link · parent

I think there is a huge difference between mapping over to easier phonetics/phonotactics or common names in the native language, and "hey shithead". The attitude isn't great, but Alok->Alex checks out.

In Italy I'd be Michele, in Japan, I'd be Maikeru/マイケル, in Ukraine I'd probably be Mykhaylo/Михайло.

comment 3y ago · link · parent

Tldr yes. Not a Hindustani speaker but general linguistics nerd. No idea if HN can handle the IPA modifiers

- त - /t̪ə/ - voiceless dental plosive

- थ - /t̪ʰə/ - aspirated voiceless dental plosive

- ट - /ʈə/ - Voiceless retroflex plosive

- ठ - /ʈʰə/ - aspirated Voiceless retroflex plosive

t̪ - t with square bracket below is the dental plosive

ʰ - superscript h is the aspirations indicator

So there are three issues for English speakers:

A minor issue: English uses apical plosive /t/ for "t" , while Hindi and related use dental plosive /t̪/. This is a small difference in tongue placement. But these sound similar enough. The bigger issue is English lacks a retroflex plosive (tongue curls), and aspiration is non-phonemic (does not carry a meaningful distinction). English speakers typically aspirate leading plosives and don't aspirate in the middle of words. It's not that native English speakers "can't" hear a difference, it's just way more subtle and likely to be missed unless specifically listening for it.

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

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

comment 3y ago · link · parent

Exactly this. The "law of supply and demand" is like the ideal gas law: it is a useful model, but it has certain key assumptions. And just as the ideal gas law breaks down in extreme conditions, supply and demand does not hold without certain invariants.

The farther actors are from perfect information, the more asymmetry in the system there is, the slower the system is to react, the more the relationship between supply and demand breaks down.

comment 3y ago · link · parent

XML and Zip don't really do incremental updates, meaning the whole application file has to be written on save, meaning corruption can occur due to hiccups mid-write. Sqlite as a disk format and the right application implementation means you can't end up in a corrupted state.

I think you can achieve the same thing with xml/zip and some rename shenanigans, but sqlite lets you get that in a single file on disk.

Also if you are using sqlite as the memory model, why not use it as the disk/transport format? It's basically free at that point.

The file size issue can be dealt with VACUUM (I believe, haven't personally dealt with sqlite-as-file-format).

comment 3y ago · link · parent

There is nonzero overhead for doing so: optimizing for duplicate strings invariably adds cost to handling unique strings.

This sounds like something you could do at the schema and application level.

comment 3y ago · link · parent

Not GP, but I believe the "XML is dead" sentiment stems from the observation that very few greenfield applications are deliberately choosing xml. Sure you have legacy giants like (X)HTML, SVG, office formats, etc, but you'd be hard-pressed to convince developers (especially a younger crowd) to select it as a data format. It's seen as warty, cumbersome, unwieldy, verbose.

comment 3y ago · link · parent

Have you ever heard about the MessagEase keyboard? It's a pretty radical departure from the usual touch qwerty. Once you get the muscle memory down, you can even disable the letters completely. Right now I'm typing on a featureless black 3x3 grid (save for a purple dot in the center). It's a great conversation starter too, cause folks see me typing and are universally like "wtf how are you typing".

I never thought of it, but now that you mention it, yeah my eyes are on the text, not on the typing.

I switched to messagease in the first place because I make far less mistakes and it's faster to fix a one-letter goof than redo a whole word with swype (sometimes several times, also the gestures fail on unusual or jargon words).

https://www.exideas.com/ME/index.php

comment 3y ago · link · parent

Why not a shear pin? There's no need to make the (more expensive) gears the shear point when you can use a pennies-each shear pin (or shaft, or similar).

comment 3y ago · link · parent

I owned a treadmill (second-hand, details long forgotten, sorry) which had two long steel rails (running the length of the machine) for the main structure. The brackets which connected the rails on the front side were steel, but the ones on the back of the machine were inexplicably plastic. There were major load paths (cyclical loading from running) going straight through these brackets to the feet. Between the wear and plastic embrittlement, these parts were the first to fail, and the entire rest of the machine was in decent condition (easily years of life left).

There was nothing particularly complex about that part, they could have easily used steel brackets. I can't help but feel like it was designed for a specific lifespan.

comment 3y ago · link · parent

I wanna know how they fare when the vehicle has to do 10 races on the same power train. I bet it would be a lot closer.

comment 3y ago · link · parent

Also relevant: https://www.sciencealert.com/new-blood-test-for-chronic-fati...

Let's hope this can be replicated and put into practice.

1
101112
85