Better HN
topnewbestaskshowjobs
Log inSign up

kortex

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

Submissions

comment 5y ago · link · parent

Task failed successfully. I would love for this to come to pass. I don't think that was their intent.

Unfortunately comments are less indelible (more delible?) than downvotes. As evidenced by the shadowban in OP.

comment 5y ago · link · parent

Ha, I have the Malim!

Yeah, ikea doesn't do the 1:1 (or at least I haven't seen it) but they tend to use unmistakable parts. Like each of the metric cylinder head machine screws are different enough in aspect ratio it's easy (for me) to tell them apart. But I'm good at flatpack assembly (likely due to lego obsession growing up). I can see how that might be confusing for some.

Contrast that with the Anderson door I build last month. Didn't have any scale indication, really small diagrams, lots of nearly interchangeable fasteners, and way too wordy.

comment 5y ago · link · parent

Upstate NY, like Albany ish. We have bratwurst here. Actually being at the nexus of historic Dutch, German, Polish, and Italian immigrant populations, we have quite the selection of tasty cured pork products.

Sindoni Italian sausage is world-class. Aldi has a good selection of brats. And my family is from Western NY so we get Salen's hotdogs occasionally. I forget the name but there's a really good kielbasa at the grocery too.

comment 5y ago · link · parent

I meant sausages, but I guess both, it's a double entendre :p Grilling and also we would involve his young son who is a big Lego fanatic.

He doesn't get to sample the beer, of course.

comment 5y ago · link · parent

I bemoan having gone from being a bucket person, to shelf person, to not even playing with Legos anymore person. Adulthood kinda has a way of doing that.

My friend and I wanted to start a Beer, Brats, and Bricks night, but right when that was gonna materialize, the plague struct. I should hit them back up. I still have buckets on buckets.

comment 5y ago · link · parent

Lego instructions are the unparalleled 5-star tier on my "ranking of assembly instructions." No words (at least when I grew up, I haven't made a set in a long time), complicated assemblies, yet it's totally clear every step of the way. Glossy, high-res, colorful diagrams. Modular sub-assemblies. Every step is so clear.

Ikea gets a 4-star rating, sometimes 4.5.

Words? Immediately dock 1 star.

If using a manifest ("part A, B, E used in this step"), which is necessary because not everything is as distinct as Lego bricks, and you don't provide a scale printout so I can sort the M6x10's from M6x12's, dock a point. Another point if you don't label the diagram with callouts and expect me to visually discern two similar parts by their 10pixel wide render.

Using fasteners of very similar geometry (see above) for no discernible reason, dock a point.

Low print quality of diagram with the toner chipping off? Insta fail.

comment 5y ago · link · parent

So if I'm understanding this particular tussle correctly, carry flags are problematic for optimization because they create implicit mutable shared global state, which isn't necessarily reflected in the machine code.

Risc-v basically says "lets make the implicit, explicit" and you have to essentially use registers to store the carry information when operating on bigints. Which for the current impl means chaining more instructions.

Is that correct?

That sounds like what the FP crowd is always talking about - eschewing shared state so it's easier to reason about, optimize, parallelize, etc.

comment 5y ago · link · parent

Well "no one" is a bit absolute. But colloquially, I know what you mean. Relative to Docker, it's way less popular. But it has 5.2k stars on https://github.com/NixOS/nix .

But yeah. The DX "needs work". which is a nice way of saying, I find it downright painful to use.

comment 5y ago · link · parent

As TFA itself answers, "no". But I can give a different reason: nix is too much of a barrier of entry, relative to Docker.

Docker might not be simple; there's a lot of moving parts to manage, some hidden gotchas, and networks are a mess. But it's comparatively easy, and once you bake an image, it's pretty simple. Dockerfiles are basically just sh. Package managers are the usual suspects. Images are easy to distribute. It's very familiar.

Nix is not easy. It's a new syntax to learn, it's a new way of building, it's an entirely new way of thinking about the problem. But in the end, it does simplify packaging in the Rich Hickey sense of the easy/simple dichotomy. No braiding of packages and shared libs. But using Nix is not so simple. There's all kinds of bindings and bodges and bespoke shims to make it all work.

History tends to show that easy+non-simple things beat out simple+non-easy things (devs are lazy). Easy-kinda-simple vs non-easy-kinda-simple-but-long-term-gains? No contest in my opinion.

I think Nix is a beautiful idea but it's an uphill battle.

comment 5y ago · link · parent

Thoth, /θoƱθ/, rhymes with oath. Not sure if /oƱ/ renders here, it's the near-close back rounded vowel or "horseshoe".

Normally yes, /θ/, the dental fricative (commonly "th" in English) is uncommon as far as language sounds goes, and particularly tricky to voice if it's not in phonemic inventory.

But in this case, /toet/ or /toƱt/, "tote", like the container, rhymes with goat, is also an acceptable pronunciation.

comment 5y ago · link · parent

Dunno, but those are adorable! I think it is less of an issue because it is recessed.

comment 5y ago · link · parent

That was delightful! I never knew there was so much variety in Occlupanids. Someone should extend that system to plugs and sockets.

comment 5y ago · link · parent

Oh good, they depict the NEMA family in the correct orientation. >95% of installations depict the "face orientation", which is partially responsible for USA outlet's bad rap.

Cons:

- plugs are more likely to fall out or come loose

- flat things can fall on the blades

Pros:

- it looks like a face! D=

Orienting the ground pin up helps keep the plug secured (think about the moment of rotation of the plug) and if it does come loose, the ground pin prevents something from falling and bridging the hot pins.

NEMA-5-15 gets a bad rap for being "loose" for a few reasons:

- the incorrect orientation (see above)

- the abysmal 1-15 outlet (no ground, even less retention, especially with wall warts)

- travelers staying in hotels with wallowed out receptacles that see daily use and need replacing. It doesn't help that they use the cheap ones with low spring force to begin with

Those infernal bedside lamp outlets are the trifecta of terrible: every hotel seems to have them, they are all cheap 1-15s that were loose when new and only deteriorated over time.

Properly installed NEMA-5-15R outlets of middling-to-good-quality never fall out on their own and feel very secure, even years later.

There's one feature I wish the NEMA non-locking series had: partially insulated contacts. Even just a few mm would help.

comment 5y ago · link · parent

Since we are talking container formats, I would recommend something in the IFF/RIFF family (which includes "true" Four-byte-type IFFs like RIFF, WAV, WEBP, and variants like PNG, MOV, MP4). They are about as simple as you can get as a container format. It has its limitations but it's basically the simplest "boxed" format you can implement - Type-Length-Value.

I would absolutely recommend basing on some sort of container format (vs "raw" data structures), it makes it really easy to add functionality without breaking backwards compatibility.

Basically all container formats follow this idea of "collection of boxes" pattern. The IFF series are box-length based. Ogg uses capture patterns but no explicit box size (I think). The former means you have to know the box size ahead of time (or seek back and write it in), the latter is better for streaming, but harder to seek (without indexes).

comment 5y ago · link · parent

So GP's question was basically "why do we need color profile?" and the short answer is "to know what images should look like".

In order to know what an image should look like, a "perfect" or "complete" representation, at minimum the real colors must be injective to the color space (every value has at most 1 color). You could argue that the color space needn't be injective (values that have no color), which is probably fine if your image is static and you never manipulate it. As soon as you manipulate values of your image in your color space, you run the risk of falling outside the color domain.

But really to unpack this whole thread, my essential point is that color spaces are about engineering tradeoffs. sRGB can't reproduce many colors. CIE 1931 represents all color but has imaginary colors.

Ergo, I contend there is no "complete" color space.

comment 5y ago · link · parent

Yeah, my technique was equivalent to filter mode 0 (the only mode), filter type 1 (sub pixel to the left). literally array.ravel().diff(prepend=0) in numpy.

I think part of the reason png is so slow is that it empirically tests to find the best one.

> Compression is further improved by choosing filter types adaptively on a line-by-line basis.

I'd be curious to unpack a png and see the statistics of how much each kind is used.

comment 5y ago · link · parent

I'm in the computer vision space and have looked into the effect of color spaces and encodings.

People had basically exactly the epiphany you described. For example, there are several color models which try to be more lighting-invariant or (racially) color blind (this is a very similar problem, humans are all more or less "orange" hue-wise due to melanin's spectrum). TSL is one such space, there are others.

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

comment 5y ago · link · parent

CIE XYZ has imaginary colors, though.

I guess when I said "no color space is complete" I meant "no color space is faithfully bijective to nominative human visual sensory response." Because such a thing is basically impossible (or insanely nonlinear and unwieldy).

Also these color systems all or almost all assume a "norminal" (to steal a word from Everyday Astronaut, normal+nominal) average human vision system. If your system isn't norminal, average, human, or even visual (visible light), then your color space is an incomplete map of the territory.

So for any given array of pixel channel, there is either an implicit assumption or explicit color space of what those values "mean".

comment 5y ago · link · parent

Super cool work! I was also mucking around with codecs last week. I got some surprisingly good results from delta encoding each channel separately and then zstandard compression. Dirt simple, crazy fast.

One trap to be aware of when profiling image codecs is not knowing the provenance of the test images. Many images will have gone through one or more quantization steps. This can lead to impressive compression ratios, but if you compare with the results on raw, unquantized imagery, it's less of a slam dunk.

That said, PNG is a really low bar to clear, both in terms of speed and compression ratio. Even really image-naive compression algorithms tend to be within a factor of 2 in resulting compressed size. You tend to get diminishing returns. 10% vs 20% is twice as efficient, but starting with a 10MB file, 1 vs 2 MB file sizes isn't a huge delta. (yes I know there are domains where this matters, don't @ me).

comment 5y ago · link · parent

Have you seen codecs? I've recently been exploring this space and there is not one corner of this universe that isn't a lurking Lovecraftian horror.

Un-compressed formats like BMP are sane I guess but most of those are wrapped in crufty, sparsely documented container formats. Ogg is decent but even it takes quite the deep dive to even begin wrangling it.

comment 5y ago · link · parent

No single color space is complete. Each has trade-offs. I would actually say that color profiles help get closer to ground truth, that is, rendering intent.

comment 5y ago · link · parent

Cocaine also induces microischemia - basically constricts your capillaries and starves the neurons/glia of oxygen. This happens slowly over time and is cumulative.

As mentioned, coke is high on the abuse potential scale due to its rapid onset and withdrawal, short loop between behavior and reward.

https://www.pbs.org/newshour/science/brains-blood-cocaine

comment 5y ago · link · parent

That's not the right metric though. Cities and suburbs are not comparable in terms of overall experience. The extra services you cite are one of the reasons why.

For one, suburbs are pretty economically difficult for low-earning households. Low earners are more likely to live in cities, therefore cities tend to have more social services.

You need to do an apples-to-apples comparison, which unfortunately is not easy.

comment 5y ago · link · parent

I rarely look at my speedometer. I set my speed almost entirely by feel, road conditions, and other cars.

Which is kind of the point of the human-scale roads movement. If you design roads that feel fast, people will drive fast.

comment 5y ago · link · parent

I don't understand the appeal of domes compared to cylinders and other rounded extrusions. You still have the complexity of round interfaces but at least the outer surface has zero Gaussian curvature (you can wrap it with a sheet). Negative curvature (hyperboloids) can "cheat" and use a net of straight lines, so that also has nice properties. But, positive curvature surfaces (spherica and geodesic domes) require compound curvature everywhere.

See also the complaints elsewhere about space utilization.

I guess they look cool, that is their main feature. They also seem good for tensile structures (inflated domes) and massive self-supporting spaces. But you can also get most of those properties with extrusions, which are way simpler to fabricate.

comment 5y ago · link · parent

Also, we already have a cheap prefab solution which is optimized for house construction: modular homes aka trailers. They don't have the best reputation.

Home built with portable modular 8'x40' boxes made of wood: trashy.

Home built with portable modular 8'x40' boxes made of corrugated steel: trendy.

comment 5y ago · link · parent

Winner. This is one way to cut through the Gordion knot of this endless debate. I'll be calling them octopuppers henceforth.

comment 5y ago · link · parent

I realize they are being cheeky but the ironic thing is "ignorance of N languages" is one of the primary drivers of linguistic cross-pollenation and drift. Taking loanwords, shoehorning them into your phonology, writing, and grammar is just how these things work.

comment 5y ago · link · parent

I think the main issue with the article is it has big wow-thanks-im-cured energy. Just do some of that low-activation exercise and cook for yourself, and whammo cheat code!

It comes across as patronizing for those who know what things can or should give a mood boost, but lack the activation energy, or don't get much benefit from the outcome.

comment 5y ago · link · parent

Glad someone else had the guts to say it. That was kinda my first thought - "oh she's depressed, but ranks various kinds of exercise as 'low activation' energy? That's quaint. Oh she was able to bootstrap herself out of her funk after a few months, without therapy or antidepressants? Extra quaint."

I absolutely commiserate with your frustration. I've struggled with ADHD and bipolar my entire life. I've been on all manner of treatments and seeing therapists/coaches on a regular cadence, and while I'm doing way better than my darkest times, I balk when people manage to just "be motivated" and do adult things reliably.

I do value the data she has provided, but it definitely needs to be tuned to the person and their current condition.

The author's experience of sudden onset, of sometimes not being able to get out of bed some days, but also able to hit the weights as a "low activation cheatcode" sounds much more akin to cyclothymia than general depression.

1
424344
85