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

#927 is a fun quip, but as an actual critique of engineering practices, I'd actually much rather see folks attempt new standards and innovate when they feel like they have an idea which could work better, rather than be discouraged by the perennial "great now we have N+1 standards".

Every standard nowadays aside from the very first one, are an N+1. Heck, even IFF and ASN.1, the absolute old timers of file/serialization formats, are improvements on "just mmap to disk" application formats.

comment 4y ago · link · parent

Absolutely, I completely agree with every point in this comment. Round would have been a much better and more neutral term for "one unit of agile work". "Sprint" is tantamount to "bursty and not sustainable".

Same with "ceremonies", that one bugs me too, though not as much.

I still don't know WTF a scrum is however (not even sure that's an agile-specific term).

> The fundamental unit of scrum is a small team of people, consisting of a product owner, a scrum master, and developers. The team is self-managing, cross-functional and focuses on one objective at a time: the product goal. [1]

Like, what? I feel like I know less after reading that. That just sounds like...a development team with a team lead and a manager.

1 - https://en.m.wikipedia.org/wiki/Scrum_(software_development)

comment 4y ago · link · parent

Oh yeah, I'd totally rather have blind, chaotic, messy nature inject me, vs a scientifically engineered and highly tested product with a scope even smaller than conventional vaccines.

Blind Mother Nature would never hurt me! (hides list of the most potently toxic compounds on the planet under a carpet... tetrodotoxin, botulinum, ricin...)

comment 4y ago · link · parent

> If you find yourself in 2022 or later designing a file format intended for bulk data and you use any of the words "stream", "serialization",

Nit: I think I know what you are getting at, with blocks streams vs byte streams, but it's kinda hard to design a file format without serialization or byte streams. Not sure how that would work.

> I think it's high time that the industry standardised on a generic "container" format to replace legacy archive file formats.

I have a side project chipping away at just such a thing. It's quite daunting, so if this at all interests anyone, please comment/reach out. I'd love more of an excuse to work on this.

SITO in a nutshell:

- It's all based on msgpack, which does most of the heavy lift for serialization and datatype encoding

- a sito stream comprises blocks, each block is a self-contained, independently decodeable msgpack array object.

- each block an array of the form (type: smallint, header: optional(hashmap), data: any)

- the type is either a single-byte int, or a packed int indicating a substream id

- the sito primary stream comprises multiple independent substreams

- there's no raw plaintext fields, but there is a plain unicode block which can be used to embed whatever plaintext metadata

- substreams can each have whatever compression/codec they want

- since each stream is a block stream, it's trivial to de/interleave

- for data integrity, I want to do something like block-level CRC/FEC along with per-stream merkle trees but I haven't worked out the details yet

- there are periodic "sync-blocks" which have a magic 8-byte sequence for starting a file, but also throughout the stream, to facilitate re-alignment of read heads

- I've also been toying with the idea of using sqlite as stream indexes and as a general glue to keep track of what's going on (right now, you can arbitrarily start a new substream at any point in the primary stream, so it's hard to tell at the start of a file what's in it, sqlite pre-allocates pages so write heads can go back and update a prior index block)

- nd-arrays are a particularly interesting datatype so there's an emphasis on ergonomics around handling them

I plan on doing a simple PoC at some point soon showcasing SITAR, the sito archive format, with a python tarfile-like interface.

comment 4y ago · link · parent

This is the best criticism of agile, and jira in particular. A lot of software work just doesn't box well. I've always struggled with "when is a ticket actually done?" Merge to main? Well we don't go straight to prod, we have a single staging env, so it usually cooks in staging for a few days before going to prod, and often testing has to be in staging due to the nature of our product. But tickets are usually "done" after merge. Then you gotta remember to QA.

Honestly we need about 20% more screen real estate and 1/2 more columns for staging/prod qa.

comment 4y ago · link · parent

I thought "sprint" was dumb at first, for exactly this reason, it's not a sprint if it's week after week. But over time it's just become jargonized, a term of art for me. It's just a unit of organization.

comment 4y ago · link · parent

There are absolutely crappy teams, but I think what is more common is incompatible teams, or managers incompatible with their ICs.

Many folks may be unproductive with one management style yet thrive in another.

comment 4y ago · link · parent

You do realize every single virus, many bacteria, and some other germs, are literally injecting molecular/genetic payloads into your body to hijack your body's protein machinery, and your immune system updates itself in response?

mRNA vaccines just cut out the middle man^w bug.

comment 4y ago · link · parent

Heck, I've seen some projects involving trying to diy short range digital comms accidentally turn into a jammer which will mess with anything in the 2.4Ghz band. All it takes is a VCO and the wrong (or right, depending on purpose) circuit attached to it.

Deauth is a little more finesse, but barely.

comment 4y ago · link · parent

Amen. The first rule of distributed objects is "don't distribute your objects". It's much easier to reason about a bunch of different actors, each with their own copies of objects, trying to converge on consensus, than it is to actually have a distributed database that obeys ACID and does all the databasey things.

A subtle distinction, but an important one.

comment 4y ago · link · parent

Are you a fire performer, chemist, or otherwise intend on being around fire a lot, or is this just a general precaution?

I mean, I do the same, but that's cause I play with fire on a regular basis, and haven't met anyone outside those circles who care about such features as char vs melt.

comment 4y ago · link · parent

Fun fact, if you ever want to locate sketchy sites, the keyword is "Wildlife Management Area". Odds are pretty good it's going to be some former superfund, government, chemical, or industrial cleanup site. They do their best to clean up what they can and then declare it a nature preserve.

E.g. https://en.m.wikipedia.org/wiki/Quehanna_Wild_Area

comment 4y ago · link · parent

Interesting. I don't work in defense / aero, but that seems plausible. Stealth aircraft are optimized to reduce cross section from certain perspectives. Front, bottom, and oblique are pretty good, iirc, while rear and side are harder to optimize. Not sure about top. I would think it would reflect most energy away from tracking radar unless an active seeker was coming in from higher altitude (in which case you are already toast).

Combined with some sort of chaff/decoy release, I could see this causing the seeker's kalman filter or whatnot choosing to go after the return which stayed on the same trajectory with the same signature.

Without a decoy, or with smart enough seekers (eg combined mm wave with IR), I think you are probably still going to be hit.

comment 4y ago · link · parent

It was definitely a bad choice. I wasn't there so I can only speculate. My guess is because it is sort of ubiquitous and thus a low-hanging fruit and devs didn't know better, or the related corollary, it's what S3 uses for ETags, so it probably seemed logical. Either way, seems like someone did it and didn't know better, no one agrees on a fix or whether it's even necessary to change, and thus it's stuck for now.

There's an ongoing discussion about replacing/configuring the hash function, and it looks like there might be some movement toward replacing the hash and other speedups in 3.0

https://github.com/iterative/dvc/issues/3069

> We not only want to switch to a different algorithm in 3.0, but to also provide better performance/ui/architecture/ecosystem for data management, and all of that while not seizing releases with new features (experiements, dvc machine, plots, etc) and bug fixes for 2.0, so we've been gradually rebuilding that and will likely be ready for 3.0 in the upcoming months. - https://github.com/iterative/dvc/issues/3069#issuecomment-93...

comment 4y ago · link · parent

I've used both extensively. Git-lfs has always been a nightmare. Because each tracked large file can be in one of two states - binary, or "pointer" - it's super easy for the folder to get all fouled up. It would be unable to "clean" or "smudge", since either would cause some conflict. If you accidentally pushed in the wrong state, you could "infect" the remote and be really hosed. I had this happen numerous times over about 2 years of using lfs, and each time the only solution was some aggressive rewriting of history.

That, combined with the nature of re-using the same filename for the metadata files, meant that it was common for folks to commit the binary and push it. Again, lots of history rewriting to get git sizes back down.

Maybe there exist solutions to my problems but I had spent hours wrestling with it trying to fix these bad states, and it caused me much distress.

Also configuring the backing store was generally more painful, especially if you needed >2GB.

DVC was easy to use from the first moment. The separate meta files meant that it can't get into mixed clean/smudge states. If you aren't in a cloud workflow already, the backing store was a bit tricky, but even without AWS I made it work.

comment 4y ago · link · parent

> No weird side-band edge cases effects, like if the IP stack could affect DC balance by changing the mix of 1s and 0s it sends out.

As someone who started in chemistry and moved into computers, this made me laugh out loud hard. It's an absurd and absolutely perfect analogy for the weird shit biology does all the time.

I think it is intrinsically hard to make clean abstractions out of chemistry. Biochemistry even more so. Chemical synthesis in the lab is all about the loop of: react under ideal conditions, work up, extract, purify, repeat. Biochemistry is just...fancy soup.

You get some barrier, especially for really nasty stuff, like peroxisomes, but there is just tons of diffusion. Especially with neurochem, where usually drugs have to be the right lipophilicity to cross the BBB but also specific to targets.

comment 4y ago · link · parent

"02000" is a "long now" thing, not octal. Thinking about the next 10,000 years and ald that.

https://longnow.org/

comment 4y ago · link · parent

I think it depends a lot on your process as well. I should have added that we use Jira+Confluence and every merge commit starts with

    ENG-1234 | Does the needful with foobar
So most of the context is in the tickets, which then point to design docs. The code has very high percentage of docstrings, very high type coverage (for Python anyways), so there's really not much to be had in commit messages. We are a small (<20) team of engineers in a fast-moving year-old startup. Very tight slack comms. PRs to main are often single-digit lines, typically a few dozen, and anything more than a few hundred LOC is considered suboptimal.

I think if you are running an open-source project, with lots of disparate contributors, using Git as your main knowledge base, with bigger PRs, it's a very different ballgame. I think in that situation I would be team history.

comment 4y ago · link · parent

RDEs are more efficient than regular rocket engines. Also, a big part of engineering rocket combustion chambers is balancing power with combustion instability, which can cause flame-out at best, and rapid unscheduled disassembly at worse. RDEs lean into that high energy stochiometric reaction to eke out more efficiency. Due to the tyranny of the rocket equation, even a modest increase in efficiency can greatly increase payload to orbit.

comment 4y ago · link · parent

Ignoring development costs, that is approximately the cost to launch one SOFIA telescope to LEO (19T x 1000 kg/T x $2500/kg = $48M) with change. So I think space based telescopes definitely win out.

comment 4y ago · link · parent

Huh. I get almost the same thing. It always kinda baffled me, since I tolerate the source food fine, but the powder proteins give me a stomach ache beyond a certain amount.

I've tried to pin it down or at least mitigate it. It seems that emulsifiers + fats help (which is odd, as proteins themselves are often emulsifiers). My two theories are a) there are more free amino acids/oligopeptides, and some are naturally irritating, or b) these protein powders are more likely to crash out in the stomach.

comment 4y ago · link · parent

Because it is visual noise. It's really hard to track, especially on the CLI. It's also a lot easier to reason about the codebase through time if it's basically a linear track.

We started off with merge commits and moved to squash rebase (team history to team clean), and I gotta say, I absolutely love team clean in the overwhelming majority of cases.

The only time team history is handy is as a sort of temporary space on feature branches where you are sorting out complex merges, debugging, or trying different patterns. But all of that gets squashed away onto main eventually.

comment 4y ago · link · parent

They are still the 3rd largest economy in the world. Katanas would still be weird. Unless it's a mall ninja.

comment 4y ago · link · parent

That's like saying the Glasgow Haskell Compiler is implemented in part with C, therefore Haskell is imperative.

The React "way" is very much leaning into pure immutable data that flows through components which react to changes. Components aren't objects in the OOP sense. You don't call methods on them to update their internal state.

comment 4y ago · link · parent

Fair enough!

And yeah, since OOP is everywhere, there's zero downside to getting better at it.

> I've never found those to be as exciting as some people seem to.

It's less about excitement (for me at least) and less about the hair pulling associated with reasoning about complex state. I find the more independent attributes an object has, the harder it gets to reason about, unless I can serialize the whole thing (which usually goes against encapsulation).

I'd say that's the number 1 thing I do to get "better at OOP": have a healthy suspicion towards any long-lived object I can't serialize/deserialize using primitive types.

comment 4y ago · link · parent

On the contrary, I think that's a self-fulfilling perception. If assets are already organized as objects, then it'll continue to work well with oop. But if you take the approach from the get-go to use data and FP approaches, things can be quite nice. Examples:

- interface/trait based programming / structural subtyping (widely used in go/rust, increasingly in TS and python)

- terraform

- react

- aws lambda / cloud functions

- flow-based data processing (the whole of deep learning, spark/hadoop)

- and of course, anything declarative DSL based (SQL, jq and friends)

So I would counter that the more valuable skill is "how do I solve problems in terms of applying and composing transforms to data"

To clarify, since everyone has their own definition of OOP, and of the four pillars, Abstraction, Polymorphism, aren't at all unique to OOP, and Encapsulation is just Abstraction: the defining features of OOP are inheritance and poking-and-prodding-state into opaque objects. Inheritance is subsumed by interfaces / structural subtyping, and poking at state is contrasted with reactor patterns, event sourcing, persistent data structures, etc.

Oop really shines at the middlin-low level, in languages without a lifetime (state for things like IO resourcese, at the GUI widget level, and the (micro)service level, which is more like the original smalltalk sort of objects, in which case inheritance isn't a think.

comment 4y ago · link · parent

I wanted to know if this affects "graveyard orbits". Seems like this applies only to satellites in LEO, while MEO/GEO are exempt.

> The Report and Order adopted today requires satellites ending their mission in or passing through the low-Earth orbit region (below 2,000 kilometers altitude) to deorbit as soon as practicable but no later than five years after mission completion.

comment 4y ago · link · parent

Definitely an interesting headcannon^W headcanon. Of course, celebration has always been associated with loud noises - bells, drums, cheering, clapping, whistling - so logically anything with explosions is an extension of that continuum.

comment 4y ago · link · parent

Obligatory e^π - π = 20

comment 4y ago · link · parent

1. The gun is always loaded

2. Don't point at anything you aren't willing to destroy

3. Booger hook off the bang button until you are ready to bring the heat

4. Know your target and what's behind it

Even with misinterpreting 2 as "I'm pointing at 'nothing'", well you still need to know what is behind that nothing.

1
242526
85