Skip to main content
36 votes
Accepted

Tips for Creating/Maintaining a Golfing Language

Here are some suggestions. Sorry that this partially overlaps with other answers, which have been posted as I was writing this. Design process One possibility (by all means not the only one) to ...
Luis Mendo's user avatar
  • 105k
20 votes

Tips for Creating/Maintaining a Golfing Language

Here's a couple of random hints. Choose your built-in commands and values carefully Especially when your language is new, it's tempting to add lots of functionality that you think may be useful at ...
Zgarb's user avatar
  • 42.7k
13 votes

Are there any functional programming languages designed for code-golfing?

Husk Husk is a pure functional golfing language created by me and Leo and inspired by Haskell. It combines a rigid type system, type inference and extensive overloading. Functions are first class ...
Zgarb's user avatar
  • 42.7k
11 votes

Tips for Creating/Maintaining a Golfing Language

I never created a language myself, but I can partially answer number 3 (I will make this a community wiki, so feel free to add more). Some tips after the core part of your language is done: Have a ...
11 votes

Tips for Creating/Maintaining a Golfing Language

It strikes me that the most important design decision is what the underlying paradigm of the golfing language is. Here are some possible types of language: Stack based Array based Object based ...
Guillermo Phillips's user avatar
8 votes

Tips for Creating/Maintaining a Golfing Language

Useful integer constants Of course your golfing language has syntax that can represent any integer constant, but some integers are more useful than others. You want the useful ones to be available as ...
DLosc's user avatar
  • 39.7k
6 votes
Accepted

Is there any web esoteric language(like javascript)?

You can always try JSF*** which allows any JavaScript program to be encoded using the characters []()!+ Here's an example that prints ...
lyxal's user avatar
  • 33.6k
6 votes

Tips for Creating/Maintaining a Golfing Language

This relates to the implementation phase Decide Upon How the Language Will Be Executed The two most common options to implement your language are a) interpretation and b) transpilation. Interpretation ...
lyxal's user avatar
  • 33.6k
6 votes

Tips for storage in a golfing language

I suggest all of them! More seriously, they all come in handy some of the time, and the more the better! Implicit input is never bad, just have a flag to turn it off. Variables are helpful so they ...
NoOneIsHere's user avatar
  • 2,201
5 votes

Auto-golf an esolang

JavaScript (ES6), 139 bytes -1 thanks to @l4m2 Expects the target integer as a string. ...
Arnauld's user avatar
  • 193k
4 votes

Auto-golf an esolang

05AB1E, 47 bytes "%!+~"∞5в0δKÙ.Δ´6svyiˆ6ëÐÂr1ìs%s7+)yè}}ˆ¯JQ}1ªè Brute-force, so pretty slow. Outputs as a list of characters. Try it online or verify ...
Kevin Cruijssen's user avatar
4 votes

Tips for Creating/Maintaining a Golfing Language

Make the syntax of your constants short For strings, you can have implicit quotes or compressed strings. Or even, you can make 2-character compressed strings or directly index into your golfing ...
asdf's user avatar
  • 101
4 votes
Accepted

Tips for storage in a golfing language

All of the storage types involve storing something at one point and retrieving it later. To do this in only one operation, you should do either storing or retrieving automatically, and specify the ...
jimmy23013's user avatar
4 votes

Tips for storage in a golfing language

I'd suggest having some quickly usable storage (from the given - tape, queue, stack) and some permanent storage (variables, registers) for things to not get in the way while the program is doing ...
dzaima's user avatar
  • 20.3k
3 votes

Is there any web esoteric language(like javascript)?

There's J5h*t (proposed name) which is a Turing complete subset of JavaScript, using only the characters []+=`
Adám's user avatar
  • 30.4k
3 votes

Tips for Creating/Maintaining a Golfing Language

Length of the builtins: 1 byte vs. 2 bytes Here, I will attempt to provide some concrete suggestions for @Zgarb's answer upon deciding whether a builtin should be made as 1 byte or 2 bytes. ...
asdf's user avatar
  • 101
3 votes

Auto-golf an esolang

JavaScript (Node.js), 121 119 bytes f=(n,a='',b,c=6,...s)=>n!=b?f(n,...s,a+'+',b,c+7,a+'-',b,+[...c+''].reverse().join``,a+'%',b,('1'+c)%c,a+'!',[b]+c,6):a Try ...
l4m2's user avatar
  • 24.5k
3 votes

Auto-golf an esolang

Jelly, 45 43 bytes ¹©ṃ“Ṿ;ɼ6“+7“D1;Ḍ%ṛṛ?“ṚḌ”v@ƒ6®Ḋ⁼ 1ç1#ṃ“!+%~” Try it online! Since it’s permissible to output garbage to STDOUT while returning the actual answer ...
Nick Kennedy's user avatar
  • 21.1k
2 votes

Auto-golf an esolang

Haskell, 165 bytes ...
matteo_c's user avatar
  • 6,480
2 votes

Auto-golf an esolang

Charcoal, 79 65 bytes ⊞υ⟦ω⁶ω⟧Fυ¿¬ⅈ¿¬⌕ιθ⊟ι«≔§ι¹ηF⪪⟦η⁻⁶η!ω⁷+ω⁻⮌ηη~ω∧η⁻﹪XχLηηη%⟧³⊞υEκ⁺λ§ιμ Try it online! Link is to verbose version of code. Explanation: Based on @...
Neil's user avatar
  • 172k
2 votes

Auto-golf an esolang

Python, 156 bytes -2 bytes, thanks to STerliakov simple brute force approach, takes input as a (decimal) string ...
bsoelch's user avatar
  • 6,015

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