applecinnabun

fatigue elemental raccalope

  • they/she

game dev/sk8r grrl/guitar/flute/tree liker/indie game obsesser/basic autumn bitch. working on hoptix!

<3 @static-echo <3


play the latest (free!) hoptix demo!
sonicfangameshq.com/forums/showcase/hoptix.1948/
hoptix on twitter (not active, some cool dev posts there though)
twitter.com/hoptixGame
profile pic by @cottontailcat
cohost.org/cottontailcat
BUSINESS
hoptixgame@gmail.com

jkap
@jkap

software development is like 90% weird compromises to work around the limitations of the tools you use. for example: hardcoded list of prime numbers. it's faster than computing them on the fly.

FAQ
Q. what are you using these for
A. artist alley. don't worry about it.

Q. what if you need to change these
A. if we somehow find new prime numbers between approximately 1k and 10k then updating this file will be the least of our concerns


jkap
@jkap

every page request is now assigned a prime number. run the following javascript in your console to see yours! it's valuable information! probably!

JSON.parse(document.getElementById("site-config").innerText).operatingPrime
syntax highlighting by codehost


You must log in to comment.

in reply to @jkap's post:

many video games, especially older ones, use a look-up table like this for trig functions - and sometimes also for square root, division, etc. on platforms that don't have built-in cpu instructions for them

I am forever reminded of the reason why software development feels like arcane spells and magic instead of using machines in the name of order and reason

It's because the machines do not know order and reason, we have to force those into them

in reply to @jkap's post:

Given that they mention it being related to artist alley; it’s probably about picking which ads to display in each request. I wouldn’t be surprised if they’re using an algorithm that uses a randomly assigned prime number per-page-load in some way to determine what ads get displayed out of the overall pool of available, active ads. I dunno what that algorithm would be personally, but primes have unique qualities that make them useful/interesting numbers in a variety of contexts, so it seems plausible to me that an ad selection algorithm might benefit from that too