Interested in the intersections between policy, law and technology. Programmer, lawyer, civil servant, orthodox Marxist. Blind.


Interesado en la intersección entre la política, el derecho y la tecnología. Programador, abogado, funcionario, marxista ortodoxo. Ciego.

  • 3 Posts
  • 34 Comments
Joined 1 year ago
cake
Cake day: June 5th, 2023

help-circle

  • Not sure I understand. What I’m trying to do is something like this:

    • Poll a stream which takes fedi events. Read player commands.
    • If an event comes from a known player, check which match they are into.
    • With that info, get their opponents/coplayers etc and perform the change of state in the game (send replies, next turn, etc).

    So what I have as a key is a player name (AP username) and from that I need to find which match they’re in.

    There’s nothing semantically useful about a match ID.


  • Thanks, the RC is a possible approach. It seems to violate DRY a bit but maybe there’s no way around it.

    The reason I had the players outside the match is that I need them there anyway, because when I get a player action I need to check in which match they are, who are their opponent(s) and so on. So even if they’re in, they’ll have to be out too as there are concurrent matches and the player actions come all through the same network stream.










  • Apparently the problem is due to an incompatibility between the use of certain libraries (winapi and windows-sys) which use different versions of COM. At least so I deduce from the documentation I’ve read.

    There’s a workaaround:

    On Cargo.toml, use.

    [build-dependencies]
    embed-manifest = "1.3.1"
    

    And on the root of the project (not the src dir) create a build.rs file with the following content:

    use embed_manifest::{embed_manifest, new_manifest};
    
    fn main() {
        if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
            embed_manifest(new_manifest("Contoso.Sample")).expect("unable to embed manifest file");
        }
        println!("cargo:rerun-if-changed=build.rs");
    }
    

    This embeds a manifest together with the executable, solving the issue.




  • The way I look at this is I have a reasonable understanding of rust. I’m not an expert but I can more or less do whatever computation I need to do, use crates, and so on. But with async it’s like learning another language. Somewhat of an exaggeration, but it’s not just what code you need to write, but also being able to read the error messages from the compiler, understanding the patterns and so on. So yes, it’s probably fine, but it does take work.




  • Not that I expect a lot of consistency from imperialists, but essentially the same lines of argument can be used regarding the Russian Federation.

    An advisory opinion would effectively settle Israel’s “bilateral dispute” without the state’s consent.

    Ditto for .ru and .ua.

    The court is not equipped to examine a “broad range of complex factual issues concerning the entire history of the parties’ dispute”.

    Same thing, especially if we get back to the formation of the Soviet Union, independence referenda, and so on.

    An advisory opinion would conflict with existing agreements between the parties and negotiation frameworks endorsed by the UN.

    This would be Minsk I and II.

    The request is not appropriate as it asks the court to “assume unlawful conduct on the part of Israel”.

    Ditto.


  • Historically many if not most conflicts started with the breach of an agreement. Without getting bogged down in irrelevant detail, there are issue of self-determination of Crimea, which repeatedly in 3 referenda (2 if you wish to exclude the last one) pronounced in favour of either autonomy or being part of the CIS (effectively Russian Federation). Likewise, and setting aside the 2014 events for the moment, there also were agreements that, in principle, may have served as a valid status quo, such as Minsk II, and were not complied to by the parties.

    So, sure, some form of trust-building will be necessary. But what’s the alternative? Endless war?



  • No such implication is there. All I said was serious negotiations, which given the state of facts entails the prospect of territorial concessions. I don’t expect the negotiations would lead to a simple redrawing of the borders to take account of what each side materially holds at present. In fact, I don’t have much of a preconceived idea of what such negotiations would be like other than I find it extremely unlikely that Crimea will return to Ukrainian control. That’s the point of negotiation: finding out what the belligerents can live with.