115.wtf - #5 - Hello, World!

Progress: 023 / 115

    001. Bash
    #!/bin/bash
    echo 'Hello, World!'
    
    002. C
    #include <stdio.h>
    int main() {
      printf("Hello, World!\n");
    }
    
    003. Rust
    fn main() {
        println!("Hello, World!");
    }
    
    004. Python
    #!/usr/bin/env python3
    print("Hello, World!")
    
    005. Lua
    #!/usr/bin/env lua
    print("Hello, World!")
    
    006. Rockstar
    Shout "Hello, World!"
    
    007. CMake
    message("Hello, World!")
    
    008. Go
    package main
    import "fmt"
    func main() {
      fmt.Println("Hello, World!")
    }
    
    009. Node.js/JavaScript
    console.log("Hello, World!")
    
    010. Racket
    #lang racket
    (display "Hello, World!\n")
    
    011. Zig
    const std = @import("std");
    pub fn main() !void {
        try std.io.getStdOut().writer().print("Hello, World!\n", .{});
    }
    
    012. Tcl
    #!/usr/bin/env tclsh
    puts "Hello, World!"
    
    013. Smalltalk
    #!/usr/bin/env gst
    'Hello, World!' displayNl
    
    014. Swift
    print("Hello, World!")
    
    015. R
    write("Hello, World!", stdout())
    
    016. Ruby
    #!/usr/bin/env ruby
    puts "Hello, World!"
    
    017. Guile
    (display "Hello, World!\n")
    
    018. MATLAB/GNU Octave
    #!/usr/bin/env octave-cli
    printf "Hello, World!\n"
    
    019. PHP
    #!/usr/bin/env php
    Hello, World!
    
    020. M4
    Hello, World!
    
    021. Perl
    #!/usr/bin/env perl
    print "Hello, World!\n"
    
    022. C++
    #include <iostream>
    int main() {
      std::cout << "Hello, World!\n";
    }
    
    023. D
    void main() {
      import std.stdio : writeln;
      writeln("Hello, World!");
    }
    

A silly project by Nick Muggio.