Better HN
topnewbestaskshowjobs
Log inSign up

scatters

1,352 karma · joined Feb 7, 2014 (12y ago) · 622 submissions

Submissions

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

> 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.

comment 2y ago · link · parent

A radially symmetric object does not produce gravitational waves, whether it is spinning or not, since it has zero quadropole moment.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Does Apple block imessage on rooted phones? If not, what level of device security do you really have?

comment 2y ago · link · parent

    ceil(0.000001) = 1
    ceil(0) =... 0? Wtf?
But that's a perfectly well defined function. Not every function has to be continuous.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

I'd be happy if they have an easier and safer commute because everyone else is staying home.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

OpenStreetMap has the zone as a map feature: https://www.openstreetmap.org/way/127782964

comment 3y ago · link · parent

Try driving to get your groceries with epilepsy or a vision impairment.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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?

comment 3y ago · link · parent

Clarification: a knot is one nautical mile per hour.

comment 3y ago · link · parent

The politicians are aware their messages are being read already. This just opens up existing practice and levels the field.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

The CADT model continues to demonstrate its relevance.

comment 3y ago · link · parent

> 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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

`&unused=.htm`. It usually works.

comment 3y ago · link · parent

Those kiosks are a thing of the past, now that you can get an e-sim.

comment 3y ago · link · parent

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.
12345
21