HNHacker News
TopNewBestAskShowJobs

kevlar700

123 karma · joined June 20, 2022

submissionscomments
kevlar700··on Getting Started with Ada by Way of Rust
Is this input validation an exceptional error or code flow?

Ada has 'Valid and so you can also do e.g.

If Guess'Valid then ...

In order to check that the data is valid for the types range whilst avoiding the exception that would occur if otherwise read whilst containing invalid data.

Gnat also has the non standard 'Valid_Scalars for records.

Which will check every scalar type in a record. This record may have been filled by unchecked_conversion which ironically does check the size at compile time. It is all very neat along with record overlays. I can't stress enough how far ahead of the competition Ada is for handling hardware registers whether memory mapped or received.

Where is the link for pattern matching as I am unsure of the necessity of it in Ada? I prefer Adas features to Darts new pattern matching atleast for json validation. I do not otherwise have extensive experience of Darts pattern matching though or any of Rusts.

kevlar700··on It's time to halt starting any new projects in C/C++
Ada offers security and simplicity and is already part of GCC but also has llvm now. Linux kernel drivers have also been demonstrated.

Perhaps it would be healthier for Rust to have competition?

https://www.linux.com/audience/developers/hacking-the-linux-...

https://github.com/alkhimey/Ada_Kernel_Module_Framework

https://alire.ada.dev/

Nvidia also chose Spark; a built in subset of Ada as being more cost effective for secure code than C++.

https://youtu.be/2YoPoNx3L5E

Assembly is also supported by Ada and I found it far easier to add than with C even.

C interface support is also excellent.

kevlar700··on Is it time to retire C and C++ for Rust in new programs?
Ada offers security and simplicity and is already part of GCC but also has llvm now. Linux kernel drivers have also been demonstrated.

Perhaps it would be healthier for Rust to have competition?

https://www.linux.com/audience/developers/hacking-the-linux-...

https://github.com/alkhimey/Ada_Kernel_Module_Framework

https://alire.ada.dev/

Nvidia also chose Spark; a built in subset of Ada as being more cost effective for secure code than C++.

https://youtu.be/2YoPoNx3L5E

Assembly is also supported by Ada and I found it far easier to add than with C even.

C interface support is also excellent.

kevlar700··on Is it time to retire C and C++ for Rust in new programs?
Ada offers security and simplicity and is already part of GCC but also has llvm now. Linux kernel drivers have also been demonstrated.

Perhaps it would be healthier for Rust to have competition?

https://www.linux.com/audience/developers/hacking-the-linux-...

https://github.com/alkhimey/Ada_Kernel_Module_Framework

https://alire.ada.dev/

Nvidia also chose Spark; a built in subset of Ada as being more cost effective for secure code than C++.

https://youtu.be/2YoPoNx3L5E

Assembly is also supported by Ada and I found it far easier to add than with C even.

C interface support is also excellent.

kevlar700··on What's New in Ada 2022
There is an Ada specific IDE with a nice memory footprint at the link below. The continuous release version of Gnat Studio has just been released for anyone to use recently. If you want the payed for pro tools features and support, then there are downloads on adacore.com instead.

https://github.com/AdaCore/gnatstudio

← PreviousPage 2 of 2