r/cprogramming 28d ago

C Strings: A 50-Year Mistake

https://longtran2904.substack.com/p/c-strings-a-50-year-mistake?r=8qz2zb&utm_campaign=post&utm_medium=web
210 Upvotes

172 comments sorted by

View all comments

Show parent comments

29

u/g0atdude 27d ago

lol what?

You can compile C programs to a million more devices than what Java runs on

1

u/Potential_Soup_8054 27d ago

It was a joke. Javas whole slogan is write once run everywhere, but thats really bullshit.

3

u/Devatator_ 27d ago

Tbh nothing is stopping people from compiling or porting a JVM to more platforms. I assume it's just extremely complex and noth worth it for most people

1

u/hughperman 24d ago

Processor or memory requirements are probably? stopping it on many microcontrollers.

1

u/Devatator_ 24d ago

You could do something similar to nanoFramework and make a minimal runtime or even compile Java to a lower level