Is possible a language easy as py, fast as C, more secure than Rust?
1 points
2 hours ago
| 1 comment
| HN
With the AI being so powerful, we should have a better programming language. This language is named cpluz/cz, signifying that it is generally between C and C++, but with some differences. Because its philosophy is fundamentally different from C++, ours is "simple the best".

My initial plan is as follows:

A. Roadmap: Version 0.1 is a subset of C++23. The advantage is that it can coexist with the existing C++ ecosystem, all programs and libraries can be shared.

Version 1.0beta is a hardbreak. At this stage, tools or AI should be available to completely convert version 0.1 and C++23 code into CZ1.0 + independent compiler tools.

B. Language design: Currently considered: 1. No header; use modules; 2. C++20 + Multidimensional Subscript Operator/if consteval; 3. Use the C++23 library.

The overall goal is:

One-page cheat sheet (+half a page of basic ideas, if you have zero coding knowledge); 10 pages of a full book. This means roughly no more than 20 basic syntax rules. This will allow both AI and humans to easily learn and communicate with it, achieving ease use as Python. And put everything else in the library.

Based on C++, it should achieve similar speed, and even more efficient because it's simpler.

Besides the safety of Rust, we also need to add Trust, which means strict code review before sharing (including test code, which exploited by hackers of XZ).

Given the speed of AI development, a complete course should take about 18 months, which isn't an exaggeration?

stop50
1 hour ago
[-]
1. You are mixing up the development process and the language. 2. C++ would be an horrible baseline for newcomers.

In my opinion Rust has at the moment an good chance to be an successor to c++. Traits and derive macros already reduce the boilerplate an dev has to do.

For example Debugging: - i want to export the default debugging information: #[derive(Debug)] - i have so items that should not be debugged: custom derive implementation for the type or the secret information

reply
jerryzhang66
1 hour ago
[-]
I feel rust is same complex as cpp..just a better build/packages system, and with so many unsafe c/cpp wrappers as lib...I learned it and try to use it on a small project,finding its difficult to use, as cpp, actually more easy to use. https://gtk-rs.org/gtk4-rs/git/book/g_object_memory_manageme... this is the thing make me think.
reply