Active Members MrGrj Posted October 12, 2015 Active Members Report Posted October 12, 2015 (edited) Mi-am pus de cateva ori intrebarea asta. Ia sa vedem:The language HW is the clear winner. It has no statements or expressions; all HW programs (no matter what their content) do nothing but print "Hello, World" as output. No programming langauge could be more efficient.Here is a picture of dear programmer Kim Jong Un demonstrating how to use this remarkable language to infiltrate the computer networks of Sony Pictures and single-handedly show them how imperialist languages like C++ and Java are no match for the Juche idea: The noblest idea calling for respect for the people and the protection of human beings and the only all-powerful treasured sword not only for hewing out the destiny of independent human beings but for accomplishing the cause of each country and nation and the cause of global independence.It is not the shortest, but LOLCODE is undoubtedly the cutest code:HAICAN HAS STDIO?VISIBLE "HAI WORLD!"KTHXBYEZero characters: Any domain-specific language whose compiler/generator/interpreter reads an empty input as the source code and produces a program that outputs the string Hello World.Zero characters is hard to beat to make a Hello World program - but how fast can you make the language in which you can make the program? In MetaEdit+, you can build such a language in 18 characters and a few clicks:1. Create a Graph type called H2. Open the Generator Editor and create a new generator called H():H()'Hello World'hq9+ is an esoteric language with only four commands: 'h' prints "hello, world", 'q' prints the program's source (Quine), '9' prints the lyrics to 99 bottles of beer, and '+' increments the accumulator. hq9+ was pretty much made as a joke to cheat at code golf. So the hello world is just:hx86 Assembly: (pt. @Psiho )mov $0xb800, %axmov %ax, %dsmov $'H', %almov %al, 0x0000mov $0x0F, %almov %al, 0x0001mov $'e', %almov %al, 0x0002mov $0x0F, %almov %al, 0x0003mov $'l', %almov %al, 0x0004mov $0x0F, %almov %al, 0x0005mov $'l', %almov %al, 0x0006mov $0x0F, %almov %al, 0x0007mov $'o', %almov %al, 0x0008mov $0x0F, %almov %al, 0x0009mov $' ', %almov %al, 0x000Amov $0x0F, %almov %al, 0x000Bmov $'W', %almov %al, 0x000Cmov $0x0F, %almov %al, 0x000Dmov $'o', %almov %al, 0x000Emov $0x0F, %almov %al, 0x000Fmov $'r', %almov %al, 0x0010mov $0x0F, %almov %al, 0x0011mov $'l', %almov %al, 0x0012mov $0x0F, %almov %al, 0x0013mov $'d', %almov %al, 0x0014mov $0x0F, %almov %al, 0x0015clihltFourth place: oneliners like BASIC: print "Hello world"Third place: interpretators echoing values entered, like LISP: "Hello World"Second place: loosing the quotation marks like PHP: Hello WorldFirst place: esoteric language outputing "Hello World" on single character Zeroth place: esoteric language outputing "Hello World" on empty string, like making shell promt read "Hello World"via. Puteti gasi alte solutii in link-ul alaturat PS: si Python care vine tare din urma:import __hello__ Edited October 12, 2015 by MrGrj Quote
BLKoldSUN Posted October 12, 2015 Report Posted October 12, 2015 HTML - e limbaj de marcare @Nytro Quote
Nytro Posted October 12, 2015 Report Posted October 12, 2015 Nici ASM, Java, Python, Perl, LISP, PHP sau cele esoterice nu sunt limbaje de programare.int main() { /* shellcode care afiseaza mesajul /* return 0; } Quote
BogdanWDK Posted October 12, 2015 Report Posted October 12, 2015 HAICAN HAS LMAO?I HAS A VARIM IN YR LOOP UP VAR!!1 VISIBLE VAR IZ VAR BIGGER THAN 10? KTHXIM OUTTA YR LOOPKTHXBYE Quote
BogdanWDK Posted October 12, 2015 Report Posted October 12, 2015 Ecstatic - EsolangTo print "Hello, world!" you would need 24,866,256,684,781,338,733,321,022,194,929,619,017,923,951,399,467,222,375,071,721,694,990,877,932,162,871,254,860,804 exclamation points. Quote