8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 4y ago · link · parent
Async might technically be bolted on, but no worse than async in most languages which weren't designed de novo for async (eg go/elixir).
comment 4y ago · link · parent
comment 4y ago · link · parent
If it's in the early lifecycle, absolutely, because it's most actionable. X is set wrong, Y can't be reached, etc, guide whoever is operating the system how to fix it.
If it's mid cycle, it's often post-hoc, but context is worth its weight in gold. Less about telling the operator how to fix and more about why it broke, to avoid in the future.
End of cycle, whatever.
comment 4y ago · link · parent
That's precisely the problem. You started with tags and now you are building a knowledge base. You wanted a banana and now you have a gorilla holding a banana and the whole jungle. If you want to build a knowledge base, use links/URIs/ontologies.
You'll find out the moment you add cycles the algorithms get way more intense. And then once you have stronger algos, you want more search power. Next thing you know you are bikeshedding about things like "apple" is both "fruit" and "tech company" so you need tags-of-tags etc. Just build a knowledge base if you need a knowledge base. Otherwise tags are just a way to do faceted search.
They aren't mutually exclusive, either.
OpenTelemetry, for example, has both tags and references.
comment 4y ago · link · parent
TFA is traditionally the sort of thing someone would write a full solution for, entirely in ROS, and it would be rickety and opinionated, but refreshingly, they just use Prometheus, with enough Ros binding to capture the auxiliary data.
comment 4y ago · link · parent
Tags are just dumb strings which label data. They are basically KeyValues, where the value is just always equal to True. We don't think of KVs as hierarchical unless they are explicitly a path string, and in that case, they are forced to be a plain tree with no cycles or diamonds.
comment 4y ago · link · parent
Last I checked (this was years ago) the way to deal with this is to wrap it in a sub-message (which are actually nullable), which is just kinda gross.
comment 4y ago · link · parent
comment 4y ago · link · parent
https://www.dkriesel.com/en/blog/2013/0802_xerox-workcentres...
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
I've started hacking on my own container format (yeah, I know, xkcd927), after finding it super frustrating to embed arbitrary time-synched data streams into mp4/matroska/ogg/etc. Also it bugs me how crusty, complicated, and arcane mp4 is, and at the same time, mastroska and ogg are weirdly opaque given how they are supposed to be open standards.
If anyone is curious, here's my container format I've been developing: https://github.com/xkortex/sito
comment 4y ago · link · parent
1) https://www.royalnavy.mod.uk/news-and-latest-activity/news/2...
2) https://declassifieduk.org/royal-navys-gunboat-diplomacy-is-....
comment 4y ago · link · parent
Plus would also mitigate acid rain somewhat, and isn't noxious the way SOx is.
comment 4y ago · link · parent
comment 4y ago · link · parent
Sure, but there's a lot of advantages of entirely controlling memory allocation in-process.
> this approach is going to be EXTREMELY wasteful.
Could you elaborate why? Sure, you have to do a bit more juggling in-process, but I would imagine this would be potentially more efficient than having conventional mallocs.
In the environment it is designed to operate in, there is usually a fixed memory limit per process, so you might as well grab all that up front.
comment 4y ago · link · parent
I use the stdlib datetime.datetime with pytz, with a few in-house helper functions, and it's frankly kinda awful across the board but we deal with it.
Pendulum is really nice, and I want to use it as my daily driver, but I unfortunately found some timezone bugs [1] in v2 that make me hesitant to trust it for what we are doing in production (it screws up DST when doing `.utcoffset()`). If you aren't constantly dealing with data timezones from all over the world, it's probably fine, and it's the only one that the least surprising thing at each step.
Pytz has the whole .localize footgun.
The std datetime lib has horrible ergonomics and can't even cope with IANA timezones until the zoneinfo module was introduced in 3.9. Every single day it bugs me that the classes `datetime` and `time` are lowercase, and there is no consensus on datetime.datetime vs from datetime import datetime.
I tried using arrow and while I applaud them for moving away from the horrible datetime class, that makes it pretty much incompatible with any other time library, including things like pydantic and orjson.
I don't have much experience with dateutil.
1 - https://github.com/sdispater/pendulum/issues/655
Seems to have started in 2.x but is fixed in the 3.0alpha. You have to be specifically using utcoffset, which in general is probably not something you should do and use the timezone types to do conversions, but it was enough to give me pause
comment 4y ago · link · parent
comment 4y ago · link · parent
Actually photograph was already out of date, because graph had morphed from "to write" to making any kind of image. Which itself I believe meant something akin to inscription /engraving.
Actually while photograph may no longer be a graph as in image on a surface, in some ways it's still an image impressed on rocks. Made using lithography. Have we gotten closer to its roots?
comment 4y ago · link · parent