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

12:01 AM
@Dennis I'm making a command line tool meant to help people code in brainfuck. Would you mind if I used your ascii table brainfuck code in it's catalog feature? (It'll be open source, and attribution will be given to you under "Dennis" and in the form of a link to the post I just linked)
 
@ConorO'Brien Everything on SE can be used with attribution iirc
 
@StepHen I know, but I thought it'd be rude not to ask him
 
oh ok :)
 
(and I think you don't even have to attribute code snippets)
 
hi
i'm back and better than ever
 
12:05 AM
@totallyafloppydisk I thought Hyper was the one that first linked it
 
i think it was xcoder
 
@totallyafloppydisk oh I dunno their profiles are the same color
 
@totallyafloppydisk make a BF derive with those 7 commands :P
fine another one somewhere
 
just use ... for the 8th :P
> could you include an online fiddle to test this, please – t-clausen.dk Jul 5 '16 at 7:49
XD
 
12:09 AM
ok, how do I simplify this code? chars = "".join(sorted("".join(translation)))
where translation is a list of strings
 
a="".join;a(sorted(a(translation))
 
@ConorO'Brien i don't think this is for golf
 
@ConorO'Brien hm, is there a shorter human readable version? :P
although it would make a good CMC though I guess
 
what did you expect from a room for a golfing site
 
aka can I do it in 2 calls
 
12:12 AM
you can do it in 1
 
* with standard functions
:P
 
eval('"".join(sorted("".join(translation)))')
 
@ConorO'Brien ok I think I'll leave it xD
 
also i used python currying! :P
 
12:13 AM
u did?
 
was totally unnecessary
1
A: Finding your partner

totallyafloppydiskPython 2, 59 45 bytes -14 bytes thanks to Emigna. lambda x:lambda v,l=sum(x,()):l[l.index(v)^1] Try it online! Takes input through currying. find_partner(list)(value) I've always wanted to use currying. :P

but didn't lose bytes either way
so yay
 
@totallyafloppydisk w/o currying is shorter i think: lambda x,v:sum(x,())[sum(x,()).index(v)^1]
 
oh
;-;
thanks though
@StepHen oh wait kay is used twice
 
@totallyafloppydisk oh no
 
12:29 AM
1
Q: Enumerate a Cell Notation

Dean BruntSo we're all hopefully familiar with Spreadsheet 'A1' cell notation. It's simply an alphanumeric representation of the positioning of said cell within a grid. The letter(s) represent the column positioning of the cell, and the number represents the row. The 'letter' part can consist of 1 or mor...

 
0
A: Sandbox for Proposed Challenges

Luis MendoReal base conversion code-golf base-conversion math arithmetic number We've had a few challenges for base conversion, but all of them seem to apply to integer values. Let's do it with real numbers! The challenge Inputs: A real positive number x, expressed in base 10. A target base b. This w...

 
12:58 AM
@NewMainPosts is it just me that has no idea how to derive a number from the column letter?
 
@totallyafloppydisk base-26? mostly
 
@ConorO'Brien Not at all, go ahead.
 
@Dennis thanks!
 
@StepHen no it's bijective
 
@DestructibleLemon ? it's just base-26, just 1-indexed instead of 0-indexed
 
1:06 AM
?
no it's a bijective base
 
@totallyafloppydisk [...'AAC'].reduce((p,c)=>p*26+c.charCodeAt(0)-64,0)
 
It's bijective base 26, a slightly different thing.
For base-to-integer conversion, it doesn't matter if it's bijective though. Positional notation always work in the same way.
@StepHen Tell ImageIdentify how it did: What the heck?! → Hmm.. Is one of these better? fictional character, Tweety, Butt-Head
 
@Dennis ok so now we have 5 new nicknames for you now
 
The first one to call me Butt-Head gets a surprise. >_>
 
@DestructibleLemon "Hmm... I'll flag this comment and let 'fictional character' take care of it"
 
1:15 AM
@StepHen well, if we include that it becomes 6
 
So proton is looking like a pretty neat language so far.
 
@ATaco well it kind of is able to use the entire Python standard library
 
I'm more intrigued by the syntax.
 
yay glad people like it :D
@ATaco the syntax is very strange but I hoped some people would like it :D
 
Documentation when?
Oh wait, the wiki page.
 
1:21 AM
yeah, incomplete but started
if you understand python and JS you should get Proton :P
Knowing Cheddar can help.
 
this is the closest thing I could find to an emoji for pacman: ◔
 
It'd be nice if I could do something like 0 .times(ind=>print(ind))
But there's probably a better way to do that
 
@DestructibleLemon ɞ
 
Or just add support for int * function
 
@ATaco that'd be cool
although how do you differentiate between int * function and int * (function returning int value)?
 
1:24 AM
:| proton needs command chains
 
what's a really basic, turing-complete stack-based language?
 
@StepHen oh
 
Don't you need to call the function to do that anway? Such as 3 * functhatreturnsint()?
 
@StepHen CJam :P
 
@StepHen How basic?
 
1:24 AM
@ATaco like 20-30 commands at most
less the better
 
Ah, Well that throws RProgN out the window.
 
@StepHen :| why
 
@ASCII-only I'm making a stack-based esolang, I want it to be turing-complete, and I want to know what the barebones I'd need would be
 
Hm Underload looks like it has potential
 
1:28 AM
@StepHen Only one flow of control statement is needed for turing completeness, and that is "While (top of stack) Is truthy, do"
Top of stack can optionally be popped if you want.
 
@StepHen brainflak
 
@DestructibleLemon that's got two stacks though, I don't really want to mess with that
 
wait ignore the first one I missed the stack part of the message
@StepHen um well you kind of can't have tc without having some other way to store memory
unless you count retrieving from under the stack
 
@DestructibleLemon ... like most stack-based langs
 
@StepHen Wierd too
 
1:30 AM
which basically means you create two stacks, but one is underneath
 
RProgN has a Stack and an Associative array.
 
so it's not really messing that much up
 
One stack generally isn't enough for TC.
 
unless you have some other way of having memory that isn't TOS
also miniflak only has one stack
so try that
 
Thinking of BadStacks, I want to try to write a C-like language that compiles to Brainfuck
 
1:32 AM
or just a way to switch the ToS with a different part of the stack
 
@ATaco And who said that
 
I said Thinking of BadStacks, not speaking of.
And I was thinking of badstacks because I was thinking of Stackbased langauges I've written.
 
there is an annoying bug that is currently causing ungolfing
 
@ATaco so c but without the advantages of c?
 
And BadStacks is a language that compiles to brainfuck with a compiler written in brainfuck.
@DestructibleLemon Precisely.
 
1:33 AM
yeah we should probably work on that project a bit more some time...
 
@HyperNeutrino yay +1
 
ಠ_ಠ
 
Bobby was an alright idea, shame I never finished him.
 
I had one called appletree I might have made...
nothing to do with apple, apples, or trees
I just like apples
 
I might write a BadStacks interpreter with a memory viewer, it'll make writing a Bobby compiler easier.
 
1:35 AM
@HyperNeutrino face of disapproval -1 use something less common
 
༼ つ ◕_◕ ༽つ
(still tacoscript generated) :P
 
@ASCII-only σ_σ
 
@ATaco we also need to make something with proper conditionals
and keywords even maybe
like, with an actual syntax and that kind of thing
 
i is confuz
I added a feature into my Parser for future use and I was adding that feature in just now and I just discovered that it was already there :I
 
Well atleast you're consistent.
 
1:38 AM
hm?
 
You wanted that feature once, and you wanted it again.
 
lol
welp :I turns out I need to create another special parser rule
 
I am pissed. My brand new Parrot Mambo drone just flew away randomly. I think it may have landed in the large mountain about a 1/4 mile away
 
rip
wait you were unable to control it?
 
Is it just me or has the youtube desktop interface mobile-ized?
 
1:49 AM
@HelkaHomba definitely has
 
doesn't look like it to me... then again, I can't remember what it used to look like
screencap?
 
@HyperNeutrino yeah it just flew away after i set it hovering
0/10 would not hover again
 
:I I think someone might have accidentally overrode your channel
so did you try to unhover
 
Yeah
hit land
 
huh that is weird
 
1:52 AM
But it could not override the channel since I am in the middle of nowhere
 
0
A: Sandbox for Proposed Challenges

Magic Octopus UrnUnsort an Input Given a collection of pritnable ASCII characters, if-and-only-if they are sorted, randomly shuffle them. A random shuffle means each character is equally likely to appear anywhere in the string as any other character in the string. However, the two random shuffles that should not...

 
On a side note, this guy on YouTube has a bunch of cool sorting algorithm visualizations :D
 
2:12 AM
Aug 12 at 15:36, by Conor O'Brien
@HyperNeutrino the lines are like 100+ chars long lol
ಠ_ಠ
that's hardly ever the language's fault
 
@totallyafloppydisk exactly
 
wait shiz i am still floppy disk
 
@totallyhuman ??
 
look at my display name
well i just updated it but look at it on the other messages
 
@totallyhuman :| no other messages
 
2:27 AM
2 mins ago, by totallyafloppydisk
wait shiz i am still floppy disk
> by totallyafloppydisk
 
taco is made of cheese confiemmed
 
2:43 AM
@totallyhuman I think you means legos == cheese confirmed
 
no is taco
@StepHen also *confiemmed
 
@ATaco how do you know it's not referring to the place?
 
Because the additional info about the match is things like "Cheese"
 
ok
for reference here is an actually decent image identification
 
3:04 AM
hElO
HoW IS eveyone this fine dAY(/niGht)
 
uh hi
why the random capitalization?
 
3:28 AM
I'm sure it's a code...
EOHWSAYG ..?
 
3:51 AM
somehow i doubt that...
 
also there is a typo
 
4:19 AM
hey look at this bad code formatting I did
line_equation1 = ((flat_top_triangle[1][0]-flat_top_triangle[0][0])
                                         /
                  (flat_top_triangle[1][1]-flat_top_triangle[0][1]))
>:( using sorted on tuples returns a list
 
0
Q: Determine your language's version

MD XFYour challenge is to write a polyglot that works in different versions of your language. When run, it will always output the language version. Rules Your program should work in at least two versions of your language. Your program's output should only be the version number. No extraneous data. ...

 
4:44 AM
 
my triangle drawing program is getting messy...
my triangle program is also bugged ;_;
1000000000
1100000000
1110000000
1111000000
1111100000
1111111000
1111111100
1111111110
1111111111
0000000000
why isn't the extended part in the middle ;_;
 
5:12 AM
ok it appears the issue is rounding errors
round(0.5) = 0...
ok that looks like it's fixed now!
party!!!!
 
@DestructibleLemon that's not an error that's a feature
python has bankers rounding
(I'm assuming ur using Python)
 
I guess...
but it made my triangles look bad...
 
a preceeding even digit(in this case 0) makes 5 round down
 
but then again I might just be the kind of person who over analyses bitmap triangles
@Maltysen ok rounding features
well I just added a mod 1 check for .5 and if it is .5 it uses math.ceil
so now that has happened
ok so I have done the flat base triangle drawing part of my algo
time to copy paste and modify
because I make undry programs
 
@DestructibleLemon nah just do math.ceil(x-.5)
 
5:19 AM
@Maltysen I mean I could do that but I'm going to rationalise this as readability
 
> readability
 
@HyperNeutrino yeah xd
it's not a very consistent rationalisation but anyway
 
lol
and btw I meant int(x+.5)
 
@ConorO'Brien Oo cool +1
proton development is on pause starting Friday for about 2 weeks so are there any features people want added before then?
 
5:29 AM
0
A: Sandbox for Proposed Challenges

fireflame241Tic-Tac-ACK! Given an n by m Tic-Tac-Toe board as a string in a specific format, output the list of columns of the board. The specific format is: Example: n=3, m=3 ___n___ / \ m m m / \ / \ / \ OXO XOX -X- That is, it matches the regex ([OX-]{m} ){n-1}[OX-]{m}. Example Input...

 
@HyperNeutrino Calling + where one of the arguments is a string implicitly casts the other argument to a string and concatenates them.
E.G. "foo" + 2 yields "foo2
 
O good idea thanks
 
int * func does func int times.
 
@ATaco *vomits*
 
Anonymous
5:47 AM
Maybe int * func should compose func with itself int times
 
Pretty much that will be how it works
Makes sense since composition is, for whatever reason, the addition operator
@Pavel Done, thanks for the idea
What should func * int do?
 
Anonymous
@HyperNeutrino Same thing. Multiplication should be commutative.
 
True. Will do
What should it do for zero
 
Anonymous
id
 
5:55 AM
- should invert lol
 
I'd imagine that to be tricky
as in impossible lol
@ATaco done
 
So now you can do (3 * func) * 3 do compose a func that executes func 9 times.
(Please don't do it that way)
 
3
Q: Birthday palindromic numbers

GoufaliteWarning : this is NOT a "hey, let's draw a cake in ASCII-art" challenge! Please keep reading ;) Some time ago it was my birthday, I'm 33 now. So there is this awkward social tradition consisting in inviting family and friends, putting number-like candles on a cake, sing songs and open gifts. ...

 
@ATaco Opls ._. xD
 
6:19 AM
wow. SOGL only has like 5 commands made for ASCII-art.. The rest are horrible attemts at making them be that by converting them from what they were before
 
... I thought it was supposed to specialize in ascii art?
 
@HyperNeutrino It really wasn't, that just kinda happened that it was good at it
 
Oh ok :P
 
It was meant to be a language for everything, and now it's horrible for almost anything
 
6:44 AM
@dzaima yay
 
@ASCII-only *has been for months. Nothing really has changed. What I'm saying is that there's still much potential for ascii-art languages if SOGL and how bad it is still wins occasionally
 
@dzaima well of course
But compression
 
Anonymous
Optimizing languages for ASCII art is something that has only happened relatively recently. It's still a mostly-untapped field.
 
Also Charcoal really needs golfier logic
Or maybe golfier assignment
 
Anonymous
@ASCII-only I think the way ASCII art will be approached is by having a few non-golf langs first, then building golf langs using what was learned from those initial languages.
 
Anonymous
6:49 AM
Kind of like how traditional computation developed.
 
I think Charcoal can be considered one lol
IDK, I think Charcoal's builtins are good enough?
After all, Charcoal was made to fit/built around the existing ASCII-art challenges
But I think personally one of the most ungolfy parts of Charcoal is its assignment
I think Charcoal needs a character to make operators vectorized? Also operator assignment and vectorized operator assignment
 
If I make an ASCII-art golfing language at some point it'd probably have a stack and a main canvas, trough idk how ungolfy would it be to have most of the commands have a choice between either mainly working on the stack or the canvas
 
@dzaima Hmm if Charcoal had a stack would it be golfier
 
@ASCII-only if SOGL had a main canvas it'd be golfier :p
 
CMP: Should Charcoal vectorize by default? i.e. Would 'foo'*1.4=='foof' ever be useful
 
7:04 AM
@ASCII-only I think vectorizing by default is the most useful behavior; I'm constantly frustrated with that kind of stuff; at least in CJam
 
@ASCII-only what's the current result of it?
 
@dzaima That's the current result
vectorization would be e.g. [1,2,3]*2=[2,4,6]
@Challenger5 Wait CJam doesn't vectorize by default? (Also keep in mind that this is an ASCII-art language, not sure if it makes a difference)
 
@ASCII-only Nope. : is for unary vectorization, f is for binary vectorization with an array as one of the arguments, and . is for binary vectorization with arrays as both arguments.
It's very annoying
Especially since if it's more than a single command you need braces
 
So I shouldn't have weird repeat behavior at all right
 
@ASCII-only SOGL doesn't vectorize by default, only in special cases (although more cases would benefit SOGL sometimes) because Java 7 (Processing :/) doesn't have lambdas and without them it takes ~100 bytes just so one thing would vectorize..
 
7:08 AM
because I already have mold
 
Mould like from Jelly to reshape things?
Does Jelly have a quick to flatten, apply a link, and then mold to the shape of the original?
 
@Challenger5 no
To repeat to a certain length
 
Probably not then
 
Yay! I wrote Snake in C++
 
@ATaco Would that even compile?
 
7:11 AM
Why wouldn't it..?
 
I don't know how C++ works, but surely the bareword Snake is a syntax error...
 
>.<
 
I'm sorry, bad joke.
 
Oh wow, Visual Studio Code straight up has Git support built in.
 
Built-in how far?
As in, how deeply is it integrated?
 
7:16 AM
Well, you have a git bash command like at your finger tips, and it's also essentially got github for windows built in.
 
I see.
 
7:32 AM
im trying to code A000049 in python, then i'll translate for the OEIS challenge, but why it isnt working? tio.run/…
 
hi all
how about a LZ77 challenge?
 
plz help ^^^
 
would anyone find that interesting?
 
it'd be ok, not a too complicated method
 
@betseg cool
 
7:52 AM
> Number of positive integers
 
for x in range(1, j):
    for y in range(1, j):
counts most of the numbers twice
 
trough that still doesn't quite work
@betseg oh yeah
this works
 
8:10 AM
yeah i was just doing this too ty anyways
emojicode.org/docs/packages/s/1f368.html am i blind or does emojicode not have "a in b" for arrays?
 
9:01 AM
@Challenger5 ???
 
@ASCII-only It was a reply to your previous message "So I shouldn't have weird repeat behavior at all right"
 
@Challenger5 so vectorization it is then?
 
Yeah, automatic vectorization seems to be a Good Thing
 
0
Q: Fold the integer to save space!

Mr. XcoderThe crazy mathematician owns a wide collection of numbers, and therefore the space he has left is quite limited. To save some, he must fold his integers, but unfortunately he is really lazy. Your task, if you wish to help him, is to create a function / program that folds a given positive integer ...

-1
Q: remove from a List or Collection

ricBit of a brain dead moment. I have 2 scrollable lists, both with same lists but i need to remove the obj from list 2 when it is selected in list 1 private void displayList1() { Class1 selectedClass = (Class1)list1.getSelectedValue(); List<String> classData = new ArrayList<String

 
Why did this almost get closed?
 
9:14 AM
@LiefdeWen Apparently because it's unclear
My guess is some people wanted a more precise definition of what a list of tuples can be
 
Isn't it a bit harsh to get that close to closing a newcomers question, who's question, after a few edits became a good question?
 
And some more details on edge cases that was asked in the comments
@LiefdeWen Harshness of comments directed at newcomers is a long, complicated debate which extends beyond PPCG to most SE sites
 
Okay, do we have a meta post on PPCG about it ?( I have experienced this on other SE sites)
 
I think we do
Let me search for a minute
The new-users tag on meta contains a few other questions like those two
 
Cause we have a much more standardized question format than other SE's maybe if they don't give input formats we ask them if standard IO is fine with a link to its meta post and if they don't have edge cases then some more regular community users add them like totalhuman did on that question
 
9:21 AM
There's actually none that is specifically about harshness of comments on challenges by new, actually on-topic users
The ideal solution would be that new users would directly use the Sandbox, so that things like input format can be addressed there before posting the challenge
 
I feel that creating this barrier of entry to question asking on this SE doesn't help anyone. And answering questions gets you a much better response.
 
The reality is that most newcomers do not even know that the sandbox exists
 
I think pushing a formal process like the sandbox will also scare away a good part of new users.
 
Yes
There are actually long-time users that have posted many challenges and that don't want to use the sandbox either
 
I am guilty of not liking the sandbox either, posted once, received 0 comments and 0 upvotes and an okay reception when I posted it on the main site.
 
9:25 AM
This meta question says that being nice applies to off-topic questions too, but there is actually no meta-post that says that being nice applies to on-topic challenges in the first place (regardless of their lackluster formatting/specs)
 
@Fatalize like Helka :P
 
Yeah maybe someone should write one
 
And it's actually probably more important
 
@Fatalize thanks for helping
 
@LiefdeWen Well TBH I'd link on TNB to get more feedback
 
9:26 AM
Because people that post off-topic questions usually didn't do a lot of effort to search for the right site to post, so getting flamed in comments will probably not bother them (if they even look at comments)
 
@Fatalize well it is a stackexchange wide policy to be nice everywhere, and that meta just confirms the everywhere part of it more
 
On the other hand, new users willingly posting new challenges on PPCG that get flamed in comments will deter them from participating again
 
@ASCII-only Yeah after posting the challenge I asked on here and people said linking here might help
 
@dzaima But evidently, just like for off-topic questions, it is not a policy that is always applied with newcomers
 
Yeah I think we should start a meta-post of steps to follow before adding a close vote on low rep users
I dont actually think people were mean to the OP of that question but if they succeeded in closing his question he would be very demoralized. There are things we can do to stop that.
 
9:31 AM
Though in the spirit of SE, we are supposed to put questions on hold, fix them, and then reopen them
 
what's worse? requirement to use the sandbox (maybe until the user has at least one answer there with a positive score) - less flaming on new users, ~no spam, but possibly scaring away new users with the formal process, or no sandbox requirement - no barrier to join in, but new on-topic users would often get deterred from the negative comments
 
The problem is that new users do not even know about the sandbox
 
@Fatalize but if it were required, would it be better? (hypothetical question; SE probably wouldn't make an option to have posting to main privilege dependent on a sandbox)
 
Possibly, but not necessarily
The quality of question might be slightly higher, but it also might decrease slightly in number
 
9:46 AM
@ASCII-only sure, d'you have discord?
 
@Mayube yes
@Mayube but puzzling mods said no
 
aww
 
Soo... Back to the drawing board
 
ah welll
meanwhile I'm trying to figure out how to do this on linux
 
@Mayube oh cool thanks I was trying to figure out how to do that on windows :p
 
9:56 AM
@dzaima it's hacky as hell, but Lua-Macros + AutoHotkey on windows
 
on linux it's not so easy though
 
@Mayube yeah, I've seen Tom Scotts video on it, but I had the same problem as the guy in that video - Tom gave no code.
 
Taren released his code
it's messy, but it works
 
@Mayube I know, that's why I said thanks :p
 
9:59 AM
So, first I need to float the 2nd keyboard in xinput to prevent x from responding to the keypresses, then I need to write a program to run in the background and read /dev/input/event and respond to the keypresses
which is funny because Tom Scott implied it would be easier on linux because you can do anything on linux, but while it's possible it feels just as hacky as lua-macros + AHK
thankfully this way means I don't need to touch the war-attrocity that is Lua
 

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