news.volyx.in

Olive.c: a simple graphics library that does not have any dependencies (tsoding.org)

499 points by masterofsome · 1449 days ago · 93 comments on HN

Article summary

The article introduces Olive.c, a simple graphics library with no dependencies. The library is designed to be portable and can be compiled to different platforms with various rendering mechanisms. The discussion revolves around the library's CPU-based rendering and its potential performance implications. The library's implementation as a single-file library is also a topic of interest.

Main themes

  • Graphics Library
  • CPU-based Rendering
  • Portability
  • Single-file Library
  • Performance Optimization
  • Build Systems

What commenters say

  • The library's CPU-based rendering may lead to poor performance on low-end hardware, but it can still be viable with careful optimization.
  • The single-file library approach can be convenient for distribution and use, but it may not be suitable for large-scale projects or traditional build systems.
  • Some commentators view single-file libraries as unprofessional or 'toy-like', while others see them as a valid and useful approach.
  • The use of a single file with a .c extension instead of separate .h and .c files is seen as unconventional by some, but others argue it is a valid technique for certain use cases.
  • The library's portability and ability to be compiled to different platforms are seen as major advantages.
  • The performance of the library can be improved with techniques such as SIMD, but it is not currently implemented.
  • The choice of implementation approach depends on the specific needs and goals of the project, and there is no one-size-fits-all solution.