Preferences

pxx
Joined 1,151 karma

  1. c++20 offers `consteval` to make this clear, but you can do some simple macro wizardry in c++11 to do this:

        #define foo(x) ( \
            (void)std::integral_constant<char, (x)[0]>::value, \
            foo_impl(x) \
        )
    
    (the re-evaluation of x doesn't matter if it compiles). You can also use a user-defined literal which has a different ergonomic problem.
  2. no the point is that there should be _more_ shovelware like your app. the fact you were able to publish shovelware doesn't mean that there's a "revolution"; the number of apps published per time doesn't seem to be going up.
  3. It's still there. Check the pg_dump command.
  4. You can give your postal carrier a gift card but they're not allowed to accept cash or a prepaid card. https://about.usps.com/postal-bulletin/2012/pb22349/html/cov...
  5. Yeah, this concept is interesting but the fact that the simplest test case gives what's fundamentally a surprising result is very annoying.

    It also doesn't help that in the example, the expected outcome of 53.3333/46.6667 isn't even considered.

  6. phantom drive B is explicitly mentioned in https://en.wikipedia.org/wiki/Drive_letter_assignment#Order_...

    the linked source checks out. diskcopy will also do this for you if you give it source = dest.

  7. I don't know how much they "stand out" because their frequency makes it so that the optimal global leaderboard strat is often to just try something dumb and see if you win input roulette.

    if we just look at the last three puzzles: day 23 last year, for example, admitted the greedy solution but only for some inputs. greedy clearly shouldn't work (shuffling the vertices in a file that admits it causes it to fail).

  8. It's only a small selection of inputs.

    I have a solve group that calls it "Advent of Input Roulette" because (back when there was a global leaderboard) you can definitely get a better expected score by just assuming your input is weak in structural ways.

  9. Nobody wants 10 months in a year. What we want is 13 28-day months a year plus one or two intercalary days. But organized religion gets in the way.
  10. I saw the diagram in the original blogpost, laughed, but after a bit of sketching it out I think we're both wrong. R/2R ladders are useful in DACs (and are really cool there) but don't look like they're used in digipot applications.

    It seems like actual digipot ICs use the "2^n discrete resistors" approach. The IC used in this project is a MCP4141 which explicitly states in section 5.1 of its datasheet that for 7-bit (8-bit) devices there are 128 (256) resistors in a string between the terminals.

    I'm a bit surprised this seems to be the best approach, but with IC manufacturing the joint problems of "a bunch of identical components" and "wiring it all up" are much less of a problem than if you were to wire this up by hand.

  11. "All" isn't right.

    You can only encode decision problems in NP into a SAT instance of polynomially-balanced size. Sure, that's a lot of things, but there are things provably not in this set.

  12. Is that actually the story of Uber? They didn't start with "let a random person drive you around"; they did licensed-limousine-by-app (which is the incremental "boring" improvement this post hates) until Lyft came around. They quickly copied the model (Lyft launched in May; "Uber X" in July 2012 [0]) but that's something to be said for agility and not necessarily getting the right idea at first.

    [0] here's a launch announcement with Lyft being listed as already being operational https://techcrunch.com/2012/07/01/uber-opens-up-platform-to-...

  13. wtf, is this comment also AI written? this is peak satire
  14. An A press is an A press. You can't say it's only a half.
  15. it's not even aarch64. but what they're saying is they don't want to deal with the support nightmare of supporting anything but the unmodifiable SteamOS image.
  16. This is a pretty neat problem. Maybe this isn't the activity for you...
  17. libgen.help is frequently updated
  18. An A press is an A press. You can't say it's only a half
  19. there are shortcuts but they can also compose their response in a richer text editor then paste. matched quotation marks also typically show up.

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal