« first day (3992 days earlier)      last day (1148 days later) » 
00:00 - 11:0013:00 - 23:00

13:00
^ high quality covid cases graph (of India)
for a golflang, i'd recommend focusing on making errors impossible over making them easily understood
it might make the non-error behavior even harder to understand if you invoke it by accident, but you'll also save someone a byte or two on something down the road :P
yeah i will do that
kinda forgot about it lmao
@UnrelatedString so 1÷0 return infinity?
and what should 0÷0 return?
inf, nan, 0, 1, the string 0÷0, the current date and time, whatever else you feel like
13:16
inf for ÷0 and 1 for 0÷0
someone's probably worked out what tends to be more useful but i'm not familiar with their results
@PyGamer0 APL originally gave 1 for 0÷0 but it was later decided that 0 was more useful.
oh ok
The average of an empty list should rather be 0 than one, no? (sum=0, count=0, sum÷count=?)
13:26
@UnrelatedString on the side it'll make aoc unbearable
13:37
@Razetime why?
errors are really nice in AOC
the more the merrier
even really badly written errors will at least tell you that you're doing something wrong
at aoc speeds you will fuck up, it's just a matter of how soon you realize what and how
in something like jelly/vyxal you run into specialcase after specialcase after specialcase+undefined functionality
13:39
its just a matter of to error or not to error?
what to error on and in what circumstances
A PL can focus on golfiness or rapid development, not both.
then i am focusing on golfiness since AoC is once an year
and this is what might happen: last minute bugs
so, golfiness is better
since code golfing is all year
so the language will get extensively tested or something
@Adám i read that as APL €_£
Well, "APL" comes from "A Programming Language" while I intended to start my sentence with "A programming language"…
 
1 hour later…
14:47
@DLosc You’re exactly right. Spent days finding a good mnemonic for "input without the last element", didn’t find anything so I chose knife because it gets rid of k (not a lot of words start with k)
(Sorry for the 2.5 months late answer :P)
List of epic languages (not in any order):
- APL
- Vyxal
- Jelly
- flax (self promotion :P)
@DLosc That’s mostly because I’m lazy and never finished it
@cairdcoinheringaahing angry French noises
2
15:05
Wow, are you going through all of TNB's logs since the last time you chatted?
Just searched for Brachylog to see if there was something relevant for me
oic
I’m not reading through months and months of TNB nonsense, I ain’t that crazy
@UnrelatedString But the errors should be made impossible in a sane way (e.g. not returning the -nth prime number for factorial of negative numbers :P)
 
2 hours later…
17:40
0
A: Sandbox for Proposed Challenges

double-beepIdentify a "reverse checkers" position Task A reverse checkers position is a chess position where every piece for one player is on one colour and every piece for the other player is on the other colour. Your task is to find if the given (valid) position meets these criteria. For example, this po...

tmw you realize that piece of homework you thought you did before break is due tomorrow and you didn't actually do it
They really should've altered the stuff below that line :P
CMC: remove the words that contain "*" example: two * three = a*b*c*d gives two * three =
Haskell, perhaps: unwords.filter(not.'*'elem).words (idk if it actually works)
17:59
CMC: remove the words that contain "*" example: two * three = a*b*c*d gives two * three =
@Adám ^ help wanted
Scala: _ split " "filter(!_.toSet(32))mkString " "
@Fmbalbuena Can we use regex?
What to do about the space between = and a?
18:02
Why didn't two * three = a*b*c*d become two * three = ?
ab*c gives empty string
Sure, but should two * three = a*b*c*d give two * three = or two * three = ?
Should ab* be removed?
Should *ab be removed?
@Fmbalbuena vtc as unclear. What exactly does "contain" mean?
Does ab* contain *? Does *ab contain *? Does ** contain *?
@Adám yes
@Adám yes
Should ** be removed?
@Adám two * three =
18:07
@Fmbalbuena Why was the trailing space removed?
What should abc a*b c*d def give?
I'm F***ing idiot gives I'm idiot
How about *=*?
@Adám wild guess: abc def
New emoticon
Aha, so we have to adjust spacing.
18:09
@KamilaSzewczyk correct
@Adám gives *=* because no letters.
*o*
OK, so your answers here + those in apl.chat are slowly converging on a solid spec.
Should we remove **? No, because it has no letters.
Can we assume that words are single-space separated with no leading or trailing spaces in the input?
Since it's a CMC, you could just interpret it any way you want (that's what I did)
This isn't a competition, CMC's are just supposed to be fun
Also, interpreting the rules any way you want lets you outgolf other people who stick to the spec more :P
@Adám No
@user Yeah, except @Fmbalbuena simultaneously asked me for "help" solving this, so I figured the CMC is actually an SO question in disguise.
Then how should adjacent spaces be adjusted?
@Adám I didn't help you to solve
18:14
E.g. what should A *b c give?
@RedwolfPrograms Can i post 13?
Well, you kind of did. You helped (or are currently helping) me understand what exactly the problem is.
@Adám oic
@Adám do this now.
@Fmbalbuena I'm not sure what you mean
18:16
@RedwolfPrograms Counting Room
@Fmbalbuena Do what now?
@Adám solve the CMC
@Fmbalbuena Oh lol. It's a gallery room, so I'd have to add you, and I don't care enough about the room anymore to take the time to do so :p
What was it for in the first place?
probably counting
18:17
Testing how SE counts number of messages in a room
@Fmbalbuena You'd have to help Adám help you first
I need to count to 100 25
@Fmbalbuena I'm sorry, I cannot. I don't know what to do when there are multiple spaces between words.
@hyper-neutrino Ohhh, that makes sense now. It's totally not obvious to a newcomer, I thought it was about french toast at first
@Adám a a*a a gives a
18:18
@Fmbalbuena I know this is probably a language barrier thing, but if you're asking people to go out of their way to do things, adding a "please" is usually appreciated
@Fmbalbuena Whoa, I don't understand how that happened at all. Can you explain?
^^ It can seem like you're ordering them if you don't add a "please" or "thanks"
[Space]a*a[Space] Returns nothing
@RedwolfPrograms Good point. Some languages (e.g. my native Danish) don't have the word "please" at all, so you have to phrase things in certain ways to achieve the same effect.
@Fmbalbuena OK, so the leading a stayed, but what happened to the trailing a?
so, split on spaces and remove all substrings that have at least one letter and one *
wait, that doesn't explain the a a*a a case
18:20
@hyper-neutrino Exactly.
@hyper-neutrino @RedwolfPrograms Do you agree with me moving the messages that concern this from the APL Orchard to here? (There's no APL code involved.)
Seems like it's probably just better here
What?
yeah, I'd be fine with that, it doesn't seem too on-topic to APL TBH so we can merge the two
27 messages moved from The APL Orchard
Oh wait, I read that backwards lol
But yeah, they're fine here
Seems like it's better to have them in one room rather than spread across two
18:26
Regex: [a-zA-Z]*\*+[a-zA-Z]* | [a-zA-Z]*\*+[a-zA-Z]* | [a-zA-Z]*\*+[a-zA-Z]* (Not working if there is more than a word without *)
a a* gives a this is correct but a a*a a gives aa
@Adám Do you understand?
So let's see if we can summarise the spec:
∘ Remove any non-space sequences that have at least one letter and one star.
∘ When removing such sequences, also remove up to 1 adjacent space before and after, even if this causes two non-space sequences to be joined.
@Fmbalbuena Almost. What does a b* c give?
Basically just removing any words that aren't purely made up of stars or alphanumeric characters and then formatting
a b* c gives a c
@Fmbalbuena OK, I think I understand now. What does a a* give?
a a* gives a
18:31
OK, now I understand.
We need to remove / ?(\S+\*\S*|\*\S+) ?/g
@Fmbalbuena That seems inconsistent with this case:
23 mins ago, by Fmbalbuena
I'm F***ing idiot gives I'm idiot
Wouldn't it be I'midiot?
Darn, you're right! So, no, I still don't understand.
a a*a a gives aa because bug
So it should be a a?
@RedwolfPrograms correct
18:34
huh
oh
Interesting...maybe words with a space on each side should be replaced with a space?
So my original summary spec was right?
@Adám yeah no
@RedwolfPrograms I'm not sure.
@Fmbalbuena What should a* b* give?
And what should a b* give?
18:35
a* b* gives nothing
a b* gives a
OK, so star-words are not just replaced by a space.
@Fmbalbuena Can you explain what's wrong with this:
∘ Remove any non-space sequences that have at least one letter and one star.
∘ When removing such sequences, also remove up to 1 adjacent space before and after, but leave at least one space if otherwise two non-space sequences would be joined.
∘ When removing such sequences, also remove up to 1 2 adjacent spaces before and after, but leave at least one space if otherwise two non-space sequences would be joined.
The abc a*b c*d def to abc def case is also interesting
@Fmbalbuena Please explain:
8 mins ago, by Fmbalbuena
a b* c gives a c
[S]b*[S] will replace to nothing
18:39
@RedwolfPrograms How so? That's plain: all the spaces are removed as part of the star-words, but one space is left to separate abc from def.
Does the a vs. b vs. c matter?
@Fmbalbuena But you said up to 2 adjacent spaces would be removed before and after.
I think it was just a misunderstanding and they meant two total spaces, one before and one after (the same thing you'd said)
hmmm i'm wrong
Oh, maybe you meant "a grand total of 2" while I meant "1 adjacent space before and 1 adjacent space after".
18:41
∘ When removing such sequences, also remove up to 1 adjacent space before and after, but leave at least one space if otherwise two non-space sequences would be joined.
((⊣,' ',⊢)/⍤((1=∘≢∘∪'*'∘⍷)¨⊢⍤/⊢)' '∘(≠⊆⊢)) I'm tired of trying to understand this question :P
@Fmbalbuena Isn't that identical to what I wrote?
@FawnLocke You can shorten that significantly.
You're right
ofc
I guess we are in the nineteeth byte now
OK, folks, I think we've got ourselves a CMC!
18:43
⋄((⊣,' ',⊢)/⍤((1=∘≢∘∪'*'∘⍷)¨⊢⍤/⊢)' '∘(≠⊆⊢))'Hello, a*c*v*d*w*d m*h*m World!'
@FawnLocke Not working, jk
loses info about adjacent spaces.
Oh, remove up to 1 adjacent space
@FawnLocke yes
Also, it'd fail on a b
I'm pretty sure '\b ?(\S+\*\S*|\*\S+) ?\b' ' ?(\S+\*\S*|\*\S+) ?'⎕R' ' '' does the trick in APL.
Can probably be shortened a little by reusing the pattern.
I forgot regex exists, parsing in APL is fun :)
18:50
(b,¨' ?(\S+\*\S*|\*\S+) ?'∘,¨b←'\b' '')⎕R' ' '' is best I have so far.
Test cases in case anyone wants to take on the challenge… Inputs:
"two * three = a*b*c*d"
"ab*c"
"ab* abc"
"*ab abc"
"I'm F***ing idiot"
"*=*"
"A  *b  c"
"a  a*a a"
"a a*a a"
"a   b*   c"
"a a*   "
"a* b* "
"abc a*b c*d def"
Outputs:
"two * three ="
""
"abc"
"abc"
"I'm idiot"
"*=*"
"A  c"
"a a"
"a a"
"a    c"
"a  "
"abc def"
It's pretty hard to understand right now
Agreed. Even with the step-by-step, I have no clue what's going on.
19:05
In other words,
Also, for a challenge, instead of test cases you'll have the first n terms
Consider each value (1's,2's,3's,...) separately. Per construction, they will always be written in decreasing order. Then:
* First each value k is repeated k+1 times: 1 becomes 11, 2 becomes 222, 3 becomes 3333, etc.
* Then if a value k is appearing k+2 times or more, each block of k+2 occurences is replaced by one occurence of k+1
So [1] becomes [1, 1] in step 1, then nothing happens in step 2, then it becomes [1, 1, 1, 1] in step 1, then [2, 1] in step 2?
no
but
111 gives [3] because there is three ones.
The number 111 or the sublist 1, 1, 1?
19:11
the list [1, 1, 1] then count how many ones and gives [3]
So [1, 1, 1, 1] becomes [3, 1]?
Or [[3], 1]
[1, 1, 1, 1] becomes [2, 1] then count how many twos and ones and gives [1, 1]
This seems totally different from the sandbox post
And also totally different from the description you gave above
this is the same, but other words.
0
Q: Play the Fruit Box Game

TheoPlay the Fruit Box Game Intro Fruit Box is a game consisting of a 10x17 grid of numbers, each between 1 and 9, where the goal is to clear as many numbers as possible in a two-minute time window. In order to clear numbers, one selects a rectangle aligned with the grid, and if the numbers inside of...

19:18
@Fatalize Hey, welcome back! Yeah, I've run into the same thing with Pip--I recently added S for Suffix and H for... Prefix. The mnemonic is "head," although it doesn't do what Head does in other languages.
@DLosc i have a Question
That's nice. It's good to be inquisitive.
in talk.tryitonline.net, Dec 4 '21 at 0:11, by caird coinheringaahing
@Fmbalbuena Again, if you want to ask me a question, just ask it. Don't tell me you have a question
@DLosc Why you like snoopy?
IDK, I think he's a fun character. He's usually cheerful, doesn't much care what people think of his antics, and has a vivid imagination. I aspire to be like that.
@DLosc why your name is Dlosc?
19:26
It's an abbreviated form of my full name
D..L.. o..s..c..
Note to self: Read challenges properly before critiquing
Yep. My name matches the regex .*D.*L.*o.*s.*c.* ;P
@DLosc osc seems to be oscar?
Nope, it's part of my family name.
19:29
ok, DL seems to be [REDACTED]
@Fmbalbuena Why is your name Fmbalbuena?
@Fmbalbuena Out of interest, where'd you get the idea for this sequence? It doesn't seem to be in the OEIS
@Adám don't think Fm, This is not real
@Adám My real name starts with S, not F or M.
https://vyxal.pythonanywhere.com/#WyIiLCIiLCJgU29wwqXhuZlcblNlYuKApuKGk+G5geKCg1xu4bmhzqBcblNv4oqNw7BcblPCrMKh4p+Hwrt0XG5T4oKsxL/Cq8KkXG5Tw5fihpNhXG7ihpTHkeKBvOKItVxu4oi04ouP4oenxItcblNp4oaUwqRcbsiuw7dcblNl4oml4oi14oaywq9cblNvcMKl4bmhXG5TYcKi4oyIXG7ihpDEilxuU2Hin5HCp+KJoMeTXG7huILhuItcbuKAoMO3XG5T4oay4biDbmFcbuG4rcqAXG5TwrvhuIplXG7iiJHHkVxuU3V04oiRwqRcbs+Ex41cbuG4iuG4i1xu4oC64oi0XG5TZWzihrPHlFxu4oi04ouP4oen4bmXXG5TaGnih6fiiYhcbuKAucOfXG7FgOKGs1xu4oaQxYBcbsOw4oms4oK06pydXG7EisimXG7EoOG5qsKj4bijXG5T4oCmx5Lii4/Co1xu4biK4oSFdmllXG7igoXihpBcbsK2z4RcblNl4oenxKFcbsSg4bmq4oazx5RcbuKItOKLj2VcbuG6hs6
@Adám ^
@user I try not to watch movies that are bad, b/c there are too many good ones I haven't gotten to yet. BUT, I did enjoy watching Cinema Therapy tear the Twilight movies to shreds, so maybe that's an option for you. :P
Are they so bad that they wrap around to being good or so bad that they wrap around to good and continue wrap around to bad? :P
19:44
IDK, you'll have to find out for yourself =P
:\
@RedwolfPrograms You know, they should design a placement test to measure how good students are at taking standardized tests... oh wait
Okay, that sequence Fmbalbuena was talking about has caused me to find like 20 variations that aren't in the OEIS
Fmbalbuena will take the secret to their grave :P
So my desktop computer has two 500 GB hard drives, functioning in a RAID 0 setup as one 1 TB hard drive, which is where the OS is installed. One of them has started failing occasionally, by which I mean I'll try to boot and it will say "Drive failed, not bootable" and then I'll retry it several times and run diagnostics and eventually it works.
Does anyone know how possible/easy would it be to swap out the failing drive for a different 500 GB hard drive? Could I just replace the hardware and keep my OS and programs intact, or would I have to reinstall everything?
19:57
You could transfer everything from the failing disk to a new one of the same size pretty easily I think
Just use something like a bootable linux thumb drive and dd everything from the old failing one to the new one.
Are you using hardware or software RAID?
@RedwolfPrograms I don't know, where do I look to find out?
I'm actually not sure, if you didn't set up the RAID yourself.
Ok
I think these were the disks that came with the computer when it was originally purchased, and I purchased it used.
I'd be making backups like every other day though, with RAID 0 and a failing drive lol
You can likely go into your computer's BIOS options and it should say if it has a hardware RAID controller
I'm betting on it being software if it's a desktop. I don't know too much about software RAID, though.
@RedwolfPrograms Yeah... I don't think I have much important data on there that isn't also in my Dropbox. I do also have a 1TB drive in there which I've used for backup. The main thing is, it would be annoying to reinstall everything.
@RedwolfPrograms I'll check
20:04
Is it windows or linux?
Windows 10
I use my laptop for almost everything and the desktop (which has a decent graphics card) for gaming.
20:33
heehee I wrote a script that can do my latin homework
20:53
@RedwolfPrograms rideo
So apparently you can run Linux apps that use a GUI on Windows using WSL2
It's still in preview and requires Windows 11 (and it probably breaks for lots of stuff), but this is so cool
Tell me that doesn't make you cry (in happiness and/or sadness)
21:09
Same energy as firefox on a chromebook
Man, I had a bunch of Linux-only applications I wanted to try out and I can't remember them now :(
I love how our abbreviated number of messages is 2000k not 2M lol
Should this be flagged as spam or VLQ?
VLQ would at least kinda attempt to answer the question
Spam, it's an exact copy
This doesn't seem to even be doing that, so I'd say spam
21:22
I'll just go with spam
Time to jump on the flag bandwagon and get a helpful flag :P
@user It's copying the opening of the question
They did change up a few words to synonyms :p
Seemingly randomly since some of them have rather precise meanings
slippery -> dangerous :P
@cairdcoinheringaahing Oh, didn't even see that
21:24
"partitions" -> "allotments"
I was wondering how it was dangerous lol
And I'm pretty sure CHQ considers exact copies to be spam
@user A team of well-armed mathematicians set out to find topologically distinct ways of dissecting a square into rectangles, but only one came back, spared as a warning to the rest.
21:48
CMP: If you were making a userscript to add a keyboard shortcut to a webcomic to go to a random comic, which key would you use? I'm currently using ?
Good idea, single key's probably easier to press
You could use /
That's covenient if your fingers are near the arrow keys on a laptop
I might hit it accidentally when hitting the Right shift key
What does that do?
22:00
And this is for the Oatmeal, which doesn't seem to have anything to go left or right :(, so my fingers won't be there
That's the self-destruct button
@RedwolfPrograms ...What the left one does?
Yeah but like...on a userscript viewer lol
If I'm going into an Incognito window while on a tab with the webcomic open, I don't want it to switch to a random comic if I accidentally slip and hit / instead of Shift
@RedwolfPrograms Oh I'm dumb
Wait no I'm not dumb
Or maybe I am, I'm confused, what do you mean by userscript viewer?
Meant webcomic viewer userscript
22:12
Oh, I haven't bound the Shift key (or any keys other than ? (now r)) to anything
00:00 - 11:0013:00 - 23:00

« first day (3992 days earlier)      last day (1148 days later) »