8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 5y ago · link · parent
Concrete to abstract:
- make a house yourself
- buy a house with cash
- buy a house with a mortgage with a large down payment (low risk, easy to back)
- buy a house with good credit and less down payment but PPI (riskier, the bank needs to hedge more)
- no down payment, less than stellar credit, more house than you need, etc.
The latter is super high risk and normally would not be underwritten. But someone figured out you could bundle the risk in order to distribute that risk, surely only a collapse of the whole housing market could make them massively default! Oops.
comment 5y ago · link · parent
I like concrete things. Rugged tools, reliable cars, but these are boring. You can't build a bubble on boring, moored ideas, you need hype.
comment 5y ago · link · parent
What does auto FF mean? I notice myself using a very streamlined dev/rc/main approach, favoring rebase over merge, with lots of linear commits to rc, move the puck ahead, then move master, using merge --ff-only.
comment 5y ago · link · parent
It's huge for pushing numbers around, but hardly "one of the biggest contributions".
comment 5y ago · link · parent
OTOH, it could be cracked tomorrow and value of dedicated silicon will go off a cliff. So I don't blame the GPGPU crowd for that, before even considering the engineering challenges of silicon/FPGA for eth.
comment 5y ago · link · parent
But if you are dealing with OS level stuff, talking directly to hardware, in the embedded space, etc, now you care about different ABIs for performance reason. Now you decide, do I want static linking or dynamic linking? The only place I see dynamic linking really being a feature is when you have to link against the kernel, drivers, or proprietary subsystems (e.g. CUDA). IMHO, most userspace application layer stuff shouldn't be sharing memory, it should be communicating, again using byte streams and serde.
So that basically leaves the hardware/software interface: kernel APIs, drivers, etc. If you're in this space, great, it makes sense to use dynamic linking with very stable ABIs with no generic shenanigans, you don't need them. I think a lot of pain of DLL hell comes from using dynamic libs when you really should be statically compiling if it's a library, and IPC if you need to communicate.
comment 5y ago · link · parent
When I get thrown into an un-typed python codebase, my productivity grinds to a crawl, and I start having to do things like have a scratch pad with various versions to copy paste.
comment 5y ago · link · parent
Sauce: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5028366/
comment 5y ago · link · parent
This would be a great application for ML or genetic programming.
comment 5y ago · link · parent
I find it striking that the author's 7 rules (at about 3/4 of the scrollbar on desktop) read much like a manifest on functional programming. In particular:
> The operations are the data.
That strikes me as a sword to the Gordian Knot of distributed state. Data isn't some mutable black box you poke mutations into and prod and read. Data is the set of operations used to construct it. This feels to me like the principle underlying FP in general, event sourcing, reactor pattern, and of course these RDTs. Of course, this implies a chunk of Data is the causal history of the data (which in the physical world is strictly true).
C'est ne pas un byte[].
The fun part comes in all the different ways to optimize going from the territory (all the operations on a data blob) to the map (the "realized" data blob, or view into the system).
This also has flavors of quantum mechanics to me. Causality is anything you can get away with mutating before a meaningful observation occurs.
comment 5y ago · link · parent
It definitely made me ponder about Dunbar's number and what tribal life must be like.
Coincidentally, the three demarcations at this particular burn, the theme camp (~30 people), the field/block (~100), and the whole burn (~500), correspond to the lower end of the types of groupings Dunbar observed.
> Dunbar noted that the groups fell into three categories—small, medium and large, equivalent to bands, cultural lineage groups and tribes—with respective size ranges of 30–50, 100–200 and 500–2500 members each.
comment 5y ago · link · parent
This was always kinda false (type hints can be composed unlike eg docstring param @type). But with the introduction of dataclass, this is empirically false. You can readily hook into the type hints, reflect on them, use it to marshal data, etc. Using __post_init__, you can leverage any kind of runtime checks you want to enforce invariants.
Also type hints greatly help transpilation.
You don't need 100% to reap the benefits. In fact I will annotate small bits of un-typed code and it makes it way easier to reason about.
comment 5y ago · link · parent
Writing type hinted python in Pycharm or Ipython feels like racing in a sports car. Without it, feels like stop and go traffic with the occasional car accident.
I can see how if you are using a WYSIWYG editor, type hints feel like more text for little gain. But even then, it really helps document intent. In fact switching to IDEs is partly what made me go from someone who hated static typing to loving it.
comment 5y ago · link · parent
It makes a huge difference, so much so that using camelCase feels like a huge drag.
Qwerty is frankly awful for programming. I encourage everybody to look into alternate layouts.
comment 5y ago · link · parent
- Is it good for crypto
- Is it fast
- Is it reproducible
- Is it portable
But fundamentally, it's about the use case and interface:
- I need secure random (strong, slow, secure)
- I need Monte Carlo (good enough, fast, reproducible)
- I need chaotic behavior for my game/stress test/back off protocol (usually can be barely random, fast, reproducible)
I think calling the last case InsecureRandom or RandomEnough is reasonable to convey "don't use me for secure purposes".
comment 5y ago · link · parent
Totally eliminates dependency hell, e.g. ROS heavy workflows where it wants to control every part of your environment.