last day (152 days later) » 

8:40 PM
@Mr.Xcoder when you get this ping, Deorst should be ok to use for the array vectorization challenge
 
8:53 PM
@cairdcoinheringaahing Did you solve it in under 10 bytes?
 
@Mr.Xcoder I've got 11 bytes, but it doesn't output in the order required ಠ_ಠ
 
Well, then you didn't solve it
 
@Mr.Xcoder Make the ಠ_ಠ at you instead :P
 
Is there any way you can not sort the stack?
Also, no prime built-ins?
 
@Mr.Xcoder use k, but that only applies to the next command.
 
8:57 PM
Ugh
 
@Mr.Xcoder There are 3 or 4 prime builtins
@Mr.Xcoder It's not intended to be easy to be used :P
 
I kind of figured that
The empty program with input errors ಠ__ಠ
 
@Mr.Xcoder What's the message?
 
[10,9,8,7,6,5,4,3,2,1]
Well, I didn't expect that
 
Use E_ to output the whole stack, or -s as a flag
 
9:00 PM
Where in the world are the prime built-ins? CMD+F for prime returns nothing
 
@Mr.Xcoder What builtin do you want?
 
Any of them (preferably all)
 
Also, I get 6 matches for "prime"
 
In what file?
 
@Mr.Xcoder interpreter.py
 
9:02 PM
@cairdcoinheringaahing Umm
I will manually search then
Found them
 
?P -> is prime?
FP -> keep primes in the stack
Fp -> Remove primes in the stack
@Mr.Xcoder ^
 
Oh, no prime factors
 
@Mr.Xcoder get divisors, then filter by prime
 
I know lol
 
Ok, I have 14 bytes. Winner gets to post?
 
9:05 PM
Sure. I might fall asleep though
@cairdcoinheringaahing How can I map again?
 
@Mr.Xcoder what are you mapping?
 
Map with divisors over the input
 
@Mr.Xcoder I added implicit vectorization for some builtins. Divisors is one.
 
@cairdcoinheringaahing So D?
 
@Mr.Xcoder D is divmod
 
9:09 PM
For some reason I cannot find anything with CMD_F. What is divisors?
 
@Mr.Xcoder ED
 
Ok
@cairdcoinheringaahing So that's EXTENSON DIVISORS?
 
@Mr.Xcoder Try looking in this
@Mr.Xcoder Exactly :D
 
Now everything makes sense
What's the syntax for filtering? ED and FP must be combined somehow.
 
@Mr.Xcoder F followed by one of the given characters in the FILTERS dict
 
9:13 PM
@cairdcoinheringaahing How can I apply that on ED? EDFP doesn't seem to work
 
@Mr.Xcoder EDFP gets a given numbers prime divisors
@Mr.Xcoder F filters the whole stack
 
> EDFP doesn't seem to work
 
@Mr.Xcoder You have to flatten the stack
 
@cairdcoinheringaahing ED]FP
?
 
@Mr.Xcoder ] flattens the top value on the stack, E] flattens the whole stack.
Should we move this to a new room?
 
9:16 PM
Oh... I think I understand
@cairdcoinheringaahing Yes, you create it
 
@mınxomaτ can you move the last messages to ^?
 
@cairdcoinheringaahing ED gives [[1, 2, 5, 10], [1, 3, 9], [1, 2, 4, 8], [1, 7], [1, 2, 3, 6], [1, 5], [1, 2, 4], [1, 3], [1, 2], [1]]. EDE] gives 9. Why? Will move there now.
 
From this to this message should work
@Mr.Xcoder hi
 
@cairdcoinheringaahing Hi
@cairdcoinheringaahing ED gives [[1, 2, 5, 10], [1, 3, 9], [1, 2, 4, 8], [1, 7], [1, 2, 3, 6], [1, 5], [1, 2, 4], [1, 3], [1, 2], [1]]. EDE] gives 9. Why?
 
@Mr.Xcoder I would recommend adding -s to the arguments to see the whole stack, rather than the top value
 
9:19 PM
This is the stack: [[[1, 2, 5, 10], [1, 3, 9], [1, 2, 4, 8], [1, 7], [1, 2, 3, 6], [1, 5], [1, 2, 4], [1, 3], [1, 2], [1]]]
 
@Mr.Xcoder Divisors of 1 through 10 reversed?
 
Yes
@cairdcoinheringaahing Deorst tells me 1 is prime
 
Dammit, I just realised I need to add 2 bytes to output
@Mr.Xcoder check the code for isprime in interpreter.py
 
@cairdcoinheringaahing What should I see there?
 
@Mr.Xcoder it never checks for 1, so it considers it a prime number :P
 
9:22 PM
WHY?
SHRUG
 
63 messages moved from The Nineteenth Byte
 
@Mr.Xcoder I was trying to get that function added before Dennis got round to pulling it, so I rushed it.
 
Hey @DJMcMayhem. Want to join in? :P
 
I'm good
Thanks though
 
9:25 PM
@cairdcoinheringaahing How Can I remove certain element from a list?
 
@Mr.Xcoder if the element is at depth 0 in the stack, push said value, then Fe
That removes all instances of said value
 
NVM, found a better way
 
@Mr.Xcoder ooh, do tell
 
Wait, lemme check if the built-in is relevant
@cairdcoinheringaahing Any way to do list[A:]?
or stack[A:]?
 
Hang on, checking. If not, I'm gonna make that the functionality of h
 
9:28 PM
What was the way I wanted... [:len(input)]. NVM then
brb
 
@Mr.Xcoder Yeah, I came across that. I have no idea why 10 is there
 
Any idea on how to remove?
 
@Mr.Xcoder FYI, to push 1 to the stack, you need to add the literal prefix l
 
DISCLAIMER: I might suddenly leave for short periods of time because I should be sleeping.
 
And pushing 1 will push it to the start, as the stack should be sorted. kl1 will add it to the end
@Mr.Xcoder That's fine, no problem
 
9:33 PM
Why does that give: [10, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9]?
(EDE]kl1Fe)
 
@Mr.Xcoder I think its processing the array as strings, meaning that 10 is added first 1 < 2
Adding a k in front of E] should fix it
 
Nope, it just adds it in the middle instead
 
@Mr.Xcoder It unsorts the stack, which helps preserve the order
 
It doesn't work
 
9:35 PM
[2, 5, 10, 3, 9, 2, 4, 8, 7, 2, 3, 6, 5, 2, 4, 3, 2]
Notice the 10 at index 2?
 
Does the output list order matter? — Digital Trauma 23 hours ago
 
NVM
 
@DigitalTrauma Yes. Otherwise it would just be "output the set of all prime factors of the input" — Stephen 21 hours ago
 
I know that matters, I answered it 8 freakin' times, was just dumb.
 
@Mr.Xcoder I only count 7 :P
nvm, I can't count
 
9:39 PM
@cairdcoinheringaahing How many bytes do you have?
 
16 bytes, including output
 
I am done too (I thinK)
@cairdcoinheringaahing Let me try to golf. I have 18 bytes
17 bytes now
16 now
Done.
@cairdcoinheringaahing EDkE]l1FeFPkEQE_.
 
@Mr.Xcoder I think 16 is the goliest it can be. And EDkE]EQFPkl1FeE_
 
That was yours?
 
Yeah, basically the same, but different ordering.
 
9:42 PM
So we both post?
Or just you?
 
@Mr.Xcoder yeah, why not?
 
Sure... shh (might want to edit that part)
 
@Mr.Xcoder Yeah, I always upvote solutions that use my languages.
 
Ok, just do it tomorrow.
 
Sure thing. Bye (and sleep well)
 
9:45 PM
Bye (and thanks).
Seems like a relatively nice language (if you fix the quirks)
 
@Mr.Xcoder I'm planning on making a v2 were it focuses mainly on golfing rather than sorting.
 
Ok, bye!
 
10:29 PM
room topic changed to Deorst: A room about Deorst and golfing in it (no tags)
room topic changed to Deorst: A room about Deorst (github.com/SatansSon/Deorst) and golfing in it (no tags)
 

  last day (152 days later) »