Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » code golf
- ev3coolexit987654
-
1000+ posts
code golf
What you need to do:
Print “Hello World!” to STDOUT without quotes.
-50% bonus if you don't have " or ' in your code
The language has to be turing complete.
Do it in shortest bytes.
(Example reply:
Shows as:
Scoreboard
Print “Hello World!” to STDOUT without quotes.
-50% bonus if you don't have " or ' in your code
The language has to be turing complete.
Do it in shortest bytes.
(Example reply:
[b][big]Language, N bytes[/big][/b]
[code]code[/code]
Language, N bytes)code
Scoreboard
- CJam, 15 by WooHooBoy
- PBTL, 9 by me (w/ bonus)
- JS ES6, 7 with bonus by Zro716.
- Lua, 33 with bonus by -Io-
Last edited by ev3coolexit987654 (Nov. 6, 2015 20:07:44)
- ev3coolexit987654
-
1000+ posts
code golf
I figured a lot of languages had a 15-byte solution
I know the CJam interpreter (http://cjam.aditsu.net )

I know the CJam interpreter (http://cjam.aditsu.net )
- ChocolatePi
-
1000+ posts
code golf
How about something more complicated? :p
It's pretty easy to write a short hello world program!
It's pretty easy to write a short hello world program!
- CatsUnited
-
1000+ posts
code golf
+1. I'd like to see someone do Hello World in base 36. How about something more complicated? :p
It's pretty easy to write a short hello world program!

- gdpr533f604550b2f20900645890
-
1000+ posts
code golf
At first, I thought we were supposed to write a Hello World program without using quotes (in the code). 
*Looks up the for-each loop syntax*
^^100% quote-free!
May we have a quote-less code competition?

Why don't we do try writing a quote-less program? How about something more complicated? :p
It's pretty easy to write a short hello world program!
*Looks up the for-each loop syntax*
public class X{public static void main(String[]a){char[]b={72,101,108,108,111,32,87,111,114,108,100,33};for(char i:b)System.out.print(i);}}
May we have a quote-less code competition?
Last edited by gdpr533f604550b2f20900645890 (Nov. 5, 2015 23:33:54)
- CatsUnited
-
1000+ posts
code golf
As in no “” <– ? May we have a quote-less code competition?
- gdpr533f604550b2f20900645890
-
1000+ posts
code golf
I would imagine such a contest as being no single nor double quotes.As in no “” <– ? May we have a quote-less code competition?
- ev3coolexit987654
-
1000+ posts
code golf
That's now a bonus.I would imagine such a contest as being no single nor double quotes.As in no “” <– ? May we have a quote-less code competition?
- __init__
-
1000+ posts
code golf
Python:
Output:
It prints “Hello World!” – plus a bunch of other stuff 
Hello World!
Traceback (most recent call last):
File "<string>", line 1
Hello World!
^
SyntaxError: invalid syntax

- ev3coolexit987654
-
1000+ posts
code golf
you need to print to stdout Python:Output:Hello World!It prints “Hello World!” – plus a bunch of other stuffTraceback (most recent call last):
File "<string>", line 1
Hello World!
^
SyntaxError: invalid syntax
- ChocolatePi
-
1000+ posts
code golf
umyou need to print to stdout Python:Output:Hello World!It prints “Hello World!” – plus a bunch of other stuffTraceback (most recent call last):
File "<string>", line 1
Hello World!
^
SyntaxError: invalid syntax
and it is not printing to stdout how?
- Zro716
-
1000+ posts
code golf
Javascript - 14 chars
(-50% bonus = 7 chars
)
tbh I didn't even know this would work



`Hello World!`
Last edited by Zro716 (Nov. 6, 2015 03:40:53)
- -Io-
-
1000+ posts
code golf
Lua, 66 * 50% = 33 bytes
I'm not good doing short codes, so here it is lol
print(string.char(72,101,108,108,111,44,32,87,111,114,108,100,33))
- CatsUnited
-
1000+ posts
code golf
That's pretty cool. Javascript - 14 chars(-50% bonus = 7 chars
![]()
)
tbh I didn't even know this would work`Hello World!`
- Discussion Forums
- » Advanced Topics
-
» code golf