• 0 Posts
  • 18 Comments
Joined 5 months ago
cake
Cake day: April 30th, 2024

help-circle









  • Technically the Python bool is fine, but it’s part of what makes numpy special. Under the hood numpy uses c type data structures, (can look into cython if you want to learn more).

    It’s part of where the speed comes from for numpy, these more optimized c structures, this means if you want to compare things (say an array of booleans to find if any are false) you either need to slow back down and mix back in Python’s frameworks, or as numpy did, keep everything cython, make your own data type, and keep on trucking knowing everything is compatible.

    There’s probably more reasons, but that’s the main one I see. If they depend on any specific logic (say treating it as an actual boolean and not letting you adding two True values together and getting an int like you do in base Python) then having their own also ensures that logic.








  • Spent a lot of time with engineers, but am not one myself. Most grinding discs and things that wear stuff down have a surface made to rip in, and higher opposed friction. Think sandpaper, it digs into a surface with those hills from the grit, and uses the friction to then drag through cutting the surface and removing material.

    With this floor, it looks like the wheels are smooth, so all though there’s some friction, it isn’t a cutting action. There’s also the fact that their friction is unopposed and can actually move the person, so the energy gets converted into movement, not the cutting force that would grind things down.

    They really are just tiny treadmills, the only reason they’re discs is so they can be tilted to change the direction the “treadmill” is going to push you. If the disc is tilted to the right, the left most edge is going forward, if the disk is tilted to the left, that right edge is moving backwards. Otherwise exact same principle as a treadmill of creating friction to move the object on it.

    Hope that helps some. Diagrams would probably help more.