Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Secure programming language discussion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ak.plus.gold
n00b
n00b


Joined: 24 Nov 2024
Posts: 1

PostPosted: Mon Dec 02, 2024 2:47 pm    Post subject: Secure programming language discussion Reply with quote

I'm planning to implement a major project in C / C++ / Rust / etc. haven't decided yet. Everything seems like it is coded in C, starting from Linux kernel, to compilers, even entire languages such as Python. I'm not totally convinced about why they chose C when there were other options. Or why no one chose to implement an alternative from scratch similar to C, is assembly really that difficult? :|

Anyway, here's a list of questions for you to answer:

1) What languages do you recommend? List some pro / cons on why you think it is ideal from a security standpoint, and more importantly would be nice if you can leave some links such as tutorials, notable projects, etc. that can be good learning resources.
2) C++ seems like very optimized version of C with good language features that can make software development much easier. Let me know your thoughts on C vs C++, and why you would recommend one over the other for secure software development.
3) Compiler construction & research is a totally different territory of it's own that I'm not that heavily invested in yet, but you can share your thoughts on what you think about this. Which compilers do you prefer for coding in C / C++ / other & why?

** Bonus ** Mention some good security related software that you think has benefited our Linux community a lot, without which life would surely be very difficult.

Hope the responses and discussion will be very helpful to the community! Have a good day :]
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1295
Location: Richmond Hill, Canada

PostPosted: Mon Dec 02, 2024 3:31 pm    Post subject: Reply with quote

ak.plus.gold,

Welcome to Gentoo.

Do you plan to join this discussion? If you do I suggest you share more of your project.

You questions indicate you are not very familiar to IT industry and far from programming development, so what is you role in this project?

The reason I am asking is because it is better we understand you role and background to formulate the answer rather than give something in depth.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54604
Location: 56N 3W

PostPosted: Mon Dec 02, 2024 4:03 pm    Post subject: Reply with quote

ak.plus.gold,

Welcome to Gentoo.

All programming languages are good for something, if they have stood the test of time.
Secure? Secure against what?
They all have their weak points too.

Assembly is not difficult. The hard bit is to make it portable across architectures. Compilers do that for you.

As pingtoo says, we need more information.
Meanwhile, here are some of the pitfalls. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1728
Location: South America

PostPosted: Mon Dec 02, 2024 4:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Meanwhile, here are some of the pitfalls. :)

C++ 2011 and later move semantics help with the dozen copies thing, although you still shoot yourself :lol:
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum