g | x | w | all
Bytes Lang Time Link
050Common Lisp160404T160858ZJPeroute
029Factor160330T161849Zcat
016PowerShell160330T201005ZMatt
076Perl 5160331T075906ZSake
007Vyxal230109T185323Zpacman25
151Java 7160330T162628Zhyperneu
019Zsh on MacOS221231T054023Zroblogic
nan GNU Emacs160330T155400Zcoredump
038SX160923T123132ZErik the
011Pylongolf160330T180715Zuser4701
01605AB1E160330T183500ZAdnan
040Red210602T172410Zwasif
084VBA210409T104917Zwasif
058URL190921T182656Zeriandev
037C gcc190921T155254Zgirobuz
047VBScript190921T153603ZLewis
041Oration160330T160943ZRiker
040Python170727T215340ZNoOneIsH
019Dyalog APL160330T192716ZAdá
089C# Full Class160403T040535ZWVAviato
047Nim160924T161413ZCopper
044Python160330T150410ZSkyler
057VBScript160331T083611ZIsmael M
040Python160330T175400ZZach Gat
065Cheddar160726T202322ZDowngoat
019Ruby160330T221535ZRiker
030Lua160411T120732ZKatenkyo
015Rebol 2160331T084105Zsqlab
044Python160402T154850ZErik the
112Java 8160330T171240Zhyperneu
028Mathematica160330T151333ZMartin E
022RFOBASIC160401T143038ZTickTock
045Perl 6160403T064336ZMing-Tan
016AutoHotKey160330T181916ZMichelfr
017Windows Batch160402T020732ZIsaiah
028Applescript160330T184159ZDigital
117Actionscript 3160330T184108ZBrian
017Batch160330T150535ZMorgan T
017Terminal OSX160330T151104ZMwr247
061C++160404T045342ZHSchmale
033PHP OSX160331T092855ZQuill
026Game Maker Studio160401T172457ZTimtech
030VB.NET160331T154304ZMatt Wil
028R160331T095534Zmnel
033C#160330T230300ZTravis J
022Bash160330T161257ZOgaday
025MATLAB160330T151932ZSuever
026R160330T165132Zsyntonic
034JavaScript160330T150217ZDowngoat
053NodeJS160330T151408ZMwr247

Common Lisp, 50 31 bytes

(ext:shell "open http:codegolf.stackexchange.com")

Note: This worked at the time of writing. The domain ppcg.ga has since expired, making this answer no longer valid.

Factor, 38 36 26 29 bytes

[ "http:t.ly/-E-J" open-url ]

I didn't know one could golf-off the // in the protocol.

PowerShell, 17 16 Bytes

saps www.ppcg.lol 

Using an even shorter domain provided by Milo.

saps www.ppcg.ga

While start is a known alias for Start-Process there is another one for saps. You can see this from Get-Alias. It follows the convention for similar Start- and Stop- cmdlets.


As those URLs no longer exist the only way to make this work is to use the horribly inefficient 36 characters for

saps http:codegolf.stackexchange.com

At least we can drop the slashes no problem

Perl 5, 66 57 76 bytes

Should work everywhere, but needs that import :(

8 bytes saved with @msh210 comment.

use Browser::Open open_browser;open_browser"http:codegolf.stackexchange.com"

Also, for funsies :

Perl 5 (Windows), 34 48 bytes

system "start http://codegolf.stackexchange.com"

Perl 5 (Unix), 31 49 bytes

system "xdg-open http:codegolf.stackexchange.com"

Vyxal 7 bytes

`∨¤ β`E

Try it Online!

The short dictionary is a neat hidden feature, compressing the codegolf link to β

Java 7, 151 bytes

class P{public static void main(String[]a)throws Exception{java.awt.Desktop.getDesktop().browse(new java.net.URI("http:codegolf.stackexchange.com"));}}

Java is not the best language for golfing... Here's the same program in a more readable format:

class P {
    public static void main (String[] a) throws Exception {
        java.awt.Desktop.getDesktop().browse(new java.net.URI("http:codegolf.stackexchange.com"));
    }
}

Saved 2 bytes by removing // in the URI/L, and another byte by switching to .ga from .lol (indirectly thanks to @Milo)

Zsh on MacOS, 19 bytes

open http:t.ly/-E-J

Try it online!   (t.ly is a URL shortener).

 GNU Emacs, 29 27 14 33 bytes

(eww"codegolf.stackexchange.com")

The previous answer with a URL shortener was:

(eww"ppcg.ga") ;; 14 bytes

However:

Much like ppcg.lol, ppcg.ga has been unregistered, invalidating this answer. But unlike last time, there is no replacement short url. (@lyxal)

EWW is a browser inside Emacs. The browse-web function is an alias for eww, and so that makes eww the default browser in Emacs:

Your job is to open a browser window of the default browser to http://codegolf.stackexchange.com.

Thanks to @CoolestVeto, @Jonathan Leech-Pepin and @zyabin101.

SX, 38 bytes

的 webbrowser im**;o&('http:ppcg.ga')

Save this shell script as SXexec.sh to your SX directory:

#!/bin/sh
N=$1.py;python Main.py $1;wine SXCompiler.exe $N;rm $N;python $N.py;rm $N.py

The script features tidying up after execution. To execute the above script, you need to have Wine and Python. Usage is like this:

SXexec.sh file

Pylongolf, 11 bytes

"ppcg.lol"p

Pushes ppcg.lol into the stack then p opens it.

05AB1E, 16 bytes

The features used here postdate the challenge, but that's fine. Code:

’…Ò ™³.ÐÏg.´¢’.E

You can try the string online here. This basically evaluates to this batch answer.

Uses the CP1252 encoding.

Red, 40 bytes

browse http://codegolf.stackexchange.com

(Don't) Try it online!

ppcg.ga no longer works, so needed to include the full domain name. But its funny that Red has its own URL data type!

VBA, 84 bytes

Sub Main()
ThisWorkbook.FollowHyperlink("http://codegolf.stackexchange.com")
End Sub

URL, 58 bytes

[InternetShortcut]
URL=https://codegolf.stackexchange.com

In Windows create a file "url.URL", with a code editor put the code.

C (gcc), 49 38 37 bytes

main(){system("start http:ppcg.ga");}

It's for Windows.

VBScript, 47 bytes

CreateObject("WScript.Shell").Run"http:ppcg.gq"

Oration, 41 bytes

Not winning, but sure was fun. As of right now, I'm only 1 bytee behind python!

I need webbrowser
Now open "http:ppcg.ga"

Explanation:

I need compiles to import $1 with webbrowser being the module.

Now runs the following command from the module as module.command with the arguments of anything following.

So this compiles to:

#!/usr/bin/env python3
import webbrowser
webbrowser.open("http:ppcg.ga")

I do end up needing the http: part though, and it can't be shortened.

Python, 40 bytes

__import__('webbrowser').open('ppcg.ga')

Shorter version of everything else.

Dyalog APL, 20 19 bytes

-1 byte thanks to MD XF

]Open http://ppcg.ga

Uses the User Command ]Open, which is installed with Dyalog.

C# (Full Class) 89 bytes

class P{static void Main(string[]a){System.Diagnostics.Process.Start("http://ppcg.ga");}}

Not sure that it's possible to write a full class (with the System.Diagnostics reference) any shorter.

Inside main method only without references, 32 bytes:

Process.Start("http://ppcg.ga");

Nim, 47 bytes

import browsers
openDefaultBrowser"www.ppcg.ga"

Python, 52 48 47 45 44 bytes

Shamelessly borrowing that shortened link.

from webbrowser import*;open("http:ppcg.ga")

Thanks to CrazyPython for -4 bytes, and Sp3000 for a further one.

Edit: shaved 2 more off thanks to CoolestVeto

Edit: thanks to MD XF for registering ppcg.ga and saving another byte

VBScript, 57 bytes

I used to have lots of fun creating tiny programs in VBScript, back in 2010.

I've remembered this language and used the code on: https://stackoverflow.com/a/13401872/2729937

It still works on Windows 7, at least.

set S=CreateObject("WScript.Shell")
S.run("www.ppcg.ga")

This is a bit different from the usual start www.ppcg.lol, in the sense that it executes the www.ppcg.ga directly, with an implicit start.

An alternative way would be "cmd.exe /C start www.ppcg.ga".

Python, 43 41 40 bytes

import os
os.system("open http:ppcg.ga")

Cheddar, 65 bytes

cheddar.internal(cheddar.uid).require("open").c("http://ppcg.ga")

Accesses cheddar internals and then calls upon open package and calls it with string to PPCG. Make sure you have open npm package installed

Ruby, 22 20 19 bytes (on OS X)

`open http:ppcg.ga`

Simple.

Thanks to Daniel for 2 bytes off.

Lua, 30 Bytes

os.execute'start http:ppcg.ga'

Rebol 2, 16 15 bytes

browse"ppcg.ga" 

if you accept an error before opening the page on Linux, no error on Windows

20 bytes without an error

browse http:ppcg.lol

Python, 44 bytes

from webbrowser import*;open('http:ppcg.ga')

URL from this comment
Edit: ppcg.ga seems to become more popular now (but it WAS available when I posted this answer).

Ungolfed:

from webbrowser import * # Loads everything in the webbrowser module
open("http://ppcg.ga/") # Opens default browser to http://ppcg.ga/

Python, 44 bytes

from webbrowser import*;open('http:gfa1.tk')

URL from this answer

Ungolfed:

from webbrowser import * # Loads everything in the webbrowser module
open("http://gfa1.tk/") # Opens default browser to http://gfa1.tk/

Python, 45 bytes

from webbrowser import*;open('http:ppcg.lol')

Ungolfed:

from webbrowser import * # Loads everything in the webbrowser module
open('http://ppcg.lol/') # Opens default browser to http://ppcg.lol/

Take that, ppcg.lol! (1 byte shorter)

Note: I added a separate answer leading to ppcg.lol, 'cause I've noticed the other sites doesn't work for me in Internet explorer 11, and I saw other users having this problem too.

Both are non-non-competing (read that right?)

Java 8, 115 112 bytes

interface P{static void main(String[]a)throws Exception{java.awt.Desktop.getDesktop().browse(new java.net.URI("http:ppcg.ga"));}}

Java is not the best language for golfing... Here's the same program in a more readable format:

interface P {
    static void main (String[] a) throws Exception {
        java.awt.Desktop.getDesktop().browse(new java.net.URI("http:ppcg.ga"));
    }
}

Saved 2 bytes by removing // (thanks @CoolestVeto), and another byte by switching to .ga from .lol (indirect thanks to @Milo)

Mathematica, 28 bytes

SystemOpen@"http://ppcg.lol"

RFO-BASIC, 22 bytes

BROWSE "http:ppcg.lol"

Read about RFO-BASIC at laughton.com.

Perl 6, 45 bytes

Requires the Browser::Open module.

use Browser::Open;open_browser 'http:ppcg.ga'

AutoHotKey, 16 bytes

Run www.ppcg.lol

Windows Batch, 17 bytes

start www.gfa1.tk

Applescript, 28 bytes

open location"http:ppcg.lol"

Actionscript 3, 117 bytes

package{import flash.display.Sprite;public class A extends Sprite{function A(){navigateToUrl("ppcg.lol","_blank")}}}

Like Java, this is not a great golfing language. Here's the code with formatting:

package
{
    import flash.display.Sprite;
    
    public class A extends Sprite
    {
        function A()
        {
            navigateToUrl("ppcg.lol", "_blank")
        }
    }
}

Batch, 17 bytes

Saved 3 bytes thanks to Mego.

start www.ppcg.ga

This will open in your default browser if you run it from the windows command line.

I think it'll work in Powershell too, but I'm not sure.

Terminal (OSX), 20 18 17 bytes

open http:ppcg.ga

Saved 2 thanks to CoolestVeto

C++, 61 Bytes

#include <cstdlib>
main(){system("xdg-open http:ppcg.lol");}

Just a rip off of the bash solution using system, and it only works on systems using the freedesktop tools. Also shortened by using the short link some kindly provided, otherwise it would be much longer.

PHP (OSX), 33 bytes

<?php exec("open http:ppcg.lol");

PHP (Windows), 34 bytes

<?php exec("start http:ppcg.lol");

Game Maker Studio, 26 bytes

url_open('http://ppcg.ga')

VB.NET, 32 30 bytes

Process.Start("http:ppcg.lol")

R, 28 bytes

browseURL("http://ppcg.lol")

(in utils package)

C#, 33 bytes

Process.Start("http://ppcg.lol");

Opens the default browser to the web address

Bash, 24 22 bytes

xdg-open http:ppcg.lol

Not as short as some others. firefox ppcg.lol is shorter, but it doesn't meet question spec.

MATLAB, 28 25 bytes

web www.ppcg.lol -browser

Alternatives:

R, 26 bytes

shell.exec("www.ppcg.lol")

I don't know of any shorter way to do this in R.

JavaScript, 34 bytes

require('open')('http://ppcg.lol')

Uses Node.js

NodeJS, 53 bytes

require('child_process').exec('open http://ppcg.lol')

Works on mac.