« first day (3113 days earlier)      last day (1734 days later) » 

Anonymous
12:07 AM
Definitely not edit, because those additions would change the challenge significantly
 
Anonymous
A bounty to willingly make answers longer to fulfill additional criteria would probably not go over well
 
Anonymous
So a new challenge is the best option out of those three
 
12:42 AM
0
Q: What is S[(10^13)]?

G PasemanI actually want several things; the title question is just one of them, and not the most important one. Here is some code in AWK, to show a simple definition of S. BEGIN{ LIM = 1000; for(n=1; (n++)<LIM ; S[m]=p) for(m = n + (p=(n in S)?S[n]:n); m in S; m += p) delete S[n] } When run, one sh...

 
1:02 AM
0
Q: PHP challenge check multiple condition with one if

pravat231Write a program that prints all the numbers from 1 to 100. However, for multiples of 3, instead of the number, print "Linio". For multiples of 5 print "IT". For numbers which are multiples of both 3 and 5, print "Linianos". challenge But here's the catch: you can use only one if. No multiple br...

 
 
1 hour later…
2:12 AM
:o another tarpitified scripting language (@Dennis could this possibly be added to TIO?)
 
0
Q: Radioactive Bit Checking

Jo KingNote: This is the radiation-hardening version of my previous challenge Pristine Bit Checking. This should be much more difficult than that one. Write a program/function that takes two integers in the range \$0\$ to \$255\$ inclusive, and returns whether the binary forms of the numbers are exactl...

 
 
2 hours later…
4:14 AM
@ASCII-only is there any actual challenge to golfing that, or is it just "pass ruby code through the __script__ function" to get the _ code?
It also just appears to be translating the codepoint of each character to base 6 with three digits and then adding one to each digit and printing that many underscores, separated by spaces
 
A__
4:57 AM
An alternative translation(without special effects) for an existing language is trivial. As far as I can tell, the only possible way for a human to program in _ is to program in the Ruby alternative. Thus it is not worth putting on TIO.
 
0
Q: Black and white shirts

Ed MartyThis puzzle is based on this Math.SE post. Assume I have some number of black shirts and some number of white shirts, both at least 1. Both colors of shirt have a non-zero durability. All shirts of a given color start with the same durability. Every day, I pick out a clean shirt to wear, and it...

 
 
2 hours later…
6:59 AM
hello, anyone there?
I have a Jelly newbie question for you guys
I'm doing the "babab to zyzyz" code-golf, and I'm stuck
What I can do: Œ!Q at the end to create every permutations once my lists have been created well
ØỴ for lowercase consonants
Øỵ for lowercase vowels
and now I'm trying to play with this: ؽ;ؽ;1
that yields [1,2,1,2,1]
objective is to replace 1s with consonants and 2s with vowels
isn't there a Jelly dyad to do this?
 
0
A: Sandbox for Proposed Challenges

TheOnlyMrCatCreate an interpreter for * code-golf interpreter The task is simple. Write an interpreter for the language *. A * program can consist of one of three commands: * Prints "Hello World" (Space)*(Space) (Where (Space) represents a space character) Outputs a random number between 0 and 2,147,483...

 
The Jelly room is actually frozen at this point, but Jelly Hypertraining is doing fine
if the last two things posted being antifreeze doesn't disqualify it from being fine
 
Should I ask what I did ask here there?
Oh looks like I can't
 
7:15 AM
anyhow I'm not sure what you intend to use Œ!Q for on that challenge, assuming it's this one
 
exactly, this one
well it depends on the way I do it
but now that I've got the [1,2,1,2,1] I might just pick for each child the corresponding argument : [arg1 arg2 arg1 arg2 arg1]
looping
and then Q
but well that would require a 3-arg link
and I don't know how to do this.
plus, I didn't see anything to replace things
 
You could index into a list containing the list of consonants and the list of vowels, or possibly even do something with ƭ (although that would probably just be silly)
actually no ƭ just doesn't work that way
 
I re read it but i don't really understand what ƭ does
cycle through a list of links? and apply them one by one?
 
yeah it's totally inappropriate for this lol
 
were you thinking of ¦ before ?
 
7:25 AM
nope just forgot that it's c-v-c-v-c and not c-v-c-v-c-v
 
but I could tail
Ṫ€
for each cvcvcv
it's written that Ṫ modifies z, so if I could get back the z, going from cvcvcv to cvcvc is trivial.
 
Well anyhow the issue is actually going from your list of lists to every possible way to choose an element form each of those lists
 
yeah
exactly that
 
In Brachylog you can just slap on ∋ᵐcẉ⊥, but Jelly like the vast majority of languages does not have backtracking, so you'll need to do something requiring a bit more thought
 
7:33 AM
You might want to try just filtering a list of all 5-letter lowercase strings for the ones matching the pattern
 
yeah.
Good idea, I'll try this
 
7:46 AM
ok I might be on the right track
I have ż
to apply to ØỴṗ3
and Øỵṗ2
(things with Øa didn't work as expected)
so if we can ż on those two things
it's won
and we don't have to filter out Øaṗ5
I don't know if it works, it runs forever
ØỴṗ3ż€Øỵṗ2
i tried with a smaller thing
ṗ3ż€Ø½ṗ2Q with argument bc
should have b1b1b b1b1c b1b2b ... c2c2c
doesn't work :(
where should I put the Q so that it doesn't take ؽṗ2 as an argument?
 
You could use a separator, like µ, before Q maybe
 
I tried
it doesn't work
with Ṣ either
(cause I reread Q and it's not what I want lol)
output of z=bc; ṗ3ż€Ø½ṗ2µṢ€:
message too long
even though it shouldn't
begins with b1b2bb1b2bb1b2b
...
hey it's hard
 
8:24 AM
this
z="bcd"; ṗ3ż€Ø½Y
works as intended
returns exactly what we want, except there's no cartesian power on (1,2)
but
as soon as we do ṗ3ż€Ø½ṗ2Y
output goes from b1b2b to b1b2bb1b2b
instead of b1b1b
am I missing an underlying Jelly rule?
 
8:43 AM
anyway, I can resolve the double write by doing Ḋ€ after
but that's not what I want lol
no
 
8:55 AM
...
the worst is that Øỵṗ2Y works
I hate this ż€ link
does not work as it should at all
€ maps to left arg and Ɱ to right arg
can't I do both?
i'll go back to alphabet^5 strat I think
:'(
 
9:40 AM
`ṗ5Œœ€` returns a set of pairs odd/even (works fine).
I need to check that even part contains only `Øỵ` chars, and the odd part only `ØỴ` chars, but neither `Ƈ` nor `Ðḟ` (associated with `e€` things ...) seem to work. Any ideas? I'm so close, it bothers me ._.
Then this will interleave the things that were not filtered out: `żƝ€Y` (works fine)
 
 
2 hours later…
11:18 AM
ṗ3żþؽṗ2 produces babb instead of babab ><
 
 
1 hour later…
12:43 PM
0
Q: Black an white shirt 2

Ed MartyThis is a more complicated version of this puzzle. The premise is the same but a few rules differ in a few key places, making for a more complex problem. Assume I have some number of black shirts and some number of white shirts, both at least 1. Both colors of shirt have a non-zero durability. A...

 
 
1 hour later…
A__
1:46 PM
@NewMainPosts The title should be "Black a white shirt 2"; "an" can't be used before "white".
 
@A__ How do you black a shirt? ;-)
 
@Adám Use dye
 
Black and*
IMO
Would rather have been Blacken if it was about dyeing
 
 
1 hour later…
3:22 PM
0
Q: Look mom! I made my own (Base 10) numeral system!

Bill WWe've all done it, well, maybe not, but making your own alien language and numbering system is a staple of especially fantasy writing, but is mostly just a fun activity. The task is simple, take two inputs: An ordered list input of 10 [ten] unique 'numerals' (any printable ASCII character) and...

 
3:42 PM
0
Q: How do I write code that doesn't match itself?

HalcyonLet's say I have this pseudo code: function find_between_string(haystack, start_delimiter, end_delimiter) { /**/ } output = find_between_string(input, "foo", "bar"); Some example input and output: fooquxbar -> qux abc -> [nothing] barfooquxbarfoo -> qux Now, if the input string is its own ...

 
4:22 PM
2
Q: Help me sub-divide a time signature

AJFaradayThis challenge is based on a video in which Andrew Huang discusses unusual time signatures... https://www.youtube.com/watch?v=JQk-1IXRfew In it, he advises that you can understand time signatures by dividing them into 3's and 2's. So you count to a small number a few times, instead of counting ...

 
4:38 PM
What'd I miss while I was on vacation?
 
0
Q: Existing answers in KoTH invalidated by teaming; should it be allowed?

Redwolf ProgramsI posted this challenge about a week ago, and it has since become fairly popular with nearly 40 answers. In the chatroom, a user asked whether teaming was allowed. I said it was, if someone could figure out how it could even work. Two teaming bots were posted shortly after, one of which easily t...

 
Anonymous
5:45 PM
Gems from code review earlier:
 
Anonymous
objMap = objs.reduce((acc, obj) => { acc[obj.id] = obj; return acc; })

// ...

Object.values(objMap).reduce((acc, obj) => { acc[obj.id] = obj; acc[obj.id].someProp = 'foo'; return acc; }
 
can't exactly tell what that is, but it sure looks wrong as hell...
 
Anonymous
First part is making a map out of an array using obj.id as the key. That's fine. The second part is then taking the values of that map and making a new map that is identical to the old map, but also adding a property to the objects
 
Anonymous
The correct way would have been objMap = objs.reduce((acc, obj) => { obj.someProp = 'foo'; acc[obj.id] = obj; return acc; }) and not having the second part
 
Anonymous
The developer responsible for the code was slapped with a trout
 
5:52 PM
so... if I put it in Python terms, it would be like [g(i) for i in [f(i) for i in x]]? ew
 
@Mego Is there any particular reason trouts are especially suited for slapping people?
CMC: Slap Jimmys with a trouts; given a 2D string consisting only of spaces and Jimmys separated by one or more spaces, e.g. /o\ /o\ place trouts <>< such that one fish head is immediately above each Jimmy's head. The input will always be such that no Jimmy will end up covered by a trout.
4
E.g.
/o\ /o\
      /o\
  /o\
becomes
 <>< <><
/o\ /o\<><
   <></o\
  /o\
You may (need to) add a line before the first line. Trailing whitespace is OK.
 
Inb4 this gets crushed by Charcoal
 
6:07 PM
@Adám is there always guaranteed to be a jimmy on the top line? or what's the expected behavior if there isn't?
alternatively, can i take the input with the top line having no Jimmys?
 
@dzaima No, there's no guarantee, but you're always allowed to add a line.
@dzaima No, you may need to add a line on top.
 
@Adám Canvas, 12 bytes
 
@dzaima Oh, that's short. Replace Jimmy with trout, move one step and combine?
 
@Adám replace Jimmy with trout, and then overlap the input in that at 1-indexed coordinates (0;2)
 
@dzaima I guess Canvas is kind-of made for this sort of challenge… given its name. How do you fare in APL?
 
Anonymous
6:20 PM
@Adám They make a nice sound
 
@Mego Makes sense, but would a salmon work, if no trout is available?
 
Anonymous
@Adám Sure, but trout is preferred
 
@Mego Thanks, I'll keep that in mind, just in case I need to slap any colleagues.
Maybe I should tell our COO, he often needs to slap our developers.
 
It's a Monty Python sketch.
Also from IRC, apparently, according to Wiktionary.
 
6:42 PM
But Wiktionary doesn't list the Monty Python sketch. I am disappoint.
 
you know stuff... :D
 
I have a plethora of knowledge of very random facts.
 
@Adám how about:
 /o\
/o\
?
 
@EriktheOutgolfer The input will always be such that no Jimmy will end up covered by a trout.
 
@Adám oh missed that
 
7:03 PM
0
A: Sandbox for Proposed Challenges

HalcyonHere's a challenge I'd like post because I'm curious to see what people will come up with. It's a bit of an anti-code-golf question because the code should look normal. Is it clear what the constraints? Did I miss anything? Introduction Write a piece of unsuspicious code that does the follow...

 
Wouldn't be more performatic to use -l instead of STDIN/STDOUT? — Andre Figueiredo Dec 24 '18 at 5:09
performatic
 
yeah, he should've said "performant" instead
 
But performatic sounds awesome
 
@mınxomaτ More performatic simply means its running fasteriouser.
 
Like something printed on a 90s japanese stereo system.
 
7:14 PM
TIL: Delphi has 5 different OOM messages: 'Out of Memory'; 'Out of Memory!'; 'OUT OF MEMORY'; 'projectName.dproj is out of memory'; and 'Could not create output file <name>: out of memory.' They seem to be very much interchangeable (apart from maybe the last one).
@mınxomaτ Judging by the name and the choice of words, I'd hazard a guess and say this person is Brazilian
"Performático" is a valid word in Portuguese, they probably transliterated it.
 
Makes sense. They know all the spicy words
 
@J.Sallé I suppose the first three are various degrees of being out of memory. Like, ordinary memory is all out; absolutely no memory left, even in nooks and crannies; darn it, we've started to borrow memory from the neighbours.
 
@J.Sallé LinkedIn agrees
 
@Adám borrowing memory from the neighbours is definitely standard Delphi practice. I can't compile a delphi project and work on my Go side project at the same time
Also sometimes it just crashes the IDE without any messages and when I try to open it again I get some 20+ "Access violation at <memory location> in <dll name>" warnings.
 
@J.Sallé Have you tried hooking up Delphi to your Amazon account? I bet you'll see OUT OF MEMORY!! when it has bought all the memory it could get its hands on.
 
7:20 PM
@Adám good God I think that'd crash AWS
 
@J.Sallé No that'd be O U T O F M E M O R Y ! ! ! when it has dispatched ninjas to steal the memory from AWS's server farms.
 
Oooooooh damn. I never thought of memory-stealing ninjas before. That must be why all my computer's memory is gone as soon as I open Delphi
 
Tangentially related anecdote: My father was once called out to one of his customers because the software my father had written for them suddenly stopped working, though no change had been made to it. Turns out a rogue technician had serviced the computer and saw his opportunity to steal the 80387 math co-processor my father's code was relying on.
 
7:43 PM
0
A: Sandbox for Proposed Challenges

Geza KerecsenyiCalculate mobile data coverage Background You've been hired by the HQ of Vodafizon - a relatively new mobile network provider interested in spreading to the global market. In particular, your job description involves working as a marketing rep to produce ads for each country, where you give a f...

 
8:21 PM
0
Q: Refactor this (factor) code

G PasemanBased on comments from an earlier (now closed) version, this version of wants only golfed answers implementing S as given below (except set LIM to something at least as large as 10^8). Shortest code (in bytes) of source in any language will be used in ranking. I am new to posting here, so please...

 
8:41 PM
0
Q: Self-Contained Generator Function (JavaScript)

MasonCreate a function that takes in a generator function as its only parameter, and returns an object that can be used as both as a generator and a generator function for said generator. For example: let sg = SelfGenerator(function*(n){ yield n; yield n + 1; yield n + 2; }); sg.start(...

 
What'd I miss while I was gone on vacation?
 
@MilkyWay90 Nothing. SE chat has a transcript
:]
 

« first day (3113 days earlier)      last day (1734 days later) »