Terry Davis demonstrates why the C++ syntax for writing to stdout is retarded. Here is how some of the most popular programming languages print to screen:
C++: cout << “message” << endl; or printf(“message”);
Java: System.out.println(“message”);
Python: print(“message”)
C#: Console.WriteLine(“message”);
Go: fmt.println(“message”);
Bash: echo “message”
HolyC: “message”;
Notice how HolyC cuts out all the bloated nonsense. Why isn’t all of programming done like HolyC? It is divinely simple.
C++ is getting better day by day. You’ve to watch Andreas Kling videos, a fan of Terry Davis job and a great C++ programmer, creating a OS from scratch. https://www.youtube.com/watch?v=nhqqDvGOTfk https://www.youtube.com/watch?v=uTxRF5ag27A
LikeLiked by 1 person
I like his videos, hes great. I’m not saying HolyC is better than C++, I’m saying its better than C. Its C+ (1 plus haha). I also think almost all programming languages could learn from some of the brilliant tweaks Terry makes. HolyC’s print to screen string formatting is the best way to do it, quotes are NEVER the start of a line of code, never ever, so why not make it so if quotes are the first symbol on a line, the line prints to screen. Its brilliant simplicity that all programming languages could learn from.
LikeLike
It looks nice for simple examples, but messy if the code is complex and professional. What about formatted output? A function pointer to printf? Or even just being sure a stray string doesn’t get printed?
For as much as I like Terry, there’s nothing better than pure C.
LikeLike
Formatted output works like a printf statement without the pointless ‘printf’. You’d just do “%d\n”,someNumber; for formatted output. Its far better. You can put functions and function pointers in a formatted string, I believe you do “%p\n”,someFunctionPointer; . It works like printf but without the useless ‘printf’. In C you never initialize a string on a line starting with a ” quote, you would call strcpy or start a char array, both are needlessly complex. The TempleOS method is by far the simplest, most readable, and how it should be done in every programming language imo. HolyC is better than pure C. Pure C requires object files, make files, header files, ‘printf’, and many other needlessly complex bs. HolyC requires none of it, all the programmer has to worry about is programming.
LikeLike
By function pointer to printf, I mean something like: void (*func)(uchar*, … = printf. (if it doesn’t error out)
If you want a language that cuts corners, use Python or C++.
The “complex bs” is a must for serious projects, that’s why it was made like so in the first place.
LikeLike
You can do that in HolyC by using the better name for return nothing U0(as opposed to void), and by setting the function pointer to = Print . You may have to add a & to the front of the Print idk Im not 100%. A statement or expression starting with quotes in HolyC is a Print call (Print=printf). Python and C++ cuts corners for legitimate reasons, HolyC doesn’t add pointless corners. Object files, header files, make files are pointless and only add headaches for a programmer. HolyC is greater than C but less than C++, its like a C+(1 plus lol). All professional 100k or more lines of code use Java, some offshoot of Java(Scala, Groovy, Kotlin), C#, or C++. The only major codebases that still use base C are old codebases. Netflix uses Java(and its offshoots), Twitter uses Java, most of Google uses Java(and its offshoots), Comcast uses Java, Microsoft uses C# or VB, performance based bank stock exchange software use c++, performance based cryptocurrency use c++. C is only used professionally nowadays by very old codebases, idk though, I could be wrong, but Im pretty confident Im not. Therefore the reason to use C would be for programmer freedom and for personal projects. HolyC fulfills that niche far better than C. It removes the pointless intermediate files and it cuts out some of the ‘idiot proof’ hand holding still inside C. Many of the ideas used in HolyC could greatly improve other languages imo. Im not saying HolyC is best language, Im saying what Terry said, HolyC is better than C but less than C++ and it is. Check it out, stuff that would require a header file, a c file, a compiled o file, maybe a makefile, no longer do, and many complex behaviors of C have been simplified with maximum programmer fun in mind(as opposed to non programmers who need to be hand held and given training wheels).
LikeLike