dcompute VS zig

Compare dcompute vs zig and see what are their differences.

dcompute

DCompute: Native execution of D on GPUs and other Accelerators (by libmir)

zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. (by ziglang)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
dcompute zig
5 816
133 30,773
0.0% 2.7%
0.0 10.0
over 1 year ago 1 day ago
D Zig
Boost Software License 1.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

dcompute

Posts with mentions or reviews of dcompute. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-15.
  • DCompute: Native execution of D on GPUs and other Accelerators
    1 project | news.ycombinator.com | 24 Mar 2024
  • Let's learn D game programming development
    4 projects | news.ycombinator.com | 15 Jun 2022
    Shameless plug: LDC (the LLVM based D compiler) can already target CUDA (and OpenCL) and wraps its API and all of the nasty details involved in replicating <<<>>> kernel launches with https://github.com/libmir/dcompute/ with a sane syntax that's type safe. LLVM handles the codegen, and all of the "magic" is done in the library.
  • Compile-Time Sort in D
    3 projects | news.ycombinator.com | 12 Feb 2022
    As noted elsewhere it seems your experience is somewhat outdated: the releases of the LLVM D Compiler (one of the two compilers worth using for production builds, the other being GDC) are buffered to the bugs introduced in DMD (which is more stable than it used to be although there are still regressions), and there is a fork based GC available for linux, but as the GC will only ever trigger on allocation, don't use it and it won't collect.

    > While C++ is not by any means a great meta-language, it's improved considerably since that time.

    C++ has also painted itself into a corner multiple times too, which despite being technically an improvement over the status quo are lacking severely in their utility. C++ screwed up "constexpr if" big time by always introducing a scope (which costs you a pair of {}'s in the rare occasion you need one) which means you can't conditionally insert declarations (i.e. variables, structs/classes, functions).

    > but beyond the novelty you'd hardly find a mature or reliable codebase written by a team of professionals using hacks like [string manipulation and mixins].

    They are a wonderful hack when you need them and nothing else will do what you want. This is not unlike resorting to macros in C++, except that its hygienic, unlike macros.

    I'm not claiming the project is mature and I'm only one person, but reliable definitely out there. The most heinous set of string mixins i've ever written[1] has definitely got to be the code for generating wrappers to call the OpenCL object property querying functions (clGetDeviceInfo & friends). You need to pass a size and a void pointer to the address of the return object that you have to call once, twice or more (depending on the type of the queried property) to figure out how much memory you need to allocate to call it again.

    The important thing is that the interface[2] you use to drive this code generation is very clean and return on investment for getting the generic case correct is large.

    [1]: https://github.com/libmir/dcompute/blob/master/source/dcompu...

  • Why I Like D
    5 projects | news.ycombinator.com | 11 Jan 2022
  • Unified Shader Programming in C++
    13 projects | news.ycombinator.com | 3 Oct 2021

zig

Posts with mentions or reviews of zig. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-23.

What are some alternatives?

When comparing dcompute and zig you can also consider the following projects:

vectorflow

Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

Ion - Ion

Odin - Odin Programming Language

hauberk - A web-based roguelike written in Dart.

v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io

shaders - Circle C++ shaders

rust - Empowering everyone to build reliable and efficient software.

dlangui - Cross Platform GUI for D programming language

go - The Go programming language

globjects - C++ library strictly wrapping OpenGL objects.

ssr-proxy-js - A Server-Side Rendering Proxy focused on customization and flexibility!