Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
12 votes

Point-free JavaScript: write a function runner

Why I believe this is impossible (as stated) There aren't very many JS builtins that call a function, and even fewer that call one with arbitrary arguments. The ones that I've found are the string ...
emanresu A's user avatar
  • 38.4k
11 votes
Accepted

Add comments to a Python script and make it a bilingual Python/C++ “program”

Score 116 Prepend: #include<cstdio> #define print(A)main(){puts(A);} #define greet() #define \ The preprocessor backslash ...
Linus's user avatar
  • 1,958
11 votes

Add comments to a Python script and make it a bilingual Python/C++ “program”

Score 119 (Thx @Linus for the byte count) (1 byte saved thx @Conor O'Brien) (1 byte saved thx @PieCot) Counting bytes again by hand, I found 113. Maybe it's right this time. No it's not ...
edc65's user avatar
  • 32.1k
11 votes
Accepted

Self-referencing tuple in python

Python 3, 48 bytes from marshal import* t=loads(b'\xa9\1r\0\0\0\0') Try it online! Not portable, depends on the interpreter. There's probably a similar (portable) ...
Command Master's user avatar
10 votes

Point-free JavaScript: write a function runner

JavaScript (Node.js), 74 65 bytes [].forEach.bind([{[Symbol.split]:(c=Map.call).bind(c)}],''.split) Attempt This Online!
TwiNight's user avatar
  • 4,800
8 votes

Official Dyalog APL 2016 Year Game

J, 1041 ... 838 bytes 981 961 952 860 859 I got a little lazy to the end, but it should be more fixed than less. I don't think I'll ever overtake Hexagony, but you never know! beating hexagony! ...
Conor O'Brien's user avatar
8 votes
Accepted

Official Dyalog APL 2016 Year Game

Jelly, 686 bytes ...
lynn's user avatar
  • 68.7k
8 votes
Accepted

Setting up Al's R session

options(prompt="\U202E") Uses RTL Override at the end to make all following input appear reversed. I tried entering the raw character in a string but it ...
qwr's user avatar
  • 12.1k
7 votes

Official Dyalog APL 2016 Year Game

JavaScript (ES7), 836 bytes Everything should work in any browser except 81, 88, and 97, which use the new ** operator. Mostly everything here was done by hand. I'...
ETHproductions's user avatar
7 votes

Official Dyalog APL 2016 Year Game

JavaScript, 1021 bytes Fixed and saved two bytes thanks to Charlie Wynn and ETHProductions. ...
ASCII-only's user avatar
  • 5,119
7 votes

Official Dyalog APL 2016 Year Game

Dyalog APL (This is a joke, please don't submit), 25,957 bytes. 2016⊢≢⍬ 2016⊢(⊢+≢)≢⍬ 2016⊢(⊢+≢)(⊢+≢)≢⍬ ... Yeah, this is a joke entry, we need an APL solution, ...
Adalynn's user avatar
  • 6,122
7 votes

Add comments to a Python script and make it a bilingual Python/C++ “program”

Score 131 130 134 The lines to be prepended are: #import <iostream> #define def int main(){0? #define greet() #define print(A) 0;std::cout<<A"\n";} ...
Conor O'Brien's user avatar
7 votes

Print this text in Scala

Probably not intended :)
hyper-neutrino's user avatar
  • 42.4k
6 votes
Accepted

C# is the Main problem

C# Interactive Window Open the C# Interactive Window (View > Other Windows > C# Interactive in Visual Studio 2015). I suppose not all IDEs will have this. This approach executes C# in the ...
milk's user avatar
  • 3,163
6 votes

A nasty little memory leak

Taking inspiration from the comments and from the question, just by adding 3 characters I "fixed" the memory leak. Granted, I broke everything else at the same time ...
Selkie's user avatar
  • 157
6 votes

Add comments to a Python script and make it a bilingual Python/C++ “program”

Score 110 104 Improving upon Linus' answer: ...
Leon's user avatar
  • 317
6 votes
Accepted

Circumvent this credentials validator

Try it online! Note: Due to a certain username pointed out by Wezl in the comments, this answer is not valid for the current challenge. Why this works:
user's user avatar
  • 327
5 votes
Accepted

Make Plan 9 Cat Turing Complete in as Few Bytes as Possible

266 256 250 245 149 bytes (probably) Thanks to @someone for suggesting using a cyclic tag system (originally I was using a modified version of Brainfuck). Real computers aren't actually Turing-...
pommicket's user avatar
  • 3,157
5 votes

Add comments to a Python script and make it a bilingual Python/C++ “program”

Score 136 Only for the records: #include <cstdio> #define def class a{public #define greet() #define print(a) };int main(){puts(a);} Another (less ...
PieCot's user avatar
  • 1,279
5 votes

Official Dyalog APL 2016 Year Game

PowerShell v3+, 1575 1499 bytes ...
AdmBorkBork's user avatar
  • 43.4k
5 votes

Print this text in Scala

pxeger's user avatar
  • 23.7k
4 votes

reach catch when everything in the try block is caught already

Warning: These programs are clone bombs (a sort of less-dangerous but still-dangerous form of a fork bomb); as such, do not run them on a production system without sandboxing or resource limits. Clone ...
4 votes

Official Dyalog APL 2016 Year Game

CJam, 792 791 bytes I kind of got lazy near the end, a lot of them just ended up being increments and decrements (101 is a lot!), although I'm not sure if there is any other way for a few of the ...
Business Cat's user avatar
  • 9,167
4 votes

Hash bomb filtrate

1087 bytes 1065 bytes Apparently the JDK's maxdepth limit is kinda broken... ...
Wouter Coekaerts's user avatar
4 votes

Point-free JavaScript: write a function runner

It looks like a loophole in the function definition restriction, but you can still define a setter: ({set s(f){f()}}).__lookupSetter__('s') ...
Bergi's user avatar
  • 1,047
3 votes

C# is the Main problem

WPF Application Create a new WPF application. Replace all instances of Main with Meow Rename ...
milk's user avatar
  • 3,163
2 votes

Execute prints backwards

RProgN 1 print 2 print 3 print 4 print Output 4 3 2 1
ATaco's user avatar
  • 10.8k
2 votes

Map an array of functions to their return values in point-free style

Based on the answer by Rory O'Kane: 10 tokens: Number.call.bind(String.call) Try it online! It is trivial, since ...
tsh's user avatar
  • 34.9k
2 votes

Shooting gallery Puzzle!

Jelly, (19?) 39 bytes The entire second line is dealing with the strict I/O spec currently in place, while the 19 byte first line is a dyadic Link performing the core of the challenge. Also if ...
Jonathan Allan's user avatar
2 votes

Hash bomb filtrate

This one’s 1207 bytes and performs 3910245742 hashes. ...
Jesse Wilson's user avatar

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