Best programming language ever

It's called Chef.
Here's a Hello World example from Wikipedia:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Hello World Souffle.
 
 Ingredients.
 72 g haricot beans
 101 eggs
 108 g lard
 111 cups oil
 32 zucchinis
 119 ml water
 114 g red salmon
 100 g dijon mustard
 33 potatoes
 
 Method.
 Put potatoes into the mixing bowl.
 Put dijon mustard into the mixing bowl.
 Put lard into the mixing bowl.
 Put red salmon into the mixing bowl.
 Put oil into the mixing bowl.
 Put water into the mixing bowl.
 Put zucchinis into the mixing bowl.
 Put oil into the mixing bowl.
 Put lard into the mixing bowl.
 Put lard into the mixing bowl.
 Put eggs into the mixing bowl.
 Put haricot beans into the mixing bowl.
 Liquefy contents of the mixing bowl.
 Pour contents of the mixing bowl into the baking dish.
 
 Serves 1.


Homepage: http://www.dangermouse.net/esoteric/chef.html

Edit: Lolcode is fun:
1
2
3
4
5
6
7
8
$ lolcode
HAI
CAN HAS STDIO?
I HAS A NAME     
VISIBLE "O HAI DER, WUTS NAME?" 
GIMMEH NAME
VISIBLE "OHAI " NAME
KTHXBYE
O HAI DER, WUTS NAME?
CHRIS
OHAI CHRIS
Last edited on
What are we doing with our time these days?

EDIT: I much prefer this one:
http://www.dangermouse.net/esoteric/zombie.html

-Albatross
Last edited on
I think this one is great: http://www.dangermouse.net/esoteric/petrovich.html
That's ingenius.
These are great, if I ever find the time I'll toy with making one xD
Is there even a compiler for this?
This post made so many questions in my head.

How do someone make a programming language?
I just googled http://forums.devshed.com/beginner-programming-16/how-do-people-create-new-programming-languages-530633.html

Ok, if that's the answer. How is assembly language created then? How did they compile it?

How did they make software from scratch without operating system?

And many more questions @.@

It would be nice if someone could answer this questions.


btw, I might learn Chef language on my free time. It's kinda cool
http://www.dangermouse.net/esoteric/zombie.html
I am disappointed by the marked lack of braaaain statements.

blackcoder41:
I think it should be noted that languages are ideas. As such, they don't need to be created in any specific ways. What you're asking is how language compilers and/or interpreters are created.

How is assembly language created then?
Machine code.

Some compilers are created in more interesting ways than others. For example, Lisp's first interpreter was written in Assembly, but its compiler was written in Lisp, ran through the interpreter, then passed its own code as input to get a compiler binary as output. When a compiler is capable of compiling its own code, it's said to be self-hosted.
How do someone make a programming language?


They write an informal grammar, they write out their semantics, they design a standard library, they write a formal grammar, they write a lexer and parser, and they have their language compiler/interpreter. The difference is that a compiler writes assembly or machine code, while an interpreter acts as a shell.

@helios:
Yes, that was an oversight.

-Albatross
Last edited on
You missed out the part where they design the language :S
I don't think it's as simple as saying "This is a Turing-complete language now. Have fun!"
Surely you have to design the language before creating the compiler/interpreter.
Actually, I didn't miss that part. See "write an informal grammar".

-Albatross
But there's more to a language definition than grammar. Semantics and libraries, for example.
Oh, that's just a small detail that makes absolutely positively no impact on the language whatsoever...

-Albatross
To answer his question as to how the first languages came to be without an operating system. I'm fairly certain they were done with punch cards fed to a machine physically by hand. The language was binary machine code. Or as I'm told it was called at some point 'Assembler'.
@helios
What you're asking is how language compilers and/or interpreters are created.
Yeah, I think that's what I'm suppose to asking. Btw thanks for your answer.

@Seraphimsan
To answer his question as to how the first languages came to be without an operating system. I'm fairly certain they were done with punch cards fed to a machine physically by hand. The language was binary machine code. Or as I'm told it was called at some point 'Assembler'.
I think that's enough answer assuming that is correct. I guess I have to see it for myself on how they do it to satisfy my curiosity. It does not have to be actual, it could be documentary (video) or instruction (with images)

I really can't imagine how to use a punch card so produce software. I'm gonna go google it now.

Thank you very much for all of you.
I know this is an easy to find Wikipedia article, but...
http://en.wikipedia.org/wiki/Compiler

-Albatross
Also, I need to find out what this font is. I like the crazy $ signs and I want them for Perl and PHP.
I don't know what you're seeing, but I'm seeing Courier New.

What in god's name does that have to do with languages?
dollar sign? On windows I'm seeing Courier New, on puppy linux I'm seeing lucida typewriter
Yeah it's a dollar sign, but it looks awesome in that font.
Topic archived. No new replies allowed.