ComputeSharp
range-v3
ComputeSharp | range-v3 | |
---|---|---|
38 | 19 | |
2,549 | 4,023 | |
- | - | |
9.8 | 4.0 | |
25 days ago | 2 days ago | |
C# | C++ | |
MIT License | 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.
ComputeSharp
-
ILGPU VS ComputeSharp - a user suggested alternative
2 projects | 27 Oct 2023
-
Is there a real time graphics llibrary in c#
A couple other options than what has been suggested so far: - TerraFX.Interop.Windows. Raw, blittable, 1:1 bindings for all Win32, D2D/D3D11/D3D12 APIs (there's also a version with Vulkan bindings). As close to doing #include as you can get in C#. This is my personal favorite, I use it in my own ComputeSharp library, and transitively we use it in the Microsoft Store too 🙂 - Silk.NET another version of high-performance bindings, more opinionated than TerraFX and with some additional helpers to make it a bit easier to use.
-
What can Go do that C# can't?
A hello world .NET console app with NativeAOT is 1.08 MB. Goes down to 1.08 MB with some tweaking. Goes below 1MB with more tweaking. I have a fully self-contained NativeAOT sample app that renders some fancy animated shaders with DX12 that's about 2MB in size.
-
C# and GPU programming
I dont think it's exactly what you're looking for, but I've found ComputeSharp to be a great C# GPU tool
-
Source Generator Debug always NulLReferecneException
Here's some: - MVVM Toolkit - PolySharp - ComputeSharp
- Rust bindings for Avalonia UI Framework
- [WinUI] High level 2D rendering library
-
What library should I use to make basic 2D graphics which is simple to use and that is able to quickly draw a bunch of particles (circles) on the screen with updating positions every frame? (Not the best description ever. I explain it better in the post's text)
If you don't mind being Windows only, I would also recommend trying out (shameless plug) ComputeSharp. You can find it on NuGet and it's available for UWP and WinUI 3 as well with ready to use XAML controls. The point is that it would allow you do your entire rendering via pixel/compute shaders, so it could basically run entirely on the GPU. That'd allow you to render even millions of particles with pretty good performance 🙂
-
What library to code a Screensaver?
Create a UWP or WinUI 3 applicaation and use the AnimatedComputeShaderPanel from ComputeSharp. The library lets you write shaders (ie. code to run on the GPU) entirely in C#, and handles all the logic to setup a DX12 animated swapchain, similar to Win2D. If you look at the repo you can also see a whole bunch of examples, which you can also try out for yourself. There's also several wiki pages with lots of info.
- GitHub - ComputeSharp: A .NET library to run C# code on the GPU through DX12 (Not Godot)
range-v3
-
Why are strings and IO so complicated?
std::ranges is in c++20, but you can pull in the library it was based on if you use 17 (https://github.com/ericniebler/range-v3)
-
Java Streams in c++
What you are describing seems to be std::ranges. If you’re interested in understanding how to implement it, I recommend checking out the original reference implementation, rangev3. Trying to implement your own ranges framework is really good practice for learning how to do efficient, advanced generic programming in C++. I highly recommend it as a hobby learning project. But it’s also really, really hard to do correctly, so please just use the stdlib and/or rangev3 in any real project.
-
What are some of the ways to make a super nasty nested loop become clean?
In C++23, there will be std::views::cartesian_product. It is already available in the range-v3 library, the one that the standard is based on.
- 295 pages on Initialization in Modern C++ :)
-
Function composition in modern C++
/** * @brief Forwards value equivalent to the std::forward. * * Using cast instead of std::forward to avoid template instantiation. Used by * Eric Niebler in range library. * * @see https://github.com/ericniebler/range-v3 */
- PocketPy: A Lightweight(~5000 LOC) Python Implementation in C++17
-
Is there an <algorithm> way to filter + transform multiple containers at once
It uses a custom zip_iterator (which isn't very good, and you should really use the one from boost or from range-v3).
-
what annoys you most while using c++?
It contains very little functionality compared to the Eric Niebler’s reference implementation for my liking. Especially views. This will undoubtedly change in the future. But the point is moot, because they are not really supported the is no other option for now other than https://github.com/ericniebler/range-v3.
-
C++20 Ranges Algorithms – 7 Non-Modifying Operations
range-v3 is a great library allowing you to bridge the gap: https://github.com/ericniebler/range-v3
-
CXXIter: A chainable c++20 LINQ-like iterator library
[range-v3](https://github.com/ericniebler/range-v3) which std::ranges was based on has the `to>()` which as far as I know is expected to get into c++23 :)
What are some alternatives?
ShaderGen - Proof-of-concept library for generating HLSL, GLSL, and Metal shader code from C#,
Boost.Asio - Asio C++ Library
raylib - A simple and easy-to-use library to enjoy videogames programming
cppitertools - Implementation of python itertools and builtin iteration functions for C++17
CSharp-Unity-Compute-Shader - Create compute shaders for Unity with C#.
CppCoreGuidelines - The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++
BrimsonFX - Image and video processing shaders for ReShade (convolutions, GPU Horn-Schunk/Lucas-Kanade, etc.)
HCSR04 - Arduino library for HC-SR04, HC-SRF05, DYP-ME007, BLJ-ME007Y, JSN-SR04T ultrasonic ranging sensor
SharpDX
RE2 - RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
dotnet - .NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
cpplinq - LINQ for C++ (cpplinq) is an extensible C++11 library of higher-order functions for range manipulation. cpplinq draws inspiration from LINQ for C#.