archevel's recent activity

  1. Comment on Fortnightly Programming Q&A Thread in ~comp

    archevel
    Link
    Started to learn Rust over the holidays and I'm planning to use it for a code gen project to quickly create a front-end for a webapp based on a spec. So starting out I want to make a parser for...

    Started to learn Rust over the holidays and I'm planning to use it for a code gen project to quickly create a front-end for a webapp based on a spec. So starting out I want to make a parser for the spec and found nom. To start out I want to make a function that accepts ASCII character inputs where the first character is capitalized; i.e Abc and Xyz is fine, but abc and xyz should be rejected.

    This seems to do the trick, but I'm curious if there is a more elegant approach:

    nom::combinators::verify(alpha1, |s| match s.chars().next() { Ok(c) => 'A' <= c && c <= 'Z', _ => false })
    

    Note that alpha1 guarantees that s is at least 1 characters long and consist of ASCII encoded letters. Knowing this I know it would be safe to index directly into the &str with something like s[0], but the compiler doesn't allow it as far as I understand. Anyway, is there a way to write such a parser function in a better way?

    1 vote
  2. Comment on Remnants of the Precursors (An open source modernization of the 4x strategy game Master of Orion) passed the 1.0 milestone in ~games

    archevel
    Link
    I never played the original MOO, but I probably would have loved it. Is it similar to eg. Stellaris?

    I never played the original MOO, but I probably would have loved it. Is it similar to eg. Stellaris?

    1 vote
  3. Comment on Five YouTubers. Five games. $10,000. in ~tv

    archevel
    Link Parent
    True, might not be a super easy thing to coordinate. The basic idea is to realize that the game is not really player Vs player, it is a game of the players Vs the house. If you frame the game in...

    True, might not be a super easy thing to coordinate. The basic idea is to realize that the game is not really player Vs player, it is a game of the players Vs the house. If you frame the game in that way it is probably easier to get cooperation from a pure psychological perspective. Everyone will feel like they are clever and cheating without consequences.

    There are also corrective strategies one can use in these types of games, e.g. variations on tit for tat that can cope with misstakes/noise. However, those strategies break down in finite iteration games where the number of iterations are known. In this case for the video I think there is a really strong incentive to not screw everyone over; this being public on the internet on a well known channel and all.

  4. Comment on Five YouTubers. Five games. $10,000. in ~tv

    archevel
    Link
    This was a fun game. They didn't do the meta-strategizing that would have optimized their wins though. They could have at the start said: "Ok, there is a total pot of 10k. Let's split that evenly...

    This was a fun game. They didn't do the meta-strategizing that would have optimized their wins though. They could have at the start said: "Ok, there is a total pot of 10k. Let's split that evenly among us and optimize for total pot size." If they'd done that they would have won an additional fee hundred dollars each. Of course this would require some trust, but since it is the optimal outcome it ought to be the least likely for people screwing eachother over.

    2 votes
  5. Comment on Tildes Game Giveaway Thread: Holiday 2021 in ~games

    archevel
    Link Parent
    Can I snag Barotrauma? Love co-op games so would like to give it a go!

    Can I snag Barotrauma? Love co-op games so would like to give it a go!

    1 vote
  6. Any good resources on Morphogenesis and related areas?

    I recently began thinking about how plants get their shape and discovered "morphogenesis" after some inept googling. It seems like a fascinating subject so I'd like to learn a bit more. I have...

    I recently began thinking about how plants get their shape and discovered "morphogenesis" after some inept googling. It seems like a fascinating subject so I'd like to learn a bit more. I have some A-level university courses in chemistry and microbiology, but never dug too deep. So I am looking for suggestions on what to read up on in order to gain some understanding of how plants and other organisms get their shape. The ultimate goal is of course to plant my own house.

    4 votes
  7. Comment on What games have you been playing, and what's your opinion on them? in ~games

    archevel
    Link
    Me and a few friends started playing New World recently. I like it. It has a nice mellow feel to it. We can do some quests together and it is mostly on a manageable difficulty. I also enjoy that...

    Me and a few friends started playing New World recently. I like it. It has a nice mellow feel to it. We can do some quests together and it is mostly on a manageable difficulty. I also enjoy that the combat system isn't just spamming button combos, but instead encourages you to pay attention to the enemies. I play a healer and it can be a bit challenging to keep people from going down, partly this is because I am a few levels behind the others.

    There are a few things I don't like about the game. Primarily when picking up faction quests when in a group we all get different quests. This would be fine of you could share quests, but that's not currently possible. Secondly, the fast travel options are limited which is fine, but a bit annoying. Would be nice if there was someway to send items between settlements via NPCs so I didn't have to do the run myself. Lastly the dominant factions get some benefits from the areas they control. It would be nice if the underdog factions got some kind of perk. As is, since we picked Covenant (which is the smallest on our server) "the good guys" we miss out on some benefits.

    All in all, nice mellow game.

    4 votes
  8. Comment on What programming/technical projects have you been working on? in ~comp

    archevel
    Link Parent
    I started a few months back when one of the people in the project reached out since they needed Devs with kids in Gothenburg. I wasn't part of the Stockholm city stuff as that was mainly before I...

    I started a few months back when one of the people in the project reached out since they needed Devs with kids in Gothenburg. I wasn't part of the Stockholm city stuff as that was mainly before I started.

    2 votes
  9. Comment on What programming/technical projects have you been working on? in ~comp

    archevel
    Link Parent
    Yeah, that's the one. We're building it for Gothenburg now and so far they've been much more supportive of our efforts.

    Yeah, that's the one. We're building it for Gothenburg now and so far they've been much more supportive of our efforts.

    2 votes
  10. Comment on What programming/technical projects have you been working on? in ~comp

    archevel
    Link
    I've been working a bit on a Öppna Skolplatformen to enable it for parents with kids in my municipality. Unfortunately I've run up against a bit of a roadblock. All communication with the server...

    I've been working a bit on a Öppna Skolplatformen to enable it for parents with kids in my municipality. Unfortunately I've run up against a bit of a roadblock. All communication with the server works when I drive the calls via node. However, when I shift over to use react-native to do the fetching the login breaks down. I think I've tracked down the issue to react-native's fetch call not handling multiple Set-Cookie headers correctly (in the case of Android). Just for debugging purposes (and also for a bit of fun and learning) I implemented my own fetch function in android and exposed it as a native module. It now manages to get past one part of the login, but there is some additional issue that prevents the whole login flow to complete. This hack isn't the way to solve the issue (I have a hunch I can inject a custom cookie manager into the existing fetch function in a cleaner way), but I haven't worked much with react-native so figured it'd be good way to learn some details.

    4 votes
  11. Comment on The cold logic of drunk people - At a bar in France, researchers made people answer questions about philosophy in ~humanities

    archevel
    Link Parent
    I was thinking more in line of this report:

    I was thinking more in line of this report:

    Studies have generally found that the more serious the crime or injuries, the more likely alcohol was involved. For example, a recent study showed that drinking offenders committed 15 percent of robberies, 26 percent of aggravated and simple assaults, and 37 percent of rapes and sexual assaults (Greenfeld 1998).

    3 votes
  12. Comment on What games have you been playing, and what's your opinion on them? in ~games

    archevel
    Link
    I finished up Return of the Obra Dinn this weekend. It is a super nice game and the aesthetics of it makes it great and timeless in the sense that it will keep looking nice and distinct no matter...

    I finished up Return of the Obra Dinn this weekend. It is a super nice game and the aesthetics of it makes it great and timeless in the sense that it will keep looking nice and distinct no matter how graphics evolve in the future. I wish more gamedevs would forgo cutting edge graphics and develop a more distinct visual look for their games. WoW did this in part, Zelda:BotW too. Neither of those had the greatest most detailed graphics at their time, but both have pleasing graphics that lasts. (Sure in WoWs case there has been plenty of updates and changes, but I think this still holds true?).

    Spoilers for Return of the Obra Dinn The main difficulty I had was identifying the Chinese topmen. In the end I managed by trial and error to pick the correct name to three of them(?), Which I was stuck on. No idea what clue I missed that would make this simpler.

    My biggest brain fart was not realising that the doctor was the one who sent me on the mission. So at the end I couldn't get how on earth I would pick the location for the last four survivors! After giving up and leaving the boat and reading the response it was clear what I had missed and managed to get that sorted so I could go through the bargain to resolve how the final unknown deaths had happened. All in all good fun!

    5 votes
  13. Comment on The cold logic of drunk people - At a bar in France, researchers made people answer questions about philosophy in ~humanities

    archevel
    Link
    Did they control for the obvious reverse correlation, i.e utilitarians tend to get more drunk at bars? This seems more like a case of lowered inhibitions than drunkss being utilitarians. Drunk...

    Did they control for the obvious reverse correlation, i.e utilitarians tend to get more drunk at bars?

    This seems more like a case of lowered inhibitions than drunkss being utilitarians. Drunk people are more likely to kill others in general no?

    7 votes
  14. Comment on The new puritans in ~humanities

    archevel
    Link Parent
    I'm not convinced it is that simple. We have a long history of not believing and also blaming victims of sexual assualt and rape. While the presumtion of innocence is important it becomes...

    I'm not convinced it is that simple. We have a long history of not believing and also blaming victims of sexual assualt and rape. While the presumtion of innocence is important it becomes problematic when it is a case of word against word. Who do we as a society choose to believe when someone comes and forward and acuses their supposed assailant if there is no physical evidence left? It becomes even more difficult when the same situation is remembered differently by different people and when they have different perspective on it. Persuming innocence in a lot of these situation allows assailants to go free... The article and grand-parent comment I realize now is more about milder infractions than sexual assault so there could be a categorical difference?

    5 votes
  15. Comment on What did you do this weekend? in ~talk

    archevel
    Link
    This probably comes of as bragging, but I just had such a lovely weekend! Me and a few friends rented a house and spent the weekend playing boardgames and expanding openyr and paper RPG campaign....

    This probably comes of as bragging, but I just had such a lovely weekend! Me and a few friends rented a house and spent the weekend playing boardgames and expanding openyr and paper RPG campaign. We have this as a biannual "tradition", but haven't done it since before the covid times. It is great to get back at it! Sooo much fun to just hang out, eat food and play games all day!

    Our theme this year was "time traveling heist" so naturally in our RPG session we did just that. Plan to rob a museum of a magical crystal in the high tech ancient times (3000 years before our current campaign's setting). We still need to pull of the heist, but how hard can that be?

    7 votes
  16. Comment on ‘Babylon 5’ series reboot from creator J. Michael Straczynski in works at the CW in ~tv

    archevel
    Link
    I have only fond memories of this show. I rewatched the original a few years back and I still enjoy it. It is a nice blend of mythology and sci-fi with a good storyline that covers multiple years....

    I have only fond memories of this show. I rewatched the original a few years back and I still enjoy it. It is a nice blend of mythology and sci-fi with a good storyline that covers multiple years. It deals with the rise of totalitarianism, the deep state (before this was a popularised term), order vs chaos in their extremes. The struggle of doing good in a bad situation. Unrequited love. Religion... And blends all this in a well executed way.

    It has some memorable side characters with interesting character development arcs like Susan Ivonova, G'kar, Garabaldi and Londo.

    All in all I can warmly recommend the original series. The spin-off series "Crusade" was rubbish IMO so just ignore that one;

    2 votes
  17. Comment on We work at the ACLU. Here’s what we think about vaccine mandates. in ~health.coronavirus

    archevel
    Link Parent
    It definitely is a medical procedure and there is some risk involved. It is just that the risk is tiny and the benefits super obvious!

    It definitely is a medical procedure and there is some risk involved. It is just that the risk is tiny and the benefits super obvious!

    4 votes
  18. Comment on We work at the ACLU. Here’s what we think about vaccine mandates. in ~health.coronavirus

    archevel
    Link Parent
    Now that I think more closely when I got a wok visa for NZ I did have to have a few checkups (TBC screening IIRC), there were probably some additional things I've forgotten there. I did get a...

    Now that I think more closely when I got a wok visa for NZ I did have to have a few checkups (TBC screening IIRC), there were probably some additional things I've forgotten there.

    I did get a bunch of vaccinations done when travelling that have been recommended when going to different areas, India, Thailand, China, Peru, Saudi Arabia etc. But I can't recall if these were required for entry...

    2 votes
  19. Comment on The Wheel Of Time – Official teaser trailer | Prime Video in ~tv

    archevel
    (edited )
    Link Parent
    You might be right. I think I read the first book back in 96/97 and read through the first few released ones fairly quickly. Then as you catch up to the author there is more of a gap between...

    You might be right. I think I read the first book back in 96/97 and read through the first few released ones fairly quickly. Then as you catch up to the author there is more of a gap between reading which leads me to be not as invested in the story (since I forget a bunch of it between reading the books). Maybe I should try them again...

    3 votes
  20. Comment on We work at the ACLU. Here’s what we think about vaccine mandates. in ~health.coronavirus

    archevel
    Link Parent
    Are you sure? I've travelled pretty extensively and never had to show any vaccination records as far as I can remember. Maybe it is due to me comming from Sweden with a robust vaccination program,...

    Are you sure? I've travelled pretty extensively and never had to show any vaccination records as far as I can remember. Maybe it is due to me comming from Sweden with a robust vaccination program, but I can't recall ever having to prove actual vaccination status as part of entering another country (before covid limitations). Besides I imagine these mandates would apply inside a country not just when crossing borders right?

    1 vote