« first day (2278 days earlier)      last day (2562 days later) » 

user165474
1:01 PM
Hm. I can't figure out which atoms to use for them.
 
TIL you can pin run configurations in eclipse
🙌
 
user165474
Ooh cool
 
user165474
@LeakyNun I can't figure it out :(
 
@HyperNeutrino do you want the answer?
 
user165474
Can you give me which atom I should be using for the initialization?
 
1:11 PM
well, you don't need variables.
 
user165474
right. so where do i store the values then?
 
the iteration quick stores temporary values
("quick" is a noun)
 
user165474
I see
 
user165474
Oh wait I was only looking at atoms >_>
 
user165474
¡?
 
1:13 PM
yes
 
user165474
\o/
 
@LeakyNun That's not called an iteration quick though, it's a repetition quick.
 
@EriktheOutgolfer oh sorry
 
user165474
<shrug>
 
user165474
Okay, so that's one byte. The other one would be ³ before the repetition quick, right?
 
1:17 PM
jelly takes implicit input
 
No he doesn't mean that.
 
user165474
<link>³¡
 
Well I finished the factorial thing in Clojure
And it turned out to be 159 bytes
 
user165474
Yay \o/
 
@Qwerp-Derp congratulations
mind to share?
 
1:22 PM
Rewriting it in ClojureScript hang on
#(loop[n[%]](let[f(let[s(str(last n))](apply +(for[a(range(count s))](apply *(range 1(inc(int(nth s a))))))))](if(some #{f}n)n(recur(conj n f)))))
That is a monstrosity
143 bytes long
 
user165474
That looks scary D:
 
How about now?
(defn fact-cycle [n]
  (loop [nums [n]]
    (let [fact-num
          (let [str-n (str (last nums))]
            (apply +
              (for [a (range (count str-n))]
                (apply *
                  (range 1
                    (inc (int (nth str-n a))))))))]
      (if (some #{fact-num} nums) nums
        (recur
          (conj nums fact-num))))))
That's the ungolfed version
 
user165474
Looks only remotely better, but does look better :D
 
@Qwerp-Derp can't you define a recursive function?
 
Not really, cause then I have to make a helper function
Which wouldn't exactly save bytes
@Dennis Can you add ClojureScript to TIO? I'm not sure if it's different enough to warrant its own entry, though.
 
1:30 PM
@HyperNeutrino Found it yet?
 
user165474
@EriktheOutgolfer Only the last two bytes.
 
Are you still trying?
 
user165474
I'm thinking right now, but I'm playing a game of Contact so I'll keep working after that finishes
 
I'm kinda sad that the other two solutions are 6 bytes and 12 bytes respectively, while mine weighs in at 146 bytes...
 
@Qwerp-Derp As primarily a Java answerer I know how you feel
 
1:36 PM
@Poke On good days I can outgolf Python with Clojure, but on bad days I can't even outgolf Java...
s/days/challenges/
 
user165474
s/day/challenge to save 2 bytes
 
I couldn't even outgolf java with java in this answer
sad days
 
@Poke the test program prints an extra ,
 
1:54 PM
@betseg ah so it does. I can update that for correctness but it has no effect on the answer itself :]
 
user165474
I need another hint for the Fibonacci Sequence
 
user165474
I have <link>³¡ right now
 
You don't need ³
 
user165474
Oh.
 
user165474
Wait it's implicit?
 
1:56 PM
I suppose so
 
user165474
Okay.
 
@betseg fixed
 
user165474
I now have <link>¡ which I guess isn't much better, but it gives me space for one more byte.
 
You mean <dyad>¡, right?
 
user165474
Yes.
 
user165474
1:59 PM
Sorry if my terminology's off.
 
<link> can mean <nilad>, <monad> or <dyad>.
 
@Poke -1 byte:
void c(int[]a){int b=a.length-1,d=0,c=0,e;for(;d<b*b;c=++d%b)if(a[c]>a[c+1]){e=a[c];a[c++]=a[c];a[c]=e;}}
 
user165474
CMC: Find the most used username on this site.
 
user165474
As in the username with the most users using that username as their username
 
2:00 PM
@Geobits heh, standard sorting is golfier than fancy xor sorting?
 
In this case :P
 
user165474
@EriktheOutgolfer So it all depends on the number of arguments?
 
wait really...
 
s/sorting/swapping/
 
i swear i tried that
the parens must have gotten to me
 
user165474
2:01 PM
s/sort/swapp for -6 bytes
 
@Geobits -1 byte:
void a(int[]a){for(int b=a.length-1,d=0,c=0,e;d<b*b;c=++d%b)if(a[c]>a[c+1]){e=a[c];a[c++]=a[c];a[c]=e;}}
 
Oh, I didn't even look at moving into the for. I just assumed that had been tried already :P
 
@HyperNeutrino Well, I believe that <z><monad1><monad2>¡ means that while <z><monad2>¤ is truthy, replace <z> with <z><monad1>¤.
 
user165474
Oh cool.
 
user165474
2:04 PM
@Erik What's z?
 
While <x><dyad><implicit>¡<y> means that while <implicit> is truthy replace <x> with <x><dyad><y>.
@HyperNeutrino The argument of a monad.
 
user165474
Oh okay.
 
user165474
Are you sure it's inverted exclamation and not ¿
 
¿ is a while loop (<link><condition>¿).
 
user165474
But doesn't ¡ only repeat a link? Or does it have other funcionalities?
 
2:06 PM
@LeakyNun honestly surprised i missed that one. thanks
 
On the docs it says <body> instead of <link>, but it's really just a link.
@HyperNeutrino ¡ repeats a link a specified number of times.
<link><repetitions>¡
 
user165474
So what's the truthy replace thingy?
 
Oh sorry I confused while loops with repetitions.
<implicit> is the number of repetitions.
 
user165474
Okay. That makes more sense.
 
user165474
So it's 4 bytes, you say?
 
2:10 PM
@LeakyNun says.
 
user165474
Okay.
 
(I wanted his attention here)
 
I have no idea how the 4-byte program works.
5
 
user165474
Haha when you write code that you don't understand either
 
Because it's not yours.
 
user165474
2:10 PM
oh hm.
 
@EriktheOutgolfer satisfied?
 
Can you give me a TIO link please (i.e. spoiler)?
 
Hyper don't click it!
 
user165474
Alright, won't look :P
 
2:13 PM
Yeah, because it's your exercise after all.
 
user165474
Yeah :)
 
user165474
BTW Thanks for helping me learn Jelly :D
 
user165474
And so how do temporary values work for iterations?
 
@Riker you guys don't use discord anymore?
 
I do
the PPCG server is almost dead though
I'm in like 5 others with irl friends
 
user165474
2:15 PM
Can I chat mod :D xD
 
@Riker I see...
 
user165474
@LeakyNun You were saying something about temporary values with iteration?
 
That's my idea of how it works, really
Where the temporary result is v, what does [dyad][repetitions]¡[nilad] do?
(you know what "temporary result" is, right?)
 
user165474
not really...
 
@HyperNeutrino I have more rep than you now (4 rep)!
 
2:19 PM
@HyperNeutrino have a look at Tutorial§Chains
 
user165474
@Qwerp-Derp >_>
 
user165474
Um 14?
 
14 now
 
user165474
Math?
 
user165474
Oh okay thanks @LeakyNun
 
user165474
2:28 PM
Okay @LeakyNun Can you give me another hint? I can't seem to figure out what else to put
 
@HyperNeutrino you haven't answered my question
 
user165474
Which one
 
12 mins ago, by Leaky Nun
Where the temporary result is v, what does [dyad][repetitions]¡[nilad] do?
 
user165474
Ok.
 
user165474
Lemme see
 
user165474
2:31 PM
@LeakyNun I'm guessing it's equivalent to dyad(dyad(dyad(...(v), v), v), ...), nilad)
 
I can't comprehend those ellipses. What does [dyad]3¡[nilad] do?
 
user165474
dyad(dyad(dyad(v, v), v), nilad)?
 
user165474
Actually I think dyad(dyad(dyad(v, nilad), v, v)
 
Actually it does dyad(dyad(dyad(v, nilad), v), dyad(v, nilad))
[dyad]1¡[nilad] = dyad(v, nilad)
[dyad]2¡[nilad] = dyad(dyad(v, nilad), v)
[dyad]3¡[nilad] = dyad(dyad(dyad(v, nilad), v), dyad(v, nilad))
 
user165474
Hm.
 
user165474
2:37 PM
Interesting.
 
@Dennis Why is it?
 
user165474
So let me try to guess what [dyad]4¡[nilad] does.
 
I should dig into the code to see why
Nah, can't find anything from the code.
 
user165474
Hm.
 
user165474
Can't figure out what [dyad]4¡[nilad] does.
 
2:41 PM
There is a pattern in Leaky's examples.
 
@EriktheOutgolfer I'm not sure if that feature is documented anywhere
 
user165474
It seems to be recursive.
 
@LeakyNun It isn't.
 
@EriktheOutgolfer I see
 
user165474
Is [dyad]K¡[nilad] just dyad([dyad](K-1)¡[nilad], [dyad](K-2)¡[nilad])?
 
2:43 PM
No.
 
user165474
Hm.
 
Let's call a setup like <dyad>K¡<nilad> ¡(K).
 
user165474
Alright.
 
¡(1) = dyad(v, nilad).
 
user165474
Okay. Makes sense.
 
2:46 PM
Let's call dyad's first argument x and second argument y.
 
user165474
Okay.
 
@LeakyNun hey you're back?
 
@orlp hi
 
user165474
Sorry, I'm going to have to go in about 2 minutes.
 
¡(0) = v
 
user165474
2:48 PM
Okay.
 
¡(1) = dyad(v, nilad)
 
missed you :P
 
user165474
Mhm.
 
¡(K) = dyad(¡(K-1), ¡(K-2)).
So that pretty much explains how the heck that works.
 
user165474
6 mins ago, by Hyper Neutrino
Is [dyad]K¡[nilad] just dyad([dyad](K-1)¡[nilad], [dyad](K-2)¡[nilad])?
 
user165474
2:49 PM
Is it not the same thing?
 
It might be, although your notation seems a bit complicated.
 
user165474
Alright.
 
user165474
Sorry, I have to go now. Thanks for your help! :D
 
You're welcome :)
 
@orlp thanks lol
 
3:14 PM
Yeah!
Oh
 
@Christopher what on earth are you doing
 
What's that fourth site between Academia and A&M?
 
@LeakyNun Making worthy screenshots
 
Or is that japanese, not anime/manga?
 
I have wanted to join on a new account and get 200+ rep (never click rep tab) and join every SE
@Geobits A/m
 
3:17 PM
I think you forgot a few sites then :P
 
@Geobits This is not a new account for that purpose. I would be tempted to just give it a bounty but that is a waste of rep
 
@Geobits Ask Patents. Never heard of it until now either
 
Oh, I haven't been there in a whiel, so forgot what their logo looked like
 
@Geobits Downvote :P spelled while wrong
 
I thought at first it was some sort of monochrome version of sf/f.
@Christopher I didn't spell while, I spelled whiel.
 
3:20 PM
@Geobits Sureeee
 
I mean Michael Whiel. He's a rapper/producer, but slow about it. So the time interval whiel was named after him. It's quite a long time.
 
@Geobits 10/10 best excuse ever
 
You can find him on soundcloud at the least. I'd link, but it's blocked here.
Damn near everything useful is blocked here :/
 
here?
 
Yes, here. Not there.
 
3:25 PM
I can see the problem. TNB has no web browser so I understand why everything looks blocked
 
@Geobits I don't know about everyone else, but I immediately assumed that whiel was correct. It's really a very useful time interval
 
It really is.
 
@DJMcMayhem join me in third stack
@Mego word salad
 
3:41 PM
That moment when you submit a flag, and then immediately realize you're stupid.
I wish there were takebacks.
 
Think before submitting ;)
 
@mbomb007 There are. iirc
 
No there aren't.
 
I did think. I just didn't notice something because the question wasn't tagged correctly.
 
(it is a valid flag btw)
 
3:43 PM
That's on an answer, not a question.
 
Oh :P
 
Oh wait, nvm
I can retract it.
I guess you have to wait a bit.
 
0
Q: Combination Of Cards

MinaCombination Of Cards A group of friends from Delhi went to Goa for a vacation. One Night, they went to a casino and enjoyed a lot. A person from the group started gambling there and found his game hard to crack as it was very difficult and logical. That game is played with set of n number of car...

 
@mbomb007 cc @EriktheOutgolfer
 
@Christopher Comment flags don't have that little thing :(
 
3:47 PM
@EriktheOutgolfer rip
 
In fact I have a little while to flag a post, so I don't remember retracting flags... maybe because I haven't ever retracted them.
 
@EriktheOutgolfer edits mainly
 
What edits?
 
Wait. I meant to say that edits cause me to remove flags
 
Yeah they do.
 
4 messages moved to Trash
How about a real CMC? Given a string as input, print the string horizontally and vertically at the same time. For example: Given Hello, print:
Hello
e
l
l
o
 
Python 3, 30 bytes lambda s:'\n'.join([s,*s[1:]])
 
CJam, 7 bytes: 0q_N*\t
 
V: `òli
`
 
Oh I missed the CMC
 
4:10 PM
wait that doesn't work nevermind
 
Pyth, 3 bytes: Qjt
 
I don't know how you did fancy linking but V, 6 bytes: Ùxòli<newline>
 
Ah, nice
It makes me really happy that there are people out there who will outgolf me in V. :P
 
Qjt
QjtQ "implicit Q"
Q    "implicitly print the input. end of command."
   Q "input"
  t  "tail (remove the first element)"
 j   "join (implicitly by newlines)"
     "implicitly print the above as well"
 
4:14 PM
@DJMcMayhem It happens very rarely tbh
 
As rarely as people outgolf Dennis in Jelly I guess...
 
honestly I don't know how to do it golfily in Jelly
 
CJam, 7 6 bytes: q_N*(;
 
Jelly is not so good with strings
 
BTW, @LeakyNun remember how you were interested in learning V a while ago, but it wasn't very friendly because of unprintable characters and no tutorial? I've fixed both of those now
 
4:16 PM
@DJMcMayhem wow.
Btw, I figured out how to do it in Jelly.
 
@LeakyNun ṄḊY
 
Jelly, 3 bytes: ṄḊY
 
ninja'd :)
 
@LeakyNun Yeah, so now you can write unprintable characters like this: Try it online!
 
I got YḊṭ in Jelly
 
4:17 PM
@DJMcMayhem but the byte-count...
 
Is still just 9.
That's just verbose mode for ease of writing
 
I know, but the TIO can't count it properly
 
Yeah, it's true
 
@BusinessCat honestly I don't know how yours works
 
Oh, and the tutorial is here
 
4:18 PM
@DJMcMayhem that's nice
@BusinessCat never mind, I understand now
 
OK, I've gtg now
But if you have any questions, I'm always happy to answer them in vim-golf
 
brainfuck, 32 bytes:
,[.>,]<[<]>>[<[-]++++++++++.>.>]
@EriktheOutgolfer do you brain-flak?
 
Nah not much.
 
what languages do you do?
 
@DJMcMayhem Carrot, 16 bytes
#^-1//./gS"
"v#
Note the trailing newline
tbh I'm surprised Carrot was able to complete this CMC
 
4:26 PM
@LeakyNun Jelly, 05AB1E, Pyth, CJam, GolfScript, Python 2, Python 3, brainfuck, SMBF, Charcoal.
possibly others too
 
@EriktheOutgolfer let's do it in golfscript
 
@LeakyNun I have already prepared one :)
14 bytes: .puts(;n*print (trailing newline)
Wait I found another one without trailing newline.
 
wow, I never thought I'd say this, but GolfScript is verbose
 
12 bytes: .puts(;n*:n; (has a winked-right-eye-smiley too)
 
@KritixiLithos it doesn't have to be
 
4:28 PM
@KritixiLithos Yes it is, for a language made in 2007 :)
Back then golfing was quite different and less popular I think.
 
(but it still beats Carrot)
 
Golfscript, 7 bytes (with trailing newline): .(;n\n*
 
Golfscript, 10 bytes (without trailing newline): .n\(;n*:n;
 
you mean the spaghetti monster?
 
4:33 PM
@KritixiLithos Yeah it beats Carrot by 9/16.
 
And Carrot was made to be a language that was supposed to be "good" at challenges
 
0
Q: Find the number of subgroups of a finite group

Leaky NunDefinitions You can skip this part if you already know the definitions of groups, finite groups, and subgroups. Groups In abstract algebra, a group is a tuple (G, ∗), where G is a set and ∗ is a function G × G → G such that the following holds: Closure: for all x, y in G, x ∗ y is also in G ...

 
Like Charcoal.
 
But hey, as of now, it does not have a lot of implemented operators
 
@EriktheOutgolfer what language should we do next?
 
4:34 PM
@LeakyNun Well, I'd say brain-flak (I can do in it).
 
ok, let's do it
 
That sounds tough.
 
heh, I'm gonna do retina first
 
wait up for me then
25 bytes
 
I tried Retina but I only got a horribly hacky 30 byte solution
 
4:38 PM
we're doing DJ's CMC, right?
 
I think so.
 
CMC: CMC in tomato
 
Retina, 26 bytes:
.(.+)
$&¶$1
+`(?<=¶.).
¶$&
 
Outgolfed by Kritixi.
 
4:39 PM
yeees
 
oh, that's nice
why was I using a loop
Our initial stage is the same though
 
gg
But I won in the lookbehind
but my solution has a trailing newline
 
Oh I got it in 13 bytes with a trailing newline
 
@BusinessCat what?
13 bytes??
 
@BusinessCat what witchcraft
that's impossible
 
@BusinessCat Invalid that's two trailing newlines. unavoidable one exempt
 
@DJMcMayhem Ruby, 26 bytes: ->s{puts s,s[1..-1].chars}
 
@EriktheOutgolfer One's default in basically every Retina program
@BusinessCat +1, dry run, I never thought about that
 
Is my answer valid?
 
4:43 PM
@BusinessCat seriously. The * mode is too good
 
@HelkaHomba It looks like several of the answers to your Blue vs Red KOTH have been edited by "Community" within the past couple weeks or so. Does that break the controller? As in, does it automatically disqualify posts that have been edited? If so, you should probably fix that.
 
@PhiNotPi Community is just replacing http/https, no?
Shouldn't bork anything.
 
@LeakyNun You might be interested in the Retina submission to the "find the reciprocal of a number" challenge
 
@Phoenix yes, but one of the requirements of the challenge is that no answer may be edited past X hours after posting.
 
All submissions had to take input and output in floating point numbers
 
4:48 PM
And I think the controller automatically checks for edits, meaning that these edits appear to have triggered that auto-disqualification mechanism.
 
Retina, 12 bytes
*`


¶
^¶.¶
trailing newline here
@BusinessCat here
 
Nice
 

« first day (2278 days earlier)      last day (2562 days later) »