« first day (2076 days earlier)      last day (2770 days later) » 

10:06 AM
I think I need to make a section, that, when run forwards: given one, passes with stack value one out the right side, and given 0, passes with stack value 0 out the right side
but run backwards, given -1, passes with stack value 0 out the left side
I think I did it
pa pa id id op op
nice symmetry, I think
also I realised this might be a good language for that hyperquine challenge
wait
soz, this is actually it
pa pa id el op op
how it works: el is essentially a nop, it gets skipped first time, and the values are decremented and incremented twice
the other way, as op op el id pa pa
it increments to one, skips the first pa, and decrements on pa
Actually I think I made this to complex. Also I just realised how noisy I am right now :( soz
op pa id el is the version I'm thinking of as the proper simple way
this will be difficult still
hmm, think I might have it now
 
10:23 AM
What is this lang
Is this Kappád?
 
Moorhen/Moorhens
 
Ah
So are you making a truth machine in Moorhens?
(Also are you continuing with Kappád?)
 
also what are you talking about?
 
Your golfy version of Turtled
Or are you going to ditch it
 
oh, not doing much on that
 
10:26 AM
Ah
But if you do make a full lang, please call it Kappad
 
ehhh, I have a feeling it wouldn't be very golfy
oh, I realised the issue
 
@Qwerp-Derp What's the point
 
Of calling it Kappad?
Or what
 
Of Kappád, when there already is a golfy ASCII-art language
 
I'm just saying if he makes one
That he should name it Kappad
@ASCII-only You know what Kappa is right
 
10:30 AM
Small lang
Kåppåd
Ångström
 
@Qwerp-Derp Yeah, a Japanese spirit
 
huh, why is this happening
 
@ASCII-only A water spirit, which is why it fits with Turtled
Also it's this
 
10:31 AM
huh, why is there a two there
oh
I forgot el wasn't a nop
ok, finished
op pa id el pa id el ai op id ai re id op id pa ai
also I should probs ask for a pull request now
 
@StewieGriffin D: the left is slightly different from the right
 
halp how do I make a pull request :@
was I supposed to fork the repo, or was that incorrect'
pls halp
wait I found it
 
10:58 AM
lol just realised I can use dupe ToS to golf so many
op pa id el pa id el ai op id ai pi ai
 
11:16 AM
@ASCII-only I've noticed... I have written a solution in MATLAB, but it's not really golfed yet...
I was looking for a pattern in the indices of the red elements, but 2 minutes didn't lead to anything useful... Maybe I'll find something if I look a bit more...
 
There's kinda a pattern
It's just the lines above and below the leftmost red edge (the one of height 2)
Below and above that it's identical, below it the left and right indices increase and decrease by one respectively
 
@ASCII-only Edit: A pattern I could use to substantially shorten my code :P But as I said, I've used no time golfing it...
 
Substantially shorten? I doubt there is
 
It's readable, and that means it's not ready to be posted :P
@ASCII-only I have each of the indices written manually in a list now... It's a large part of the code... If I could do something like: 400-23*(1:10), instead of 377 354 ... , it would help a lot...
(Those were completely random numbers)
 
@StewieGriffin Each of the indices?
 
11:27 AM
1
A: Implement a Truth-Machine

Destructible WatermelonMoorhen (buggy, working interpreter available here), 38 bytes op pa id el pa id el ai op id ai pi ai Note this doesn't print, because printing only happens at halting, so it just puts infinite ones on stack Explanation: Commands can be (most of) all english words, and the command they execut...

goodnight
 
The linear index for the first and last red element on each row. The first indices will be: 90 92 98 100 109 115 ...
90 = 5*21+5 (The first red number is the fifth element on the fifth row). 92 = 5*21+7 (The last red number (of that chunk of numbers) is the seventh element on the fifth row etc)
It's not pretty, but it works :) But I got to go :)
@ASCII-only, hope you try to write up a solution to it :)
 
@StewieGriffin But I don't really know any language I can use to do it golfily ;_;
 
11:45 AM
@DestructibleWatermelon What language is that?
 
12:25 PM
@Qwerp-Derp Nope, but I'm thinking of making one. Not an eso or golf lang though.
 
This is an amazing answer
5
A: A Mouse with Dynamite

Ton HospelPerl, 216 215 bytes Includes +2 for -0p Give input on STDIN. Use % for external walls, # for internal walls, 0 for empty spaces, 8 for mice and r for the starting position. You can transform and run the examples as: cat dynamite.txt | perl -p0e 's/.+/$a^=$&/egr;s//sprintf"%-*s",length$a,$&/eg;...

 
@Geobits Really? Interesting (AFAIK the only non-esolangs made by people here are Cheddar, Pytek, Elegance and Zephyr, and none of them are finished, it's a really small number compared to the number of esolangs PPCG has)
 
I mean, if by "esoteric" you mean "basically nobody will ever use it", then yes. But it would be straightforward and not insane.
 
Yay
I have no idea if Logicode counts as non-esoteric
 
12:45 PM
@StewieGriffin @StewieGriffin grabs
 
@DestructibleWatermelon Thanks for the PR/ Nice Truth Machine! I think I need to add runtime output and a proper no-op. It might destroy your truth machine for the time being but hopefully it will make it easier to program in overall.
 
@Geobits what do you have in mind?
I love language design :)
 
Starting with Scratch, and ripping all the Scratch out of it. Making it all text based instead of drag/drop, adding useful things like arrays, etc.
Nothing big or impressive planned yet.
 
what does scratch have that's interesting besides its UI?
 
Not much :D
 
12:55 PM
> I want it exactly like Scratch. Except not at all like Scratch.
 
> "basically nobody will ever use it"
1) I've never written an interpreter/language 2) lesson for the kid as well
So think of it as a learning experience :)
Think something between Scratch and Love2D, but without the lispiness.
 
I might have answers
Actually, scratch that, wasn't following the conversation at all
Haha, get it, scratch that
 
@Geobits Protip: Use Bison/its equivalent in the language you're using, it's really fast and good to learn
 
The parser or the meat? I could go for a good steak right about now.
 
The parser generator
The meat is also useful if you're spending long periods of time on this or working on it during a meal
 
1:05 PM
 
@Geobits You broke the link
 
Yeah... stopped caring after a couple edits to try to fix. It wasn't that good a link anyway.
 
Like I said, not that good :P
 
That isn't much meat
 
1:08 PM
Make more than one trip
Move the wagon to the meat
Go back and get help to carry
 
It's not easy to carry meat when your whole team is struck with dysentery.
 
> How can you have any pudding dysentery if you don't eat your meat?
 
Hey, Timmy... leave that meat alone.
 
@betseg i think i do now
 
@Geobits oocqotd
 
1:12 PM
@TimmyD Haha, believe it or not, I only thought of that directly after pressing enter.
 
I'm writing a brief root cause for a bug, and I'm having trouble deciding whether I should be using the word "argument" or "parameter" here:
> We modifed a parameter inside of a method and did not make it clear to the caller that it would be modified.
If we are speaking from inside of the method then it is an argument. If we are speaking outside then it's a parameter. How do I make it clear?
sigh this is the hardest part of fixing bugs
 
I would use parameter, since you're talking from the point of view of the method. Parameters are what the code expects, arguments are what gets passed.
 
But what got modified was what got passed.
 
OK, meaning pass-by-reference? So the method modified the variable, and the caller wasn't aware that it was something that was going to get modified?
Because that's not how I first read the sentence.
 
Oh, that's how I read it.
 
1:18 PM
I read it more as "the API changed, and we didn't notify the caller"
 
I passed a list of results to be printed, and the method appended an item to that list unexpectedly.
 
Surprise!
 
Do you think NASA would hire me?
 
First call: "Here are your results. This message was generated at Jan 1, 1900 XX:XX."
Second call: "Here are your results. This message was generated at Jan 1, 1900 XX:XX. This message was generated at Jan 1, 1900 XX:XX."
You get the idea
 
How about input variable?
> We modified the input variable inside of a method ...
 
1:21 PM
@betseg Getting a visa may be difficult if you're 16 and Turkish, even if they want to.
(I'm making a couple assumptions here)
 
Not now, after university :p
 
This is why you also include an "if" with your "would"
Do you think NASA would hire me if <condition>?
 
@betseg Oh. Well it depends. NASA might not be a thing if Trump wins. He might nuke all the launch pads.
 
You can still go work for SpaceX
 
@Geobits Or turn the launch pads into nukes.
 
1:23 PM
What about CSA or ESA?
:p
 
@Rainbolt I've always wanted to be one of the nameless "science" henchmen in the mad scientist's lair.
Not this guy, to be clear:
 
or input data
> We modified the input data inside a method ...
Completely unrelated -- I love the alt-mouse-drag in Notepad++
 
That's the block select, right? (haven't been on win in a while)
 
Column select
 
Is that like alt+shift(hold), click in visual studio?
 
1:30 PM
Dunno. Never used VS.
 
@TimmyD Yeah, that's what I meant, didn't know the name. Selecting arbitrary blocks of text.
 
Like that?
 
Alt-mouse-drag for me just moves windows around atm
 
CMC Time!!! Given a string composed of solely lowercase ASCII and space, output the letters [a-z] that are not in the input string (in any order). Example -- 'The quick brown fox jumped over the lazy dog' --> '' ... 'bcdfghjklmnpqrstvwxyz' --> 'aeiou'
@Rainbolt Yep, precisely.
 
Isn't that just a loop with !contains() or equivalent?
 
1:34 PM
Sure, whatever. That's why it's a CMC and not a full challenge.
 
I suppose that's true. The last CMC I did ended up being almost twice as long as some full answers I've done :)
 
That shows the power of rep
(It makes people write small code)
 
i;f(char*s){i=97;while(i<'z')if(!strchr(s,i))printf("%c",i++);}
^ is in order
 
Nice. I came up with 69 for PowerShell v3+
([char[]](97..122+32+32)+[char[]]$args[0]|group|?{$_.count-eq1}).name
 
Wait ^^^^ doesn't work
I don't know why
 
1:43 PM
Non-impressive 79 in Java:
void f(String a){for(char c=96;c++<122;)System.out.print(a.indexOf(c)<0?c:"");}
 
Hey all
 
Hi
 
I have a question about Python keyword arguments
 
56 using betseg's approach -- param($n)[char[]](97..122)|%{if($_-notin[char[]]$n){$_}}
 
When I use a function f(a, b=[]), reusing f has problems where what gets stored in b may wind up in the later class of f, yes?
What if it's f(a, b=[1]) where b is non-empty by default?
Should I use a tuple instead, since I don't need to modify b at any point, just redefine it.
 
1:47 PM
Works now:
i;f(char*s){i=96;while(i<122)if(!strchr(s,++i))printf("%c",i);}
 
52 bytes using implicit casting -- param($n)97..122|%{if($_-notin[char[]]$n){[char]$_}}
 
^^63 bytes
 
@TimmyD 05ab1e 3 bytes AI-
 
That's awesome.
 
i;f(char*s){for(i=96;<122;)if(!strchr(s,++i))printf("%c",i);}
62
i;f(char*s){for(i=96;i<122;)if(!strchr(s,++i))putchar(i);}
58
 
1:56 PM
I cannot seem to find the right combination of search terms to use to find headphones that only I can hear (so as to not annoy my coworkers)
 
What kind do you prefer? Buds, on-ear, over-the-ear?
Over the ear is usually easiest to get "leak-proof".
 
"Headphones that don't leak sound"?
 
@Geobits I prefer over the ear. And thank you both for the word "leak". I hadn't thought of that one
 
48 bytes -- param($n)[char[]](97..122|?{$_-notin[char[]]$n})
 
Current buds go inside my ear. When I got them I asked my cubicle mates to tell me if they could hear it, because I can't listen to myself from outside of myself obviously. Three months later they told me they could hear me.
 
1:59 PM
Seems a bit belated
How loud do you play whatever you listen to at work?
 
My audio goes from 0 to 100 in Windows 10, and I keep it on 25. YouTube full volume. So 25% total basically.
 
Odd. My audio only goes to eleven :/
2
 
I think my sound is controlled by realtek software
 
Turn it up to eleven
 
2:03 PM
Hallo
Got my multi threaded application to work finally after a week of messing around with it
 
@Mego Congratulations! And you (currently) live in Austin?
Any answer on my keyword question?
 
@Yodle welcome to threads
 
Well it was more of the fact that I didn't know why it wasn't working before until I realized the guy who did it before me had sleep calls on the main thread that caused the RDC that was open to sleep, too, so they were basically useless.
Now it's a lot more consistent, just passed test 36 with no failures so far, the one before probably would've failed a quarter or so.
 
Apr 23 at 6:34, by mınxomaτ
> Some people think "I know, I'll use threads!" and then two they hav erpoblesms.
7
 
2:14 PM
My headphones have volume control, so I have no idea what volume it's usually at
 
I keep my volume at 37%
floor(3/8*100)
 
@betseg Who's there?
 
Heh, luckily I don't need anything complex for this app, just an alternate thread that waits for the server to do stuff since it's a bit slow. Using events wasn't working cause apparently windows sends window creation events before the window actually appeared on the server, which made it very inconsistent.
 
2:46 PM
> hav erproblesms
minxomat has hooves confirmed
Oh wait deer is bovine...
 
@Downgoat Uhm, that is part of the joke, not a typo.
2
 
Some newbie should make their username aboard. Then everyone can say Welcome aboard!
 
Anonymous
@Geobits I appreciated that joke, even if nobody else did :P
 
Anonymous
@Sherlock9 Dallas
 
Ooh, nice.
 
2:53 PM
I knew someone would, and that's all that matters :P
 
@mınxomaτ :|
 
@betseg On my laptop I keep it 20%. I use headphones, though, and my headphones also have volume control.
 
I did too... Almost pointed out that BBC's catch up player has a volume range up to 11 too
 
@Mego I'm a fan of Rooster Teeth, so just reading the word "Austin" made me jump a bit :D
 
@Sherlock9 Red vs Blue?
RWBY?
 
Anonymous
2:54 PM
@Sherlock9 You'll still have issues if b is mutable. Either use an immutable object like a tuple, or use a sentinel value like None and assign the default in the function body
 
I still haven't watched the whole of RvB yet. Definitely a fan of RWBY, though
 
@Sherlock9 I've seen through season 13. I haven't started 14 yet.
 
Ended up using a tuple. Thanks Mego
 
Anonymous
@Sherlock9 I love RT. I was hoping to work in Austin, but it looks like it's going to be Seattle
 
Anonymous
@Sherlock9 Rainbolt's brother is actually an animator at RT
 
2:56 PM
@Mego At least you can add to the gum wall.
 
Anonymous
@Sherlock9 Anytime :)
 
I'm embarrassed to say that when I mean "the whole of RvB" I meant, I think I'm on episode 6 of season one :S
That is a lot of pings
 
Anonymous
Sorry :P many threads of conversation going on
 
@Mego That is amazingly cool O_O
 
@Sherlock9 Well, you haven't even gotten to the best stuff yet. It gets much better quality when it switches to newer Halo games.
 
Anonymous
2:57 PM
It also gets much more dramatic
 
Yep, yep. Just need to sit down and watch through it.
But what do I do with my free time? Golf.
 
Holy s***. Anyone know how I can disable getting chat flags from SE?
 
@Mego What branch of Google will you be working in? (If you're allowed to say)
 
Anonymous
And play Steam games :P
 
I just got a flag for something genuinely inappropriate, and I'm at work.
 
Anonymous
2:58 PM
@mbomb007 You can't. Just don't open the flags and you'll be fine.
 
I was on a retreat from Monday until this morning, and I still found time to work what will become my divisor tree answer.
 
@mbomb007 Offer a ton of bounties until you're <10k
 
@mbomb007 I don't think there's a way to do that except go back under 10k network-wide. Which is no easy task.
 
@Mego Yes, and play Steam games. Just got into Paladins recently
 
@mınxomaτ brb claiming all my chat messages are joke
 
Anonymous
2:59 PM
@DJMcMayhem I'm not 100% sure. I should be figuring that out today.
 
Hopefully not Allo. I have a feeling it won't work out so well :P
 
Anonymous
@Downgoat You mean they're not?
 
@Downgoat Wait, they were not?
 

« first day (2076 days earlier)      last day (2770 days later) »