4 ms·
This looks very much like "Hello World" in C, taking advantage of the latest C# features in 2023. If you admit that it looks like C(99), what's "C#" about it t
by userbinator 2y ago
This looks very much like "Hello World" in C, taking advantage of the latest C# features in 2023.
If you admit that it looks like C(99), what's "C#" about it then? This can probably be done with just about every C-syntax-derived language, which is why I think the title is a bit clickbaity; I was expecting some sort of highly-stripped-down CLR.
- whaleofatw2022 2y agoWhen I saw it only seems to support a 'main' I got disappointed. If it could even get to 'method calls with ref structs' you would start getting into where I'd want to YOLO with it, maybe even use Nesticle to test for the irony.
- pjmlp 2y agoThe same way C23 on NES, isn't C proper, rather the macro assembler K&R C used to be.
- DeathArrow 2y agoSo K&R C wasn't proper C?
- shzhdbi09gv8ioi 2y agoIt predates the first standardized C versions: * ANSI C by 11 years (C89) * ISO C by 12 years (C90) https://en.wikipedia.org/wiki/C_(programming_language)#K&R_C https://en.wikipedia.org/wiki/C_(programming_language)#K&R_C
- ngcc_hk 2y agoSo strange. Someone invented a computer language called C and is not proper C until it is stabdardised by a committee. I would say the original C is proper C. Got a whole operating system to run with it. Organisation is nothing if we do not accept individual’s role.
- pjmlp 2y agoThe C language as invented for porting UNIX does not fit into a NES, nor does it expose its hardware capabilities.
- pjmlp 2y agoNot the subset you can fit onto a 6502, thus that subset fits the same purpose as K&R C, a portable macro assembler, calling into functions that are written in raw Assembly, compiled by an external macro Assembler. And good luck making good use of 6502 registers for C code.