|over 2 years ago||about 14 hours ago|
|-||GNU General Public License v3.0 or later|
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.
New Béziers from Math
5 projects | news.ycombinator.com | 10 Sep 2023
Cool to see others working on this problem. I hope more people do.
Funnily I've seen a lot of programmers and math folks who express how truly, genuinely beautiful Beziers and the math behind them are. But I've never met an artist or graphic designer who didn't express some deep frustration at Bezier controls and how hard they are to work with.
There are even games which make a mockery out of how hard Bezier controls are to use, where the game is purely using the controls.
Controls are just one side of the problem, in my view; the other side is that cubics are terrible for GPUs, they don't understand them - and I believe many of the best 2D graphics libraries today are not even fully GPU accelerated, e.g. Skia. There are folks working on compute shader-based approaches, where we try to shoe-horn this CPU-focused algorithm into GPUs and pray - but it still isn't really suitable.
The controls suck for artists, and the math sucks for GPUs. This is only true of cubics, if you restrict yourself to quadratics (although that brings other challenges), both the control issue goes away (you can just click+drag the curve!) and the performance issue goes away (quadratics are triangles, GPUs love them)
That's the summary of the talk I gave at SYCL'22. In that talk, I didn't have time to present the downsides of quadratics (which are real) - so if you watch it please keep that in mind - but my overall point I think is a solid one: the controls suck, and GPUs can't handle them.
The only reason we stick with cubics in its current form is because of SVG, compatibility with existing tooling, etc. But isn't it crazy? We have new bitmap image formats all the time, and so few vector graphics formats.
In Mach engine we're continuing to explore this space, end-to-end, from author tooling -> format -> rendering. I'm not claiming we have a perfect solution, we don't, but we're at least thinking about this problem. Kudos to the authors of this article for thinking about this space as well.
0.11.0 Release Notes
12 projects | news.ycombinator.com | 3 Aug 2023
Significant examples of Zig software (June 2023)?
7 projects | /r/Zig | 6 Jun 2023
https://github.com/hexops/mach (shameless plug)
9 projects | news.ycombinator.com | 27 Apr 2023
Zig fits pretty naturally here too. We've got ~19 WebGPU examples which use Dawn natively (no browser support yet), and we build it using Zig's build system so it 'just works' out of the box with zero fuss as long as you grab a recent Zig version. No messing with cmake/ninja/depot_tools/etc.
WASM support in Zig, Rust, and C++ is also not equal. C++ prefers Emscripten which reimplements parts of popular libraries like SDL, for me personally that feels a bit weird as I don't want my compiler implementing my libraries / changing how they behave. Rust I believe generally avoids emscripten(?), but Zig for sure lets me target WASM natively and compile C/C++ code to it using the LLVM backend and soon the custom Zig compiler backend.
Zig for gamedev?
7 projects | /r/Zig | 15 Apr 2023
Two game frameworks in the making: https://github.com/michal-z/zig-gamedev & https://github.com/hexops/mach7 projects | /r/Zig | 15 Apr 2023
We're building Mach which aims to be competitive with Unity/Unreal/Godot in spriti, but super modular / let you pick and choose which parts to use or build yourself.
Mach (Zig) Adventures - Part 1
2 projects | /r/Zig | 12 Apr 2023
git clone --recursive https://github.com/hexops/mach-examples cd mach-examples/ zig build run-sprite2d
Chrome Ships WebGPU
17 projects | news.ycombinator.com | 6 Apr 2023
This is very welcome and a long time coming!
If you're eager to learn WebGPU, consider checking out Mach which lets you develop with it natively using Zig today very easily. We aim to be a competitor-in-spirit to Unity/Unreal/Godot, but extremely modular. As part of that we have Mach core which just provides Window+Input+WebGPU and some ~19 standalone WebGPU examples.
Currently we only support native desktop platforms; but we're working towards browser support. WebGPU is very nice because it lets us target desktop+wasm+mobile for truly-cross-platform games & native applications.
Purego – A library for calling C functions from Go without Cgo
6 projects | news.ycombinator.com | 12 Feb 2023
Very cool! I will definitely give this a try, I've been looking to build Go bindings to Mach soon.
How does this work around the stack size problem? IIRC the reason CGO overhead exists is at least partly because goroutines only have an ~8k stack to start with, and the C code doesn't know how to expand it-so CGO calls "must" first have the goroutine switched to an OS thread which has an ~8MB stack.
One reason I think Go <-> Zig could be a fantastic pairing is that Zig plans to add a builtin which tells you the maximum stack size of a given function, so you could grow the goroutine stack to that size and then call Zig (or, since Zig an compile C code, you could also call C with a tiny shim to report the stack required?) and then eliminate the goroutine -> OS thread switching overhead.
Just found out about Zig and wonder what would be the best graphics library to pair with it?
5 projects | /r/Zig | 1 Feb 2023
We're building Mach, which aims to be extremely modular, starting with letting you choose which path you take between:
What are some alternatives?
SDL.zig - A shallow wrapper around SDL that provides object API and error handling
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
zigstr - Zigstr is a UTF-8 string type for Zig programs.
arocc - A C compiler written in Zig.
mach-glfw-vulkan-example - mach-glfw Vulkan example
libfive - Infrastructure for solid modeling
river - A dynamic tiling Wayland compositor
matrix.to - A simple stateless privacy-protecting URL redirecting service for Matrix
ComLightInterop - Cross-platform COM interop library for .NET Core 2.1 or newer
glibc_version_header - Build portable Linux binaries without using an ancient distro
winget-cli - WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).