News for hackers. Stuff that matters.
Re:Vinix – A modern operating system written in V by EGreg on Thursday September 17, 2026 @01:25PM (#49743845)
I don't know.

But I just released a language called U, and I was surprised to see this one.

https://ulanguage.org

Re:Vinix – A modern operating system written in V by cestith on Thursday September 17, 2026 @02:42PM (#49744816)
When compiling to C, does it use MISRA C or some other accepted standard for how to write secure and reliable C?
Re:Vinix – A modern operating system written in V by EGreg on Friday September 18, 2026 @03:04PM (#49758752)
Yes, C11

But in terms of security and reliability, U's linter and compiler enforces that.

Re:Vinix – A modern operating system written in V by vrighter on Saturday September 19, 2026 @09:36AM (#49766504)
C11 is the c language version. misra C is a set of guidelines for robust code when lives are on the line.

One rule is "no malloc after initialization". so no, you probably aren't. Nor should you be. misra is intended for the programmerc not the compiler

Re:Vinix – A modern operating system written in V by cestith on Monday September 21, 2026 @11:11AM (#49788344)
He's emitting C as an intermediate form. I'm asking if the C that's emitted is meeting MISRA or any other recognized standard for secure and robust C code.
Re:Vinix – A modern operating system written in V by vrighter on Tuesday September 22, 2026 @06:56AM (#49799258)
you can't have a compiler automatically generate misra C. Because misra is a set of programmer discipline guidelines. How would you automatically convert a program that does dynamic allocation into one that preallocates all memory up front in the init phase?
Re:Vinix – A modern operating system written in V by xvilka on Thursday September 17, 2026 @01:37PM (#49744023)
Just like V but without sharp edges?