TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: The C³ Programming Language

1 点作者 9o1d4 个月前
A new programming language based on the idea of simple modules. This makes it easier for humans to create programs.<p>Introductory article:<p><a href="https:&#x2F;&#x2F;www.codeproject.com&#x2F;Articles&#x2F;5365472&#x2F;C-Cubism-Extension-for-the-C-Programming-Language" rel="nofollow">https:&#x2F;&#x2F;www.codeproject.com&#x2F;Articles&#x2F;5365472&#x2F;C-Cubism-Extens...</a><p>GitHub repository has video tutorials.<p>Brief description:<p>Create a structure with data that is convenient to process together.<p>Create functions that take a pointer to the structure. Collect the functions in a single file, this is a module. Use keywords as a hashtag in the module.<p>Use a program &quot;mod_to_h&quot; that will turn the module into a series of header files that you can include in the program.<p>Use the module name with variables in the program. Some of the construction functions will be created by the compiler. In some cases, these functions are called automatically, so you don&#x27;t have to do it every time, or you may forget to do it, such as freeing memory.<p>I have been creating this project for five years. Now I am working on simplifying functions. For example, this is an emulation of &quot;for&quot; cycles, so that the function can return in the middle of nested cycles, and then continue. In other languages, there are similar constructions, and I understand why they use them. I am studying programming technology. Often there are such functions that contain the rest of the program inside themselves, and this is wrong, since the function should perform only one task. The compiler must pack nested loops back to speed up program execution, and all functions are also tried to be made inline. It is also necessary to analyze the grammar of C, and other languages, since I plan to use the syntax of JavaScript and Python directly in the C program. A custom grammar will also be available. It is possible to use AI to create programs using simple modules written by a programmer.

暂无评论

暂无评论