Repository navigation
Finch 2.2.0
New examples
examples/opengl.fch: modern OpenGL 3.3 core with shaders, a vertex array and buffer, and a spinning, colorful triangle (GLFW).examples/vulkan.fch: creates a Vulkan instance, lists every GPU with its type, Vulkan version, memory heaps and queue families, then creates a logical device and gets a graphics queue.
Language and compiler
ptr(n)andint(p)convert between numbers and pointers (OpenGL passes buffer offsets as pointers)..ptrworks on string literals ("Finch".ptrfor C struct fields).- A comma after the last argument is allowed, which makes multi-line struct constructors tidy.
- If a header you import includes a header that's missing, the error now names the missing one.
- The
.fn→.fchrename hint was removed.
The docs (technicians' guide, en/pl) have a new Graphics: OpenGL and Vulkan section. 59 tests, clean under valgrind; the self-hosted compiler still builds itself.