« first day (2589 days earlier)      last day (2248 days later) » 

7:05 PM
CMP: Is a challenge for finding the length of the input too trivial?
 
Yes.
 
@cairdcoinheringaahing It'd probably make a good 'intro' challange, like the hello world challange?
 
CMC: Find the length of the entire stdin
 
We’d have a huge CW of built-in answers.
 
Retina, 1 byte: .
 
7:07 PM
If our langauge uses something other than STDIN, can we use that instead?
 
¯\_(ツ)_/¯? I guess
 
If so, V, 3 bytes: Øß.
Brain-flak, 6 bytes: ([]<>)
 
Pyth, 4 bytes: ls.z
 
Jelly, 1 byte: L. Input must be "quoted"
 
@cairdcoinheringaahing Invalid
 
7:09 PM
stdin in PowerShell is weird
 
Pyke: `zrnJl`
https://pyke.catbus.co.uk/?code=zrnJl&input=uh%3B%0Auswtu%0Aik&warnings=1&hex=0
 
@Mr.Xcoder Corrected
 
I still think it is invalid
 
C# Interactive, In.ReadToEnd().Length
 
7:11 PM
if the input is piped, it would be "$input".length but if it's command-line passed it would be "$args".length
 
@Pavel Stax, 2 bytes, _%
 
Because you assume it is quoted. Awaiting a repsonse from Pavel
 
piped in the PowerShell sense, not the bash sense
 
0
A: Sandbox for Proposed Challenges

AdmBorkBorkLonely Primes code-golf primes I know, I know, yet another primes challenge... Related A lonely (or isolated) prime is a prime number p such that p-2, p+2, p-4, p+4 ... p-2k, p+2k for some k are all composite. We call such a prime a kth-times-isolated prime. For example, a 5th-times-isolated...

 
@Mr.Xcoder it's a CMC
do whatever
 
7:12 PM
If quoted input is allowed, 1 byte for stax: %
 
Then Pyth, 1 byte: l; assumes it is quoted and also assumes that a literal newline is \n instead
 
@user202729 Fixed.
 
@recursive I re-checked: The interpreter works perfectly on Safari mobile, but it borks on the desktop version.
 
Anyone up for a game of Contact?
 
@Mr.Xcoder I had a conflicting report in the github issue. Is there anything visible in the javascript console?
 
7:17 PM
> SyntaxError: Cannot declare a let variable twice: 'e'.
 
What safari version?
 
Ugh... I guess I should update... 10.0.2
Yeah I should update Safari...
 
Ok. That's a lead at least.
If you update, and happen to test it again, let me know the outcome.
 
Sure
I need to update the software to get a newer version, and unfortunately I don't have enough disk space.
 
I have the same problem on this machine at the moment. :/
 
7:21 PM
I guess I'm going to have to uninstall Xcode... Which eats about 10 GB.
 
Ugh, why is there never anything to review? ಠ_ಠ
 
^
Ok... I began uninstalling Xcode... If the disk space doesn't change after this, I am going to quit Apple forever.
 
Wow, I haven't posted anything since Feb 19 prepares a bunch of Add++ answers
 
I think I can solve the Hafnian challenge in Triangularity
If I add a permutations built-in :/
Woooow I moved Xcode, my projects in it and the files it uses to the trash and I tried emtpy-ing it... It says Items to delete: 5406...
 
How long does it say it will take?
 
7:31 PM
It just finished
Took about a minute
 
Wew, I just can't stop browsing this question. It's so awesome :P
 
I just deleted 10GB+ files (and previously had 5GB) and now I only have 10.5 GB ಠ_ಠ
 
@Mr.Xcoder sounds fun :)
the recursive algo for the hafnian is waaaay faster
 
@Mr.Xcoder sounds like it accidentally used string concat
 
> Additional 1,99 GB of free space is needed to continue.
ಠ_ಠ
 
7:37 PM
@Mr.Xcoder That was the feeling when I tried to install VS on my previous OS and it wanted to be on C:, even if I selected D:
I had to search for anything I could delete...
 
I just deleted basically all my files (like 200 python/pdf/txt files)
 
O_O
what the heck are you doing?
 
Remember when I said I have 10.5 GB? After deleting those files, I now have 9.8
 
@Mr.Xcoder my mac also often gives wrong data
that's why I use du
 
Ok I give up Apple makes it impossible for me to update. I guess I need a new macbook
 
7:45 PM
@Mr.Xcoder what can't you update?
 
macOS and consequently Safari
 
could you give up on safari?
there are plenty of other browsers
 
Yeah but I want to update the software anyway
And installing another browser is overkill for this machine
 
# plural twitter.com/codinghorror/status/1165936105
p = " is"
if len(winners) > 1:
    p = "s are"
I usually don't care about plurals, but...
 
@Mr.Xcoder does apple say your hardware is too old ?
 
7:48 PM
Nope, but I cleared literally all my files and I still don't have enough disk space.
 
ah..and a new drive is impossible?
 
I am afraid it's not worth it
 
Looks like Apple beaten Microsoft then :P
 
what is the hardware exactly out of interest?
 
Windows is known to take a lot of space
 
7:49 PM
isn't a new drive < 100 dollars but a new computer much more?
 
@Lembik Macbook Pro Retina, 13' Early 2015, 2.7 GHz Intel Core i5, Intel Iris Graphics 6100 1536 MB, 8 GB 1867 MHz DDR3
 
@Mr.Xcoder you clearly need to install linux on it :) makeuseof.com/tag/install-linux-macbook-pro
 
Oh no
 
just better than throwing it away ;)
 
@Mr.Xcoder Martin'll be happy that Retina ships with Macs now :P
 
7:53 PM
Hah, yeah. I (fortunately for me) don't work with regexes
 
PCRE regexes are the only good best ones
but still could be better
 
.NET regex is quite interesting (especially balancing groups)
 
PCRE allows nesting & definition groups (even if you can create them in any other flavour with {0}), it's so advanced I even made a full programming language parser with a kind of an advanced syntax in it
and it was still readable!
But I regret it, because it was soooo sloooww
 
@LuisMendo Incredible Guitar video (skip to 6:51 if you don't want to watch all of the setup and beginner explanations)
 
> telnetcmd!(IAC SB IP NOP !SE);
I got annoyed. Rust macros to the rescue
(That's just a dummy test to make sure the macro works, that would actually be a fully invalid command lol)
 
I think the Lost quine is more impressive
 
lost is hard, but I think it's not unary-level hard :P
 
It was probably automated :/
 
1
A: Sandbox for Proposed Challenges

Wheat WizardYour task is to output the exact string The Jabberwocky without taking input. Of course there is a catch, it wouldn't be fun without a catch. Your program, when stripped of non-alphabetic characters and must start the poem The Jabberwocky (case insensitive). Here is the text for reference: ...

Thoughts?
 
NH.
@totallyhuman it is only as legit as saying googolplex is 10^(10^100) instead of printing out the actual number
 
8:22 PM
Someone downvoted without leaving a comment (which is fine), so I'd like to make sure I cover everything.
 
@WheatWizard If only the string was "Jabberwocky", Alice has a builtin IIRC :P
 
Well its the string The Jabberwocky
 
NH.
@WheatWizard Grammar parse error near "when stripped of non-alphabetic characters and must start the poem"
 
and in that case it won't be much fun in alice
@NH. thanks I'll fix that
 
NH.
I would say you are welcome, but that would be out of character for a parser :)
 
8:24 PM
Is there a way to see what other binaries an executable calls, and with what command line arguments and input? On Linux, preferably Ubuntu but any will work.
 
@cairdcoinheringaahing That acually might make it more interesting in Alice.
 
¯\_(ツ)_/¯ I don't know Alice, just that logical NOT on an empty string in Cardinal Mode results in the string Jabberwocky
 
Yeah, we will have to see. I'm sure @MartinEnder would like to give it a try.
 
I just found out that I have added comments to Pepe right when I started creating it... And I thought it doesn't have them...
 
NH.
And then you add a comment with the first letter, and win!
@labela--gotoa For reference, your documentation is almost impossible to understand.
especially for Wire
(actually, perhaps it would be more accurate to say documentation for Wire DNE)
 
8:31 PM
@NH. Why? There are just 2 stacks, r and R and you just use predefined commands to operate on them... And I even didn't start to work on Wire
 
@WheatWizard may actually be doable in the current version of Dirty, i guess I'll see when it's posted.
Also, perhaps you want to include non-english alphabetical characters?
 
I was thinking about that, but I don't know what a good rule would be
 
NH.
@labela--gotoa You say there are only 4 chars in the language, but there are really 5 if you include space. I had no idea what r and R were for until you just told me.
can you explain how to use them?
 
@NH. Space is ignored?
 
NH.
it is?
 
8:36 PM
yes, everything is ignored except the regex [rReE]
and there are undocumented comments that start with # and end with the line
> Pepe is a programming language based on an outdated meme*, which uses only 4 characters: r, e, R, E. Others are ignored. Also, it's preffered to separate commands with a space
Actually the first 4 paragraph tell everything about the syntax. I could clarify them a bit, but I think it is already enough for understanding
 
NH.
but Barracuda...
I assume it just says IE is the worst browser on the planet?
 
> internet explorer
A simple Windows XP tool which allows the user to browse to Mozilla.com and download Firefox, a web browser.
 
NH.
wow, that is awesome, and so accurate to my usage of the heap of trash.
 
@Οurous Did you have any ideas for non-latin alphabetic characters?
 
NH.
8:43 PM
and until we stopped using the other heap of trash (sharepoint), I did log my timesheets in IE, but besides those 2 things, I avoid it like the plague.
 
It's not so accurate for me, I use it for downloading Chrome, and sometimes drivers for my graphics card if Windows screws something and Chrome is yet installing
 
NH.
@WheatWizard well, Jelly uses a fair amount of that sort...
 
@cairdcoinheringaahing fun fact: did you know IE for mac was temporarily made?
then discontinued.
 
@Riker That was over a decade ago
 
0
Q: Hast Thou Slain the Jabberwock?

Wheat WizardYour task is to output the exact string The Jabberwocky without taking input. Of course there is a catch, it wouldn't be fun without a catch. Your program, when stripped of non-alphabetic characters, must start the poem The Jabberwocky (case insensitive). Here is the text for reference: tw...

 
9:03 PM
How do I splat a list into a tuple in Python? (*[foo, bar]) doesn't work.
 
tuple([foo, bar])
 
But is there a golfier way
 
I'm downvoting this post because it doesn't answer the challenge. As far as I can tell, you should include the poem in the code. This does not. — caird coinheringaahing 31 secs ago
It seems perfectly valid to me
 
When stripped of non-alphabetic characters, you get the empty program, which is a prefix of the poem.
It also passes WW's program
 
9:06 PM
Hey there, guys. So, I'm trying to golf a representation of 52 playing cards. You can get it down to around 249 bits for the full deck, but is it possible to get this even lower?
 
Hmm, I'm still not sure. The challenge isn't that clear about that corner case
 
@BufferOverRead Probably it could be a few bits less than that. If you do 6 bits for each card, then 5 for the next few cards, and so on
That's around 249 bits, but it doesn't seem like that's the optimal way.

Trying to fit that on embedded memory, you need every bit of space you can get, and problem is microcontroller's instruction set doesn't do much
 
This is why I don't like the sandbox
 
I find the challenge perfectly clear.
 
Now you've clarified about the empty string, I understand it (and retracted my close vote)
 
9:13 PM
@WheatWizard Maybe provide an example? I'm still having a hard time grokking it
 
Sure
 
Let me do it in Brain-Flak
 
what a sync, comment had 0 upvotes, i clicked upvote and it has 2!
 
If you use an embedded board to program an RFID tag that's then printed onto playing card decks to verify the authenticity of the brand, i.e that's it's not a knockoff, the problem is few manufacturers are interested in such an idea

And finding cheap RFID tags at scale can be a problem if you want to optimize supply chain costs, basically, if you purchase a deck of cards at a local store for a few bucks, there's a lot of calculations that are made in order to choose that price
@BufferOverRead Since the manufacturer has to make a profit, I mean.
 
Yay I did it in Brain-Flak!
 
9:18 PM
With a grossly underestimated score :P
 
Why the downvote ;-;
 
@WheatWizard Are you downvoting the all 'boring' answers or just the brainfuck one?
 
Yes.
 
@BufferOverRead Okay, so maybe 226 bits might be it, since there's a 52! ordering
 
@WheatWizard Why? It's not the answerers' fault that the challenge can be exploited in such a way
 
9:20 PM
The goal shouldn't be to exploit the challenge. The goal should be to have fun and challenge yourself in an interesting way.
 
I'd say exploiting the challenge can be fun
4
 
After all, that answer is trying to achieve the best score in brainfuck.
So I don't know why you'd downvote for the choice of language
 
Choice of language is definitely something I consider when voting
 
The best answer in Jelly is going to be a compressed literal, even if you tried to work around the poem. Downvoting a 'baseline' could be considered ok, but downvoting the best score possible in a language just doesn't make sense
 
I always downvote Jelly's compressed strings when I see them. This challenge isn't meant for Jelly
 
9:23 PM
I'm not even convinced that that is true
 
Pavel's Ruby answer is quite nice, and looks like it actually took effort
 
Let people vote as they wish. All we can do is politely expressing our approval / disapproval, but everyone has the right to vote freely.
 
@WheatWizard does it have to be a full program, or do normal rules apply?
 
Normal rules.
I'll add to the challenge
 
All answers are (IMO) going to be in languages where letters can be avoided or the poem's going to be stuck around comments. I agree that one answer like that is nice, but not 10. Xcoder has a point though, so I'll just leave my answer there and drop a downvote on the challenge
 
9:26 PM
@WheatWizard The thought process took less than 15 seconds. Do I know any languages that don't need alphabeticals for printing? Just Ruby. Oh hey, Ruby has comments.
 
Fair enough. I still have high hopes for future answers.
 
@WheatWizard Your program doesn't match the string given in the challenge. The program's string ends in joy, while the string you gave in the challenge ends in grabe
 
oh, I know the problem
thanks
 
I thought the question was more boring than it is, until I realised that "thejabberwocky" isn't in the poem
 
Or Jabberowocky at all.
 
9:28 PM
@WheatWizard Which one should we use?
 
The one in the text, will be fixes
 
And np
 
hey, if anyone remembers Broccoli from the first episode of the PPCG Podcast™, I'm looking for some people to help with it. join the #broccoli channel on the podcast Discord server for more info discord.gg/ekPzWFF
 
@Pavel yeah, it’s almost the same code
 
@AdmBorkBork I've outgolfed you by one point btw
:-)
 
9:41 PM
I believe it. I’m pretty sure that is the smallest I can go.
 
9:52 PM
@AdmBorkBork Actually, I count 19 for your submission: tio.run/…
 
@totallyhuman Why is ,,, called that when: exceptions.UnknownCommand: Unknown command: ','
 
CMM: I added a shortened version of Pepe; made mostly for short urls, but would it be appropriate to use it as an alternative version of the language, for golfing?
can it compete?
example where rEeEEEEeEEREeEEeeeeErEErEeEEeeeeerEEEeREEreeeEeeeeerEEEEEReereReeeReeEREEEEEree‌​ becomes zpgZopz7zoozuZ7zfjz1sZ4z2Z8Z9Z1sz4
 
10:13 PM
@cairdcoinheringaahing To be annoying
 
As always, PPCG community is ignoring me :P ¯\_(ツ)_/¯
jk, np
 
@labela--gotoa No need to be passive-aggressive, there could simply be no one online who has anything useful to contribute.
 
@DJMcMayhem I know, I'm just kidding
 
Oh, OK
@cairdcoinheringaahing It's funny how all of those answers are from before chrome existed lol
 
11:06 PM
@DJMcMayhem Thanks! Saw it the other day. Amazing indeed. @flawr posted it in the Matlab room, and then linked a walk-through video of the song by the same guitarist. I intend to give my guitar and delay effect some use this weekend :-D
The song is very good, and seems easy to play
 
Ah, I missed that
He's a very good guitarist. I watch a lot of his videos (although most of them are a lot heavier than that one)
 
@Steadybox alike minds think great!
 
11:44 PM
-1
Q: Creating a function over multiple lines - Javascript Challenge

theNewfelllI'm attempting to create a function over multiple lines. Parameters of the challenge: function returns 'barbarian', only 2 characters per line, 40 lines maximum. I keep trying to use a fat arrow to declare my function, but fat arrows don't seem to work if you don't have them connected. My curren...

 
11:58 PM
@DJMcMayhem youtube.com/watch?v=LvCtiRkAUG0&feature=youtu.be&t=1034 And the video features his cat, even purring :-)
 

« first day (2589 days earlier)      last day (2248 days later) »