Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Terminal Autism (terminalautism@social.076.ne.jp)'s status on Wednesday, 21-Sep-2022 09:26:06 JSTTerminal Autism @ryo @Misato I tend to put Java and Go in the same category because of benchmarks.
https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/go.html
You can question the value of the benchmarks, of course, but still, based on that, they are on a similar category. The problem could be that Java programs are just bloated pieces of shit, that's possible.
Anyway, the two main factors in language's speed, other than being compiled or not, are typing and memory management. Common Lisp has dynamic typing, but it can be turned off for extra performance, and then it's in that same category as Go, of garbage-collected languages with static typing.
I don't know how to turn off the garbage collector and manually manage memory, but I think there is a way, but I don't know FFI stuff. So, it's a compiled language that is more powerful than scripting languages and does things that they can't do, and potentially can do the things that make C efficient in the first place. It's a shame that it's so niche.
Anyway, I don't know enough OOP to have an opinion about it. I did learn the concepts, and learned it in CL through examples, but I never used it for anything, even in exercises, so I don't have a great understanding of it. I can imagine it possibly being the right abstraction for certain things, but I haven't tried it myself.
The best way to know is to write the same thing using it where appropriate, and also not using at all, and then compare the results. My first exposure to it was actually through Smalltalk, and that is technically the only real OOP language still barely alive. But in that, everything is an object. It is truly object-oriented, and not just a language that has objects that you can choose to use or not to use, which is what other languages have.
Anyway, I should learn how to do GUI stuff. OOP stuff is supposedly good for that, so it would be a good way to test it. All I know is that it was more confusing to learn than anything else, which is why I can't do it from memory. From my perspective as a total scrub, it's definitely more complicated than anything else that I learned.