# Tag Info

1109

11,520 generations per clock count / 10,016 x 6,796 box / 244,596 pop count There you go... Was fun. Well, the design is certainly not optimal. Neither from the bounding box standpoint (those 7-segment digits are huge), nor from the initial population count (there are some useless stuff, and some stuff that could certainly be made simpler), and the ...

1100

This began as a quest but ended as an odyssey. Quest for Tetris Processor, 2,940,928 x 10,295,296 The pattern file, in all its glory, can be found here, viewable in-browser here. This project is the culmination of the efforts of many users over the course of the past 1 & 1/2 years. Although the composition of the team has varied over time, the ...

777

Part 2: OTCA Metapixel and VarLife OTCA Metapixel (Source) The OTCA Metapixel is a construct in Conway's Game of Life that can be used to simulate any Life-like cellular automata. As the LifeWiki (linked above) says, The OTCA metapixel is a 2048 × 2048 period 35328 unit cell that was constructed by Brice Due... It has many advantages... including the ...

746

Part 3: Hardware With our knowledge of logic gates and the general structure of the processor, we can start designing all the components of the computer. Demultiplexer A demultiplexer, or demux, is a crucial component to the ROM, RAM, and ALU. It routes an input signal to one of the many output signals based on some given selector data. It is composed of ...

709

Part 4: QFTASM and Cogol Architecture Overview In short, our computer has a 16-bit asynchronous RISC Harvard architecture. When building a processor by hand, a RISC (reduced instruction set computer) architecture is practically a requirement. In our case, this means that the number of opcodes is small and, much more importantly, that all instructions are ...

664

Part 6: The Newer Compiler to QFTASM Although Cogol is sufficient for a rudimentary Tetris implementation, it is too simple and too low-level for general-purpose programming at an easily readable level. We began work on a new language in September 2016. Progress on the language was slow due to hard to understand bugs as well as real life. We built a low ...

482

C, (14 + 15) = 29 byte source, 17,179,875,837 (16 GB) byte executable Thanks to @viraptor for 6 bytes off. Thanks to @hvd for 2 bytes off and executable size x4. This defines the main function as a large array and initialises its first element. This causes GCC to store the entire array in the resulting executable. Because this array is bigger than 2GB, we ...

326

Mathematica, 100%, 141 bytes f@x_:=Count[1>0]@Table[ImageInstanceQ[x,"caprine animal",RecognitionThreshold->i/100],{i,0,50}];If[f@#>f@ImageReflect@#,"Up","Down"]<>"goat"& Well, this feels more than a little like cheating. It's also incredibly slow as well as being very silly. Function f sees roughly ...

218

Python 3, 13 byte source, 9,057,900,463 byte (8.5GiB) .pyc-file (1<<19**8,)*2 Edit: Changed the code to the version above after I realized the rules say output size beyond 4GiB doesn't matter, and the code for this one is ever so slightly shorter; The previous code - and more importantly the explanation - can be found below. Python 3, 16 byte source,...

214

C#, about 1 min to compile, 28MB output binary: class X<A,B,C,D,E>{class Y:X<Y,Y,Y,Y,Y>{Y.Y.Y.Y.Y.Y.Y.Y.Y y;}} Adding more Y's will increase the size exponentially. An explanation by Pharap as per @Odomontois' request: This answer is abusing inheritance and type parameters to create recursion. To understand what's happening, it's easier to ...

203

Retina, score 1 The empty program counts the number of matches of the empty regex in the input (which is the empty string). That's exactly 1 match, so it prints 1. Try it online.

180

Here it is in java. It is utter cheating, unacceptable and unfixable because it creates a MySQL database, insert the number there, do a select with an ORDER BY clause and outputs the numbers given by MySQL. In fact, it is MySQL who is doing the sorting, not the program. package sorter; import java.sql.Connection; import java.sql.DriverManager; import java....

178

Sometimes the community here doesn't like to help with homework. That's why you are getting so many joke answers. But I like to help. Here is a complete solution in 'C' (since I assume you want to learn "programming", not "scripting" with Java or Ruby). I've included many tips that I wish I had known when I was first learning #include <stdio.h> //...

164

A Brief History of 2D Programming Languages: 16 (+2) years v19977/2{@{{4{\_______>/02&&&#???? * P+++++1P1P-1P+1E * * \'\02'oo100@n590@n; * * * >"8991",,,;5-;,@ * * ...

156

JavaScript (ES7), score 17, 176 bytes They said it couldn't be done, so I did it :D (thanks to a lot of help from @FullDecent) ""**"" ~(~/~//~/~/)/~/~/ 3 4 !NaN- -!NaN- -!NaN- -!NaN- -!NaN 6 7 8 9 ++[[]][+[]]+[+[]] 11 'lengthlength'.length 222>>2>>2 ${^}xE^ 0XF C=CSS==CSS;C<<C<<C<<C<<C 555555555555555555555%55 ... 149 ///, 2*1 + 1020874 = 1020876 Prints a space. 148 15 languages, 68 66 65 bytes / 15^3 = 0.019... Retina, Starry, Prelude, ETA, Axo, Labyrinth, Hexagony, Foo, Brian & Chuck, Gol><>, evil, Whitespace, Fission, ><> and GolfScript. After a massive rewrite, I managed to fit in four more languages. The code contains the few tabs for Whitespace. Since Stack Exchange converts them to spaces, I've ... 142 C# - There's no kill like overkill First of all, dear GiMmEtHaCoDeZ, let's try to break down your task: Read the numbers Sort them Output the sorted numbers. As "Divide and conquer" is very important strategy when working with software problems, lets tackle them one at a time 1. Reading Another important issue in software is versatility. Since it's not ... 137 If an output of more than 4GB is achieved (perhaps if somebody finds a turing complete preprocessor), the competition will be for the smallest source which produces a file of at least that size (it's just not practical to test submissions which get too big). "Template Haskell" allows Haskell code to be generated at compile-time using Haskell, and is hence a ... 133 Python 3.0 and Python 2, score 6 (12 bytes, 2 versions) print(3/2*2) Try it Online: Python 2 Python 3 Relies on the fact that Python 3+ uses float division by default, unlike Python 2, which uses floor division. 131 Even more literal interpretation: echo " aaehrrty" that is, "the array" sorted. 125 Perl, >1.96835797883262e+18 time*time Might not be the largest answer... today! But wait enough millennia and it will be! Edit: To address some of the comments, by "enough millenia," I do in fact mean n100s of years. To be fair, if the big freeze/heat death of the universe is how the universe will end (estimated to occur ~10100 years), the "final" value ... 123 Pyth (no built-in compression), score 4695.07 4656.03 4444.82 Pyth’s only image-related functionality is a builtin to write a matrix of RGB triples as an image file. So the crazy idea here is to train a small deep neural network on the (x, y) ↦ (r, g, b) function representing the image, and run it on the coordinates of each pixel. The plan Write a custom ... 120 Mathematica, score 14125.71333 "a.png"~Export~ConstantImage[{28,34,41}/95,{386,320}] Saves this image: to a.png. 115 15 years, Python Versions: 0.9.1, 2.0.0, 2.2.0, 2.2.2, 2.5.0, 2.5.1, 3.0.0, 3.1.0, 3.1.3, 3.2.1, 3.3.0, 3.3.3, 3.4.0, 3.5.0 and 3.6.0a4. Versions not linked can be found on the downloads page. The release date of 0.9.1 can be found here. Unfortunately I had to skip a large bunch of years due to missing old versions and compilation problems on my computer. ... 115 bash,$127127 x;echo \?$? Try it online! Since the x command doesn't exist, it errors and sets the exit code to 127. Then, the code outputs a dollar sign followed by$? twice. The $? variable stores the exit code of the previous command, so this outputs$127127 in 13 bytes.

110

Java, 7399.80678201 This reminded me of a project I had in my numerical computations class a few semesters back, which was to draw a silhouette of Mount Everest using polynomial interpolation. That was done in MATLAB, but I'm not very fond of MATLAB, so I decided to work in Java. The basic idea behind it is that I chose "smart" points (read here as ...

108

Perl Out of all of the things I've done for CodeGolf.SE, this probably took the most time, at least a few hours. $_[0]=eval<>; for(0..$#{$_[0]}**2){ @_[$#_+1]=[\(@{$_[$#_]}),$#{$_[$#_]}+1]; for(1..$#{$_[$#_]}-$#_){ if(eval('${'x$#_.'@{$_[$#_]}[$_-1]'.'}'x$#_)>eval('${'x$#_.'@{$_[$#_]}[$_]'.'}'x$#_)){${$_[$#_]}[$#{$_[$#_]}]=$_; } } (${$...

105

Blockquotes, 137,469/256 = 536.99 6,908 characters, 511 new lines, 130,050 spaces Markdown sure handles nested block-quotes oddly. Each > character gets turned into <blockquote></blockquote> so a solid 1 to 25 ratio. But wait! When rendering the HTML it also adds two spaces per nesting! Having this try to render causes my browser some grief, ...

Only top voted, non community-wiki answers of a minimum length are eligible