HNHacker News
TopNewBestAskShowJobs

scatters

1,352 karma · joined February 7, 2014

submissionscomments
scatters··on Learn Modern C++
We walked that back, sorry. http://eel.is/c++draft/diff.cpp20.lex#1

  Change: Previously valid identifiers containing characters not present in UAX #44 properties XID_Start or XID_Continue, or not in Normalization Form C, are now rejected.
  Rationale: Prevent confusing characters in identifiers. Requiring normalization of names ensures consistent linker behavior.
  Effect on original feature: Some identifiers are no longer well-formed.
scatters··on Learn Modern C++
> I don't know how recent those versions are

gcc 14 has not yet been released; going by past years, 14.1 should come out around the start of May (2024). clang 17 was released September (2023); note that you need to use libc++ (stlib=libc++), not libstdc++. VS 2022 17.7 has been out since August.

scatters··on Studying stars with central black holes
A radially symmetric object does not produce gravitational waves, whether it is spinning or not, since it has zero quadropole moment.
scatters··on Why did older computers and OSes use UPPER case instead of lower case?
The Remington No. 1 - which introduced the QWERTY layout - omitted number keys for 0 and 1; the O and I letter keys were considered sufficient. The No. 2 added a shift key, and a full number row.
scatters··on Apple cuts off Beeper Mini's access
Does Apple block imessage on rooted phones? If not, what level of device security do you really have?
scatters··on Why you can't divide by zero

    ceil(0.000001) = 1
    ceil(0) =... 0? Wtf?
But that's a perfectly well defined function. Not every function has to be continuous.
scatters··on Airlines will make $118B in extra fees
Is there outrage when a clothes store puts the items they haven't been able to shift onto the sales rack? Is there outrage when a grocery store puts discount stickers on the food that's approaching its sell by date? Dynamic pricing is a fact of life in very many sectors.
scatters··on Pentagon fails audit for sixth year in a row
Sticking gold in a vault is only a means to saving if you have a reasonable expectation that when you take it out you can use it to obtain goods and services. It is thus a disguised claim on future production, and so relies on debt to exactly the same degree as bank money.
scatters··on 280M e-bikes and mopeds are cutting demand for oil far more than electric cars
I'd be happy if they have an easier and safer commute because everyone else is staying home.
scatters··on Pentagon fails audit for sixth year in a row
No, they couldn't. One person's savings is another person's debt. If everyone tries to save then no one can; this is the paradox of thrift.
scatters··on Pentagon fails audit for sixth year in a row
The Russian rouble was not free floating prior to the crisis. They tried to defy the iron triangle and paid for it. This is not a problem for the USA, since other currencies are denominated in terms of the dollar.

The reason it would be impossible for the US to default is that the US is not significantly in debt. Most of the federal debt is held domestically, meaning by the US. You can't be in debt to yourself.

scatters··on The shortest papers ever published (2016)
It exhibits two distinct constructions both of which demonstrate that n^2 + 2 unit equilateral triangles are sufficient to cover an equilateral triangle of side n + ε. The obvious area argument shows that at least n^2 + 1 are required.

A small modification of the second figure can show that for any non-equilateral triangle, n^2 + 1 such triangles will cover a similar triangle of length ration 1 : n + ε; it remains (as of 2010, at least; see [1]) an open problem whether a construction of n^2 + 1 triangles exists in the equilateral case.

1. http://www.wfnmc.org/mc20101.pdf

scatters··on Stockholm to ban petrol and diesel cars from centre from 2025
OpenStreetMap has the zone as a map feature: https://www.openstreetmap.org/way/127782964
scatters··on Stockholm to ban petrol and diesel cars from centre from 2025
Try driving to get your groceries with epilepsy or a vision impairment.
scatters··on How to see bright, vivid images in your mind’s eye (2016)
Location and vision are separate senses. I'm completely aphantasic, but of course I can orient myself in remembered spaces. Fictional spaces are more difficult, but not impossible if the description is good.
scatters··on How to see bright, vivid images in your mind’s eye (2016)
We write the same way an LLM does; by putting together words in the order that convention dictates. It's less of a chore if we can make them mean something by metaphor or allusion; in your example, the author clearly intends to signify something by the glistening of the raindrops, the redness of the leaves and the color of the grass, else why mention it?
scatters··on WiFi without internet on a Southwest flight
Clarification: a knot is one nautical mile per hour.
scatters··on UK Parliament undermined the privacy, security, freedom of all internet users
The politicians are aware their messages are being read already. This just opens up existing practice and levels the field.
scatters··on UK Parliament undermined the privacy, security, freedom of all internet users
The referendum was advisory. The decision to leave the EU was made by parliament, not by the people.

With that out of the way, you should read "EU" as being in parentheses.

scatters··on Lodash just declared issue bankruptcy and closed every issue and open PR
The CADT model continues to demonstrate its relevance.
scatters··on Utah officials sued over failure to save Great Salt Lake
> Saying that people in Salt Lake should cough up enough cash to outbid the people who want to grow alfalfa to sell it to China is kinda gross

It's also incredibly easy; SLC could outbid the farmers hundreds of times over and it wouldn't be even a rounding error in the city budget. It's difficult to see anyone opposing this as anything other than useful idiots for the ag lobby.

scatters··on Credit card debt collection
An economy needs money to be created to ensure full employment. If that money is created as loans to businesses it will result in investment; to the government, in lower taxes; to homeowners, in house price bubbles, but if it is created as consumer credit it will result directly in consumption, which has the greatest social benefit since it is the purpose of an economy to enable consumption.
scatters··on Credit card debt collection
Yes, but instead of consumption, that alternative money would be biased towards investment or even less productive activities, such as house price speculation. Consumer credit creates money where it has the greatest benefit.
scatters··on Just how constexpr is C++20’s std:string?
You can use `std::array<char>` (which, as it happens, is a literal type) as an intermediary when performing materialization. A nice toy example is to build a comma-separated string listing enumerators:

    template<class E> requires std::is_enum_v<E> constexpr std::string_view joinedEnum() {
        constexpr auto generate = [] -> std::string {
            return []<template<class...> class L, class... D>(L<D...>) {
                std::string str;
                (((str += (str.empty() ? "" : ", ")) += D::name), ...);
                return str;
            }(boost::describe::describe_enumerators<E>());
        };
        static constexpr auto arr = [&] {
            constexpr std::size_t N = generate().size();
            std::array<char, N> arr;
            std::char_traits<char>::copy(arr.data(), generate().data(), N);
            return arr;
        }();
        return std::string_view(arr);
    }
Note that you have to generate the constexpr std::string twice; once for its size, once for its contents. But you assume that the compiler can memoize the result.
scatters··on Experimental archaeologist tested out Stone-Age living on the Thames
The nearly entire length of the river is navigable, with the flow controlled by locks and weirs. This isn't to minimize their achievement, but they didn't have to contend with rapids, shallows or swamps like the river would have had back in the stone age.
scatters··on The curl-wget Venn diagram
It's a simple solution to give the file the right extension, and preserving query parameters can be the right thing to do if you hit the same path repeatedly e.g. for pagination.
scatters··on The curl-wget Venn diagram
`&unused=.htm`. It usually works.
scatters··on UPI Payments: 10B transactions a month done, next stop 100B
Those kiosks are a thing of the past, now that you can get an e-sim.
scatters··on Organic Maps
Most modern cars have a center console with Android Auto, so you just plug in your phone to USB and it takes over navigation, communication and entertainment.
scatters··on Navigating the timezone nightmare in product development
But also "whatever timezone that office building will exist in" may not actually be the same as the timezone that is actually used by the occupants of that office building. There are numerous communities which unofficially observe a different timezone to the one officially assigned to their locality.
Page 1 of 21Next →