« first day (2432 days earlier)      last day (2413 days later) » 

2:04 PM
now I am tempted to ask another web scraping challenge.. seems this one was too easy :)
 
2:22 PM
TI-Basic is the only language I know in which Prompt [A] is shorter than Ans→[A] :P
 
GolfScript starts with the input on the stack, but creating a function takes two extra bytes
 
lol almost 17% of my SO rep is from the last 16 hours
 
@HyperNeutrino That tends to happen when you post really obvious answers :P
 
yes :P
 
Also you are only 1k rep away from a gold badge :P
 
2:37 PM
one way to get rep is to lurk on stack overflow during active times and wait for trivial questions in things you know about (python and java for me) and ninja everyone else and get an accept :P many rep and no cap because accepts aren't capped :D :D :D
@cairdcoinheringaahing here or SO?
 
@HyperNeutrino SO
 
how so?
 
@HyperNeutrino Get 3k and do the Close Votes review
It's how Xcoder got his gold badge there :P
 
yeah but how does that get me a gold badge
does review give you badges?
review is so boring though
 
> Steward review 1000 more
 
2:38 PM
@cairdcoinheringaahing ah ok
 
halp, for some reason if I set the color depth of urxvt to 32 the background is always fully transparent, even if I change the alpha
I tried with both xcompmgr and compton and it does it on both
and it's not a problem with the compositing manager as inactive window transparency works correctly
 
@cairdcoinheringaahing My goal is to be the first PPCGer to get that
 
darn I just got ninja'd by someone on a decently easy Python SO question
 
@DJMcMayhem You're fighting Martin for it though
 
Yeah, but considering how large his head start was, and how close I've gotten regardless, I think I've pretty much got it
IIRC, he had like a 700 reviews head start or something. I shrank that to 46
 
2:45 PM
PPCG review is like almost always empty
@DJMcMayhem :o yeah you will almost definitely overtake lol
 
@HyperNeutrino You're welcome :P
 
Then again, I was also expecting to get the socratic badge next like a year ago, and two people have beaten me when I was only like 7 challenges away lol
 
@DJMcMayhem He needs 100 more reviews for first posts, and you need 146 for LQP, which are less often
 
@DJMcMayhem And I'm catching up :p
 
2:47 PM
@cairdcoinheringaahing Most definitely not. You have no idea how often perfectly good posts are flagged VLQ because they don't have any explanation or anything.
 
ಠ_ಠ I need 225 more reviews on suggested edits for even the silver badge D:
 
Although I guess there are more first post reviews overall, but still VLQ is extremely common.
And I'm stopping him from getting those 100 by keeping FP empty. :P
 
@DJMcMayhem How do you stop new users from posting?
 
I'm not, I'm keeping the review queue empty by reviewing all the time
 
I actually like reviewing, but nothing ever shows up when I go to check :(
Hehe, I've managed to clear all questions from SO :P
 
2:53 PM
wth happened with this challenge and its edit wars?
 
Damn, wrong image D:
 
@AdmBorkBork No idea, holy crap.
However, after like revision 10 or 12, it should have been mod-flagged rather than just repeatedly edited.
 
@AdmBorkBork The OP didn't like the post and wanted it deleted, so kept vandalising it. Eventually he got suspended and deleted
 
The OP actually had competing answers on other challenges, which I find very strange. I'd think he'd know better
 
Still, an edit war is the very wrong way to go about it.
 
2:57 PM
Yeah, it should have been locked after like 3 edits.
 
@AdmBorkBork Yep. I was around then, but didn't edit war. Someone here said that they mod-flagged it, but the war kept going
 
Also, I hate markdown ಠ_ಠ
 
Hello everyone! I am new around here and want to hear the opinions of more experienced users: looking for an ascii-only golf-lang. I wonder which one I should pick. I heard about Pyth, CJam or Golfscript, unsure which is better for golfing? Thoughts?
 
@IanGödel Definitely Pyth
 
3:07 PM
Pyth seems to be used more often right now; I think GS is the oldest and Pyth is the newest and newer ones tend to be golfier
or if you really want to be golfy, don't use ascii only :P
but Pyth
 
@cairdcoinheringaahing mhm. Don't know anything about it but everything else there is meh.
 
Thanks for your recommendations! @HyperNeutrino @cairdcoinheringaahing
 
Of course, SOGL would be even better to learn :P
 
@IanGödel Jelly is maybe the best
 
no problem!
use Jelly though for general languages
ninja'd
 
3:08 PM
@Pavel "ascii-only"
 
@Pavel Looking for ASCII ONLY
 
Ah
 
what does ninja'd mean?
 
Derp
 
3:09 PM
@IanGödel We said the same thing at around the same time (we ninja'd each other)
@IanGödel Just interested, why ascii only? Jelly is quite a fun and interesting language to use/learn
 
Rather caird ninja'd Ian because he was first
 
@cairdcoinheringaahing ah ok
 
Also, that reminds me. I should make an ascii version of Jelly :P
 
ಠ_ಠ
 
@cairdcoinheringaahing I prefer ascii only because my keyboard is terrible with control keys (i.e unicode), and CMD+F is quite malfunctional on Chrome :-/
 
3:11 PM
@cairdcoinheringaahing funny because the point of J was to be an ASCII APL
 
@Pavel What about Jẹḷḷỵ as a name? :P The only non-ascii characters used :DDDD
 
-1
Q: Defined variable table that should never be defined

Bryan DiercksCan anyone explain how the following code actually works? In theory, it should end in an error stating that I 'Must declare the table variable "@t".' IF 1 = 0 DECLARE @t TABLE (id INT, id2 INT, id3 INT); INSERT INTO @t SELECT 1, 2, 3; SELECT * FR...

 
hehe, gotta go learn Pyth now :D - Thanks all
 
@cairdcoinheringaahing Then you might as well just use J.
 
@NewMainPosts Wth even is that question?
@Adám Nah, too much effort :P
 
3:15 PM
Are there languages that even compete with Jelly?
Haven't seen any of them getting even close so far
 
A couple
 
Example?
 
But mostly for short things
My language beat Jelly by a factor of 2 a couple of times
(with me at 4-8 bytes)
 
Mine too. 11 vs 23
 
@IanGödel Husk had a streak where it annihilated Jelly, but now it tends not to win. I'm working on a golfing language to match/beat Jelly in most situations though. Trust me, it's difficult :P
 
3:17 PM
@muddyfish Hovering over your profile, I assume you are talking about Pyke?
 
:P
Yes
 
CMC: Given a list, check if it's sorted.
 
What is CMC?
 
@cairdcoinheringaahing Pyke, 2 bytes: Sq
 
@IanGödel Chat Mini Challenge
 
3:18 PM
thanks
 
27
Q: What are the PPCG specific abbreviations and terms?

AdámNewcomers to PPCG are often compelled to ask what many of our abbreviations and terms mean. Let us list them here so this information always will be easily available.

3
 
Golfscript, 3 bytes.: .$=
untested
 
@Adám Thanks a lot!
@cairdcoinheringaahing Python, 21 bytes: lambda l:l==sorted(l)
Now trying it in Pyth :)
 
@Adám I think that should be added to the room info or the chatiquette. It's very helpful
 
@cairdcoinheringaahing Dyalog APL, 5 bytes: ⍋≡⍳∘≢
 
3:19 PM
It's probably qS in Pyth
 
@Adám Also, given that's a superset of my earlier answer, did I subninja you? :P
 
@muddyfish Yep, just about to post too :) - Reverse of Pyke... Coincidence?
 
@IanGödel Pyke tends to be a postfix version of Pyth in simple challenges
 
@cairdcoinheringaahing Mego had a talk with the other room owners and the idea was turned down.
 
@IanGödel Not in this case :P Most of the simple challenges can be solved in Pyke as the reverse of Pyth
What @cairdcoinheringaahing said
 
3:21 PM
Another 2-byter in Pyth: SI... Seen an old answer using I and remembered its meaning :P
 
@cairdcoinheringaahing Why don't you star it then? If we all make sure to star it a lot, it will stay visible forever, no?
 
@Adám New way of getting stars: ask for them. Why wan't this thought of sooner?
 
@cairdcoinheringaahing Sorry about asking for stars, but I truly believe it is for the common good in this case; to save us from having to answer the same questions over and over.
@FunkyComputerMan Congrats!
 
@FunkyComputerMan Nice! Well done. Now you can hammer posts :P
 
3:24 PM
@FunkyComputerMan wow that's... wow!
Congrats!
 
@FunkyComputerMan Yes, be careful, you may accidentally hammer something when you just wished to express your opinion.
 
@cairdcoinheringaahing Jelly, 2 bytes: ⁼Ṣ. Who needs ascii? :P
 
I've been 2 answers away for 3 weeks now. I am very happy to have finally finished the badge
 
Sorry for my redundancy, is there any way I can learn Jelly better other than the wiki on GH?
 
Levant, 2 bytes: ⁼Ś. Pushy, 2 bytes: og

 Jelly Hypertraining

Practice your Jelly :) Rules and stuff are here: golfingsucces...
 
3:27 PM
ಠ_ಠ There is an actual char room for that
Thanks!
 
I feel like we (JHT students) are promoting JHT too much
Any thoughts on ^ @HyperNeutrino?
 
Our purpose is to learn and teach others, isn't it? By teaching, we ourselves learn...
 
Oooh, so meta :P
 
Requested access :-) awaiting an approval from the owners
 
@cairdcoinheringaahing :P
 
3:30 PM
@cairdcoinheringaahing Nah, I think it is fine. I promote the APL room a lot too. In fact, APL and JHT tend to be the most active rooms in their category.
 
Yay, I got a meta badge :P (Only bronze though, nothing exciting)
 
That sounded like a pile of excitement and.. then you said nothing exciting
:P
 
yay i have a meta badge (only gold though, nothing exciting)
 
@HyperNeutrino Wait for real? Having a gold meta badge but none of main seems... odd
 
shh you're making me feel small and worthless :D
 
3:33 PM
yeah I got more than double the score of the accepted question
@IanGödel you're new here you'll get here eventually :D
 
Never gonna get like ~ N k :PP
ಠ_ಠ chat markdown definitely needs improvements
 
Yeah, it takes a bit of time to actually get going. Just remember. Don't think that creating other accounts to upvote your posts will work. It doesn't. Trust me :P
 
@cairdcoinheringaahing Huh? creating other accounts to upvote your posts - I actually never thought of that (and don't even consider it as an option!)
 
@IanGödel Well, just remember, not only does it not work (votes get reversed), but also its against the rules, so you get suspended for a week :(
 
CMC: Given two elements of the same permutation group, return their product (example to come)
 
3:37 PM
:( Review is quiet today
 
Consider the permutation group S_3 which is {[1 2 3] [1 3 2] [2 1 3] [2 3 1] [3 1 2] [3 2 1]}
technically the permutation 2 3 1 is represented as:
1 2 3
2 3 1
which means that permute(1) = 2, permute(2) = 3, permute(3) = 1
 
@HyperNeutrino Is this more group theory?
 
Essentially, a permutation is just a bijective function, and the group operator is composition
@cairdcoinheringaahing yes
 
@HyperNeutrino ಠ_ಠ Why can't you stick with easy CMC's and keep the group theory to main?
 
because this is literally 2 (or 3) bytes in Jelly
it was a trick question (which you might have gotten if you let me finish ಠ_ಠ :P /s)
 
3:39 PM
I'm guessing P is one of the atoms?
 
But... but... "return their product". I don't understand group theory :(
 
2 3 1 * 3 1 2 is 1 -> 2 -> 1, 2 -> 3 -> 2, 3 -> 1 -> 3 which is 1 2 3
@cairdcoinheringaahing product as in apply the operator to them
you know just whatever it's really easy once it's understood but hard to understand :P
anyway gtg o/
 
I still didn't get the idea?
What is 1 -> 2 -> 1 meant to represent?
 
3:41 PM
@HyperNeutrino What‽ You post a cryptic CMC and then leave?
 
I concur with Adam's comment
 
CMC (maybe going to main): Given a birth-survival rule, simulate game of life with that rule in application. For example, normal GoL is B3/S23 (3 adjacent cells to be born, and 2 or 3 to survive).
 
O_o This one is even more cryptic
 
@IanGödel Not if you understand cellular automaton :P
 
Well I don't. I only know Python for now, since I like creating simple programs related to work... And a bit of C
 
3:44 PM
@IanGödel Have a read through this It's interesting :P
 
@cairdcoinheringaahing I am aware of Game of Life, not a huge fan though
 
@cairdcoinheringaahing Mathematica built-in. Anywai, yes, worthy of main.
 
@Adám ಠ_ಠ I hate Mathematica. It takes the fun out of code golf, not by being short, but by having the language do all the work ;(
 
@cairdcoinheringaahing I suppose input by any means of two lists.
 
@Adám Yeah, any accepted method of input
 
3:46 PM
@cairdcoinheringaahing Oh no, quite the opposite, Mathematica adds the fun of outgolfing a built-in!
 
CMC: Given two positive integers, return their lcm.
 
@IanGödel APL:
 
@IanGödel Jelly, 2 bytes: æl
 
Built-ins ಠ__ಠ
And APL beats Jelly !
 
ninja'd
 
3:48 PM
@IanGödel Of course. That's why golfing languages win code golf :P
 
APL is not a golfing language IIRC, is it?
 
@IanGödel No it isn't.
 
@IanGödel No, but it can be quite succinct (similar to J) because they use single byte commands)
 
Lol
I'd like to see your Python solution(s) to my cmc though
 
hint: lcm(a,b)=a*b/gcd(a,b)
 
3:50 PM
Yeah I know that
 
@cairdcoinheringaahing Most of J's built-ins are two-byte.
 
@IanGödel PowerShell, iterative solution, 44 bytes -- param($a,$b)for($i=1;$i%$a-or$i%$b;$i++){}$i
 
lambda a,b:(a*b)/math.gcd(a,b)
import math
 
3:51 PM
Goes to Adam's profile.... They work for APL :o
 
Damn markdown
 
@cairdcoinheringaahing Why those parenthesis?
 
Python: lambda a,b:a*b/max(k for k in range(1,min(a,b))if not(a%k or b%k))
 
@IanGödel a*b/c computes a*(b/c)
 
@IanGödel Yes, I'm at work. I golf for a living.
 
3:52 PM
@HyperNeutrino max(k for k in range(1,min(a,b)) -> max((1,min(a,b))?
@cairdcoinheringaahing No...?
 
@IanGödel nope doesn't work
I need to filter
 
@IanGödel Well, it does, but they're equivalent.
 
@cairdcoinheringaahing Can we take S as including self?
 
@HyperNeutrino O yeah didn't see the if, my bad
 
@IanGödel ah ok :P
 
3:53 PM
@Adám What do you mean?
 
@HyperNeutrino I love bits, since I love math, 64 bytes: lambda a,b:a*b/max(k for k in range(1,min(a,b))if~-(a%k or b%k))
 
good
I love Hyper's though
 
@IanGödel Yeah, but it's not golfed :P
 
3:56 PM
@HyperNeutrino actually it can be 60 bytes: lambda a,b:a*b/max(k for k in range(1,min(a,b))if a%k+b%k<1)
 
@Adám Are you trying to do it?
16
Q: Do any of you golf for a living?

trichoplaxI'm just curious about whether any of you have a real-world use for your golfing skills. I'd also be interested to hear if you know of golf-related jobs even if you aren't involved in them, or if you have areas of your life where golfing has been required for practical purposes.

 
Unfortunately using next() is ungolfy D: lambda a,b:a*b/next(k for k in range(min(a,b),0,-1)if a%k+b%k<1)
 
@IanGödel Its better than .replace :P That's a killer in string challenges
 
oh yeah right hehe
i've seen much worse though
 
CMC: Given 3 strings, replace all occurrences of the second string in the first string with the third string. Example: "testing", "t", "hello" => "helloeshelloing"
Hehe, have fun with that one Jelly :P
 
4:06 PM
also 60 bytes: lambda a,b:[x for x in range(max(a,b),a*b+1)if x%a+x%b<1][0]
@cairdcoinheringaahing Python, 7 bytes: replace
 
@IanGödel That doesn't work
 
@cairdcoinheringaahing Sorry, 11 bytes: str.replace
Can't be too bad in Jelly either, can it?
 
Huh, I'm getting a bad gateway on this page of the Gentoo wiki, but only this page
 
@cairdcoinheringaahing actually, bad link?
 
4:09 PM
@IanGödel fixed
 
Jelly doesn't have string replacement
 
@HyperNeutrino huh?
 
oh lol
 
@cairdcoinheringaahing PowerShell, 30 bytes -- $a,$b,$c=$args;$a-replace$b,$c
 
4:10 PM
umm, lemme try it in Jelly :P - see how miserably I fail
 
@IanGödel Unfortunately, the most basic system in Jelly is the arity of an atom. Each atom is either a nilad (0 arguments), a monad (1 argument) or a dyad (2 arguments). String replacement is a triadic (3 argumens) function, which Jelly doesn't have.
 
@cairdcoinheringaahing Since to survive, a cell must already be alive, S could be taken as the count of all live cells in the 3×3 box, including itself.
 
oh, no way to implement tryads
?
OH LOL, ignore me /s
 
@cairdcoinheringaahing Yes.
@cairdcoinheringaahing Dyalog APL, 2 bytes: ⎕R
 
@Adám Ok. No, the counts are only talking about its neighbours
 
4:15 PM
@cairdcoinheringaahing 8 bytes in V: Jr/ÉÓDJ@
(The DJ was not intentional :P)
 
CMC: Given a String, get each 2 elements, then each 3 elements, then each 4 (from the beggining) until you reach the length of the string. For example: "abcdefghijklmno" -> ['acegikmo', 'adgjm', 'aeim', 'afk', 'agm', 'aho', 'ai', 'aj', 'ak', 'al', 'am', 'an', 'ao', 'a']. Then, concatenate the result altogether: acegikmoadgjmaeimafkagmahoaiajakalamanaoa.
 
lololol
 
Side note: should be ~50 bytes in Python
 
I feel like that's wrong
 
@cairdcoinheringaahing I don't think so....
 
4:17 PM
@IanGödel Uh, you wrote 2, then 3, but your example shows all, then all-1…1.
 
Wait a second... Duh, 6 bytes: Óa/b
Both of the boxes should be <C-r>
 
that is wrong @cairdcoinheringaahing not prefixes, modular.
 
@Adám No it doesn't
 
(if they show as boxes for you)
 
@DJMcMayhem what?  boxes?
 
4:18 PM
@Adám That character shows as boxes for some people
 
@HyperNeutrino ಠ_ಠ Misread the question
 
But as an APLer, I'd expect you probably have greater than average unicode support, so you're fine. :P
 
@HyperNeutrino :( spoil please, wanna try it too (although I know I would fail)
 
@HyperNeutrino Why doesn't this split the input?
 
4:21 PM
what do you mean by split the input
 
I have exactly 50 bytes in Python lol :D (my CMC)
 
hi all
 
hello
 
3 mins ago, by Ian Gödel
Side note: should be ~50 bytes in Python
:DDD
 
4:21 PM
@HyperNeutrino "abcdef", "c" => ["ab", "def"]
 
I am tempted to post another version of codegolf.stackexchange.com/questions/143772/… where there is no API
 
is that too hard?
 
@Lembik Definitely not too easy, but reasonable
 
@IanGödel is that in reply to me?
 
4:23 PM
Yes
 
great!!
:)
 
@IanGödel That's actually reasonable short in V, 13 bytes: Try it online!
 
Nice DJ :)
 
I would have expected it to be horrible, but my recent additions make it waaaaaay shorter thankfully
 
also unicode only
 
4:24 PM
And I found a cool new trick I didn't know my language had, so thanks for the CMC :)
 
Ok, 50 bytes in Python: lambda k:"".join(k[::u+2]for u in range(len(k)-1))
 
³ṣ⁴Ḣ¤ŒṘ @cairdcoinheringaahing
idk why it doesn't work otherwise but I think it's because "t" gives a list but we need a single element
 
@IanGödel You also helped me discover a bug haha
 
@DJMcMayhem Wow, great then :D
@HyperNeutrino Curious me went over to Tio and you don't seem to need the first char
 
ýÄ should be equivalent to $ÝÄ, but it's not
 
4:27 PM
@IanGödel well yeah theoretically but I was making everything explicit to observe behavior
 
@DJMcMayhem Adds one more hello?
 
@IanGödel Yeah, Hyper has a tendency to use a lot of superscript numbers :P
 
Yep. It should be 5 since len(hello)==5
 
@cairdcoinheringaahing Wait, will there be an input with the starting condition or should I return a function which will produce the next generation?
 
I have seen a meme that said.... Use all the superscripts back when I was lurking around this site.... Lemme find it
 
4:28 PM
@Adám I'm reluctant to tell you anything more, given that it gives you an unfair advantage
 
Bye all!
 
@cairdcoinheringaahing ? I'm just trying to answer the CMC.
 
@IanGödel posted
 
@cairdcoinheringaahing Wrong. Xcoder uses superscript, Hyper uses too many dollars
 
@cairdcoinheringaahing citation-needed
 
4:29 PM
@IanGödel thank you for the inspiration
 
@cairdcoinheringaahing ಠ_ಠ that was one post
 
@IanGödel Take care. Hope to see you back soon!
 
@Lembik You're welcome I guess?
 
@Adám Yeah, but I'm going to post it to main at some point, so...
 
@Adám Yeah, hopefully I won't have much work to do. See you all
 
4:31 PM
@Adám But, if you really want to work on it now, then yes, an initial starting grid will be inputted as well. Forgot to mention that :P
 
@cairdcoinheringaahing Oh, I just finished code which returns a function. Fine, I'll make it take a starting condition too.
 
hmm.. deadly downvote
 
@cairdcoinheringaahing Jelly, 6 bytes: ṣ⁴Ḣ¤jɠ
Wooo! Go triads!! :P
@Lembik interesting challenge, but I would've waited a bit between posts. People could dupe vote
 
@cairdcoinheringaahing yes I suppose.. people can be mean :)
@EriktheOutgolfer hi
@cairdcoinheringaahing and thanks!
 
@Lembik Why the random ping?
 
4:36 PM
@cairdcoinheringaahing I was just replying to you
did I get the wrong person?
 
@Lembik Check what message I replied to. You pinged Erik, seemingly out of nowhere
 
Oh yes to chat about his comment to my question
are you Erik as well ? :)
 
@Lembik No, I'm not Erik (I wish I had that much rep) and ^^ makes more sense. I couldn't really see a reason for pinging him.
 
0
Q: A British find-a-movie challenge

LembikThis is a more difficult version of It's a find-a-movie challenge . Input Your code should take a BBFC rating and a number from 1 to 5 as input. It can do this in any way you find convenient. Output Your code should return the name of any movie which has a) that film rating and b) that numbe...

 
@cairdcoinheringaahing I like the idea that really the whole chat room is one very fast typer
 
4:39 PM
@cairdcoinheringaahing Done. May I post my solution here as an answer to your CMC?
 
hi @lasereyes
 
@Adám Sure, if you want. Should be interesting to see how long it is :P
@Lembik Unfortunately, the mods wouldn't like that idea. (Also, that's basically the top 100 users on SO (Jon Skeet's bots :P))
 
@cairdcoinheringaahing Dyalog APL, 38 chars: {(n∊B)∨(5⊃,⍵)∧S∊⍨n←+/0@5,⍵}⌺3 3⊃⍞B S←⎕ (prompts for three element list StartState,B,S prints next state to STDOUT and echoes StartState to STDERR)
 
@cairdcoinheringaahing :)
 
@Adám Any help from Marshall this time? :P
 
4:45 PM
@cairdcoinheringaahing Nope, he could probably golf it further, but he's off from work (playing his guitar).
 
@cairdcoinheringaahing I commented on his last challenge that's probably why he pinged me
 
@EriktheOutgolfer Don't worry, your latest chat ping checker, caird, has arrived! </joke> :P
 
but I already have the red circle on my avatar ;p
@Lembik hmm...I'm really unsure as to whether having to register a "developer key" (or maybe even a "commercial key") counts as something similar to "using non-free languages" but for APIs instead
 
@EriktheOutgolfer Huh? What red circle?
 
the one at the top-right of the avatar at the lower-left side of the screen
 
4:50 PM
@EriktheOutgolfer The ping notification?
 
at least the red circle isn't blue
 
not the notification, the red circle that appears with pings, I was fast enough for the notification not to appear :p
 
@HyperNeutrino I wish it were, then I'd have 10k rep :P
 
@EriktheOutgolfer it's an interesting question but imagine how annoying it would be if a question insisted you used a non-free language
 
but yours doesn't insist...I won't hammer since I'm unsure
 
4:51 PM
ok
 
@flawr omg a goatpro
 
ಠ_ಠ I filtered out all code golf questions, then sorted by newest. There are over 40 pages of nothingness in the past year
 

« first day (2432 days earlier)      last day (2413 days later) »