Forth is the most incredible programming languages. All languages are stack machines under the hood. One day they will realize the greatness of forth
nice meme
for a loser
>>61787054
FORTH-SHILLS WELL-PAID?
>>61787054
: loosers ." Think these are shill threads... they will never understand" ;
loosers
One day they will learn OP, o-o-one d-d-day they w-w-wil l-l-learn
>>61787492
>implying there is any money in shilling Forth
>>61787202
>>>/nofap/
>>61787054
http://www.mpeforth.com/software/pc-systems/vfx-forth-for-windows/
http://www.mpeforth.com/software/pc-systems/vfx-forth-for-linux/
Read this first:
https://www.forth.com/starting-forth/
"Nature is pleased with simplicity, and affects not the pomp of superfluous causes."
—Newton
"A map is not the territory it represents, but, if correct, it has a similar structure to the territory, which accounts for its usefulness."
—Alfred Korzybski
>All languages are stack machines under the hood
Not really. LLVM IR is basically a register machine. CLR and JVM languages may be targeting a bytecode standard that is essentially a stack machine, but this is not really the case for a lot of native languages.
>>61787667
llvm is register base because they compile down to actual machine code which runs on registers
any real language uses a stack
>>61788009
What is real?
t.Velveteen Rabbit
SPARC almost sorta kinda had inbuilt support for stacks, with the register windowing and thousands of register contexts stuff. But you should crack open your Hennessey and Patterson and stop living in a meme m8.
>>61788009
Well most real languages target LLVM and/or GCC's intermediate format.
>>61788114
llvm is not a language though llvm is basically a simulated computer ISA. It's not the same as something that is an actual language.
>>61788560
LLVM is an intermediate format. What was claimed was that most languages are stack machines under the hood. Seeing as most native languages compile to LLVM, it is what they are under the hood, and it is a register, not stack machine.
>>61788583
A language that compiles to llvm is not the same thing as llvm. That's like saying haskell is the same as llvm fyi
>>61788609
Right. I'm not saying that these languages ARE LLVM, only that they use LLVM under the hood. LLVM is a pretty standard intermediate representation format. GCC's compilers also use their own intermediate representation which is not stack-based.
>>61788850
So you are saying that no stack has ever been implemented in llvm?
>>61788850
>>61788583
>>61788583
>>61788114
>>61788009
llvm doesn't support stacks
Which would you choose?
>>61789118
No, only that LLVM itself is not a stack machine, and most compiler backends are not stack machines, at least for langauges that are intended to run directly on the hardware with no virtual machine or interpreter sitting in between.
The claim by OP:
>All languages are stack machines under the hood.
The reality:
>The intermediate representation used for many popular languages "under the hood" is not actually a stack machine. Since the target platform for most programs is instructions is machine code for register-based instruction set architectures, it is easier to use an intermediate format that is register based as well.
>>61790267
all GOOD languages are stack based
>>61790267
That is completely not true. You are saying that any language written for llvm is not stack based under the hood because llvm does not use stacks and that is not true. It may compile down to something on llvm that uses a stack on top of llvm even though llvm itself is stackless
>>61789412'NIL
>>61790986
The logical step before an intermediate representation would be an abstract syntax tree. There would be no reason to use a stack machine anywhere in the compilation process.
>>61791058
It doesn't work that way anon you have to choose
>>61791201
ok then I choose the toned, broad-chested, tanned masculine man with common lisp superimposed on his picture
>>61791268
nope you either have to choose cute forth tan or clinton c tan
>>61787054
It's like not even in the top three languages
>>61789412
CUTE FORTH TAN
-Simplicity
-Beauty
-Symmetry
-Stalwart defender of Christian civilization
CLINTON C TAN
-Complexity
-Deformity
-Unnecessary
-Satanic devil worshiping establishment doormat