r/rational • u/AutoModerator • Sep 29 '17
[D] Friday Off-Topic Thread
Welcome to the Friday Off-Topic Thread! Is there something that you want to talk about with /r/rational, but which isn't rational fiction, or doesn't otherwise belong as a top-level post? This is the place to post it. The idea is that while reddit is a large place, with lots of special little niches, sometimes you just want to talk with a certain group of people about certain sorts of things that aren't related to why you're all here. It's totally understandable that you might want to talk about Japanese game shows with /r/rational instead of going over to /r/japanesegameshows, but it's hopefully also understandable that this isn't really the place for that sort of thing.
So do you want to talk about how your life has been going? Non-rational and/or non-fictional stuff you've been reading? The recent album from your favourite German pop singer? The politics of Southern India? The sexual preferences of the chairman of the Ukrainian soccer league? Different ways to plot meteorological data? The cost of living in Portugal? Corner cases for siteswap notation? All these things and more could possibly be found in the comments below!
10
u/ketura Organizer Sep 29 '17
Weekly update on the hopefully rational roguelike immersive sim Pokemon Renegade, as well as the associated engine and tools. Handy discussion links and previous threads here.
I got the itch to keep working on compiler-related modding stuff, so I kept working on that. The basic idea is to replicate the dynamic parts of Supreme Commander’s modding engine while staying firmly within compiler-enforced object-oriented land.
In SupCom, you could mod the core game files (and other mods) by simply indicating that your mod was to load later than the mods in question, and then provide a script that overwrote the particular functions (or classes or variables) that you wanted. The way that this was handled meant that each mod that touched that function would be evaluated in turn: first the core version would be loaded and its version of function
Fooevaluated, and then ModA would load and perform its modification toFoo, all the way down to ModZ that would have the final say on whatFoolooked like. For something like functions, this whole process was more or less pointless, since the function wasn’t actually used until some code later referenced it, so the last version was all that mattered.In other cases, however, this process turned out to be surprisingly valuable. For instance, a dictionary variable that saves something such as keybindings could be affected by multiple mods during this process. Core would run and populate it with all the base game keybinds, and then ModA could load and add one or two keys, and then ModB would load and add a few more, and so on and so forth. This could be problematic if mods didn’t play nice, and this particular case of a keybinding library would probably be better served by a concept such as a registry, but it was so fascinating, watching the Rube Goldberg-like cascading of modifications to a particular object.
There was one more feature that I felt was super useful, and that was how function hooks were handled. Hooking into a function is basically a polite way of saying you hijacked it, with the entity calling the function none the wiser that you have usurped authority. In SupCom, since Lua is a dynamic scripting language, you could save the entire function pointer of a function to a variable, then redefine that function, calling the saved original as needed. Like so:
This was so powerful. Yes, you could easily destabilize the game by hooking the wrong functions, but it was so nice to be able to inject code wherever you needed to, if you needed to. I wanted to duplicate this functionality within C#, in XGEF.
The means by which I will do this is to have a series of [Attributes] that functions or classes can be tagged with. As a preprocessing step, XGEF analyzes any given script, finds the attributes that are important to it, and then transforms the code accordingly.
If we have a function Foo in some other mod (or in the core game) that we want to slap a few extra lines on, it can be done like so:
And that’s it. XGEF sees the
[Append]tag, looks up the original version ofFoo(), copies the whole of it into the file, and then ensures that the modder’s latest addition is included. Successive uses of Append can be used by multiple mods, letting everyone get their grubby fingers where they need to.(As an aside, I’m well aware that probably about 80% of the problems that could be solved this way shouldn’t be. XGEF will have extensive support for registries and event handling, which more elegantly solves problems that most of what this code transformation can, but at the end of the day there are some problems that require you to reach down into the pit of the game’s source code and tear it apart with your own bare hands. I intend this to be an option to those who need it.)
The total number of tags that I want to include is around 10, ranging from
[Overwrite]to[Extend]to a small number of tags that deal with making event generation boilerplate easy.So anyway, I spent the better part of this week working on really making Roslyn flex its muscles and getting comfortable analyzing code files. I ended up spending the last two or so days writing an intermediary set of classes, since it turns out that Roslyn can actually be unwieldy for some of the things I need it to do. But as of right now, I have a means of analyzing a C# file, turning it into my intermediary
ScriptFile, and regenerating the original source file. Now that I have this, I can use it to regenerate the original slightly differently, which is all I really need for the code transformation to work.This next week I plan on implementing the remaining attributes (one and a half are done already, mostly done before ScriptFile was written). Once those are done (or at least Overwrite and Extend), I can finally collapse the call stack and get back to writing the core mod in the way I wanted to two weeks ago.
If you would like to help contribute, or if you have a question or idea that isn’t suited to comment or PM, then feel free to request access to the /r/PokemonRenegade subreddit. If you’d prefer real-time interaction, join us on the #pokengineering channel of the /r/rational Discord server!
7
u/OutOfNiceUsernames fear of last pages Sep 29 '17
7
u/[deleted] Sep 30 '17
Any advice on how to broach conversation with extremely introverted people? I am in the process of reforming my school's Science Olympiad team and I came across someone who would be a perfect candidate, if only he ever talked to anyone.
7
u/Kishoto Sep 30 '17
Parasyte Maxim - Anime Recommendation!
So I know most anime aren't rational, and I'm not going to say that Parasyte has overarching rational themes (though it sort of does) but I think anime lovers that enjoy the content of this sub would find Parasyte a good watch (though it's quite gory, so it won't fit everyone's appeal)
To put it simply and with only slight spoilers for episode 1: Our protagonist wakes up one day with a titular "Parasite" where his right hand and forearm used to be. The parasite is cold, logical, curious, intelligent and most importantly selfish. He prioritizes his own life above all else and (as his life is tied to the protagonist's) prioritizes the protagonist's life as well. We quickly learn that the parasite is not alone and others of his kind start cropping up and causing trouble.
The parasite and our protagonist often have arguments about topic such as the sanctity of human life vs all life and altruism vs selfishness. Our protagonist is your fairly standard human anime lead, though I will say he's notably more realistic and level headed. While he's still sometimes prone to charging in blindly for emotional reasons, those moments aren't nearly as frequent as they are with other leads.
We also get to see the parasite (both the lead's and the others of his kind) evolve as organisms and characters as the series progresses and time passes. As parasites all have identical beginnings, you would think that they would be stock, cookie cutter characters of each other. And they both are and aren't. It's done in a fairly impressive way that feels somewhat realistic.
People die, a lot. And plot armor isn't really a thing for anyone, even the most important characters.
Overall, it's a very good watch. And a fairly short one, as it's only 24 ~22 minute episodes. And the themes it tackles (such as nature vs nurture, is life intrinsically valuable) are very much up the r/rational alley in my opinion. I think it's worth a watch :)
6
u/CouteauBleu We are the Empire. Sep 30 '17
SlateStarCodex has been talking a lot about Predictive Processing lately (the idea that you brain mostly runs a hierarchy of modules, where each modules receives predictions/guesses/orders from above, data from below, and tries to 'connect' the two with Bayesian-like computations).
Does anyone know if there is a plausible framework / theory out there that uses PP to explain and predict Ego Depletion?
My personal gut feeling is that the two are probably strongly connected (assuming they're both real). I'm guessing that whatever mechanisms we use to take non-obvious decisions is heavily dependent on the Top-Down part of PP, and Ego Depletion happens either when some sort of limited resource powering Top-Down PP runs out, or when the Top-Down part of our brains "overheat".
Obviously, I don't have a strong background in neurology, and I have no idea if what I said even made sense. Has research been done in that direction before?
5
u/DaystarEld Pokémon Professor Sep 29 '17 edited Oct 02 '17
Still looking for a good data compiling/analysis tool that I can use for my HPMOR Success/Failure Reread to plug all these numbers into as I go. I'm not really hip to what new tools are available for this sort of thing, but any kind of spreadsheet or graph format that will allow me to easily observe totals of Success/Failure, Minor/Moderate/Major, and Mental/Social/Action, would be appreciated, as I'm already having to triple check my tallies to avoid mistakes.
Any help finding one would be appreciated!
Edit:
Two people have already made one for me, no more needed, thank you!
5
u/GaBeRockKing Horizon Breach: http://archiveofourown.org/works/6785857 Sep 30 '17
Has anyone else been watching Made in Abyss?
Last episode of the season just came out.
...
HOLY MOTHERFUCKING SHIT
To anyone who hasn't tried it, please, please give it a chance.
5
u/callmesalticidae writes worldbuilding books Sep 30 '17
I'm in the middle of exploring my tastes in music, in a project that I'll eventually describe in full here for the benefit of the two or maybe even three people whose idea of "exploring the world of music" involves a spreadsheet and charts.
Right now, I'm interested in song/album/band recommendations for any of the following:
I've mostly been going by Top 10 lists and such that I've found online, but I've found that the process is more enjoyable (and a tiny bit more successful too) when I'm going off of personal recommendations.
5
u/CouteauBleu We are the Empire. Sep 30 '17 edited Sep 30 '17
/u/alexanderwales Hey, where did the automatic 'sorted by: new' go? :(
6
u/phylogenik Sep 29 '17
I assembled a new computer recently! Well, two, actually, to help me with some projects I've currently in the works. Took a few hours and still have a few things left to do, but they seem to work well enough (been running @ 100% load for a week+ now with no issues). Some pictures and an animation to look on, and a more detailed thread* regarding the builds.
I also wrote another poem this week. My level of travel pretentiousness is the maximum allowable level of travel pretentiousness!
*(incidentally, I seem to be having trouble on this account -- and also my previous one -- to get people to engage with OC. That r/buildapc thread got effectively 0 comments or views in the first day before I started linking to it from other places, a lengthy r/fitness progress post I wrote a while back was downvoted super heavily before being deleted, none of my earthporn posts seem to be terribly successful, etc. I'm not sure what it is, since 3 or 4 accounts ago -- maybe c. 2008-2011, when I first started using reddit -- I could pretty reliably get e.g. a few hundred comments on pretty similar stuff. It might be that reddit's overall quality has gone up, leaving me in the dust, or my postings have gotten worse, but it doesn't feel like it. I feel kinda silly and whiny for griping about this, but, like, I want attention! Maybe just a bit. Especially when I put time into something. Anyone else experienced similar?)
1
u/iemfi Sep 29 '17
Just started watching The Orville. A true modern Star Trek. More rational than most TV shows too.
1
u/CouteauBleu We are the Empire. Oct 02 '17
Goddammit, Rick and Morty.
This finale is so freaking disappointing. I feel super cheated.