56
submitted 1 year ago by petsoi@discuss.tchncs.de to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] jlh@lemmy.jlh.name 10 points 1 year ago* (last edited 1 year ago)

Wouldn't any sort of C++/Java/Rust Array/Vector work for this? You still have the possibility for runtime panics, but you're never going to dereference an invalid memory address with those abstractions.

If the goal is to prevent any sort of runtime error with arrays, I'm thinking you'll have to set some strict boundaries or risk running against the limits of computability.

this post was submitted on 03 Oct 2023
56 points (93.8% liked)

Linux

47766 readers
1494 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS