lobitotal.blogg.se

Half life source codes
Half life source codes







half life source codes
  1. #Half life source codes mod
  2. #Half life source codes code

There's probably some way to make it work, but I'll revisit some other time. But before going down a rabbit hole of curve fitting, I reminded myself of von Neumann's quote: With four parameters I can fit an elephant, and with five I can make him wiggle his trunk.

#Half life source codes code

This would work for a repo with some code that changes fast and some code that changes slowly. I suspect a slightly better model would be to fit a sum of exponentials. I like the explanatory power of an exponential decay – code has an expected life time and a constant risk of being replaced. Hmm… not convinced this is necessarily a perfect fit, but as the famous quote goes: All models are wrong, some models are useful. Fitting an exponential decay to Git and solving for the half-life gives approx ~6 years. It looks like Git is somewhat of an outlier here. This analysis is somewhat harder to implement than it sounds like because of various stuff (mostly because newer commits have had less time, so the right end of the curve represents an aggregate of fewer commits).Įven after 10 years, 40% of lines of code is still present! Let's look at a broader range of (somewhat randomly selected) open source projects: If we align all commits at x=0, we can look at the aggregate decay for code in a certain repo. We can compute the decay for individual commits too. I would have expected more of a decay here, and I'm surprised to see that so much code written back in 2006 is still alive in the code base – interesting! This plots the aggregate number of lines of code over time, broken down into cohorts by the year added. Git became self-hosting early on, and it's one of the most popular and oldest Git projects: There is a “ship of Theseus” effect, but there's also a compounding effect where codebases keep growing over time (maybe I should call it “Second Avenue Subway” effect, after the construction project in NYC that's been going on since 1919). It turns out that code doesn't exactly evolve the way I expected. The ship wherein Theseus and the youth of Athens returned from Crete had thirty oars, and was preserved by the Athenians down even to the time of Demetrius Phalereus, for they took away the old planks as they decayed, putting in new and stronger timber in their places, in so much that this ship became a standing example among the philosophers, for the logical question of things that grow one side holding that the ship remained the same, and the other contending that it was not the same. If all pieces are replaced, is it still the same ship? It refers to a philosophical paradox, where the pieces of a ship are replaced for hundreds of years. I'm a dad now, so I can make terrible puns. In moment of clarity, I named “Git of Theseus” as a terrible pun on ship of Theseus. The idea is to go back in history historical and run a git blame (making this somewhat fast was a bit nontrivial, as it turns out, but I'll spare you the details, which involve some opportunistic caching of files, pick historical points spread out in time, use git diff to invalidate changed files, etc).

  • Expanded limitation for submodels, from 8-bit (255 submodels) to 32-bit (4. Resume Top posts The half-life of code & the ship of Theseus Īs a project evolves, does the new code just add on top of the old code? Or does it replace the old code slowly over time? In order to understand this, I built a little thing to analyze Git projects, with help from the formidable GitPython project.
  • Restored Enemies such as Panthereye, Chargers, Kingpin and more.
  • Spawn Chance (%) for func_breakable, func_wall, func_illusionary and monsters.
  • Smart Sub-Model Randomization for NPCs and Monsters, allows dynamically and non-repetitively generating NPCs.
  • half life source codes

  • Modular Fullbright System for models, using _light.mdl prefix on a model to attach it to other model in fullbright.
  • In this section, we will list the important features of this SDK Based on the Half-Life Updated SDK Features Equipped with modern features and tools to improve gameplay and development wise.

    #Half life source codes mod

    Source Code of Half Life : Extended as a open source modbase for everyone publicly, make your own mod with alot of features easily based on this SDK.









    Half life source codes