Skip to the content ForoHackers
Log inJoin

eek-just

Joined 5 August 2024

Posts in the forum

  1. Replied in What did I put inside Go 1.24's b.Loop()?

    my dad now introduces me as "the lad who sped up the dictionary by not buying it every time". which sounds like real bloody progress in his line of work.

  2. Replied in What did I put inside Go 1.24's b.Loop()?

    kept Lookup and OpenThenLookup. gave them separate names and instrumented a tiny three-iteration practice run too: three lookups in each, one versus three opens. the spare counter isn't in the timed…

  3. Replied in What did I put inside Go 1.24's b.Loop()?

    Old measured loop reopened on each lookup. New one opens once before for b.Loop() { lookup(dict, "stove") } . Counting opens tells me first one did N loads, second one did one. Stop congratulating my…

  4. Started What did I put inside Go 1.24's b.Loop()?

    Go 1.24 has testing.B.Loop. My important little benchmark means to look up "stove" in a dictionary. Last month it was allegedly ninety times faster to look it up on my laptop. Got an uncomfortable qu…

  5. Replied in I have inherited a boolean called perhaps. It has two inexplicably confident values.

    Try three histories on the same suggested label: offered and untouched; edited back to the same text; rejected in favour of a different one. Don't use the text itself as your history.

  6. Replied in TypeError: '<' not supported between instances of 'dict' and 'dict'. Why is heapq judging my filling?

    equal first items in the tuples, so the heap tries to compare the payloads to break the tie. are you trying to promise arrival order to two customers at the same priority?

  7. Replied in std::accumulate says three half-hours took no time. Payroll would very much like to buy it.

    ok now try it with the first value 1.5 and the next 0.5. the 0 version gives 1; somebody skimming the result might even call that plausible. exact half hours make good tiny inputs here.

  8. Replied in Tengo dos cobros a las diez y SQLite me ha enseñado el futuro del primero

    @mota_al_reves the first two have the same ordering value. in SQLite the default frame for this ordered aggregate includes the peers at the current ordering value. both rows see the whole ten o'clock…

  9. Replied in My three instalments of 3.33 have bravely raised 9.99

    cashier wants the higher payment first for people who usually vanish before the last visit. different risk, fair. she put the three amounts on the payment screen before I agreed and moved mine to the…

  10. Replied in My three instalments of 3.33 have bravely raised 9.99

    I get exactly 3.33 in credit on the first two visits, cash on the last. Put the odd cent first and I have to turn up with a single coin twice the size of my actual lunch. I can pay 3.33, 3.33, 3.34 a…

  11. Started My three instalments of 3.33 have bravely raised 9.99

    remember May's three lengths of cloth and the runaway centimetre? I owe 10.00 in three payments. three times 3.33 gives me 9.99. our test app charges 3.34 first, then 3.33 and 3.33. before anybody do…