« first day (2468 days earlier)      last day (2670 days later) » 
00:00 - 18:0018:00 - 00:00

18:01
0
Q: Divide us into teams!

altskopA group of characters (String input) approaches you and pleads you to sort them into four teams (String[] team), as they are unable to do so in a proper order themselves. Constraints: They want it to be done in the order they came in (i.e., input.charAt(0) will always go into team[0], and inp...

@ThomasWard permission denied: go get me coffee
@Pavel sudo go get me coffee
u=2;s(x)=x+u;a(x,y,z)=foldl(x,fill(y,z));b(x)=y->x(y,y);print(typeof( a(∘,b(∘),4)(s)(4) ))
So far; I'm still getting the hang of the functions I defined
in Charcoal HQ, 12 secs ago, by SmokeDetector
@ThomasWard brews coffee for @ThomasWard
now, see, SMOKEDETECTOR knows how to treat me :P
HE gets me coffee.
@ThomasWard I was going to give you my coffee from smokey, but I couldn't remember the command lol
I thought it was !!/brew
18:03
@DJMcMayhem well Smokey at least knows how to brew coffee :P
@ThomasWard Yeah you technically can but that wouldn't be too fun. Having an interesting, although longer approach is not a problem!
@ThomasWard isn't SmokeDetector a bot?
@ThomasWard Thomas Ward is not in the sudoers file. This incedent will be reported.
@DJMcMayhem if you're unlucky enough to land on TCOM's Smokey instance, it has !!/doom which just spews evil for five seconds before dying.
Okay, so I have a supercompositor function that applies composition repeatedly
18:03
@Pavel cough xkcd *cough
Now how do I obtain a super-supercompositor function that iterates the supercompositor?
@DJMcMayhem That is the reference, yes.
And also where I got the text from.
lol
@Pavel bet you wouldn't do that for Shog lol
My implementation of Bash (on windows) has neither permissions to be denied nor sudo.
<-- has never had an interaction with Shog in his life
that's actually a good thing
when you have Shog randomly show up and bother you
chances are you did an evil
@J.Sallé maybe...
@Mr.Xcoder Yeah that's why I didn't steal. I did however give you the keys to solving the thing for Python3 :P
point not withstanding, an interesting approach is interesting. :)
i totally didn't check the static bytecounts, i would have found yours to be the shorter solution :P
I like adding a little complexity for uniqueness :)
18:07
@ThomasWard ಠ_ಠ I want a coffee brewing bot
Too bad.
(I also have that at 1028-point font by the way, the resolution of that image is insane but I have it)
someone should create a programming language with the name ಠ_ಠ
even if it's a joke xD
@ThomasWard lol sounds good.
@ThomasWard there is one already
@ThomasWard already done.
must see
i must have missed it
18:10
i lol'd xD
@Scrooble nice profile pic. Sneak&Show/Grishoalbrand player?
@Mr.Xcoder I'm surprised I didn't get yelled at for more screwups. I did try to golf it initially though. Guess I missed a few bits :)
@J.Sallé No, just fast ramp into Genesis Wave
Announcement: APL learning session in 13 mins.
@ThomasWard New proposed avatar:
user image
4
18:19
LOL I am tempted now xD
Sorry it's scaled weird XD
nah its fine. I can fix it with hax.
but later.
@ThomasWard no thx i'm good
waht the heck I did not need that image in my screen
@DJMcMayhem chrome was zoomed in far cause I was reading tiny text, so all my screen has is that image
@Riker I'm sorry, would you prefer having this image on your screen?
no thx I'm good
18:22
@ThomasWard Can you give TIOBot write access in here?
I could but that would be abuse of privs without the room owners giving permission
cc @DJMcMayhem
lol Riker, DJ and Thomas all had Adáms icon for a moment for me
@ThomasWard I think he's asking for write access in a different room
ah i'm blind
Of which he is an owner
@ThomasWard You have my permission to do that thing in that other room. :P
18:32
:P
@ThomasWard yelled at? Sorry I was trying to give help, not yell :P
18:46
@Adám what does TIOBot do? Maybe you should fill the "About me" section of that bot?
@NieDzejkob It isn't my account.
18:57
@Mr.Xcoder figure of speech. My TTS reader on the one computer is evil
I see TIOBot in here... but it needs to be in the other channel lol
@ThomasWard It was here cuz I logged in on the wrong account; It was in the other room for a bit but I have to leave in 20 mins and my server is off :(
what's it need to run
maybe I can spin it up on one of my systems
just java & account credentials
both easy, I can loan it out via AquariusOne, my friendly bot-self xD
@ThomasWard cool. I'll publish the most recent release on github and link it in a second
19:00
i assume it interacts with TIO.run so I don't have to have the entire TIO infrastructure up :p
@ThomasWard correct; it could work on any TIO backend if I added the option, but right now it's just tio.run
-2
Q: Display the binary form of the input value!

Mohmmed AsifConstraint :- function need to be called to display the binary form of the input value :- number of variables allowed are 2(including input variable) :- use of bitwise operators are mandatory :- should be optimistic solution

@SocraticPhoenix any particular Java version or does bog-standard OpenJDK 7+ work?
so I know which system to drop it onto :)
@ThomasWard I think it may need to be Java 8, since I'm pretty sure there's a lambda somehwere
19:04
that's fine, OpenJDK 8 is usually what I put on :p
in APL, 17 secs ago, by Socratic Phoenix
I am somewhat confused
@SocraticPhoenix when room owners or moderators move messages from one room to another it sends you an invite to the room that the messages ended up in. Unless it's behind lock and key.
@ThomasWard Oh, cool
@ThomasWard Current bot. There are probably still bugs...
probably are. But i'll spin it shortly, gotta dig out my SSH key lolo
@ThomasWard One big one is that it doesn't seem to properly connect to multiple rooms, but that could have just been latency.
well this is going on a very powerful uplink so we'll see.
symmetric 1Gbps :P
@ThomasWard Why can't i have interwebs like that -_-
19:14
well i have servers :p
servers are in datacenters
datacenters have powerful inets.
I have a server.... one server... in my dad's apartment in virginia... with terrible wifi xD
it's off...
yeah i pay for colocations :P
@ThomasWard and I don't know what that means :P
my equipment, their datacenter, i pay for the uplink
@SocraticPhoenix looks like it's up, and it'll stay online until I kill it :)
yay for always-on servers and linux containerization :)
19:29
it looks like it replies a lot faster too, though that may just be an illusion. Probably helps it's on a fast uplink though :)
Hopefully I can get the tiobot account working... I may just ask or answer questions as it to legitimately gain rep -_-
@SocraticPhoenix well AquariusOne has reputation. I posted an answer via it to Ask Ubuntu, its home account, instead of my writing the answer. That got it enough rep (two upvotes at least) to start using chat. Since then, no problems.
but yeah, that's really all I've used it for. Or I've given it explicit access in rooms where I am god, but that's its own story :)
or to login and see what something looksl ike to an unpriv'd user :0
@SocraticPhoenix the GOOD news is that this is on a very powerful box too, I tend to run all services inside LXD containers on an Ubuntu box with 2 dedicated CPUs and 8GB RAM. And so far I'm not anywhere NEAR max usage either
Like I said, bugs.. is there a stack traces?
not unless you stop using slf4j. It didn't stacktrace error either
But I don't use slf4j; the chat API does... xD
19:36
:p
well it didn't stacktrace error
Then I blame the API and claim it as not my problem
yeah i found the socket error via sniffing
i have another process on the box that sniffs for chatexchange sockets and yells if it explodes.
this is because of Smokey :P
19:54
I assume, of course, that we wouldn't want the TIOBot in here :P
cc @DJMcMayhem because I know you were here earlier :p
@ThomasWard nah it would be very disruptive
indeed.
Anonymous
@ThomasWard Nope. We have a strict no-bots policy in here. Only the Feeds bots are allowed. Sometimes we make exceptions, but only for very specific circumstances (like the moderator election - we had a bot in here that computed the winners from the vote data when it was released).
oh I can understand that one perfectly :)
we're very much the same over in AUGR, though we permit SmokeDetector because it helps us squish spam so easily heh
and as I said above this one won't be an exception to that rule
19:56
i think i missed that in the lag
points at Campus Internet being crap
Anonymous
We had a TIO bot in another room called DataBot, back when TIO was first made
as I said, was merely curious :)
Anonymous
But it hasn't been updated to work with the new API, and the room has since frozen
@Mego yeah TIOBot has its own home, and is in the APL channel for their thing heh.
works pretty decently it seems.
Anonymous
Calling for feedback - I know it needs a few example runs, but other than that - are the rules clear? Did I miss anything that needs specifying?
20:12
@Mego How exactly do I say that wish is no longer usable? Could I just have a key of chars representing statement, or is there a particular phrase to output?
Anonymous
@Pavel The output format isn't important, so long as it is unambiguous
Anonymous
Rather than outputting each individual card's name, you could output a different character for each
@Mego So I could write, say, a literal character $ and say that represent wish not being usable anymore?
Can I just output a number for wish count/int change and use the context of the card drawn for which it is?
Anonymous
@Pavel Sure
Anonymous
@Pavel Sure
20:15
Cool
Anonymous
I dislike challenges where the output strings take up a huge amount of the byte count, so I prefer to allow any unambiguous output scheme
0
A: Sandbox for Proposed Challenges

OkxHow many Latin Squares? code-golf number A Latin Square is a square of size n × n containing numbers 1 to n inclusive. Each number occurs once in each row and column An example of a 3 × 3 Latin Square is: [[1, 2, 3], [3, 1, 2], [2, 3, 1]] Another is: [[3, 1, 2], [2, 3, 1], [1, 2, 3]] ...

Okx
Okx
feedback? ^
20:40
> new Chain()
TypeError: Class constructor Chain cannot be invoked without 'new'
:|
@NewSandboxedPosts oeis formula is a tre-cursion
Okx
Okx
@Uriel Wikipedia definition is better: en.wikipedia.org/wiki/Latin_square
you think it's good though?
@Okx sure, the question is good, and it's actually nice to have a non-trivial sequence
Okx
Okx
thanks haha
i thought an np-complete sequence would be interesting
upvote it if you like it
20:57
What does this program do?
IIRC it was a compiler forkbomb
@Downgoat It just recursively calls itself twice?
Okx
Okx
@Adám stackoverflow.com literally
Isn't it enough to do
o(){
  o();o();
}
main(){o();}
@Downgoat It's not gonna forkbomb until runtime
21:00
oh actually looks like it's just code to cause stack overflow
@Adám Yeah, that would be equivalent
@DJMcMayhem unless you have a real crappy compiler
forkboom?
:P
@Uriel i.e. cheddar
In fact, how does it ever reach the second call of o()?
21:01
@Adám it doesn't. Probably useless call
o(){
  o();
}
main(){o();}
should be enough.
Maybe even main(){main();} ?
main(){main()} (not really)
Ah ninja'd
@Uriel Yeah, and in a PL I don't even know what is!
that is good example to test LLIR infinite loop detect hm...
@Adám C?
21:03
@Adám that's c, but probably valid in a dozen other langs
@Uriel "valid"
74
Q: Shortest program that throws StackOverflow Error

True SoftWrite a program that throws a StackOverflow Error or the equivalent in the language used. For example, in java, the program should throw java.lang.StackOverflowError. You are not allowed to define a function that calls itself or a new class(except the one containing main in java). It should use ...

@Adám would work the same*
@Adám Out of curiosity, what non-APL languages do you know? Do you work on the APL implementation in some different language?
if your recursion isn't in a condition, it will always either result in 1 iteration or infinite right
21:04
@DJMcMayhem I don't contribute to the APL implementation other than with ideas for the C(++) programmers to implement. Although parts of Dyalog APL are written in APL.
It's not a fork bomb. The program does not make any copies of itself.
@Adám So you work on the APL parts of it?
It wouldn't even use particularly much memory unless you set a huge stack size.
CMC: forkbomb
@Downgoat How would you get 1? I think it'll always be infinite unless it's in a conditional
21:06
@DJMcMayhem I could, but have not, other than reporting bugs in the APL code.
Anonymous
@Adám :(){ :|: & };: (not even remotely original)
@DJMcMayhem func f() { return; f() }
@Adám <WARNING> THE FOLLOWING CODE IS DANGEROUS! DO NOT EXECUTE, IT WILL CRASH YOUR COMPUTER HARD
Python, 27 bytes (according to TIO):

import os;while 1:os.fork()
@Mego What language is that?
Anonymous
21:07
@Adám Bash
@Adám main(int a,char**b){system(*b)} I I think should work
Anonymous
@ThomasWard You don't need the parens around 1
@ThomasWard brb executing
@Downgoat That'll stack overflow but not fork bomb.
@Downgoat This is also not a fork bomb since it grows linearly, not exponentially.
21:08
Fork bomb means each iteration doubles
Anonymous
@Downgoat main(){while(fork());} is shorter
@DJMcMayhem Wrong, it will not stack overflow.
It will create many procesess though.
@Downgoat I actually made a program that did this by accident once.
@Mego wait, c has 'fork' as a built-in?!
It was supposed to be a program that launched another command, given in the args
And then I forgot to strip off the 0th argument.
Anonymous
@Uriel No, but the library containing fork is automatically linked when compiling with gcc
21:09
@Downgoat lol
@feersum please experimentally show :P
@DJMcMayhem It shouldn't stack overflow
@Downgoat I have, see my last message.
It actually took 5-10 minutes for my computer to become unusable.
I didn't know what was happening for a while; the responsiveness of the OS gradually decreased.
@Mego If the player has both a use of The Stars and uses of Wish, which does the player use to save themselves?
A real fork bomb should bring things to a halt immediately, I believ.
Anonymous
@Pavel You mean The Fates?
21:11
@Pavel A fork bomb. :P
@ThomasWard while: doesn't work
@Mego Yes, fates.
Sorry.
E: Dead internet is dead
1 moment
Anonymous
I just clarified that - they use The Fates
What is exit code 124?
21:12
@DJMcMayhem Also indent is needed.
Anonymous
@Adám Application-specific
@Mego I see. Cool.
@DJMcMayhem fixed both parts; the while loop and the indent for my code.
You can remove a space for -1: import os;while 1:os.fork()
also fixed :P
point is don't run it you'll fubar your system
@DJMcMayhem should probably say this is not the most original solution, this is the typical python example of a fork bomb xD
just... reduced slightly.
21:23
@Adám APL, 8 bytes: {∇&¨⍵ ⍵}
Okx
Okx
nice tio link now i can forkbomb tio
Anonymous
@Okx That obviously won't work
Okx
Okx
yeah...
TIO has dedicated forkbomb detection.
21:37
@DJMcMayhem Invalid syntax. Works if you replace the semicolon with a newline.
21:56
@Adám 0/10 not killed by TIO so it must not be a fork bomb
@Pavel I'm not sure what exit code 124 is, but I suspect that it is the APL interpreter stopping the fork-bombing before TIO does so.
@Pavel Also, it spins off APL threads, which TIO doesn't detect.
Okx
Okx
special apl threads that don't act like normal threads?
@Adám I think it's some sort of TIO bug. There normally can't be anything between the timing info and the exit code.
@Okx Yes.
@Pavel Huh, you're right, Didn't notice. That is odd.
22:15
@Mego what lib is that?
Anonymous
@Uriel glibc
23:05
How ironic that "T9, which stands for Text on 9 keys, is a (…) technology for mobile phones (…) that contain a 3x4 numeric keypad" (Wikipedia).
23:16
You can theoretically do it in 6 buttons, which is 5 data bits and a clock button.
@ATaco well, there's the issue of getting mortals to buy and use it
Or you could do it in 5 buttons if you just considered releasing the buttons as a clock signal.
(But then the 00000 case wouldn't be achievable)
23:36
I never figured out how T9 works.
I once had a touchscreen phone that simulated the 3x4 keypad entry scheme for texting. It was great.
> infinite loop in nodejs, good performance
> good performance
don't you hate it when your infinite loop takes too long to execute forever
23:52
0
Q: Matrix class c++ dynamic array as arguemnt of function

Lis LouI want to implement a Matrix class. I coded an array of arrays of pointers. When I set the values of each element of the array to 0 with a for loop, it works fine (apparently). But when I try to declare a function of my class (setvalues) to take the values of a 1D array and store them in the matr...

@NewMainPosts Somone please closevote/hammer
00:00 - 18:0018:00 - 00:00

« first day (2468 days earlier)      last day (2670 days later) »