▲ 10 r/algorithms+1 crossposts

Spacing points "evenly" across a gradient

Does anyone know an algorithm for "evenly" spacing points across a given space (e.g. a cylinder), where one given point is locked in place and all others are as evenly spaced as possible, but across multiple gradients that weigh less points to be placed at specific positions. For example, a cylinder with aversion points at the top, bottom, and 3D middle, such that some points appear at the top, bottom, and middle, but less than in the middle of the surface where most points would reside. With configurable weights to the aversion points to push points closer or further away from them. Specifically, I'm trying to use such an algorithm to choose a number of sufficiently contrasting colors, but to understand the solution in general would be ideal. Is something like Lloyd's algorithm what I should be reaching for, or is there something simpler?

reddit.com
u/subone — 8 days ago

My fan and I had a fight, and it gave me indigestion, but we settled everything and came together as friends

and broke wind together.

reddit.com
u/subone — 28 days ago
▲ 0 r/Jokes

My fan and I had a fight, and it gave me indigestion, but we settled everything and came together as friends

and broke wind together.

reddit.com
u/subone — 28 days ago

My fan and I had a fight, and it gave me indigestion, but we settled everything and came together as friends

and broke wind together.

reddit.com
u/subone — 28 days ago

Interloper Expectations

Any tips would be much appreciated. I'm checking everything and finding literally nothing. Never a match, which is even worse when the closest way out of an area is a pitch black cave. Am I just expecting too much? Should I be dying quickly in the majority of the interloper games I start? Half the time I start in desolation or timberwolf, and just freeze. Must I have map knowledge and know about guaranteed spawns to survive?

reddit.com
u/subone — 1 month ago
▲ 2 r/AskPhysics+1 crossposts

ELI5: Is Centripetal Force Real?

Saw a post about the difference between centrifugal and centripetal, and how only one is a real force, but I'm having a hard time seeing it as something different than just acceleration. If you hold something on a rope and spin, there is a sideways acceleration applied to the thing on the rope and a "force" pushing them against the wall furthest from me. But if I have the same setup and then accelerate in a straight line, then the thing on the rope still has an acceleration applied and a "force" from that acceleration pushing them against the wall furthest from me. What's the diff?

reddit.com
u/subone — 2 months ago

What Would Jesus Do if given freewill?

Did Jesus have freewill? What might have happened if Jesus decided not to accept God? Would he just be another figure in a story? And what would be the moral then if interpreted metaphorically? Or is it an account of things whether or not they went towards God's plan? Would it have been excluded from the canonical Bible today? Would God have attempted to save humanity in some other way?

I'm a hard-determinist agnostic-atheist, for reference.

reddit.com
u/subone — 2 months ago

Valla Fourth Wall break?

S9E19 Crusade: Valla is explaining that she is pregnant and did not have sex with anyone in the requisite time, and she states that there is no way humanly possible that she knows of that this could possibly happen, and then looks dead in the camera for a good second, before the comical question of if they've ever heard of such thing. It looks like they are recording it, so she was probably looking into *that* camera, but I thought that was funny, and I never noticed it before. Obviously, I don't literally believe in... Darth Vader.

reddit.com
u/subone — 3 months ago

Dead Like Daniel

Looks like it's been months since the last post, so I'm announcing my wife and I just realized that the "Celestial Waffle House" is the same from Dead Like Me. We love that show, too!

Edit: fix show misspelling

reddit.com
u/subone — 3 months ago

Heroes

You know it can't be O'Neill, and then when it's Frasier, you know it must be true, and it fits with the narrative, and it hits hard. And of course I know, on rewatch, but I'm still bawling.

Respect to fallen heroes.

reddit.com
u/subone — 3 months ago

Updates here on my Scripting Editor/Interpreter Progress?

I'm working on a script editor and interpreter. I plan to handle BASIC, TIS-100 ASM, and maybe something custom based on JS. The plan with TIS-100 is to essentially replicate the game in a smaller form factor (and perhaps to compile the VM to WASM later to do something like "infinite" TIS-100 nodes in a web game). I may also try to support some custom languages with a provided definition file. Much of the extras depends on how much memory I can eek out. I'm also building a desktop emulation of it alongside the cardputer build, so that it can be tested without needing to upload.

Currently, I have gotten as far as having the cardputer and desktop (SDL) apps doing a demo of the shared graphics/text interface, and have text scrolling working in both directions. Next I plan to integrate the scrolling text with input and get the editor working and saving to sdcard. Next I'll tackle the VM, and later I will convert my demo code to script code running inside the VM.

My last couple of posts about this didn't get any responses. So, I'm wondering what the interest level is here. Do people want to see code or just see it work or the progress? Is this the wrong place for this sort of thing? Should I post updates at all, or just keep this to myself? The community would likely help keep me motivated, but I'm wondering how you all feel about it.

View Poll

reddit.com
u/subone — 3 months ago

I'm working on creating a script interpreter and editor for the m5 cardputer. Since the only available storage seems to be flash, which has limited writes, I'm hesitant to write to storage more than necessary. I created a desktop emulated build to avoid needing to always deploy to the m5 before testing changes. I'm guessing a lot of people are using these as scanning or debugging tools with less write to the device. Does anyone have suggestions for default preference of whether to store changes in user script text and generated bytecode cache at some frequency, or require the user to save? Will everyone remember to save before turning it off? Am I being overly sensitive to the write limit? Of course, I can add an option to settings, but I'm wondering what the "standard" expectations are.

reddit.com
u/subone — 4 months ago