« first day (2041 days earlier)      last day (2795 days later) » 

12:06 AM
I'm actually kind of surprised Nethack (or SLASH'EM) doesn't have ioun stones.
I actually always assumed they were there but I just had never found one
 
Nov 3 '15 at 22:20, by Doorknob
This room was placed in timeout for 1 minute; the topic of this room is "General discussion for http://codegolf.stackexchange.com | abandon all work, ye who enter here —aditsu" - conversation should be limited to that topic.
 
what's so wrong with that?
 
Limiting the topic to "abandon all work ye who enter here" doesn't really fit
 
12:18 AM
And "Guidelines: ppcg.github.io/chatiquette" does?
"here we discuss the proper way of talking without ticking of certain people"
 
TIL 05AB1E has no string repeat operator
@Adnan please
 
@LeakyNun Yeah it does.
×
 
@ConorO'Brien Timeouts are the last resort with which moderators can attempt to keep a room under control. You don't place clown masks on the riot police, and you don't crack jokes in a timeout message.
 
@quartata thanks
 
No problem.
 
12:21 AM
@Dennis granted, but hasn't this only happened twice?
 
I can understand you missing it since it's listed in the docs as a × b (strings)
Not very obvious.
 
@quartata and the doc is Info.txt
very obvious
 
@ConorO'Brien Not sure how many times it happened. Anyway, it's detrimental to our efforts to elevate the signal-to-noise ratio.
 
-.-
I'm sure it's decreased tons >_<
 
I'm sure The Bridge has fun trying to enforce "wherein fredley ruins everything" as a topic
Actually since he's a mod it's probably pretty easy
 
12:26 AM
CMC: find whether a given string of / and \ is a possible output of this challenge:
6
Q: The Squiggly Sequence

Leaky NunAll credits to Adnan for coming up with this challenge. My last challenge, before I go on break. Task Given positive integer n, if n is odd, repeat / that many times; if n is even, repeat \ that many times. (Seriously, the testcases would be much clearer than this description, so just look at...

the empty string will not be given as an input
 
@LeakyNun f(char*n){return!strlen(n)%2&*n^92?:1;} didn't test, probably won't work :p
 
return!
 
Not
Logical not
 
ik
you assumed that every character is the same
 
Ye :(
probably
there is no kill like overkill
#include <stdbool.h>

bool test_squiggly(char* string) {
    int counter;
    int length = strlen(string);
    for(i=0; counter<length; i++)
        if(string[counter] != string[counter-1])
            return false;
    if((counter % 2 == 0) && string[0] == '/') ||
       (counter % 2 == 1) && string[0] == '\\'))
        return false;
    return true;
}
 
12:39 AM
@Dennis Is it possible to add Oasis to TIO?
 
i
counter
 
@Adnan How does Oasis work?
 
Do you mean how to run it?
 
@Adnan Sure. Any special requirements I should take into account?
 
@ReleasingHeliumNuclei
 
12:41 AM
@Dennis Yeah, there are some problem with recursion
 
@LeakyNun lambda s:set(s)=={'\/'[len(s)%2]}
 
I'm not sure if that's going to be an issue
 
@Adnan How so?
 
@LeakyNun welp kill borked nvm
 
Memory errors and stack overflows
 
12:42 AM
@Adnan like what kind of language is it? All I can find on the linked github is info.txt which says what some of the operators do.
 
@JonathanAllan clever. i was thinking of generating the string using its length
 
@Cyoce It's mostly used to be short at trivial OEIS sequences
 
@Adnan I need --safe, right?
 
yes
 
@Dennis :( ok. but fair point
 
Good night!
 
@Dennis Thanks! :)
 
@Adnan i'm intrigued. can you showcase?
 
I can try to answer an OEIS challenge
Do you have a simple one in mind?
 
12:46 AM
@Adnan n%4
@ConorO'Brien such simple much wow
 
@ConorO'Brien yeah, rip oasis on that one
 
It's only (!+:)%>: in J :P
 
@LeakyNun Crap
I can't believe I forgot the mod operator
 
okay, CMC: catalan numbers
 
I recommend A000004
 
12:47 AM
@Adnan 2n then
 
@ConorO'Brien i wanted to sleep but I saw that. Halp how to
 
@ConorO'Brien vtc as dup
 
@LeakyNun ik ik
 
the main one is even a catalog
 
jolf, 2 bytes: m$ :P
 
12:48 AM
@LeakyNun nx
 
 
@Adnan why do you still need the n
 
Am I missing something?
 
@Cyoce for what?
 
It looks like they switched from x to t
 
12:49 AM
  /* Thirst tick. Called from moveloop(). */
  void qnh_do_thirst() {
    if (u.uinvulnerable) {
      return;
    } else if ((!u.usleep || !rn2(10)) && amphibious(youmonst.data)) {
      /* You can only get thirsty if you can breathe. */
      u.uthirst -= abs(tan(u.uthirst));
      if (u.uthirst < 0) {
        You_feel("deathly dehydrated.");
        qnh_thirst_dying();
      } else if (u.uthirst < 100) {
        You_feel("quite thirsty.");
      }
    }
  }
 
@LeakyNun It calculates a(n - 1) rather than the input
 
#itshappening
 
@Cyoce yes they did
 
@Sp3000 f(n){return 0;}, int f(int n){return 0;} argh im dealing with verborseness
 
This is a good example:
26
Q: Sylvester's sequence

Wheat WizardSylvester's sequence, OEIS A000058, is an integer sequence defined as follows: Each member is the product of all previous members plus one. The first member of the sequence is 2. Task Create the smallest program possible that takes an n and calculates the nth term of Sylvester's Sequence. St...

 
12:49 AM
@ConorO'Brien I'm not sure if I'm comfortable with them teaching me if they can't even keep their parameters straight.
 
@Adnan and how do you do that?
 
@Cyoce yeah, I feel you ;_;
 
@EᴀsᴛᴇʀʟʏIʀᴋ I might have something for you to play with sooner than I had thought...
 
Not nearly everything, mind you.
But some things.
 
12:50 AM
kk
ig tf2 rn, brb
 
Really bai dis time gn
 
@quartata (!u.usleep || !rn2(10) c'mon, use de morganns law! !(u.usleep && rm2(10))
 
@EᴀsᴛᴇʀʟʏIʀᴋ wut
 
@ReleasingHeliumNuclei In game "TF2" right now, be right back
 
^
ig can't talk much
 
12:51 AM
@ConorO'Brien oh kk
 
@Adnan why does x alone not work
 
@LeakyNun What are you trying to do?
 
this seems like an interesting candidate to attack with the new graphical output feature.
5
Q: Quixels - Quantum Pixels

NonlinearFruitIntroduction A quixel is a quantum pixel. Similar to a classical pixel, it is represented with 3 integer values (Red, Green, Blue). However, quixels are in a super position of these 3 states instead of a combination. This super position only lasts until the quixel is observed at which point it c...

 
Wanna golf a random OEIS sequence?
 
I don't know how feasible it is
 
12:52 AM
@Adnan what do n and x do
 
Let's say you have some code
 
@DanTheMan ye
 
The program it executes is a(n) = code.
 
@ConorO'Brien That condition wasn't mine
It's from eat.c
 
12:53 AM
surely you can change it? :P
 
Also rn2 isn't a predicate
And I just noticed I meant !amphibious
Woops
 
@DanTheMan no
Xd
 
@quartata does that matter?
 
Look at the formula section
 
12:54 AM
^
 
@Adnan then what does n do
 
@LeakyNun It pushes n.
 
no implicit input?
 
> A005517:=(-1-2*z-3*z**2+z**4)/(-1+5*z**3); # conjectured by Simon Plouffe in his 1992 dissertation
 
@Adnan and what is superior about that language? not that it has anything to do with oeis
 
12:55 AM
Also, that sequence was randomly chosen using Math.ceil(Math.random()*276325)
 
@LeakyNun I'll answer some challenges with it to give an impression of the language.
0
A: Sylvester's sequence

AdnanOasis, 4 bytes (non-competing) Probably my last language from the golfing family! Non-competing, since the language postdates the challenge. Code: ²->2 Expanded version: a(n) = ²-> a(0) = 2 Explanation: ² # Stack is empty, so calculate a(n - 1). - # Subtract, arity 2, so use a(n - ...

 
i really need to sleep don't post anything interesting plz
Bai
 
@ReleasingHeliumNuclei wait
 
@Adnan how does it know a(0)=2?
 
CMC: Output the amount of time (in seconds) until Releasing Helium's next message (from.... NOW!)
 
12:58 AM
@RohanJhunjhunwala nope
 
@ReleasingHeliumNuclei :(
 
Well crap
 
@LeakyNun Before the code is used, it gets all digits at the end
For example code321
 
@Adnan so if a(0)=1e100 then rip
 
That would make a(0) = 1, a(1) = 2 and a(2) = 3
 
12:59 AM
what
so even 10 is rip
 
@Geobits Nice try :P
 
@LeakyNun yes, but I've never seen a case like that on OEIS
 
@Sp3000 That's what I get for assuming people have more than 30 seconds of self restraint :P
 
@Adnan ...
 
@Geobits you know what happens when you assume :P
 
1:00 AM
@LeakyNun It takes too much bytes to allow multi digit numbers
 
@Adnan how do you do a(n-2)?
 
I don't want to get my ass beat by jelly again
4
 
like fibonacci
 
@DanTheMan Obligatory formula stealing: SeriesCoefficient[z(1+2z+3z^2-z^4)/(1-5z^3),{z,0,#}]& (Mathematica)
 
@ConorO'Brien stop reading my mind
 
1:01 AM
@LeakyNun there's a builtin for that, c
 
@Adnan so fib is c+10
 
@LeakyNun fine
 
@Adnan Well that looks great out of context.... star
 
@Geobits Huh?
 
... Geobits! Go upstairs to your room and reflect on your actions!
 
1:02 AM
@LeakyNun Yes, but you can also use T instead of 10
So it would be 3 bytes: c+T.
 
omg it works
 
@Sp3000 How did you know where my room was??
 
@Adnan That confused the hell out of me until I realized that ² actually squares. You should add that to your explanation.
 
@Dennis Heh, I didn't?
 
@Dennis what else should it do
 
1:03 AM
²    # Stack is empty, so calculate a(n - 1).
 
Oh, hahaha
edited
 
@LeakyNun I don't know. Why would ³ refer to the first command-line argument?
 
@Dennis because you are ridiculous (jk
@DanTheMan [um] becomes u|m
 
@Dennis is jelly considered a viable compression method?
 
1:06 AM
@Adnan Looks like I'm going to need a new language.
@RohanJhunjhunwala I don't think I understand the question.
 
@Adnan can you do the primes?
without the built-in, of course, if you have any
 
@Dennis does jelly programs for kolmogorov comprexity challenges on a large selection of english plain text do significantly better in comparison to standard compression techniques?
 
@Dennis Staying in the "things that go with peanut butter" theme, you could name it Jam. But it would probably be better if you made it clear it was for coding, so maybe CJam.
 
@Dennis Tell me if you need help, because that was what Sequencer was meant to be :P
 
@RohanJhunjhunwala English text? Probably.
 
1:07 AM
@Dennis Aww, rip Oasis even before it has answered a challenge.
@LeakyNun No, it's crap with primes
 
You have some time. Currently busy with TIO.
 
@Dennis I always find it interesting that golfing languages, are comparible in their ability to exploit patterns than most standard compression libraries
 
@Adnan hamming numbers?
so you could add a built-in that says find the n-th number with certain properties
 
@quartata if you are interested, I have a TF2 spray with the logo from the PPCG design script.
cc @Downgoat
 
@LeakyNun No, that's not possible yet, but this is definitely on the to do list.
 
1:10 AM
@RohanJhunjhunwala Not really a fair comparison, considering zip et al. don't have a built-in dictionary. Would be interesting to compare it to Brotli though.
 
@Adnan so factorial would be n*1?
 
@LeakyNun Without builtin, yes
 
@Dennis oh, does Jelly actually have a built in dictionary of english words?
 
yay it works
 
Yes.
 
1:11 AM
Wow.
I need to set aside some time to read the documentation
 
Wow.
 
Why can't you undelete messages
 
I'm not sure why general purpose compression algorithms generally don't use pre-built dictionaries.
 
@Dennis is compression of english considered common practice?
 
Every time you visit SE.
 
1:14 AM
@quartata also, headcrab hat
 
@Adnan why are all of your quick-refs named info.txt?
 
@LeakyNun Because I'm lazy
 
@Adnan so u can do hodfstater's h seq
 
Is that a request?
 
1:17 AM
yes
 
0
A: Hofstadter H-sequence

AdnanOasis, 6 bytes (non-competing) Non-competing, since the language postdates the challenge. Code: nbaa-0 Expanded version: a(n) = nbaa- a(0) = 0 Code: n # Push n b # Calculate a(n - 1) a # Calculate a(a(n - 1)) a # Calculate a(a(a(n - 1))) - # Subtract a(a(a(n - 1))...

 
now what is the diff between N and 0?
 
It's when a value hasn't been preassigned yet
Honestly, I have no idea anymore
 
@Adnan wait, you did it before i requested
the ninja is strong with this
 
Hahaha
 
1:19 AM
Because full SE sites have higher point requirements for priveleges, will I lose priveleges when PPCG becomes a full site?
 
@Adnan is it memoized?
 
It can also calculate n = 1000000 in 40 seconds I believe
@LeakyNun Yes
 
@DanTheMan yes, unless you have over 20k
 
nice
@Adnan any cmc in oasis?
 
CMC: a(n) = sqrt(n) if n is a square number, else a(n) = 0
 
1:23 AM
rip
 
rip indeed
 
(I'm being biased because it's a(n^2)=n in Sequencer :P)
 
This is a good one: A003461
 
something like 4b-x4+4
 
I think this should work: x4-74N
 
1:29 AM
@DJMcMayhem s/0/5
 
It's only 1-indexed
 
@Sp3000 Jelly, 4 bytes: ½×Ʋ
 
Nice :P
 
@Adnan so it is not turing complete
 
@LeakyNun probably not
 
1:34 AM
@Dennis oh really? ;_; I'm even further away than I thought
 
I don't think it can even output Hello, World!
wait, it can
nvm
 
@Sp3000 Minkolang, 12 bytes: ndd1My2;=*N.
 
@Sp3000 Jelly, 3 bytes: R²i
 
@Sp3000 J, 14 bytes: 0:`]@.(=>.)@%: I don't think it's shortest, but it's fun
 
o_O R
(fyi it's A037213 if anyone's wondering)
 
1:35 AM
@ConorO'Brien :O Minkolang beat J! (But not Jelly. ;_;)
 
@El'endiaStarman J, 11 bytes: (*(=>.))@%: sorry
 
Your mascara is running
 
@Dennis y u always come up with clever algorithms
 
CMC: given n, calculate asinh(n)
 
1:38 AM
exempt
 
Can we say no built-ins?
 
Surely Jelly has... looks... huh? o_O
 
@ConorO'Brien Minkolang, 6 bytes: n7$TN.
 
;)
I picked a random builtin that Minkolang had :P
 
If Jelly doesn't have a built-in for a challenge, the challenge has a problem.
 
1:39 AM
....oh, I see what you did there... :P
 
is it possible in jelly?
 
Of course it's possible in Jelly.
 
@Dennis Feature request: Hyperbolic trig functions o_O
 
: chuck-norris-style jokes about Jelly
@ConorO'Brien there's a closed form
 
Maybe I should rush and post it as a challenge so I can outgolf Dennis!
 
1:40 AM
Actually, I think Jelly can still beat Minko without a builtin
 
0
A: Sandbox for Proposed Challenges

DanTheManShift and Sum (I need a better title) Write a program or function that given an input list of integers of length l, outputs the sum of all the lists of length 2*l-1 that are the input list padded with 0s to each side. (Please suggest ways of improving this description) For example, with the i...

 
@El'endiaStarman btw how did you set up your user profile for the OEIS account request?
like, what info did you include?
 
Okay... maybe not. Close though
 
@ConorO'Brien Uhh, it's been several months since I did that. Hmm...
 
do you think they'd give an account to an almost 16-yo? :/
 
1:42 AM
@ConorO'Brien The legal requirement is >=13 so yeah probably
 
@Sp3000 I got 5 bytes.
 
one has to request an account
 
@ConorO'Brien they gave me one
 
@ConorO'Brien I'm not really sure. If you can demonstrate you've got something to contribute, then that should help a lot. It'll probably still take a while for them to approve the account. Took like 2 weeks or something for me.
 
@LeakyNun how old are you? (ballpark)
 
1:43 AM
@Dennis Still hitting up the code page, gimme a sec :P (but nice!)
 
17
 
@El'endiaStarman I have lots of J codes to contribute to OEIS pages :P
@LeakyNun fantastic, I should be fine :P
 
@El'endiaStarman what's the use of having an OEIS account?
 
@Dennis Ah blast it all to heck. >_<
 
@ConorO'Brien which is almost my rep in k
 
1:43 AM
@EᴀsᴛᴇʀʟʏIʀᴋ You can edit stuff
 
@EᴀsᴛᴇʀʟʏIʀᴋ You have to have one to contribute anything.
 
@LeakyNun oh, cool XD
 
@Sp3000 For real n, that is. Based on the variable name, I'd assume it's an integer.
 
CMC: nth composite number
 
1:44 AM
@Dennis I have 6 for complex :/
 
@ConorO'Brien This isn't another Minkolang-biased CMC, is it? :P
 
@El'endiaStarman it might not be
 
@ConorO'Brien It's the same byte count anyway. n3$MN.
 
@Sp3000 Well, if n is real, so is asinh(n).
 
@Dennis Yeah, but ×ıÆṢ÷ı :/
 
Define: builtin
 
2&^, J
 
@Sp3000 there is a built-in in actually that does this
 
@LeakyNun Minkolang, 8 bytes: 1n[2*]N.
 
So... 2* in Jelly is fine then?
 
1:48 AM
@Sp3000 Ċ saves a byte.
 
@sp3000 eg conor's ans is valid
yes
 
@Dennis ... ah, was that your 5?
 
Yup.
 
Nice :P (haven't worked with complex enough to know the atoms)
 
@El'endiaStarman At least you tied Pyth on the composite number one e.f!P_
 
1:51 AM
@quartata tP
 
@Sp3000 Quite frankly, neither have I. :P I keep forgetting which one is conjugate.
 
@LeakyNun Good catch
Hmm that means it starts at 4 and not 1
 
I'm not sure which monospace font SE is using on the mobile site now, but I don't like it.
 
CMC: OEIS A008611.
 
@adnan d>T1
 
1:55 AM
@Adnan Jelly, 4 bytes: ’d3S
 
Noooooo
 
Yeah, this is why I didn't bother with an OEIS golfing language :P, although... @Dennis Feature request: generating function to series coeffs please :D
 
At least it's tied
 
Next time, pick one without a closed form. :P
 
@Dennis we can only do recursion
for which you have a one-byte built-in
 
1:59 AM
Okay, I'm taking the gamble with this one. CMC: OEIS A006190
 
yc+T
 
Nice
 
@Dennis ?
 
Well then, it's 4 AM here so I'm going to sleep
bye
@LeakyNun haha, it's not entirely fair since I just picked a sequence in my advantage
 
all is fair in love and war
 
2:09 AM
@Adnan language link?
 
@LeakyNun oh neat haha
 
@DJMcMayhem let's continue talking about Oasis so that @Adnan cant sleep
jk, just ask me if you have any problem
@DJMcMayhem u hv 14 hrs left to post a kenny-themed challenge
 
q|@s for nth composite :D
wait
nvm language isn't released yet >_>
 
???
 
he made a language, but hasn't released it yet
the nth composite program is q|@s apparently
 
2:14 AM
@LeakyNun no, not that language
basically, q is negation, | is primality, @ is composition, and s is sequence
 
@Adnan n%4 is 4e32T
@ConorO'Brien does "that language" refer to rectum?
 
@LeakyNun ಠ_ಠ
2 mins ago, by Conor O'Brien
nvm language isn't released yet >_>
 
@Adnan and n%2 is cT
@ConorO'Brien yes and you said the unreleased language is not "that language"
 
@LeakyNun not the language ???
 
nvm
 
2:20 AM
> Bassdrop Cumberwubwubwub 28
Hey, I remember being here for that! :P
 
Damn, New Sandboxed Posts has me beat :(
 
@LeakyNun sowee I don't know if I will....
 
@Geobits Huh, that just made me think: users will effectively never pass the feed bots, since they post every day. Except maybe New Meta Posts.
 
Except Martin Ender and Doorknob
But I'm like 90% sure they're not actually human
 
I guess we have no choice but to lock the sandbox for a few hundred days then.
 
2:26 AM
They've already passed the feed bots, since they were presumably chatting in here before the feed bots were created.
 
I'm pretty confident I can stay ahead of the Main bot for another year or more. I'm surprised Meta is so high, though. I thought they were created around the same time, and Main should definitely be more active than Meta.
Oooooh, Meta is a year older, so that makes sense.
 
0
Q: Process Builder unable to find Kotlin in path

Nathan MerrillWhen I run: new ProcessBuilder("kotlinc", "file.kt").start(); I get the error: Cannot run program "kotlinc": CreateProcess error=2, The system cannot find the file specified I've tried: If I check my path from windows, it contains C:\Apps\kotlinc\bin, and when I open explorer at that locati...

 
Damn, google's cloud machine learning stuff is pretty cool
 
I'm struggling to run my KoTH because of the above error
I'd appreciate any help :)
@El'endiaStarman I did not expect to be that high
 

« first day (2041 days earlier)      last day (2795 days later) »