4
\$\begingroup\$

Currently, the Stack Exchange network has nearly 150 sites. These sites are as follows:

Computer Graphics
Portuguese Language
elementary OS
Open Source
Law
Русский язык
Mythology
Health
Stack Overflow на русском
CiviCRM
Woodworking
Music Fans
Vi and Vim
Coffee
Engineering
Lifehacks
Economics
History of Science and Mathematics
Emacs
スタック・オーバーフロー
Worldbuilding
Startups
Community Building
Hinduism
Buddhism
Craft CMS
Puzzling
Data Science
Joomla
Earth Science
Mathematics Educators
Expatriates
Arduino
Software Recommendations
Beer
Ebooks
Aviation
Stack Overflow em Português
Italian Language
Amateur Radio
Pets
Tor
Astronomy
Space Exploration
Blender
Freelancing
Open Data
Network Engineering
Reverse Engineering
Tridion
Sustainable Living
English Language Learners
Magento
Anime & Manga
Politics
ExpressionEngine® Answers
Robotics
Genealogy & Family History
Ask Patents
Salesforce
Islam
Russian Language
Raspberry Pi
Chess
Chemistry
Windows Phone
The Workplace
Computer Science
Academia
Sports
Martial Arts
The Great Outdoors
Cognitive Sciences
Mathematica
Poker
Biology
Chinese Language
Movies & TV
Computational Science
Spanish Language
LEGO® Answers
History
Biblical Hermeneutics
Linguistics
Bitcoin
Christianity
French Language
Signal Processing
Cryptography
Personal Productivity
Travel
Gardening & Landscaping
Philosophy
Japanese Language
German Language
Mi Yodeya
Software Quality Assurance & Testing
Music: Practice & Theory
SharePoint
Parenting
Motor Vehicle Maintenance & Repair
Drupal Answers
Physical Fitness
Skeptics
Project Management
Quantitative Finance
Programming Puzzles & Code Golf
Code Review
Science Fiction & Fantasy
Graphic Design
Database Administrators
Video Production
Writers
Information Security
Sound Design
Homebrewing
Physics
Board & Card Games
Electrical Engineering
Android Enthusiasts
Programmers
Bicycles
Role-playing Games
Ask Different
Theoretical Computer Science
WordPress Development
Unix & Linux
User Experience
English Language & Usage
Personal Finance & Money
Ask Ubuntu
TeX - LaTeX
Geographic Information Systems
Home Improvement
Mathematics
Cross Validated
Photography
Game Development
Seasoned Advice
Webmasters
Arqade
Web Applications
Stack Apps
MathOverflow
Super User
Meta Stack Exchange
Server Fault
Stack Overflow

Your Task:

  • Write a program that prints out all of the sites in Stack Exchange, including those with non-ASCII characters (It doesn't need to be in any specific order).
  • The program must accept no input, and must output each site on its own line (optional leading/trailing newlines).
  • No standard loopholes.
  • This is , so the shortest program, measured in bytes, wins.
\$\endgroup\$
6
  • 6
    \$\begingroup\$ Related challenge: codegolf.stackexchange.com/questions/42242/… It's not a duplicate, but a bunch of the string compression techniques will carry over. \$\endgroup\$
    – PhiNotPi
    Commented Sep 23, 2015 at 1:31
  • 1
    \$\begingroup\$ Oh, dang, I had already thought of posting this challenge xD The only difference is that if STDIN containts the name of a category, it'd have to print all the sites in that category, and if it contains the name of a site, it'd print the category it's in, along with all the sites in that category. \$\endgroup\$ Commented Sep 23, 2015 at 1:32
  • \$\begingroup\$ @ETHproductions That's definitely a separate question/challenge than this—that would be an interesting question. \$\endgroup\$
    – Daniel M.
    Commented Sep 23, 2015 at 1:35
  • \$\begingroup\$ I voted to close this as a duplicate because I believe it's a subset of this question where answers largely compress the list of SE's, then index into it with a hash from the image, so parts of those answers can be reused. I did not expect my vote to be unilaterally binding. I stand by my opinion, but don't want to enforce my sole view where there is judgment call, so please feel free to reopen if you disagree. \$\endgroup\$
    – xnor
    Commented Sep 23, 2015 at 8:34
  • \$\begingroup\$ @xnor A little disappointing, but fair enough \$\endgroup\$
    – Daniel M.
    Commented Sep 23, 2015 at 11:49

2 Answers 2

4
\$\begingroup\$

Bubblegum, 1227 1197 bytes

0000000: 65 55 37 7a 2b 37 10 ee 71 0a 54 ee de 05 dc 29 4b fe  eU7z+7..q.T....)K.
0000012: 44 8b 56 b4 cb e1 62 48 8e 85 05 d6 00 96 d4 be e6 05  D.V...bH..........
0000024: 75 ce b1 77 eb ec ca 39 fb 02 d4 19 78 11 ff 00 c3 47  u..w...9....x....G
0000036: fa 29 10 3f 06 33 98 f4 63 38 7f fe f3 fc f9 9f f3 fb  .).?.3..c8........
0000048: fb f9 f3 ef e6 f7 bf ce 9f 7f 39 bf ff 6d 7e ff 61 f9  ..........9..m~.a.
000005a: fc 6c 7e ff 0d 80 da a9 c8 70 2d a4 76 6a 4a dc 06 7d  .l~......p-.vjJ..}
000006c: 4e 46 bc da 71 26 78 31 fa c0 a5 71 1b 85 62 8a 90 49  NF..q&x1...q..b..I
000007e: cd fa 25 dd 23 37 82 7e 30 ad 38 8f f5 2d dc a0 76 e2  ..%.#7.~0.8..-..v.
0000090: ad de 97 e1 90 03 bb 54 76 7d 4a 80 b1 e0 ab 41 eb 52  .......Tv}J....A.R
00000a2: 0b 98 82 77 be ee d4 ce 44 28 89 77 6a 97 39 a8 5d 19  ...w....D(.wj.9.].
00000b4: 58 a9 c8 ea 63 0e 35 3b 6e 93 54 11 d2 aa ab 2c 67 e0  X...c.5;n.T....,g.
00000c6: ad 1f 75 58 53 e5 05 36 96 9d c9 66 9e 82 41 40 7b 79  ..uXS..6...f..A@{y
00000d8: 39 a2 3a ab b6 c6 8c 25 d6 6a 6f 8c ac e0 ae cb 28 46  9.:....%.jo.....(F
00000ea: 7c 8a e3 c8 fa 14 c1 b7 34 62 08 02 ce 85 9c 24 e8 c8  |.......4b.....$..
00000fc: 44 f6 ce 7b 6a cf 1b d6 e7 3c 11 9e 02 23 1b c6 32 82  D..{j....<...#..2.
000010e: 8a 4c 58 5f 54 c2 ae e2 08 51 5d b7 d9 4e ef b6 62 8d  .LX_T....Q]..N..b.
0000120: b8 51 16 35 6d 2a 29 91 5d 69 2e a5 1c f4 51 a0 66 9c  .Q.5m*).]i....Q.f.
0000132: 73 5a 4b d6 2a 81 86 49 ef f5 2e 80 7c 8c fa 9a ac 18  sZK.*..I....|.....
0000144: 4a 6c b0 ef 9a e4 47 d9 b2 53 fb 94 68 40 88 7f c7 d4  Jl....G..S..h@....
0000156: e2 72 62 94 7c 88 45 be be 6b 3f b4 0d bc ef b8 38 65  .rb.|.E..k?.....8e
0000168: 9c cd 3e 7f b8 7f 78 f6 f0 6c f6 cb ec a7 d9 cf fa e1  ..>...x..l........
000017a: 83 d9 8f 0f ef cc 7e 51 07 14 d2 78 6d 74 30 f0 fe 36  ......~Q...xmt0..6
000018c: aa 83 2a 37 46 2a 20 cb 55 0a a5 1d 07 6e 84 aa 71 c8  ..*7F* .U....n..q.
000019e: 19 b2 65 b4 26 51 e8 f4 d9 85 3a a8 09 aa 9b e7 c0 56  ..e.&Q....:......V
00001b0: e2 78 5d 60 7d ca 14 1c e2 78 e1 04 1d bb 8a 58 d5 c1  .x]`}....x.....X..
00001c2: 5d 43 f0 84 6c 63 c6 01 7d 42 fd 16 97 fe f3 ed 3a 8f  ]C..lc..}B......:.
00001d4: c3 c0 6c c9 55 f0 92 b1 ab d6 57 b1 ca 5d d7 fb 3c 61  ..l.U.....W..]..<a
00001e6: eb 9b 1c 1e 04 c1 b0 83 2a bc 40 cb c4 8a 9a 6c 78 c4  ........*[email protected].
00001f8: 8e 29 b3 08 f2 43 aa c5 76 fa 18 65 f4 a1 c3 d1 a2 ca  .)...C..v..e......
000020a: 52 e9 13 37 f4 a1 2e 6d d4 17 5d 4c 5c 47 1c 43 e2 36  R..7...m..]L\G.C.6
000021c: 5c 2e 74 e1 35 ca c8 a9 63 5c 9b c6 ea 58 9c 69 33 f1  \.t.5...c\...X.i3.
000022e: 96 b7 ae 56 ed 87 ab 52 6b 84 83 c7 93 c0 4c 2a 04 3f  ...V...Rk.....L*.?
0000240: f6 35 0f 02 4f 11 5f c1 fa a4 6e 82 9f 70 49 64 2b 14  .5..O._...n..pId+.
0000252: ae da 90 79 7a 12 2d d5 ea 24 91 95 cd 90 5e a1 86 36  ...yz.-..$....^..6
0000264: d9 0d 89 f7 b5 25 75 4a 53 75 7a 70 74 b6 51 cd 53 19  .....%uJSuzpt.Q.S.
0000276: f2 98 aa db 8c a0 2c b1 84 d2 83 91 4b 1e 6b 48 92 39  ......,.....K.kH.9
0000288: 14 12 84 eb 58 69 03 c7 4d ac 0f 4c 5b 15 2a 16 e9 d9  ....Xi..M..L[.*...
000029a: 84 c3 d0 fa a9 ea 71 e6 65 82 1f 7d 70 57 8d 11 16 ab  ......q.e..}pW....
00002ac: 9e e8 37 bc e1 0e 97 79 58 e8 6b 46 19 2d a3 24 e2 12  ..7....yX.kF.-.$..
00002be: 3b 74 38 53 e3 9c 1b 92 00 95 89 70 c4 fe f2 5a f5 da  ;t8S.......p...Z..
00002d0: 28 15 ba e6 e2 02 be ac fb 81 2a b8 e7 7c 3e e6 5c ee  (.........*..|>.\.
00002e2: 5e 97 c6 8b 29 f1 2a a7 a9 0f b7 5b e4 3d 6b d8 e9 fc  ^...).*....[.=k...
00002f4: 56 16 e8 c2 b7 01 d4 ef 53 1e 56 f9 bc cf 21 96 97 7b  V.......S.V...!..{
0000306: 28 ab 38 7a de 71 b7 3e 80 47 8f 4c 31 07 24 65 29 aa  (.8z.q.>.G.L1.$e).
0000318: d3 1f 8b f5 d1 e3 75 02 fa d5 4b 05 ee 10 62 b9 2a a1  ......u...K...b.*.
000032a: 27 71 29 c0 ea 6f 39 e0 d3 4a 5a 6c 43 6a 47 ed 56 d7  'q)..o9..JZlCjG.V.
000033c: e0 04 b7 d4 35 9c ae 71 a6 72 bf 7d fc d8 96 6a 94 01  ....5..q.r.}...j..
000034e: 75 e4 ed 30 9f bf c9 55 ca d3 18 a6 85 32 45 2d a7 f3  u..0...U.....2E-..
0000360: 5a 4b c8 2b 11 c2 e5 55 4a ea 9c 62 33 e0 00 4a f6 45  ZK.+...UJ..b3..J.E
0000372: 61 c6 c1 09 6f 15 e9 dc 0f 7c 0e 0d c0 f2 a3 c6 52 07  a...o....|......R.
0000384: 69 99 ab 10 b5 31 6e 51 ee 82 10 d0 d0 e7 32 2e e9 0d  i....1nQ......2...
0000396: 47 55 66 6b 79 60 2e 51 ec d4 05 13 aa c7 06 53 6b 22  GUfky`.Q.......Sk"
00003a8: 59 93 03 dc e2 b8 b5 49 5d 8c 29 70 df 8b 03 94 d1 b2  Y......I].)p......
00003ba: c6 15 2a 96 63 b9 b8 e5 a6 c4 72 e1 87 69 0a 45 8d 9c  ..*.c.....r..i.E..
00003cc: 6c 1e b9 3b 31 b6 61 d9 a3 4b 8e a5 7d 6b a5 73 ae 3c  l..;1.a..K..}k.s.<
00003de: ca e7 4c 79 37 d9 ba 75 66 f5 52 2f 1a 82 15 06 8d f5  ..Ly7..uf.R/......
00003f0: a1 9c 67 89 db 9c 4c 10 f8 4c fc 05 71 77 9a 66 05 d7  ..g...L..L..qw.f..
0000402: bc de de ea d9 ef b3 ef f5 c3 d3 f5 9c fd 63 f6 db ff  ..............c...
0000414: 55 b8 d6 cb 56 ff fb 65 b9 0e b8 01 68 1b 0e 98 83 1c  U...V..e....h.....
0000426: 00 63 22 34 69 60 41 05 99 e4 84 2e f9 75 fd 08 61 61  .c"4i`A......u..aa
0000438: 55 20 b8 3e 0a 4c 49 9f b5 c9 f8 fc d4 0a e7 39 15 9a  U .>.LI........9..
000044a: bd f0 8d 92 f5 6f f0 00 d0 c0 bc f3 41 5d 06 c2 80 c4  .....o......A]....
000045c: 22 26 67 7d e5 e4 2e 4f 47 71 ed 9d ca 11 e4 9a 70 58  "&g}...OGq......pX
000046e: 58 5f 4b 19 53 d7 52 03 1a f6 6b e2 c3 f0 86 07 b9 28  X_K.S.R...k......(
0000480: 56 aa 65 79 21 a8 29 c2 39 a0 38 e3 a7 51 e3 29 38 56  V.ey!.).9.8..Q.)8V
0000492: 37 de 9b fc 08 91 0b 70 30 fd 3c db b7 e6 34 a4 d6 0c  7......p0.<...4...
00004a4: 56 5f 9f 37 41 ca 2d ff 01                             V_.7A.-..

Prints a sorted list of SE sites.

Compression has been done with zopfli, which uses the DEFLATE format but obtains a much better ratio than (g)zip.

\$\endgroup\$
1
\$\begingroup\$

Python3, 1754 1728 1662 bytes

Python3 includes the lzma module, which allowed me to obtain a really decent compression ratio. (I have switched to gzip.) I was originally going to use base64 to encode the output but realized I could squeeze some more bytes out using base85 (ascii85).

I avoided the issue with escaping ' by using a triple-quoted string and avoided the issue with escaping \ characters by using the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