• 1 Post
  • 431 Comments
Joined 2 years ago
cake
Cake day: July 31st, 2023

help-circle





  • Yes. Only in fantasy land. As Logi above said, nuclear detonation is an extremely precise, controlled process that has very specific conditions to achieve successfully. Even an actual fission bomb only manages to consume a fraction of the radioactive material.

    The only thing someone would achieve by denotating a conventional explosive near a reactor or nuclear stockpile is spreading highly radioactive dust around. That does not nor will ever look like uncontrolled nuclear fission, let alone a detonation from a thermonuclear warhead.



  • std::string doesn’t have a template type for the allocator. You are stuck using the verbose basic_string type if you need a special allocator.

    But, of course, nobody sane would write that by hand every time. They would use a typedef, like how std::string is just a typedef for std::basic_string<char, std::char_traits<char>, std::allocator<char>>. Regardless, the C++ standard library is insanely verbose when you start dropping down into template types and using features at an intermediate level. SFINAE in older versions of C++ was mindfuck on the best of days, for example.

    Don’t get me wrong, though. I’m not saying Rust is much better. Its saving grace is its type inference in let expressions. Without it, chaining functional operations on iterators would be an unfathomable hellscape of Collect<Skip<Map<vec::Iter<Item = &'a str>>>>




  • Rust is verbose, but C++ might still take the cake with its standard library templates. Especially when using fully-qualified type names…

    auto a = ::std::make_shared<::std::basic_string<char, ::std::char_traits<char>, MyAllocator<char>>>();

    A reference-counted shared pointer to a string of unspecified character encoding and using a non-default memory allocator.










  • The magic cable typically goes into ISP-owned hardware sitting in a box somewhere down the street. From there, it’s either converted into fiber optic signals or repeated until it reaches an ISP-owned building where the data can be exchanged with the wider internet.

    How does so much data go through a single-pin coax cable?

    It uses multiple channels (frequency ranges) in parallel, bonding (combining) them to increase throughput.

    A surprising amount of bandwidth can be achieved this way. DOCSIS 4.0 can do 10 gigabits per second in download and 6 gigabits per second in upload.