codegolfing
BezierCurveDemo1997
codegolfing | BezierCurveDemo1997 | |
---|---|---|
1 | 1 | |
4 | 4 | |
- | - | |
3.6 | 10.0 | |
4 months ago | almost 2 years ago | |
Assembly | C++ | |
BSD 3-clause "New" or "Revised" License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
codegolfing
BezierCurveDemo1997
-
C++23: The Next C++ Standard
As someone who has written math libraries over and over again for the last 25 years (no joke - wrote this in 1997: https://github.com/bhouston/BezierCurveDemo1997/blob/master/... and just recently wrote the Threeify math library: https://github.com/bhouston/threeify/tree/master/packages/ma...), I find that operator overloading works only for the simple cases but that for performance and clarify, function names work best.
Function names let you clarify that it is an outside product or inside product (e.g. there are often different types of adds, multiplies, divides), and I can not stand when someone maps cross product onto ^ or dot product onto something else. Also operator overloading often doesn't make clear memory management, rather it replies on making new objects constantly, where as with function names, you can pass in a parameter that will take the result. Lastly, function names allow you to pass in how to handle various conditions, like non-invertible, NANs, etc.
I find word based function more verbose but significant less error prone and also they are more performant. Operator overloading is only good for very simple code and even then people always push it too far so that I can not understand it.
What are some alternatives?
64klang - Official 64klang repository
Bonzomatic - Live shader coding tool and Shader Showdown workhorse
threeify - A Typescript 3D library loosely based on three.js
rocket - Rocket
{fmt} - A modern formatting library
GLM - OpenGL Mathematics (GLM)
draft - C++ standards drafts