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

Tar is really great for its intended use case (archiving files to tape, with the constraints of late 1970s computing power), and kind of weird in basically all other uses. The block format wastes tons of space unless you compress it with run length encoding (which is why .tar.gz is so common). It's dirt simple but also kind of brittle. Its data model is not really a good fit for storing things that don't look like posix files, too much metadata in some ways while missing other kinds.

comment 4y ago · link · parent

I'm actually working on just such a thing! It's definitely a low-priority side project at this point, but I think the general technique has legs. It was born out of a desire for easier to use streaming container formats that can save arbitrary data streams.

I call it SITO and it's based on a stream of messagepack objects. If folks are interested in such a thing, I can post what I have currently of the spec, and I'd love to get some feedback on it.

I agree that TAR is problematic, compression is problematic, and there needs to be a mind towards ECC from the get-go.

I could really use some technical discussion to hammer out some of the design decisions that I'm iffy about, and also hone in on what is essential for the spec. For example, how to handle seek-indexing, and whether I should use named fields vs fixed schema, or allow both.

comment 4y ago · link · parent

Aluminum production is also tightly coupled to electricity production, so cheaper power could lead to cheaper aluminum in a positive feedback loop.

comment 4y ago · link · parent

Wouldn't exsolation just be albedo and/or radiative cooling?

comment 4y ago · link · parent

Young me would have LOVED that hydrodynamic building set.

Adult me would still love it, but I used to, too.

comment 4y ago · link · parent

They actually make pumps that run off of power tool batteries. No rigging required. E.g. RYOBI One+ 18V Hybrid Transfer Pump P750

They also make battery-to-12VDC adapters, and there are plenty of 12v barrel jack fountain pumps.

Don't even have to break out the soldering iron!

comment 4y ago · link · parent

I don't think it's intended to be homophobic. The album art is just really cringey.

https://en.m.wikipedia.org/wiki/Songs_of_Innocence_(U2_album...

comment 4y ago · link · parent

One of them is, yes. There are several, and basically all of them are some variant of "how resistant to giving into despair are you? (as a rat)". Forced swim, tail suspension, light/dark exploration activity. Kinda dark, but this research saves lives, and depression is notoriously hard to study objectively.

comment 4y ago · link · parent

Ignoring the fact that basically all drug development outside of the computational stuff is large amounts of trial and error, there is ample evidence that ADHD results from dysfunction of specific neural pathways, and stimulant medication benefits ADHD individuals (more than just "speed helps everyone focus").

> This literature is increasingly contributing to the notion that the pathophysiology of ADHD reflects abnormal interplay among large-scale brain circuits. Moreover, recent studies have begun to illuminate the mechanisms of action of pharmacological treatments.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3876939/

comment 4y ago · link · parent

Swagger/OpenApi is probably the closest thing to "true REST" with self-discoverable APIs. Without some sort of common schema of where/how to look for resources, there's no real automated discovery to be had without AGI.

Turns out, a lot of places don't even want self-discovery. We shut off our openapi.json in prod because a) security b) we don't want bots messing around c) Hyrum's law, as soon as you expose an API endpoint, folks try to build against it and grumble if it chances/goes away.

Wikipedia (along with any true wiki) is, and likely forever will be, the one true REST/HATEOAS application.

comment 4y ago · link · parent

> XML/markup does not map well to basic data types in current programming languages. These work with strings, ints, floats and arrays/dictionaries thereof. Not Nodes, Elements and attributes of unknown/variant data types

Exactly.

Arrays are pretty much the most primitive computer data structure (aside from primitives), and the contortions XML must go through to express them is remarkable. So much ceremony, and it can't do a simple list. XML has this core implicit assumption that everything ought to be an object, and I think this was the ultimate death knell for it. You can add complexity to JSON (e.g. JSON-LD) but you can't take the complexity out of XML.

comment 4y ago · link · parent

> You could go all WebDAV with status 422 for non-syntactic errors, but I am skeptical of its utility.

FastAPI uses 422 for "your data is structured wrong for this schema" and it's better than sliced bread.

I think the worst part about the 4xx/5xx distinction is that it doesn't really tell you whether the request is failing in a transient or permanent way (or can't tell). It would have been nice to have more leading digits (6xx, 7xx) and make some distinctions:

- the client did something wrong but might be able to succeed later if state changes (403, 404, 429)

- the client did something wrong and the result is unlikely to change without changing the request (405, 422)

Same with the 5xxs, split into "server" (endpoint) failed, vs middleware (load balancers, etc) failed or is overloaded.

comment 4y ago · link · parent

Hard drive access LED, optical disk servo, and the piezoelectric discharge due to thermal rise/fall of the GPU.

I'm only half joking.

comment 4y ago · link · parent

> I worry that some of the toxins produced with modern technologies may be worse than what we already have.

Well worry not, as coal is known to be the greatest contributor of radioactive elements and mercury in our environment at the moment.

comment 4y ago · link · parent

Exactly this. Why should anyone be able to potentially see any of my personal info? (I doubt whatever parallax effect or whatnot magic tech is perfect - it's gonna eventually leak).

I'm already glued to my phone at the airport because that's where my flight info is, and it's not a static location, it's always with me.

Who is this for? The subset of people without smartphones but comfortable with Minority Report-esque targeted display boards?

comment 4y ago · link · parent

> the explicit reason was that people were using json comments to encode all the metadata and crap from XML like namespaces to make fully reversible JSON/XML converters

Oh is that why. I had heard that comments were taken out because people were using it for "parser directives" or something vague. This makes a lot more sense (although I'm sure there were all manners of hacks in the comments). Definitely a bullet dodged there.

comment 4y ago · link · parent

> I suspect the lack of sum types in many static languages are partially responsible for the popularity of dynamic ones.

I can totally see this. I started writing a small cli tool in Go, and despite knowing way less Rust, I switched to it and was able to make a lot better progress at first due to pattern matching and result types. It was just so much easier/more ergonomic to write a simple parser.

The Go code was a mishmash of ugly structs and tons of null checking and special casing.

comment 4y ago · link · parent

I don't even know how well American English generalizes within itself. I've found the internet diaspora has their own language patterns which often differ quite a bit from "normies". You also have a tremendous amount of code-switching based on the platform, by the same individuals. I would actually suspect that groups from the same platform but different native language might cluster more closely, than same-native-language but culturally/socioeconomically/regionally different.

comment 4y ago · link · parent

You definitely need more labels when categorizing sentiment than just emotion/valence. Possibly even degrees/confidence by the annotator. Heck, have several annotators label it, and derive a "Controversial" feature based on the spread of the ratings.

Only tangentially related, is your username a pun on "Nostradamus", "Nostril", and "Nasal Demons"? If so, that is very witty!

http://www.catb.org/jargon/html/N/nasal-demons.html

comment 4y ago · link · parent

I dunno if the intent of this dataset is to produce bots that can make people laugh. I think (intentional) comedy is the ultimate Turing test. I say intentional because there are things like https://inspirobot.me/ which are essentially glorified Markov models and it's downright hilarious the stuff it comes up with, but I think that's primarily due to absurdist humor and subversion of expectation (and unintentional ironic pairing with the picture). That's very different than communicating something, intended to be a joke, having it land, having it be funny, and deliberately so, not just because it was silly or non-sequitur.

I think it's still valuable to be able to detect when something is joke/satire/sarcasm/irony/slang, especially in the context of content moderation, because quite often it totally flips the sentiment valence. A perfect example is "I'm literally dying" - "literally" meaning in the exact or truest sense, "dying" meaning sloughing off the mortal coil (very bad)- vs "literally" meaning "figuratively, but in an extreme sense" and "dying" from laughter (very good).

comment 4y ago · link · parent

Seriously. Half the time, I feel like the command I'm giving is just being interpreted as "do the needful", and she just figures it out, based mostly on tone, context, and memory.

comment 4y ago · link · parent

> Hi dying, I'm dad! – mislabeled as NEUTRAL, likely because labelers don’t understand dad jokes

In their defense, what could be more True Neutral alignment than dad jokes? Nothing to gain but the quiet enjoyment of making the room groan and roll their eyes.

Really though, the issue here is context, but also the complexity of human communication. The sensitivity and tone highly depends on the situation. Clearly the preceding moment is someone stating "I'm dying". But that itself is contextual. Are they literally facing mortality, merely inconvenienced and being hyperbolic, or laughing? If the former, is "Hi Dying, I'm Dad" being glib, to soften the blow of a dire confession, or being highly insensitive and poking fun in a serious moment? Is it in the context of a longer joke, which subverts the meanings yet again?

A lot of these comments are worse than useless without context. Reddit really likes improv-banter style humor in comment chains. One comment builds on another builds on another, all referencing in-jokes, and usually slathered in sarcasm.

Honestly Reddit comments are probably one of the worst sources to try to build a sentiment model from, from an engineering perspective.

comment 4y ago · link · parent

> Why? Because it was designed by… PMs working at a single mega corp: Microsoft.

Wow. When you put it that way...yeah, this explains absolutely everything about teams.

It bakes in so many assumptions about meeting flow as well. It's fine for ppt presentations but absolutely garbage for standups.

comment 4y ago · link · parent

Yes, although I'm not sure if the hidden streams use bandwidth. Also, to the best of my knowledge, Teams handles individual streams usually, while meet usually muxes them to save bandwidth. Zoom is easily the most efficient of the big four and I think uses a whole bunch of compression tricks.

comment 4y ago · link · parent

Here I am clicking color after color like a dunce, wondering when I get to see the ranking. After 20-30 or so clicks I finally notice the ultra-tiny-low-contrast "Ranks" text.

In my defense I'm outside with a ton of glare...

comment 4y ago · link · parent

Thanks for standing up to that unpleasantness. I know you aren't really supposed to feed into that, but it's refreshing to see pushback.

comment 4y ago · link · parent

Nothing that isn't already happening. There is magnetite in many foods already. Often as inexpensive iron fortification.

Also, your cells are more robust to external reactive oxygen than bacteria.

The catalysis occurs when hydrogen peroxide is "activated" by the magnetite to produce singlet oxygen, which then goes on to damage biofilms and bacterial walls. Your epithelial cells are basically expendable.

Internal ROS isn't good, but that isn't the case here.

comment 4y ago · link · parent

I got one of those little spritzers, like for putting perfume or febreeze in, filled it with 3% h2o2, and spritz my electric brush every day after I rinse it, cause it was getting a little grody in the crevices. Works great, dirt cheap.

comment 4y ago · link · parent

This is exactly what a lot of the current round of optimization work focuses on. Things like optimistic dispatch on hot loops that fall back to fully dynamic on a miss.

comment 4y ago · link · parent

The year is 2199. The trolly residents have figured out how to tap the trolly's motion for near-limitless power. Despite its small size, the trolly has developed a stable population of 24 (give or take over the years) and has dubbed itself Trolland. Their primary exports are electricity via pantograph back to the mainland, information services, and entertainment syndication, as the trolley offers a 24/7/365 reality tv experience akin to the Truman show.

The Trolland Show draws millions of views. The residents initially had relatively normal interaction with friends and family via Zoom calls, but as the first generations died off, a new social order evolved. The community is very tight-kit and intimate (in every sense of the word), while having parasocial relations with outsiders, whom they call Stationaries. A Cult of the Trolley which worships the eternal engine has sprung up, periodically giving offerings to the trolley and its denizens. Ratings skyrocketed one day in 2077 as five cultists, in an odd sense of irony, tied themselves to the track as a sacrifice to the great Prime Mover.

1
293031
85