« first day (2358 days earlier)      last day (2490 days later) » 

7:00 PM
@Mr.Xcoder Thanks
 
0
Q: Construct a Permuter

Wheat WizardFor this challenge you are going to make a function (your function may be a complete program) that takes a list as input and returns a permutation of that list. Your function must obey the following requirements. It must be deterministic. Repeatedly applying your function to a particular list ...

 
I've been outgolfed >_>
 
Such is life.
 
@WheatWizard How do you define "deterministic"?
 
@Mr.Xcoder The same input always give the same output. Unlike random deterministic is pretty well defined.
 
7:06 PM
@WheatWizard But wouldn't "Repeatedly applying your function to a particular list should be capable of generating any permutation of that list." contradict "deterministic"?
 
@Mr.Xcoder No they don't. It can output different things for different inputs, deterministic is different from constant
 
@Mr.Xcoder He means applying the function again to the output of the function
 
@musicman523 Thanks.
 
@HyperNeutrino why don't you just use mine?
 
> sapply
I wish people who wrote function names didn't just tack an extra letter on.
At least make it sApply
 
7:15 PM
@flawr
 
@Phoenix there's apply, lapply, sapply, tapply, lol
 
what lang is this?
 
@Riker R
 
@LeakyNun ah cool
 
@LeakyNun How many programming languages do you know?
I see you like R.
 
7:18 PM
@Mr.Xcoder I just learnt R yesterday
Java, Python, Lua
 
You know Jelly, R, Java, Python, Lua, ...
Pyth
 
@LeakyNun What's the difference?
 
and then Pyth, Actually, Jelly, J, brainfuck, (sorry for putting J in this category)
 
@LeakyNun C?
 
@Phoenix I wouldn't say I know C
 
7:19 PM
@LeakyNun Brainflak?
Golfscript?
 
@Phoenix some work for 2D lists, some are more complicated, some I won't ever use
 
05AB1E?
 
I don't really use it
 
I see it has been quite abandoned since Jelly has been improved.
 
I've never used it really much
 
7:23 PM
Firefox is somehow using 120% of CPU
 
@TuxCopter maybe you have 4 CPUs?
anyway, switch to chrome :p
 
but firefox is great
and chrome uses even more memory than firefox which is already filling the main memory and swap
 
@TuxCopter It really isn't.
@TuxCopter Use zram
 
@Phoenix zram?
 
the saddest phrase ever:
> Your new password cannot be your existing password
 
7:29 PM
I've not been having any breakthrough in my R answer...
 
on a "forgot password" form
 
@TuxCopter I assure you chrome is waaaay better
 
@Riker why is that the saddest
 
basically if it says that then congrats you found your old password! just sign in without changing
 
@Poke I typed my password in 5 times, it was wrong every time
so I reset my password, and tried to make a new password
 
7:32 PM
well I guess you didn't need to :P
 
is your password exceptionally long
or does it contain a lot of symbols
perhaps the lessthan sign
 
@TuxCopter I started out using chrome some years ago, switched to firefox some years ago, and then switched back to chrome some months ago.
From my experience, I can definitely tell you that chrome is better.
 
ok
 
CMC: What's the shortest stack safe snippet that pushes the truthiness of the TOS? (In other words, push 0 for 0, 1 for all else)
 
@Riker I once typed in a permutation of my PIN three times when trying to withdraw money from an ATM, so it locked my card. The next day I went into my bank to get it reset. They said they'd send me an SMS with my new PIN, but then discovered that I'd never done whatever process it is they have to confirm a phone number, so that option was off the table. Instead they said they'd send me a letter.
I ended up withdrawing some money on a foreign card, paying the charges, to make it through until the letter arrived. The letter told me that my PIN was exactly what it had been before.
 
7:35 PM
I can do 22, but I feel like it could be shorter
 
@PeterTaylor sigh
 
Oh wait, I just way outgolfed myself
14
 
kek
 
For reference, I originally had: (({})){(<{}{}(())>)}{}
 
CMC: I don't even know if this is possible: write some code to make + take precedence over *
 
7:38 PM
Doesn't sound like it's possible
 
@BusinessCat I don't know enough language to make that statement.
 
It may be, but I wouldn't know what language
 
@LeakyNun I feel like this is possible in R and maybe emmental
and that's it
 
@LeakyNun python? 100% impossible
 
@Riker no I'm not going to do it in R
 
7:40 PM
@EriktheOutgolfer solution: do'nt use python
 
jelly? there's no thing as precedence
 
Emmental is stack based so no precedence
 
It seems you can't set precedence in R
 
@TuxCopter zram is inmemory compression.
Basically you get more ram for free.
 
@BusinessCat true
I was thinking operator redefinition
 
7:47 PM
R has a function is.R() which tests if we are using R
(rather than S)
 
kek
 
1
Q: Literate Anti-Quine

archaephyrryxDisclaimer: I don't know whether this has any solutions I am defining a literate anti-quine to be a program (or function) that takes a file or string as input, and returns a boolean (which can be represented by an integer or bit as well) result according to the following rule: True (or 1) if...

 
I was seconds away from hammering that
 
well, R has 1328 built-ins...
builtins() lists all built-ins
 
Well since we're allowing newer languages I might as well put my CJam answer on the old version
 
7:54 PM
@LeakyNun Does it beat Mathematica?
 
I'm amazed that there's still no Jelly or Pyth answer to my combinatorics question.
 
@PeterTaylor which?
 
@LeakyNun Ah, ninja'd
 
Jun 27 at 13:12, by Leaky Nun
yesterday, by Leaky Nun
2 days ago, by HyperNeutrino
2 hours ago, by Erik the Outgolfer
please, "ninja'd" should be restricted to when you actually post the message a split second later than somebody else posting the same message, and then you are the one who is ninja'd
 
23
Q: Trigger the chutes and protect the jackpot

Peter TaylorYou are going to participate in a gameshow. One of the challenges works as follows: The first room contains a large number of identical balls. The second room contains a series of chutes, each of which has a sensor which counts how many balls have been placed in it. A ball which is placed in a ...

 
8:04 PM
0
Q: Oblique projection of a cube

racer290Your task is to print a cube in oblique projection, given it's side length. Here's an example: /-\ / \ |\ /| | \ / | \ | / \|/ For the uppermost corner you must use the dash. As you can see, all sides are equal in length (when measured in characters). This is code-golf, so the short...

0
Q: Have I had lunch yet?

geokavelYou love lunch. However, you are on a diet and want to make sure you don't accidentally eat lunch twice in one day. So you need to make a program to help you make sure. However, one complication is that you eat lunch on a very weird schedule. The time you eat lunch at is MONTH:DAY PM. That's rig...

 
CMC: which in R: return the indices of the array where the corresponding element is true
 
8:21 PM
I need to add diagonal drawing in SOGL..
 
@dzaima For the cube challenge?
(I mean, has that inspired you?)
 
@Mr.Xcoder It'd be useful for many challenges, but yeah, that remined me
 
the guy who made requests (subtitle: HTTP for humans) made legit (subtitle: git for humans)
and we are seriously in need of git for humans
 
wait but I'm a penguin and I use requests
 
What about git for cats?
 
8:25 PM
well, i, for one, am particularly happy about products for humans
because i'm human
so it works out
 
@totallyhuman totally....
 
yes
absolutely completely totally definitely human
 
9:03 PM
sign off every stack overflow question with "plz send teh codez"
it's worth it
also do the same for ppcg
 
9:24 PM
@Riker so that is how the ivy-texture is added to the house-model!
 
9:36 PM
@totallyhuman are you talking about the python 'requests' package?
 
@flawr exactly! :p
 
@Downgoat yes
 
ಠ_ಠ python HTTP is for sheep not human
 
probably 'cause you're used to JS :P
 
9:52 PM
@Downgoat What about Python WebSockets?
 
and requests is pretty awesome
i wrote a bot library for another chat service with websockets; wasn't bad
 
10:09 PM
@LeakyNun Standard ML, 9 bytes: infix 5*;
 
@totallyhuman THANK YOU SO MUCH
I just installed Python just for that.
 
is it good? i want a better git client but i don't want a gui one ><>
 
Certaintly very handy.
 
@Riker captchaart
 
tfw it errors out
legit. A Kenneth Reitz Project

Usage: legit <command>

Commands:

Traceback (most recent call last):
  File "/usr/local/bin/legit", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.4/dist-packages/legit/cli.py", line 52, in main
    display_help()
  File "/usr/local/lib/python3.4/dist-packages/legit/cli.py", line 443, in display_help
    display_info()
  File "/usr/local/lib/python3.4/dist-packages/legit/cli.py", line 425, in display_info
    for command in sort_with_similarity(commands, key=lambda x:x.name):
 
10:14 PM
@totallyhuman Uhh... what command did you type?
 
legit --help
wait
it might be cause i'm not in a repo
nope
 
I think you should reinstall legit.
 
mm doing that rn
wait a minute
is it only for windows
oh i used python2 and it worked
weird, it does say they added python3 support
 
I only have python3
 
weird
 
10:31 PM
an interesting experiment
if I were to write a program that fills 4 gigabytes of ram with zero bytes
and that repeatedly loops over the memory until it finds a byte that is non-zero
how long would this program run?
assuming I have non-ECC memory
 
10:47 PM
@Dennis, if you're waiting until I've seen your comment before deleting the permuter answer, I've seen the comment.
 
-1
Q: Prankster Santa

bushdid911It is widely known that Santa Claus delivers presents to houses all over the world in December. However, not many people know what he does during the rest of the year. You see, Santa enjoys a jolly good prank, and he'll often find himself pranking entire cities when he's not busy making or delive...

 
@PeterTaylor that reminds me, I was going to answer that question...
@PeterTaylor oh it seems dennis and you already posted the answer I was going for :(
why does @Dennis have to delete his answer though?
 
Any ideas on golfing this check program? I don't like the huge space on the first line but I can't think of any way to get rid of it without adding more bytes :(
 
@PeterTaylor OK, thanks.
@orlp A new rule requires distinct objects with at least 16 possible values.
 
@Dennis oh IIRC there was a comment saying booleans was ok...
 
10:53 PM
It seems like most people are just doing sort -> all permutations -> get next one
@Challenger5 Can Check programs be rotated?
You might be able to eliminate the spaces by rotating them to the end, but that might create more bytes with the newlines
as in rather than this:
a    b
cdefgh
do this:
ca
d
e
f
g
hb
though you would need to redirect the pointer direction, so I'm not sure if that would actually work.
 
Well that would break the semantics of the 1D part of it...
 
@orlp Booleans were OK, but not 1's and 0's...
 
oh ok
 
@Dennis huh?
 
ok paintbrush isn't working out because it gets #rekt by charcoal too hard
 
10:57 PM
I tried to argue in favor of 1's and 0's, but that just got Booleans banned as well. >_<
 
I need ideas for another area that doesn't have a golfing language specializing in it :P
or I can just stop making new languages :P
 
Or improve the ones you already have.
 
Oh, I just found something
 
let's see; the idea for anyfix was interesting but not practical since it involved way too many stack copy algorithms
 
10:59 PM
I don't need to divide by 2 because $ is integer division
 
wait I remember an idea I had for a general programming language that might end up working better than anyfix
But wait, Positron technically works; it has its bugs, but those only show when I try abusing them for code golfing and they end up breaking.
I think I might be able to continue work on Positron. Not Paintbrush though, because Charcoal exists already :P
 
@Dennis I think the 'must be able to handle duplicates' is also a real pain in the ass for this question
there are really interesting algorithms but they're not short at all
 
ono my daily reputation today is -40, must go get some rep so it's at least 0 :o
 
5
A: Put together a Senate majority

caird coinheringaahing;#, 28571 bytes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;#;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;#;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...

._____. why does this have 5 upvote
am I missing something or is it just manually incrementing each ascii value and outputting it
 
That's pretty much the only thing you can do in ;#
That's about as low-effort as you can get (well, maybe /// would be easier)
But at least in /// you might be able to do some golfing (not much, but some)
 
11:12 PM
well you can get lower effort
just find 51 names and do a straightforward output in Bash
like the one with 9 upvotes did ._____.
 
I think someone already did that answer
 
Well FGITW, I guess
That was the first answer (I think; I'm too lazy to check)
 
opls they didn't even put any effort they could output to a file
 
> like the one with 9 upvotes did
 
Question: what is most polite way to ask someone if they want to keep IP of software you want to capitalize on and not get sued if you do it anyway when they say no
 
11:15 PM
Alright, I take back what I said about it being the most low-effort you could get, but it's still pretty low-effort
@Downgoat Don't ask the person, just notify them
"Hey, I'd just like to let you know I'm using your stuff. Thanks!"
 
: Opposite of bounty, allow yourself to give up your own rep to take it away from someone else
7
 
.______.
 
No, how about you can take away other people's rep to add to your own?
 
so like I take 50 rep off myself and essentially downgoat you 5 times
 
Like a negative value bounty
 
11:16 PM
@HyperNeutrino :O you posted emoticon only message. I see you like living life on the edge :P
 
which I could already do at a cost of 5 votes
 
yea but you can't do on same answer
 
@Downgoat hm? oh you're referring to the risk of getting kicked?
@Downgoat Allow you to vote multiple times on an answer at a cost of removing 10 more rep for each extra vote
 
I think that's abuse because spam accounts could do a lot of damage that way
 
ik
was just joke (just like the other feat-request (I HOPE))
otherwise Dennis could theoretically just go around and nuke everyone
 
11:18 PM
Well I didn't mean that comment in a negative way
I love spambots!
 
he could nuke me around 20 times ._______.
> abuse
is not negative totally
 
We're on PPCG, don't we abuse things (namely languages) for fun?
 
not people at least (i hope)
but we abuse bugs, glitches, and languages and sh**p
 
@Challenger5 only if you are high-rep user or mod. Otherwise you get downvoted
 
anyway brb
 
11:21 PM
@HyperNeutrino We're not abusing people, we're abusing accounts. If a user can't separate their own life from their internet points, that's their problem
 
:O @Mendeleev's giant duck is on sale for $140K
 
Cool
 
Canadian or American?
 
It still comes out to around the same amount.
 
I was referring to the duck.
 
11:23 PM
o
 
Wow when I corrected that spelling error it said I had 8 seconds left
 
Someone needs to create a Windows python installer that automatically configures PATH, keeps your python up to date, then modifies PATH when a new major version comes out.
Because the python path is e.g. C:\Program Files\Python36, so when 3.7 comes out, everyone will need to update their path.
Bonus points for also keeping track of C:\Program Files\Python3x\Scripts so that pip stays in your path as well.
 
Another good idea: give up on Windows
2
 
I can't tho
 
Isn't that what package managers are for?
 
11:35 PM
I need Windows for an internship I'm doing
 
You want to be an intern at a company that uses Windows?
jk
 
@Challenger5 Even if I could keep python autoupdated, the issue is that the binary isn't put anywhere that's in the PATH by default.
A package manager wouldn't help there.
 
I see.
 
On Linux, however, the Python binary is put into /usr/bin, which is in PATH by default, without this Python36 nonsense.
 
11:51 PM
@Challenger5 hey are you accusing me of things? (:P /s)
 
@HyperNeutrino That wasn't my intention, but now you seem suspiciously defensive... </j>
 
I mean, I totally don't associate internet points with my entire life (wait I don't have one)
 
So say you had a dict (aka association list)
 
.----.
 
and you meant to have "se_rep": life
but then you realized life was not defined
so you changed it to a set (nothing to associate with)
Bad joke, I know
 
11:58 PM
why
just why :P
but what if the set is part of a group
and the group is abelian
then it associates :P (well actually, technically, only the operator, but shhh close enough)
 

« first day (2358 days earlier)      last day (2490 days later) »