checkedc
stent
checkedc | stent | |
---|---|---|
21 | 8 | |
3,183 | 35 | |
0.0% | - | |
0.0 | 2.6 | |
over 1 year ago | over 2 years ago | |
C | C | |
GNU General Public License v3.0 or later | BSD 2-clause "Simplified" License |
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.
checkedc
- The NSA list of memory-safe programming languages has been updated
-
The Fil-C Manifesto: Garbage In, Memory Safety Out
https://github.com/microsoft/checkedc
Also, one can combine subsets of C with FOSS, static analyzers that can handle those subsets. Then, compose only in ways that the tools can handle. Then, combinatorial and fuzz testing of the interface composition.
I know you’re doing the project for fun while exploring specific ways to achieve your goals. So, these are just some links and concepts that might help on your journey. Lots of folks don’t know about prior work in this area. So, I keep passing it on.
-
My Bad Habit of Hoarding Information
- [Checked C](https://github.com/microsoft/checkedc) - extensions to make C safer #cpp
- Checked C
- Is it possible to have a superset of the C programming languages standard that is as safe as Rust?
- Checked C by Microsoft Research
-
Azure CTO: “It's time to halt starting any new projects in C/C++ ”
Yes. Microsoft Research is working on "Checked C": https://www.microsoft.com/en-us/research/project/checked-c/
As a test, someone ported FreeBSD's networking stack to Checked C. It was easy and there was no overhead to performance and binary size.
-
I want to learn csharp man
Haha. I think they did ultimately agree. Thus a later research project is: Checked-C
stent
-
How do you deal with the extra verbosity of C?
In many ways it is up to you to design your APIs to be less verbose. For example, my vector type (from here) looks like:
-
[beginner] a stack implementation i wrote.
Minimal version of this concept (but for a Vector) if it helps: https://github.com/osen/stent/blob/master/include/vec.h
-
Why did relocatable heaps and handles, as used by classic MacOS and Palm, fell out of favor ?
Interestingly I developed a "safety" library for C which people later told me followed similar concepts to the double pointer system in classic Mac OS. I arrived at it because I thought it was a fairly good solution.
- Might OpenBSD ever consider using a language like Zig?
-
How do you guys deal with memory bugs?
For C I tend to use a library I wrote called libstent which I have been told is similar to the old memory management approach of classic Mac OS.
- What rules do you follow to prevent memory safety errors? Memory leaks, Use after free, etc?
- What do you think of Safe-C ?
- How do you deal with C's lack of true generics / templates?
What are some alternatives?
koka - Koka language compiler and interpreter
STC - A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers.
rust.ko - A minimal Linux kernel module written in rust.
CC - A small, usability-oriented generic container library.
manyclangs - Repository hosting unofficial binary pack files for many commits of LLVM
CommonC - Common utilities for C
c2rust - Migrate C code to Rust
stc - Speedy TypeScript type checker
linux - Linux kernel source tree
dafny - Dafny is a verification-aware programming language
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
wuffs - Wrangling Untrusted File Formats Safely