Here is a low level programming language that’s kinda like C but has a better build system:
None
2020-01-01
<div><div><div><p>Zig is a general-purpose programming language and toolchain for maintaining <strong>robust</strong>, <strong>optimal</strong> and <strong>reusable</strong> software.</p></div><div><div><h2>â¡ A Simple Language</h2><p>Focus on debugging your application rather than debugging your programming language knowledge.</p><ul><li>No hidden control flow.</li><li>No hidden memory allocations.</li><li>No preprocessor, no macros.</li></ul><h2>â¡ Comptime</h2><p>A fresh approach to metaprogramming based on compile-time code execution and lazy evaluation.</p><ul><li>Call any function at compile-time.</li><li>Manipulate types as values without runtime overhead.</li><li>Comptime emulates the target architecture.</li></ul><h2>â¡ Maintain it with Zig</h2><p>Incrementally improve your C/C++/Zig codebase.</p><ul><li>Use Zig as a zero-dependency, drop-in C/C++ compiler that supports cross-compilation out-of-the-box.</li><li>Leverage <code>zig build</code> to create a consistent development environment across all platforms.</li><li>Add a Zig compilation unit to C/C++ projects; cross-language LTO is enabled by default.</li></ul></div><div><pre><code>const std = @import("std");
const json = std.json;
const payload =
 \\{
 \\ "vals": {
 \\ "testing": 1,
 \\ "production": 42
 \\ },
 \\ "uptime": 9999
 \\}
;
const Config = struct {
 vals: struct { testing: u8, production: u8 },
 uptime: u64,
};
const config = x: {
 var stream = json.TokenStream.init(payload);
 const res = json.parse(Config, &amp;stream, .{});
 // Assert no error can occur since we are
 // parsing this JSON at comptime!
 break :x res catch unreachable;
};
pub fn main() !void {
 if (config.vals.production &gt; 50) {
 @compileError("only up to 50 supported");
 }
 std.log.info("up={d}", .{config.uptime});
}</code></pre></div></div><div><h2>Community</h2><div><p></p></div></div><div><h2>Zig Software Foundation</h2><h2>The ZSF is a 501(c)(3) non-profit corporation.</h2><p>The Zig Software Foundation is a non-profit corporation founded in 2020 by Andrew Kelley, the creator of Zig, with the goal of supporting the development of the language. Currently, the ZSF is able to offer paid work at competitive rates to a small number of core contributors. We hope to be able to extend this offer to more core contributors in the future.</p><p>The Zig Software Foundation is sustained by donations.</p><h2><a href="zsf/">Learn More</a></h2></div><div><h2>Sponsors</h2><p>The following companies are providing direct financial support to the Zig Software foundation.</p><p>Thanks to people who <a href="zsf/">sponsor Zig</a>, the project is accountable to the open source community rather than corporate shareholders. In particular, these fine folks sponsor Zig for $200/month or more:</p><li><a href="https://pex.com/">Pex</a></li><li><a href="https://oven.sh/">Oven</a></li><li><a href="https://scheibo.com/">Kirk Scheibelhut</a></li><li><a href="https://github.com/drfuchs">drfuchs</a></li><li><a href="https://github.com/tarasbob">tarasbob</a></li><li><a href="https://coil.com/">CoilHQ</a></li><li>Stephen Gutekanst</li><li>Stevie Hryciw</li><li>Mitchell Hashimoto</li><li>Paul Harrington</li><li>Derek Collison</li><li>Clark Gaebel</li><li>Karrick McDermott</li><li>Joran Dirk Greef</li><li>bfredl</li><li>Dustin Taylor</li><li>Tom Manner</li><li>JosÃ© M Rico</li><li>Simon A. Nielsen Knights</li><li>MikoVerse</li><p>This section is updated at the beginning of each month.</p></div></div>||||I||||Home
 Download Learn News Source Code Join a Community Sponsor the ZSF
 Download Learn News Source Code Join a Community Sponsor the Zig Software Foundation
 Zig is a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software.
 GET STARTED Latest Release: 0.10.1Documentation Changes

 â¡ A Simple Language

 Focus on debugging your application rather than debugging your programming language knowledge.

 * No hidden control flow.
 * No hidden memory allocations.
 * No preprocessor, no macros.

 â¡ Comptime

 A fresh approach to metaprogramming based on compile-time code execution and lazy evaluation.

 * Call any function at compile-time.
 * Manipulate types as values without runtime overhead.
 * Comptime emulates the target architecture.

 â¡ Maintain it with Zig

 Incrementally improve your C/C++/Zig codebase.

 * Use Zig as a zero-dependency, drop-in C/C++ compiler that supports cross-compilation out-of-the-box.
 * Leverage zig build to create a consistent development environment across all platforms.
 * Add a Zig compilation unit to C/C++ projects; cross-language LTO is enabled by default.

 In-depth overview

 More code samples

 const std = @import("std");
 const json = std.json;
 const payload =
 \\{
 \\ "vals": {
 \\ "testing": 1,
 \\ "production": 42
 \\ },
 \\ "uptime": 9999
 \\}
 ;
 const Config = struct {
 vals: struct { testing: u8, production: u8 },
 uptime: u64,
 };
 const config = x: {
 var stream = json.TokenStream.init(payload);
 const res = json.parse(Config, &stream, .{});
 // Assert no error can occur since we are
 // parsing this JSON at comptime!
 break :x res catch unreachable;
 };
 pub fn main() !void {
 if (config.vals.production > 50) {
 @compileError("only up to 50 supported");
 }
 std.log.info("up={d}", .{config.uptime});
 }

 Community

 The Zig community is decentralized

 Anyone is free to start and maintain their own space for the community to gather.
 There is no concept of “official” or “unofficial”, however, each gathering place has its own moderators and rules.

 See all Communities

 Main development

 The Zig repository can be found at https://github.com/ziglang/zig, where we also host the issue tracker and discuss proposals.
 Contributors are expected to follow Zig’s Code of Conduct.

 Zig Software Foundation

 The ZSF is a 501(c)(3) non-profit corporation.

 The Zig Software Foundation is a non-profit corporation founded in 2020 by Andrew Kelley, the creator of Zig, with the goal of supporting the development of the language. Currently, the ZSF is able to offer paid work at competitive rates to a small number of core contributors. We hope to be able to extend this offer to more core contributors in the future.

 The Zig Software Foundation is sustained by donations.

 Learn More

 Sponsors

 Corporate Sponsors

 The following companies are providing direct financial support to the Zig Software foundation.

 GitHub Sponsors

 Thanks to people who sponsor Zig, the project is accountable to the open source community rather than corporate shareholders. In particular, these fine folks sponsor Zig for $200/month or more:

 * Pex
 * Oven
 * Kirk Scheibelhut
 * drfuchs
 * tarasbob
 * CoilHQ
 * Stephen Gutekanst
 * Stevie Hryciw
 * Mitchell Hashimoto
 * Paul Harrington
 * Derek Collison
 * Clark Gaebel
 * Karrick McDermott
 * Joran Dirk Greef
 * bfredl
 * Dustin Taylor
 * Tom Manner
 * JosÃ© M Rico
 * Simon A. Nielsen Knights
 * MikoVerse

 This section is updated at the beginning of each month.

 This page is also available in the following languages
 FranÃ§ais Deutsch Italiano EspaÃ±ol PortuguÃªs Ð ÑÑÑÐºÐ¸Ð¹ Ø¹Ø±Ø¨Û ÙØ§Ø±Ø³Û æ¥æ¬èª ç®ä½ä¸­æ íêµ­ì´
Community
https://ziglang.org/
None
2024-08-16T23:17:23Z
<div><div>

<p>
</p><h2><a href="https://cplusplus.com/doc/">Tutorials</a></h2>
<li><a href="https://cplusplus.com/doc/tutorial/">C++ Language</a>: Learn this versatile and powerful programming language. Includes detailed explanations of <a href="https://cplusplus.com/doc/tutorial/pointers/">pointers</a>, <a href="https://cplusplus.com/doc/tutorial/functions/">functions</a>, <a href="https://cplusplus.com/doc/tutorial/classes/">classes</a> and <a href="https://cplusplus.com/doc/tutorial/templates/">templates</a>, among others...
</li><p></p>

<div>
<h2><a href="https://cplusplus.com/reference/">Reference</a></h2><p>
Description of the most important classes, functions and objects of the Standard Language Library, with descriptive fully-functional short programs as examples.<br/>
<a href="https://cplusplus.com/reference/">Browse the <b>C++ Reference</b></a>
</p></div>

<div>
<h2><a href="https://cplusplus.com/articles/">Articles</a></h2><p>
User-contributed articles, organized into different categories.<br/>
You can contribute your own articles!<br/>
<a href="https://cplusplus.com/articles/">Browse <b>Articles</b></a>
</p></div>

</div></div>||||I||||          cplusplus.com
            * TUTORIALS
            * REFERENCE
            * ARTICLES
            * FORUM

            C++

              * Tutorials
              * Reference
              * Articles
              * Forum
            * home

              Tutorials

            * C++ Language: Learn this versatile and powerful programming language. Includes detailed explanations of pointers, functions, classes and templates, among others...

              Reference

              Description of the most important classes, functions and objects of the Standard Language Library, with descriptive fully-functional short programs as examples.
              Browse the C++ Reference

              Articles

              User-contributed articles, organized into different categories.
              You can contribute your own articles!
              Browse Articles


            Latest forum activity:

                    by JUANDENT                                                                                                                                                 
                  Cannot convert from T to T& [General C++ Programming]                                                                                                         
                  Cannot convert from T to T& as in the following: auto f(const map<string, int>& mp) { auto p = find_if(mp.begin(),mp.end(), Greater_than{ 42 }); return p; ...
                    2024-08-16T23:17:23.000Z                                                                                                                                    
                  [no replies]                                                                                                                                                  
                  
                      by LsDefect                                                                                                                                    
                    Parameters and move semantics [General C++ Programming]                                                                                          
                    Here's some error logging code in my program (basically): void SetError(std::string&& arg){ error = arg; } [/code] [code] try { // something }...
                      2024-08-16T20:47:37.000Z                                                                                                                       
                    [no replies]                                                                                                                                     
                    
                        by Ganado                                                                                                                                                       
                      New account creation is still broken ( 1 , 2 ) [Lounge]                                                                                                           
                      I remember somebody mentioned a while back that new account creation is broken, but I can't find the post*. I tried to make an account just as a test, and the ...
                        2024-08-15T08:36:52.000Z                                                                                                                                        
                      [34 replies] Last: having a small, trusted moderation team could mitigate most issues[/q... (by seeplus)                                                          
                      
                          by LsDefect                                                                                                                                            
                        Compiles with Visual Studio, but not g++ [Windows Programming]                                                                                           
                        #include <sstream> #include <vector> #include <filesystem> #include <fstream> #include <shlobj.h> #include <locale> #include <codecvt> #include <windo...
                          2024-08-12T08:48:07.000Z                                                                                                                               
                        [4 replies] Last: When using GCC from MinGW (or mingw-w64), you should not[/b] use the ... (by kigar64551)                                               
                        
                            by JUANDENT                                                                                                                                     
                          How to write a concept that requires one to create an object to specify that that constructor must exist [General C++ Programming]                
                          I need to write the following concept: template<typename T> concept Element = requires (T a, T b) { a = b; T c{ a }; }; [/code] I know I can do...
                            2024-08-09T20:41:45.000Z                                                                                                                        
                          [no replies]                                                                                                                                      
                          
                              by JUANDENT                                                                                                                                          
                            what are the differences between returning auto, auto&, auto&& and decltype(auto)? [General C++ Programming]                                           
                            what are the differences between returning auto, auto&, auto&& and decltype(auto)? for instance: auto f(int val) { static int value = val; return va...
                              2024-08-08T18:59:18.000Z                                                                                                                             
                            [1 reply] : For auto and decltype(auto): https://stackoverflow.com/questions/2136... (by George PlusPlus)                                              
                            
                                by JamieAl                                                                                                                                                       
                              Error: Using EigenFFT in for loop [General C++ Programming]                                                                                                        
                              I am testing EigenFFT with some Eigen tensors and matrices. I have been so far successful with implementing 1D FFTs along different directions and comparing my ...
                                2024-08-07T03:05:47.000Z                                                                                                                                         
                              [1 reply] : This was my "second" attempt with no errors: for (int k = 0; k < dum... (by JamieAl)                                                                   
                              
                                  by seeplus                                                                                                                                                       
                                what #define are defined [General C++ Programming]                                                                                                                 
                                Within VS or other, for each source file of a solution/project is there a way of obtaining a list of all #define symbols (including within #include files) and t...
                                  2024-08-06T15:29:05.000Z                                                                                                                                         
                                [3 replies] Last: Thanks. I missed that one........ (by seeplus)                                                                                                   
                                
                                    by seeplus                                                                                                                                                 
                                  Another one bites the dust [Lounge]                                                                                                                          
                                  https://simontoth.substack.com/p/daily-bite-of-c-end-of-line RIP Daily bit(e). You will be missed but never forgotten. For the archive, see https://github...
                                    2024-08-03T17:45:31.000Z                                                                                                                                   
                                  [1 reply] : The ephemeral nature of the interwebz rules all, unfortunately. C++, ... (by George PlusPlus)                                                    
                                  
                                      by JUANDENT                                                                                                                                               
                                    are these assignments to temporary valid? [General C++ Programming]                                                                                         
                                    Hi, I have this code where I am not sure the assignments are valid: int g(double x) { return std::floor(x); } double& h(double x) { return x; } // return...
                                      2024-08-03T08:18:17.000Z                                                                                                                                  
                                    [1 reply] : h[/tt] and [tt]i[/tt] return dangling references. All big compilers (... (by Peter87)                                                           
                                    
                          Home page | Privacy policy
                          © cplusplus.com, 2000-2023 - All rights reserved - v3.3.4s
                          Spotted an error? contact us
None
https://cplusplus.com/