8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 4y ago · link · parent
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
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
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
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
Honestly we need about 20% more screen real estate and 1/2 more columns for staging/prod qa.
comment 4y ago · link · parent
mRNA vaccines just cut out the middle man^w bug.
comment 4y ago · link · parent
Deauth is a little more finesse, but barely.
comment 4y ago · link · parent
A subtle distinction, but an important one.
comment 4y ago · link · parent
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
comment 4y ago · link · parent
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
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
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
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
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
comment 4y ago · link · parent
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
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
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
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
- 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
> 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
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.