Skip to content

Jank thread #8

@leios

Description

@leios

This is a list of all the "jank" I come across with this codebase as it is written. If you are a user of quibble, please feel free to discuss weird issues you have here!

What jank needs to be fixed:

  • I should be using strncat instead of strcat
  • I should be using snprintf instead of printf
  • I should limit MAX_SOURCE_SIZE and maybe do something where I allocate new pages if I run out of space.
  • Priority colors will allocate a new array when outputting to file
    • Simple solution: carry around an output array in addition to host_data that is only used for priority colors (and otherwise NULL).
    • deprioritize_array(quibble_pixels pqs), which will do an in-place deprioritize without a malloc. We can remove the other function.

What jank is mentioned in the docs?

  • qb_combine_program...(...) will not combine all auxiliary functions (everything_else) because it is intended to be used only during the build step. This means that if users wish to use this function, they will need to combine the programs, then combine everything_elses, and then build separately!
  • Quibble -> qbtest; building lib #25 (comment)
  • Quibble colors need to be unrolled for gpu execution because the datatype is not a multiple of 16. I think. I am not really sure the exact reason and need to think about it.

No longer tracking:

Metadata

Metadata

Assignees

No one assigned

    Labels

    evergreenIssues that stay fresh all year long

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions