frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: The C³ Programming Language version 2

4•9o1d•1d ago
I'm making a second version for the new C³ programming language.

Added modifiers. These are modules that add additional functionality to the main module.

I can give you an example of another implementation of a string for C in the chars folder. In the first version, there were many variable fields in the chars structure. This turns out to make the module's functions complex. Then I remembered the basic principle of the new programming language C³ is maximum simplicity. So I left only one field in the chars structure, which is a pointer to char. In this way, the structure can be directly converted to a char pointer. The structure has functions to support working with arrays.

You may wonder where the other fields are, such as buffer size and write and read positions? I decided to make them in the form of separate structures, iter, and iter_read. These are modificators. They are added as header files and add functions. You can use many iterators for a single chars structure.

These three structures are combined in a common char_array control structure, which is responsible for automatic control of pointers. It has one pointer each to chars, iter, iter_read.

Iterator modules are modifiers. They add independent fields to the main structure, and additional functions for working with them. Thus, they adopt the prefix of the main structure. The names are chars, chars_iter for writing, chars_iter_read for reading. For now, nesting is one. I plan to increase the number of modifiers.

I'm currently making a parser for the C programming language, and this architecture allows you to use a lot of reading iterators. Thus, part of the structure is passed by reference and by value.

When I pass some structs by the value of *p, then inside the function I get my own instance of the struct that I can modify. For example, for parsing. And if successful, I can apply the changes to the original structure.

In this project, I'm interested in new architectural possibilities, so I can change structures frequently for improvements.

https://gitlab.com/9o1d/c3v2

Version 1 is available at https://azhibaev.com/c3.zip

Stay tuned !

Comments

stefanos82•1d ago
I hope you do know there's a C3 language for a number of years already https://github.com/c3lang/c3c/
baranul•3h ago
Well, what often happens with different languages having the same name, is they battle it out in popularity. The winner is known by that name and the loser is forced to change their name to something else.

As it is, people know C3 and pretty much forgot or never heard of C2, even though it's still in active development. C3, if people don't know any better, gives the impression of being the successor language. I guess this is all a setup for somebody to come out with C4 as a language name.

Figuring out why a nap might help people see things in new ways

https://arstechnica.com/science/2025/07/figuring-out-why-a-nap-might-help-people-see-things-in-new-ways/
1•pseudolus•1m ago•0 comments

State of the Art: Economic Development Through the Lens of Paintings

https://www.nber.org/papers/w33976
1•surprisetalk•1m ago•0 comments

AI Robot soccer league kicks off in China [video]

https://www.youtube.com/watch?v=z5us32WsqJk
1•surprisetalk•1m ago•0 comments

The Impact of Dating Apps on Young Adults: Evidence from Tinder

https://www.aeaweb.org/articles?id=10.1257/app.20240455&from=f
1•surprisetalk•1m ago•0 comments

Genetic Counseling Is Under Hyped

https://marginalrevolution.com/marginalrevolution/2025/07/genetic-counseling-is-under-hyped.html
1•surprisetalk•2m ago•0 comments

Review: Alpha School

https://www.astralcodexten.com/p/your-review-alpha-school
1•surprisetalk•2m ago•0 comments

The ChompSaw: A Benchtop Power Tool That's Safe for Kids to Use

https://www.core77.com/posts/137602/The-ChompSaw-A-Benchtop-Power-Tool-Thats-Safe-for-Kids-to-Use
1•surprisetalk•2m ago•0 comments

Showh HN: Microjax - Jax in two classes and six functions

https://github.com/joelburget/microjax
3•joelburget•3m ago•0 comments

Estimating reading time for second language reading

https://languageleveler.com/blog/estimating-reading-time-second-language-reading
1•romanovacca•8m ago•0 comments

Show HN: Rama – Rust framework to empower you to build proxies

https://github.com/plabayo/rama/discussions/622
1•gdcbe•8m ago•0 comments

AI sycophancy: The downside of a digital yes-man

https://www.axios.com/2025/07/07/ai-sycophancy-chatbots-mental-health
1•pogue•12m ago•0 comments

Salesforce-MuleSoft-Associate Actual Questions

https://www.qa4exam.com/salesforce/salesforce-mulesoft-associate-dumps
1•stevrdjhon•13m ago•1 comments

Status of World Nuclear Forces

https://fas.org/initiative/status-world-nuclear-forces/
1•alexcos•13m ago•0 comments

Ptar: Replacing .tgz for petabyte-scale S3 archives

https://plakar.io/posts/2025-06-30/technical-deep-dive-into-.ptar-replacing-.tgz-for-petabyte-scale-s3-archives/
1•vcoisne•14m ago•0 comments

Top Most Secure Smartphones of 2025 to Keep Your Data Safe

https://www.analyticsinsight.net/phones/top-10-most-secure-smartphones-of-2025-to-keep-your-data-safe
3•fsflover•18m ago•3 comments

Springer Nature book on machine learning is full of made-up citations

https://retractionwatch.com/2025/06/30/springer-nature-book-on-machine-learning-is-full-of-made-up-citations/
1•bookofjoe•18m ago•0 comments

Ambiq Files S-1

https://ambiq.com/news/ambiq-micro-inc-announces-filing-of-registration-statement-for-proposed-initial-public-offering/
1•hasheddan•20m ago•0 comments

'Cyber security' behind decision to end defense satellite hurricane data sharing

https://www.theregister.com/2025/07/07/cyber_security_behind_dod_satellite_data_cutoff/
2•rntn•20m ago•0 comments

I Tried Blender Scripting with AI

https://spin.atomicobject.com/blender-scripting-with-ai/
1•philk10•20m ago•0 comments

Adding a UI to a Container Registry Is Not Simple

https://molnett.com/blog/25-07-07-container-registry-story-part-1
1•bittermandel•24m ago•0 comments

Physiological-Biometric-Auth

https://github.com/peterretief/physiological-biometric-auth
1•peter_retief•24m ago•0 comments

A universal sleep pattern could help strengthen and separate memories

https://medicalxpress.com/news/2025-06-universal-pattern-memories.html
1•PaulHoule•24m ago•0 comments

LISPy things you can do in 64K bytes of core

https://www.t3x.org/lisp64k/index.html
4•smartmic•26m ago•0 comments

FDA Layoffs Could Compromise Safety of Medications Made at Foreign Factories

https://www.propublica.org/article/fda-cuts-drug-factory-inspections
3•clumsysmurf•27m ago•0 comments

Why Your Open Source Startup Is Going to Fail (2023)

https://about.scarf.sh/post/why-your-open-source-startup-is-going-to-fail-and-what-you-can-do-about-it
1•azhenley•28m ago•0 comments

Solutions to the Altruist's Burden: The Quantum Billionaire Trick

https://basilisk.neocities.org/
1•Bluestein•28m ago•0 comments

Sheldon Whitehouse's Three-Hundredth Climate Warning

https://www.newyorker.com/news/the-lede/sheldon-whitehouses-three-hundredth-climate-warning
1•mitchbob•28m ago•1 comments

D3D11 Texture Update Costs

https://eatplayhate.me/2013/09/29/d3d11-texture-update-costs/
1•90s_dev•30m ago•0 comments

Agora Built an Empire by Hawking Bad Financial and Health Advice on Facebook

https://www.forbes.com/sites/emilybaker-white/2025/07/07/this-secretive-company-built-an-empire-by-hawking-bad-financial-and-health-advice-on-facebook/
1•coloneltcb•33m ago•0 comments

Holo v0.8 Released

https://medium.com/@renatowestphal/holo-v0-8-released-80a2ef8e6f83
2•WarOnMosquitoes•34m ago•0 comments