Readit News logoReadit News
dangerbird2 commented on Living descendants of Mark Antony   antigonejournal.com/2022/... · Posted by u/cacher
tokai · 3 years ago
Unrelated to the genealogy; but at what point does it become ridiculous to claim yourself a prince? With over a century of no power for the family and no obvious way back to it as the kingdom is well dissolved, it feels like dress-up to style yourself a prince.
dangerbird2 · 3 years ago
Maybe ridiculous, but not totally unprecedented. Aga Khan IV is generally considered to be royalty despite the fact that his family hasn't held secular power (outside of the occasional governorship) since [1095](https://en.wikipedia.org/wiki/Nizar_ibn_al-Mustansir). Of course, they held religious leadership as Imams of the Nizari branch of Islam.
dangerbird2 commented on Fly.io makes infrastructure easy for developers   blog.chiselstrike.com/fly... · Posted by u/penberg
zinclozenge · 3 years ago
How are they offering such low prices? Overprovisioning users?
dangerbird2 · 3 years ago
One possibility is that they have fewer regions than something like AWS, so they can put their data centers somewhere where they get favorable electricity/cooling costs.
dangerbird2 commented on The Missing Chinese Machine Revolution   erikexamines.substack.com... · Posted by u/socialdemocrat
dangerbird2 · 3 years ago
> If you try to simply cook wheat grains, you will end up with a rather nasty porridge

Maybe nasty to modern eaters, but wheat porridge was a staple in Europe, N. Africa, and the Middle East for thousands of years, especially outside of towns where gristmills were far away and often exorbitantly expensive

https://en.wikipedia.org/wiki/Frumenty

https://en.wikipedia.org/wiki/Harees

dangerbird2 commented on First look: adding type annotations to JavaScript   2ality.com/2022/03/type-a... · Posted by u/mariuz
cphoover · 4 years ago
Stop trying to make JavaScript into something it's not...

If you want a type system Typescript works great, and it's very easy to set up. You even get debugging to the original uncompiled source with sourcemaps.

If you want a strongly-typed static language, compile to a wasm target... That's what it is for.

Stop trying to change JavaScript into a language it is not.

JMHO

dangerbird2 · 4 years ago
Did you read the article? All the proposal does is allow the javascript engine to accept typescript-style syntax, while erasing all the annotations at runtime. From the browser's point of view, it would essentially treat the type annotations and type declarations as comments. This combined with native Ecmascript modules means you could theoretically develop a typescript application with no bundler or other build tools. You'd be able able to use typescript autocomplete and linting in your editor, and just serve the files to your browser with a static http server. Some newer bundlers like Vite and esbuild greatly reduce the amount of configuration required to set up a typescript project, but being about to develop a project with nothing but an editor and a browser would be a huge win for small projects.

Since the proposal doesn't care about the semantics of the type annotations, it doesn't even necessitate typescript. It would work just as well with Flow typing or even a completely new type checker.

dangerbird2 commented on CXX – safe interop between Rust and C++   cxx.rs/... · Posted by u/synergy20
cjg · 4 years ago
I meant generating a safe Rust API for existing C code rather than calling an existing Rust API from C.
dangerbird2 · 4 years ago
bindgen[1] already exists to autogenerate a rust API from c headers. It's inherently unsafe because C code is inherently unsafe. In particular, there is no language constructs like destructors or constructors, so you can't naively create a C-based API that can prevent memory/resource leaks and use after free errors. While C++ does have the same issues as C with unsafe pointer semantics, it does have constructors, destructors, and other features that map almost perfectly with Rust's RAII-based resource management, making it pretty easy to generate a safe(ish) rust interface. In practice, it's pretty easy to create a safe rust API from a C library: use bindgen to create the low-level unsafe API, then create rust wrappers using the ad-hoc creation and descruction library functions to implement RAII.

[1] https://rust-lang.github.io/rust-bindgen/

dangerbird2 commented on Magpies have outwitted scientists by helping each other remove tracking devices   abc.net.au/news/2022-02-2... · Posted by u/clouddrover
tannhaeuser · 4 years ago
Magpies, like all crow-like birds (or at least that's how they are historically lumped together under Rabenvögel in German along with crows, ravens, and jackdaws, probably because they're scavengers) are fascinating, intelligent creatures. I've heard European magpies bring gifts when they take away food, like small decorative ensembles of sticks, stones, shells, and pieces of metal they picked up.
dangerbird2 · 4 years ago
This article is about Australian magpies, which aren't related to European Magpies and other corvids. They're known more for their extreme territoriality than for their intelligence, but OP's article clearly shows they're no dummies either.
dangerbird2 commented on Heart-disease risk soars after Covid, even with a mild case   nature.com/articles/d4158... · Posted by u/SquibblesRedux
habibur · 4 years ago
Bad news is that heart muscle doesn't rebuild, like how our body muscles do. But a doctor can ensure how much of our fear is right.
dangerbird2 · 4 years ago
But that means it's almost impossible to get heart cancer, so at least we've got that going for us
dangerbird2 commented on Django Ninja – Fast Django REST Framework for Building APIs   github.com/vitalik/django... · Posted by u/watchdogtimer
throwaway_4ever · 4 years ago
But is DRFs complexity worth it compared to Ninja?
dangerbird2 · 4 years ago
DRF was about as good as it got for automatic schema generation and data validation before python static type hints made things like pydantic possible. It also sets up good defaults for stuff like query parameter-based filtering, pagination, and resource relationships (it supports HATOAS by default).
dangerbird2 commented on The Curse of NixOS   blog.wesleyac.com/posts/t... · Posted by u/nemoniac
gnu · 4 years ago
NixOS and Guix are nice! Guix folks are doing some wonderful work off late.

I have used NixOS for a while. But for casual desktop GNU/Linux users, it seem like solving a problem that doesn't exist. Have been using Debian on all my computers since 1998. Unless you are using Debian unstable and updating it daily, I hardly hit any breakage.

Servers and deployments is another story.

dangerbird2 · 4 years ago
How does Guix compare to Nix? It seems like by using a scheme-based DSL instead of an ad-hoc configuration language, it solves one of the main complaints the author has about Nix.
dangerbird2 commented on French Navy ATL2 MPA: Someone Just Lasered The Wrong Aircraft   navalnews.com/naval-news/... · Posted by u/willvarfar
tgsovlerkhgsel · 4 years ago
Getting found and arrested is one of the better outcomes.

There are cases where military aircraft pointed their lasers (likely invisible IR lasers) at photographers. It's unclear if this was intentional and what kind of laser (e.g. rangefinder or designator) it was, but the laser likely wasn't meant as a weapons system but still fried the camera, with visible scorch marks.

I can't imagine eyes faring much better than the sensor if hit.

dangerbird2 · 4 years ago
They'd fare poorly, but for different reasons. Digital cameras can be vulnerable to IR lasers because their sensors are sensitive to infrared light. Human retinas aren't sensitive to IR, which ironically makes IR lasers more dangerous than visible ones, since they don't trigger the blink reflex which would otherwise limit the damage to the eyes.

u/dangerbird2

KarmaCake day804May 11, 2016View Original