Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-26 Thread Greg Reagle
On Tue, Jun 25, 2024, at 5:00 PM, Anselm Garbe wrote: > I wonder why you didn't look into golang. Garbage collection. For a "better C" I don't want garbage collection. And if I am going to use a higher level language that *does* have garbage collection, Go has not impressed me so far. I'd

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-26 Thread Pedro Lucas Porcellis
On Fri Jun 21, 2024 at 11:45 AM -03, Greg Reagle wrote: > I have looked into numerous language: Rust, Pascal, Ada, V, Hare, > Zig, D, and others I am probably forgetting. I have not become an > expert in these languages but read tutorials. And I have written > small programs (like cal) in a

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-25 Thread Anselm Garbe
Hi there, On Fri, Jun 21, 2024 at 8:21 AM Greg Reagle wrote: > I have looked into numerous language: Rust, Pascal, Ada, V, Hare, Zig, D, > and others I am probably forgetting. I have not become an expert in these > languages but read tutorials. And I have written small programs (like cal)

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-23 Thread Greg Minshall
NRK wrote: > I won't comment on the other languages mentioned because my view on > nearly all of them is negative. But most of my "safety and ease of use" > with C I've been able to solve by just building better "primitives" > instead of changing language - which comes with significant cost such

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-22 Thread Vincent Lefevre
On 2024-06-22 03:58:46 +, NRK wrote: > Sized strings > - > > typedef struct { > uint8_t *s; // or you can use `(unsigned) char *` > ptrdiff_t len; // or you can use `size_t`, see explanation > below > } Str; > > * Cheap access to the

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-22 Thread Jeremy
Hello Friend, On 06/21/24 10:45AM, Greg Reagle wrote: > I am not a fan of C because of problems like buffer overflows; weakly typed > arrays; lack of (built-in) range checking for enumerations, numeric types, > arrays; lack of overflow checking; string handling being too complex. > Basically

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread Randy Palamar
NRK wrote: > Below are two of the most impactful changes. I was going to elaborate on > these but it was getting *really* long very quickly so I've kept it to a > brief overview followed by a real-world project that demonstrates these > techniques. I completely agree. Since trying sized

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread NRK
On Fri, Jun 21, 2024 at 10:45:01AM -0400, Greg Reagle wrote: > Basically what you might call "safety and ease issues." I won't comment on the other languages mentioned because my view on nearly all of them is negative. But most of my "safety and ease of use" with C I've been able to solve by just

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread Storkman
On Fri, Jun 21, 2024 at 06:48:53PM +0200, Страхиња Радић wrote: > Дана 24/06/21 10:45AM, Greg Reagle написа: > > Rust also has some good safety and ease-of-use features. It is very > > big and complex with a lot of features (compared to C). > > Previous thread, now necroed: > >

Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread Страхиња Радић
Дана 24/06/21 10:45AM, Greg Reagle написа: > Rust also has some good safety and ease-of-use features. It is very > big and complex with a lot of features (compared to C). Previous thread, now necroed: https://lists.suckless.org/dev/2104/34265.html * * * Rust sucks. It was made by Big Tech

[dev] alternatives to C: Ada, Rust, Pascal

2024-06-21 Thread Greg Reagle
Warm greetings to my fellow programmers and lovers of elegant simplicity. I wrote the sbase cal program in Pascal for fun, learning, experimentation. I have also written it in Rust and Ada, for the same reasons. I recently started re-learning Pascal (which I learned in high school) using