• 1 Post
  • 253 Comments
Joined 1 year ago
cake
Cake day: July 24th, 2023

help-circle




  • I was a bit apprehensive because rust has like a gazillion different function types but here it seems to work like just any other language with a HM type system.

    The fn(T)->R syntax works for functions without associated data, it discards details of the implementation and works like function pointers in C. This allows them to be copy and 'static.

    The other function types can have data with them and have more type information at compile time which allows them to be inlined.
    These functions each have their own unwritable type that implements the function traits (Fn(T)->R, FnMut(T)->R and FnOnce(T)->R) depending on their enclosed data.

    I hope I remembered everything right from this video by Jon Gjengset.







  • How?

    Good question. I said should, not could… it would take a constitutional change, […]

    I mean: if you had the power, how would you ban parties? At what point do political organizations become parties? How about individual representatives working together?

    Bring back the old literacy tests while you’re at it

    Pfft. The two are not the same. You could be perfectly illiterate and still find out what the supposed values of the politicians were by simply listening to them, or just talking to others about policy and politicians ties to them, like we used to.

    Yes literacy is not the deciding factor, but it was always a pretense to keep certain people from voting.

    Imagine how much more attention you would have yo pay if you had to understand who to vote for.

    How much time should a person spend following politics to get enough of an understanding? What about poor people working long hours with little free time?
    Guess I should have gone with the landowning requirement instead.

    The Hatch Act applies to all career federal civil servants and prevents anyone under that designation from running from office in any partisan race. Meaning if your local government doesn’t allow political affiliations to be listed, then you

    Sound like a problem with the Hatch Act, not with political parties. Over here civil servant can run in political races as long they separate their work and political live, they are not allowed to wear uniforms at political events for example.


  • Short answer:
    It gave us compiler explorer, now that it has served its purpose we should stop doing it.

    Long answer:

    Why does hft even exist?

    Hft can exist because most stock markets react to requests as fast as possible and have no noticable fees for certain use cases. This means algorithms that do simple trades like if goggle goes up, buy other tech companies or buy any stock that goes up in europe on the NY market can make small profits if they are faster than everyone else.

    Does it have any value?

    There is one exchange that imposes a delay on every request, effectively inhibiting hft, and its opening actually improved market conditions on all exchanges. This implies it has negative value.
    They also spend millions on hardware, tools and developers to skim small sums of many transaction on the stock market. They are effectively a (very inefficient) tax on the stock market that goes to improving C++ compilers and funding hardware startups.