« first day (2036 days earlier)      last day (2799 days later) » 

3:08 AM
0
A: Sandbox for Proposed Challenges

NonlinearFruitFaux Code While vary similar to a quine, Faux Code is slightly different. This almost-quine should output one random character for each character in its source code. The probability of each character is its frequency in the original source code. Specification Restrictions Standard quine co...

 
bah, its impossible to provide a JAR that compiles .java files without the JDK installed
 
To be fair, that makes perfect sense to me.
 
^
 
I was hoping I could include the tools.jar as a dependency in my JAR
 
@NathanMerrill isn't a JAR already compiles Java files?
 
3:12 AM
Ugh, one more upvote to 15k
2
A: Sylvester's sequence

Leaky NunBrain-Flak, 52 bytes <>(()())<>{({}[()])<>(({}){})({({}[()()])}{}())<>}<> Try it online! Uses this relationship instead: which is derived from this relationship modified from that provided in the sequence: a(n+1) = a(n) * (a(n) - 1) + 1.

Upvote this pl0x
 
@Downgoat Jar is a basically a zip file of compiled files
 
@LeakyNun omf you've almost caught up to me O___O
 
@Downgoat Thanks for the upvote
Now I'm at 15k
4
 
@NathanMerrill >_> wait, why would a jar file compile java files
@LeakyNun :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D
 
@Downgoat I assumed he was making some sort of tool kit. Most wouldn't.
 
3:14 AM
@Downgoat because Java has a compiler built into its tools.jar file, which comes with the JDK. I was hoping to include that JAR in my JAR
 
oh ok >_>
 
so, which is the lesser evil: including KoTH submissions into the project, and require people to compile the project, or to have a list of java files that'll get compiled at runtime and people just have to run the JAR with the JDK?
 
What dependencies does tools have? I imagine some sort of nasty chain that would make it easier to just install the JDK anyway, but you never know...
 
I cry, meant to flag a top notch comment hit the flag button instead, and clicked through the pop up.
On the Beep Boop Maggot Chat room
 
@NathanMerrill I'd just have people compile. That's the usual way it seems to be done, and I haven't heard many (any?) complaints about it.
 
3:16 AM
@Geobits it didn't come down to the tools.jar, but this:
1
A: Compile java files programmatically

cbeutenmuellerThere is no difference between web applications and standalone applications. You should not package the tools.jar into your webapp classpath. The classloader in Java generally only works bottom up. Thus the ToolProvider that is part of the jdk won't see your tools.jar in the webapp classpath (it...

 
Ah, I see.
 
@RohanJhunjhunwala So you flagged instead of flagging?
 
@Dennis sorry I meant to star
 
And people think that users don't read the popups >_>
 
@Dennis I feel so bad, if that flag went to you, I truly had no intention of doing so
 
3:18 AM
I didn't see a flag. Mistakes happen.
 
@Geobits I have. Not a whole lot, mind you, but it would have been way cool if I could just provide a standalone jar that would just work
 
@NathanMerrill Well, you can still do that. I don't think it's a huge burden to have the jdk installed on a code site. I've had to install several languages for koth in the past.
 
given, back then, I used to have no idea how Java actually worked. I understood the language but my knowledge of compiling was "press the run button"
so, the complaints were more likely due to my incompetence than anything else
 
java className.java @NathanMerrill easy way to compile and run a single file from the command line
Otherwise I just trust NetBeans :)
 
3:22 AM
you mean javac?
 
@NathanMerrill suprisingly no... it works fairly well java ClassName.java
 
@RohanJhunjhunwala right, if you have it installed. That's what he was trying to avoid making everyone do.
 
@Geobits oh you need the jdk for that?
my bad quietly sulks into a corner
 
you can do java file.java?
I know that you can do that for .class files
 
@NathanMerrill java -jar "someFile.jar"
 
3:23 AM
but I thought you had to run javac on them first
 
I don't think I've ever tried it without the jdk, tbh. It's one of the first things I install on a system.
 
right, for jars, you need -jar
@Geobits the only reason I found out is because java by default on my machine is the JRE
not the JDK
bah, I still think I want to go the compiling way
it has one distinct advantage: automatic downloading
 
@Geobits I couldnt get java file.java to work. Does it work?
I got an error could not find or load main class
 
@RohanJhunjhunwala Oh yeah, you need to javac it first
 
3:28 AM
told you :)
 
Hello, my name is Chatgoat!
 
I certainly hope it isn't.
 
@Geobits ಠ_ಠ
 
@Downgoat why is ChatGoat in TNB
 
3:29 AM
@RohanJhunjhunwala to see if he passes turing test
 
@Downgoat ok
@Geobits so javac "className.java" with quotes?
 
wouldn't the real turing test to have Chatgoat run your personal account?
 
@NathanMerrill idk
 
You don't need quotes unless you have spaces or something in your file name for some godawful reason.
 
3:30 AM
@RohanJhunjhunwala ^^
@Geobits ;_; y u do dis
 
@ lol chatgoat came up with a fairly inteligent comment or two there
 
okay ive turned him off
 
@ Except the second one
 
@Geobits so basically if you are on a windows machine
 
now for the question: Was that Chatgoat or me?
 
3:30 AM
How can he possibly pass a turing test in here, given that we all know Chatgoat?
 
Chatgoat
 
@Geobits is that me or chatgoat
 
Now @Downgoat if u fail the turing test we have greater issues
 
@RohanJhunjhunwala XD
 
@Downgoat That doesn't test if he passes, but if you fail :P
 
3:32 AM
@Geobits ...
 
could someone give me the output of putting (9!:6)'' into tryj.tk?
 
<promotion user="downgoat">
19
Q: Have better distinction between flags and stars

DowngoatI was on chat and I hovered over a message (which got flagged) and I saw this: Whaaaat??? It has four stars? It took me a bit to realize that this meant 4 flags, not 4 stars. Having the flag right next to the star also has the critical problem that it is very easy to flag a message instead of...

2
</promotion>
 
@Downgoat I believe that a couple of phrases doesn't constitute a turing test
a conversation is in order
 
Please up---vote--- goat that meta post so I don't cry next time I try to star and miss
 
@NathanMerrill doesn't matter ;_; well apparently I failed the turing test
 
3:33 AM
lol
 
cry is metaphorical in this sense
 
Next time, just don't also click through the dialog without reading it.
 
oh, I was enjoying the picture of you crying /sarc
 
thanks!
@NathanMerrill start the sarcasm block too
<sarc>...</sarc>
 
3:36 AM
@RohanJhunjhunwala @Downgoat ah, the pain of asking SE to remove annoying features.
 
4 mins ago, by Conor O'Brien
could someone give me the output of putting (9!:6)'' into tryj.tk?
 
@EᴀsᴛᴇʀʟʏIʀᴋ still probably gonna get no where
 
@EᴀsᴛᴇʀʟʏIʀᴋ "features" essentialy "its a feature not a bug"
 
SE pretty much refuses to address any bugs or features related to chat
 
3:37 AM
@RohanJhunjhunwala String sarcasticMessage = "oh, I was enjoying the picture of you crying"; System.out.println(sarcasticMessage);
 
@Downgoat 2 bounties hasn't worked for me, on a chat geature.
 
@Geobits that works too
 
@ConorO'Brien pls halp how put in
i typed and hit enter
nothing happneed
 
and?
oh
 
I'm in a generous starring mood today
 
3:38 AM
(9!:6)''
this precisely?
 
@Geobits you can put a string literal directly into a function call
 
yes, and ^ is console
 
@Downgoat you already did it! System.out.println("Hello, World!");
 
@Downgoat I know that, but then I wouldn't get to name it sarcasticMessage.
 
3:39 AM
@ConorO'Brien yes
 
@quartata thanks for inviting me to trash again
 
@NathanMerrill is that latex style?
 
@Geobits you could alias String to sarcastingMessage and do System.out.println((srcasticMessage)("sheep are totally better than goats")) iirc
 
@RohanJhunjhunwala meh, test /s works fine
 
3:39 AM
@Downgoat not really
 
imo
@Downgoat lel
 
@Downgoat That only goes to show you that you're learning the wrong parts of Java first :P
 
@Geobits does that work?
@Geobits isn't string a final class?
 
Most likely, yes.
You could easily write a wrapper for it that toString()s it through, though.
 
@Geobits ?
 
3:41 AM
But the cast would through a class cast exception @Geobits
 
Hmm... yeah, probably. The cast is pretty ugly there.
You could do a new SarcasticMessage("whatever") instead of casting.
 
wait, what is the type of a class
Object? I don't think so...
 
The type of a class? I'm not sure I follow. Classes extend Object, if that's what you mean.
Or do you mean the Class class?
 
@Downgoat class's dont have a Type really classses are a Type
A class is a thing
the Class class is used (partly for reflection) to describe what a Class is... (Geobits can probably explain it better, and I'm probalbly wrong)
 
Weeeeeeeell.... you can also get the class "class" by using .class, but that kind of usage probably won't be covered in class.
 
3:44 AM
@EᴀsᴛᴇʀʟʏIʀᴋ how does that work? test \s ?
@Geobits now you have me confused
you mean this.Class.getName() sort of thing?
 
@Geobits A class's class.class property returning the class's class won't be discussed in class?
6
OK
 
Exactly.
 
Seems legit
 
You can read the basics here, but like I said, it probably won't come up.
 
oh @Geobits its a static field (essentially)? String.class will give you the String Class ? where a Class is not necessarily the object itself but rather the Class and the data surrounding it?
 
3:47 AM
can't do it string is final
 
TIL from this video that there is such a thing as the "Eulalia" family of asteroids. (It's real!)
 
@Downgoat but you can always create a class that has a string who's toString just prints out the string fed in the constructor (like Geobits said)
 
Now I'm wondering if Eulalia has a source other than Redwall...
 
class Message{String msg="";Message(String in){msg=in;}public String toString(){return msg;}}
 
Time to completely rewrite my interpreter in a different language, fun
As it turns out, it is possible to hit Python's call stack limit without infinite looping
 
3:51 AM
 class Class{Class CLASS="class"}
 
@StevenH. Wait what? Isn't that normally like 10,000 calls deep?
 
@Geobits you gotta use this.msg
otherwise it will only change the constructor's local opy
 
@Downgoat The constructor doesn't have a local copy.
 
wat
 
Indeed it is, but when you're interpreting each character in the program as a function and one of the characters is a recursion function...
 
3:52 AM
then wat is difference between msg and this.msg
 
It could have a local variable named msg. Then you'd need this.msg to differentiate.
 
@StevenH. Is that necessarily a problem with Python though? You're gonna get stack overflows in any language where you recurse too deep.
 
It's common in constructors. So you pass in a variable and do something like this.xSize = xSize;
 
@Geobits ahhh ok
 
@El'endiaStarman you can allso set the recursion limit to any arbitary number
 
3:54 AM
Moreso, that problem may indicate a problem with code written in the language being developed.
@RohanJhunjhunwala Yeah, but if you need it much deeper than 10,000, you're probably doing something wrong. :P
 
@El'endiaStarman of course, but You can set the recursion limit to one, and instantly break python :P
 
Excuse me, I meant 1000 where I said 10,000.
 
But I really need to sleep
 
@El'endiaStarman Recursive definition for ! will break if you're trying to calculate a large enough number
Heck, even the recursive definition for the nth triangular number
 
@StevenH. You probably shouldn't be doing factorial recursively.
 
3:56 AM
Almost anything breaks on "large enough" though
If it hasn't broken yet, you're just not going large enough.
 
Until a point as I've created the builtin, I have to do recursive factorial.
 
Besides, 1000! will have about 1000*log(1000) ~= 3000 digits, which is pretty big anyway...
Oh, 2568 digits, to be exact.
 
Which is why I brought up the nth triangular number as a better example.
It grows a lot slower
 
Well, recursing for triangle numbers just seems silly to me.
 
Why would you even calculate the nth triangular number recursively anyway? There's a really simple closed-form formula, and I highly doubt a recursive solution is shorter.
 
4:01 AM
@RohanJhunjhunwala test /s
never, ever, use backslashes except for escaping something
 
\o
See? That's why. Stupid backslashes.
 
@El'endiaStarman less bytes:?i+Ry vs /+yii2
 
@StevenH. Huh, I'll be darned. Well, languages naturally have limitations anyway...
 
@quartata have you ever actually ascended?
 
4:05 AM
I'm planning to bring in a bunch of common OEIS sequences as built-ins eventually, so both of those will be obsolete, but still.
 
Also, I just realized it's supposed to be /+Yii2 unless I want to compute the n-1th triangular number.
 
@LeakyNun Hello. Already done :D
 
s/(\:\d+).+/\1 ninja'ed/
does : need escaping?
 
@Sherlock9 Mind if I post my solution?
 
4:09 AM
Go right ahead
 
> There's no need to return your item. Your refund has been issued.
^ message from Amazon when I went to return an extension cord I bought but didn't end up needing. <3 to Amazon!
 
@Sherlock9 Done
 
You always need an extension cord, unless it has some odd outlet type
 
Well now I have a spare :D
 
Are there any active wikipedians on here?
either commonly in TNB or here right now?
@HelkaHomba that's pretty cool
 
4:13 AM
@EᴀsᴛᴇʀʟʏIʀᴋ I'm sure most of us use Wikipedia often... ;)
 
@HelkaHomba Yeah, Amazon is great when it comes to returns/refunds. They once shipped me an open box motherboard that happened to be missing the WiFi card that should have come with it. Customer service ended up offering me enough money to by two of those cards.
 
(I can't think of anyone who's an active editor, though.)
 
@El'endiaStarman I meant the term as in editors. :P
@El'endiaStarman same, but idk
 
Not that I know of, but why do you ask?
 
4:43 AM
@Sherlock9 You're flooding the main page
 
Sorry
I was trying to edit in some links. I should have remembered that any edit gets shown on the main page
 
@LeakyNun @Sherlock9 Are you two from Indonesia? (If I may know)
 
Anonymous
Yep, even tag edits, which is very frustrating when a tag needs to be overhauled
 
I am. Leaky is from Hong Kong
 
@Anastasiya-Romanova秀 He's from Indonesia, I'm from Hong Kong.
 
4:47 AM
@Sherlock9 Hi. Salam kenal
 
@LeakyNun Do you have any ideas for variable prime twins codegolf.stackexchange.com/questions/91039/variable-prime-twins? I'm stuck on how to limit the answer to less than u
 
CMC: swap the top 2 items in a stack in Brain-Flak
@Sherlock9 to less than what?
 
@Anastasiya-Romanova秀 Hi. Tidak perlu se-formal gitu :D
> takes two integers as input: the difference between the counter and the "twin" as a positive integer k (well yes, I'm the younger) and the upper bound as a positive integer u (runtime consideration)
and gives output as an array or list of all i numbers lower than or equal u for which both i and i+k are primes. The output does not need to be sorted.
 
@Sherlock9 Tidak kuliah? Sekolah?
 
Kuliah mulai Senin depan
Masih libur
 
4:49 AM
@Sherlock9 Where?
 
I'd rather not say the name of the university, but just outside Jakarta
 
@Sherlock9 UI? ITB? I've been there :D
 
@Sherlock9 So just filter inside the range?
 
No, it's a newer university that started the year before I enrolled. Again, I'd rather not say the name, if you don't mind :D
@LeakyNun Honestly, I forget what the filter command is :P
 
> B0 (░): pop [a],[b]: push [[b][i] if [a][i] for i in len(b)], pads [a] with 0s if necessary; pop f,[b]: push values of [b] where f returns a truthy value
 
4:52 AM
@Sherlock9 Ahh, I see. I have family there
 
Thanks a bunch
That's neat :D In Jakarta?
 
@Sherlock9 Yeah. My family was Indonesian before 98
 
Anonymous
I have variable prime twins in 12 in Actually
 
@Sherlock9 Aku masih bisa sedikit bahasa Indonesia
 
Anonymous
I'm not sure that it can get shorter, but I'm sure @LeakyNun will find a clever way to chop off a few bytes :P
 
4:55 AM
@Mego I'm flattered
 
Anonymous
Ooh I think I see a way
 
Anonymous
Prepare to be flattened :P
 
@Anastasiya-Romanova秀 Interesting. Have you yourself ever lived in Indonesia?
Or just visited?
 
@Mego For heaven's sake. Even zip returns a strange object
 
Oh, and it's nice to meet you :D
 
Anonymous
4:56 AM
@LeakyNun That's because it uses itertools.zip_longest to do a greedy zip
 
@Sherlock9 Just visited a few times. I was born after 2000
 
@Mego idc, just fix it already
 
@Sherlock9 Bali is beautiful
Love that place
 
Anonymous
Actually my "shorter" solution ended up being longer
 
Anonymous
@LeakyNun It breaks with the list commands?
 
4:58 AM
@Mego I mean, you could run list() over everything in zip_longest and return that
 
Anonymous
So it does...
 
@Anastasiya-Romanova秀 It is. It is also a tourist trap in the south
Mego, may I post my 12-byte solution?
 
Anonymous
@Sherlock9 I'm trying to avoid doing that to keep memory usage more reasonable, and allow for infinite sequence support in the future
 
Anonymous
@Sherlock9 Go for it, I said last night that I'm not gonna post a solution. I'm gonna laugh if it's identical to mine.
 
Anonymous
@LeakyNun Wrong issue. The issue isn't that it returns a generator - it's that the commands that expect lists don't always work nicely with generators.
 
5:00 AM
@Mego I don't even know what went wrong here
 
Why are you using .?
 
Because I'm stupid
 
@Anastasiya-Romanova秀 Where are you at the moment? In terms of country
 
Anonymous
I'm pretty sure the issue is in your code
 
Anonymous
What's with the `\`?
 
5:03 AM
@Sherlock9 I'd rather not say the country :D
 
Fair enough haha
 
Anonymous
@LeakyNun This is what I think you were trying to do, but there's still another byte you can shave off.
 
@Sherlock9 Are you IBC?
 
Anonymous
Like the root beer?
 
Anonymous
@Sherlock9 Yep, that's identical to my solution :P
 
Anonymous
5:06 AM
Well, I used register 0 instead of 1, but close enough
 
@Anastasiya-Romanova秀 Google is not turning anything up, so what is IBC?
 
Anonymous
 
@Sherlock9 Indonesians born Chinese
@Mego Ha-ha
 
I'm almost certain that she is not asking if I'm root beer? I mean, I may be refreshing and delicious, but not drinkable ;P
@Anastasiya-Romanova秀 Fourth-generation Chinese-Indonesian
 
Anonymous
I just learn that Dr. Pepper owns/distributes both IBC and A&W in the US. This has shook my very foundation.
 
5:10 AM
@Mego Magnificent
 
Anonymous
A&W is clearly superior to IBC root beer, but the thought of them being owned by the same company rattles me.
 
"A&W is clearly superior to IBC root beer" is one of the wrongest things I've ever seen in here, and people claim to like crunchy peanut butter here.
 
Anonymous
Oh, so that is what gets you back in here.
 
Yeah, well it doesn't take much it seems.
 
Anonymous
And root beer preferences don't hold a torch to the people who think tabs for indentation is not only acceptable, but superior.
 
5:13 AM
shudders
 
Wow. Just... wow.
 
Anonymous
Crunchy peanut butter isn't bad. In fact, I like it. I just can't imagine any scenario where you'd use crunchy peanut butter instead of creamy.
 
That's about right. It's fine, but only if there isn't smooth available.
 
Anonymous
If there's not creamy peanut butter available, you make it available.
 
Anonymous
My dad once smuggled a jar of creamy peanut butter into an IHOP while he and my mom were dating, because he liked peanut butter on his pancakes, and IHOP didn't serve peanut butter.
 
5:15 AM
By "available", I meant in any nearby supermarket or convenience store ;)
 
Anonymous
If there's no creamy peanut butter near you, you need to get out of there, fast. The real estate value of your residence must be really low.
 
@Sherlock9 I should have said it Chindo instead of IBC
 
You should have said Chinese-Indonesian really
 
@Mego Well, I haven't had it happen except in Kuwait, and I'm not sure what the real estate market was like there.
 
Anonymous
@Anastasiya-Romanova秀 From my experience living in the southern United States, I'd expect that to be more of a derogatory term. Do people find that term offensive?
 
5:17 AM
@Anastasiya-Romanova秀 Sudah mulai kuliah belum?
I've only ever heard it used jokingly among friends. Not sure it's the most polite term, though maybe not outright offensive
 
Anonymous
@Geobits Being deployed in a foreign country as a military force is an entirely different story.
 
@Mego How come it's a derogatory term if I'm a Chinese born too?
 
Well yeah, but still. No smooth peanut butter? Ugh.
 
@Sherlock9 Yes
 
Anonymous
@Anastasiya-Romanova秀 I didn't say that it was. I'm just saying that it seems like it would be one, given other derogatory terms I've been exposed to, living in the most racist part of my country.
 
Anonymous
5:19 AM
@Geobits Sounds like they needed a shipment of freedom peanutty goodness.
 
Nowadays, it's Tiongkok for the country China, and Tionghoa for Chinese people, since "Cina" is a derogatory term.
 
Anonymous
So what you're saying is, if I were to donate foodstuffs to one of those "send food to the military stationed abroad" charity organizations, I should just load up a big box with creamy peanut butter.
 
Operation Smooth Delivery
 
Would the jars survive the trip?
 
Oh, sure.
 
Anonymous
5:22 AM
@Sherlock9 Plastic jars and lots of bubble wrap or foam peanuts.
 
Ah, fair enough
 
Anonymous
With foam peanuts, there's a bonus: those are much tastier than MREs.
 
Haha. MREs aren't nearly as bad as they used to be. Still bad, but now edible.
 
Anonymous
I dunno. I've eaten an MRE. It tasted like nothing, and I regretted the decision when the post-digestion woes hit.
 
Well, it depends on what kind you get more than anything else.
 
Anonymous
5:25 AM
I don't know what kind it was. It was handed to me on a dare in college. If it had any flavor to it at all, I might be able to guess, but it might as well have been a cement brick.
 
Oh, the cement flavored ones aren't the best ;)
 
@Anastasiya-Romanova秀 Are you coming to visit Indonesia again soon?
Or does your university schedule prevent that?
 
There's a better solution but I don't know it
 
@Sherlock9 I don't regularly visit Indonesia even if my family comes from there
 
Ah fair enough. I have family in America and I've only ever visited them once
 
5:31 AM
@Sherlock9 But my last visit was for meeting one of Math SE user
It's about last year actualy
 
Oh, very cool :D One of these days I hope to meet up with some PPCG users here, but travel money is hard to come by at this point
 
You met an SE user irl?
 
I gave her fiancee a Math SE T-Shirt @Sherlock9 as a gift
 
I didn't know there was a "Math SE T-Shirt @Sherlock9". I'm honored that Math.SE would commemorate me on a shirt :D
 
@DJMcMayhem Yes from the oversea, but only one or two
 
5:35 AM
Huh. I've thought it would be interesting to visit some PPCG people, but it would be kinda weird to set up
 
@Sherlock9 Misplace tag your name :D
Not entirely weird
 
On a less jokey note, I should go check out Math.SE and see if I can contribute. It seems like an interesting place
 
Yeah, but kinda scary over there
 
@Anastasiya-Romanova秀 Yeah, but you'd need to give out a lot of personal info to plan it
 
@DJMcMayhem Maybe it's hard for an adult
 
5:38 AM
@DJMcMayhem That doesn't do it. It moves them to the other stack to keep them in place the optimal solution is ({}<({}<>)<>>)<>({}<>). I had a proof of this but by harddrive was borked so you'll have to take my word that its optimal.
 
@Anastasiya-Romanova秀 wouldn't it be easier for an adult?
 
@DJMcMayhem I guess not. Consider a case a male user wants to meet a female user
Kinda weird, right?
 
@EamonOlive "I have marvelous proof of the optimality of my solution, but my hard drive is too small to contain it."
5
 
@Sherlock9 It was a truly awful proof, but yeah
 
@Anastasiya-Romanova秀 True but that's not because of age. Imagine an adult user wants to meet a minor. That would be even weirder
 
Anonymous
5:48 AM
I find it's best to just keep my internet life separate from my meatspace social life :P
 

« first day (2036 days earlier)      last day (2799 days later) »