this post was submitted on 13 Sep 2024
53 points (94.9% liked)

Programming

17313 readers
241 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 2 months ago (2 children)

This is cool in theory but this is yet another competing standard of static analysis.

We got clang-tidy, CPPAnalyser, etc… etc…

[–] iAvicenna 6 points 2 months ago* (last edited 2 months ago) (1 children)

I am also curious how much of those "%70 of the vulnerabilities" would be detected by tools like valgrind, CPPcheck etc (either directly in the former case or indirectly in the latter). If a major part, then the main problem is people not incentivized to / not having enough time to use these tools.

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago)

Valgrind is pretty crazy to find bugs and memory leaks !

[–] [email protected] -1 points 2 months ago* (last edited 2 months ago) (1 children)

this is yet another competing standard of static analysis.

No, it isn't.

Those are linters. They might or might not discover problematic use of unsafe language features lurking in existing code.

This proposal is a new iteration of the language and standard library. It would provide safe language features for preventing such problems existing in the first place.

[–] [email protected] 7 points 2 months ago* (last edited 2 months ago) (1 children)

Right now, we have to compile the compiler for this ourselves. Pardon my skepticism; I’m not sure this is mature enough.

Edit: I’m talking about the project not the idea. Sean Baxter has shown up everywhere for awhile talking about this. I think his idea has a ton of maturity. I don’t know that the project itself has enough maturity to mainline yet.

[–] [email protected] 2 points 2 months ago (1 children)

That's fair. I think the last word in the URL does a good job of representing the implementation's claimed level of maturity:

draft

:)

[–] [email protected] -3 points 2 months ago (2 children)

You said

This proposal is a new iteration of the language and standard library. It would provide safe language features for preventing such problems existing in the first place.

Either it’s a draft or it’s a new iteration of the language. Can’t be both.

[–] [email protected] 4 points 2 months ago* (last edited 2 months ago) (1 children)

Either it’s a draft or it’s a new iteration of the language. Can’t be both.

It's a draft of a proposal for a new iteration. Is that so difficult to understand?

[–] [email protected] -5 points 2 months ago (1 children)

This is “It’s just a THEORY” but for programmers

[–] [email protected] 4 points 2 months ago

It’s a concept of a plan