HN user

scatters

1,352 karma
Posts0
Comments619
View on HN
No posts found.
Learn Modern C++ 3 years ago

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.
Learn Modern C++ 3 years ago

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.

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.

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.

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.

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

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?

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.

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.

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.

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.

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.

Organic Maps 3 years ago

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.

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.