This question is about starting to design a golfing language. When you're starting to design a golfing language, you pretty much have to decide on the best types of storage to use and the type of data flow through the code (e.g. left-to-right for CJam, BF, etc., right-to-left for prefix langs such as Pyth, a combination of both for langs such as Jelly...) at the same time because these two things are very closely related. Because of this, would you mind editing the question to include choosing the type of language? I can edit for you if you'd like. — ETHproductions2 mins ago
I have thousands of songs in my music collection, and luckily for me, I have a great memory and can remember the title of every song in my collection! However, I'm very lazy and don't like typing—typing each extra character is a chore! What is the shortest search string I would need to type if I ...
Rewrite a number in the Munafo System code-golf numbers
Output
The Munafo Alphabetic PT System (created by Robert Munafo) is a system of concisely writing very large numbers such that ordered values become lexicographically ordered when written. A full description (and some examples) of the sys...
Write a program that takes in a number N from 1 to 9 inclusive. In its native form your program should output N+N. E.g. output 2 if N is 1, 4 if N is 2, 6 if N is 3, and so on.
When every character in your program is duplicated in place, then it should be a program that takes in N (still from 1 ...
@HelkaHomba The first one was removed by the OP, the second one was removed by me when the question was clarified and comments got cleaned up and there were no further issues as far ad I could tell.
@HyperNeutrino It's supposed to prevent atoms from vectorizing, so [1,2]<'[3,4] would return 1 instead of [1,1]. Not only does it not prevent < from vectorizing; it makes it worse and the comparison returns [[1,1],[1,1]], comparing each item from the left list with each item in the second list.
@Phoenix Briefly. Before there was þ, that bug turned out to be so useful I never wanted to fix it. Now I can't fix it without breaking old answers.
@LeakyNun The main issue here is that ' can only work on atoms as defined. It won't do anything useful for x26$ since the chain doesn't vectorize in the first place. Its atoms do, but ' doesn't know that.
@Dennis It's pretty, it adds a link to the sandbox, it adds a leaderboard to the top of challenges, it allows you to distinguish PPCG from other design-less sites at a glance.
The code in the green background bothers me, as does the monospaced font for badges. I'm not sure how the leaderboard works, but if it's anything like the leaderboard in stack snippets, it will consume too much bandwidth for my taste. I'm also not sure if it would even work with moderator tools.
user165474
Haha I like it especially because of the monospace :P
PPCG is fundamentally different from other sites. When they give us a design, that want to have all of the features unique to us integrated, and it's taking a while.
In number theory, an integer q is called a quadratic residue modulo n if it is congruent to a perfect square modulo n; i.e., if there exists an integer x such that:
x
2
≡
q
(
mod
n
)
.
{\displaystyle x^{2}\equiv q{\pmod {n}}.}
Otherwise, q is called a quadratic nonresidue modulo n.
Originally an abstract mathematical concept from the branch of number theory known as modular arithmetic, quadrat...
In number theory, an integer q is called a quadratic residue modulo n if it is congruent to a perfect square modulo n; i.e., if there exists an integer x such that: $$\displaystyle x^{2}\equiv q{\pmod {n}}$$
Röda is a stream based language. seq 0,a pushes the numbers 0 to a to the stream. Then [(_*_1)%a] pulls one value from the stream and multiplies it with itself (to form the square) and the modulo a is pushed onto the stream using []
Jelly, 8 7 bytes
-1 byte thanks to Dennis (use any existing 0 in the input, clever.)
ØP;ṾiµÞ
Try it online!
How?
ØP;ṾiµÞ - Main link: string s (char list)
µÞ - sort the characters, c, of s by:
i - first index of c in:
ØP - pi yield: 3.141592653589793
; - co...
And another problem is that it's unclear what do to with the quadratic residues. If there isn't a dupe, you may even post it in the Sandbox, so that it can be a real challenge, I think this is way better than what you may think.
The problem is I need to skip or delete all the lines between the two keywords in a file and the keyword pair will appear many times in the file.The file looks something like this
.
.
..........
..........
Hello world
..........
..........
welcome
.
.
.
..........
..........
Hello world
...........
@LeakyNun It seems that, in parallel of the "Jelly Hypertraining" I should make "Turn Python off!" for Pyth </sarcasm> Seriously, I am awestruck that Pyth managed to outgolf 05AB1E and Jelly.
Note: don't make such a room, there isn't any reason to yet.
@LeakyNun I also found a Jelly answer based on the Pyth one.
Rewrite a number in the Munafo System code-golf numbers
Output
The Munafo Alphabetic PT System (created by Robert Munafo) is a system of concisely writing very large numbers such that ordered values become lexicographically ordered when written. A full description (and some examples) of the sys...
Quick question: If you asked a program to calculate all combinations of [0,1,0,1], what would you expect as the result?
Never mind, I should've just asked a program :P Japt says [[0,1,0,1],[0,1,0],[0,1,1],[0,1],[0,0,1],[0,0],[0],[1,0,1],[1,0],[1,1],[1],[]], which seems exactly right
This question is part of a series Brain-flak Birthday challenges designed to celebrate Brain-Flak's first Birthday. You can find more information about Brain-Flak's Birthday here
Today is Brain-Flak's first Birthday! So I thought we would throw it a surprise birthday party. So in your favo...