« first day (1987 days earlier)      last day (2842 days later) » 

3:04 AM
What? lol no
 
Yeah `\` is for namespaces
Like Cheddar\spoil()
 
;_;
 
Not really the same though
 
not really but it'll might be to create pytek + PHP polyglots maybe.
 
3:10 AM
True. ..
 
omfg i wrote a cheddar program and it worked :D :D :D \o/ \o/ \o/ \o/ :^) :^)
 
Hey..I'm trying to fix an on hold question, and I have a question about it. Is there a specific way I can say non-negative "counting numbers", like just normal numbers?
 
@atlasologist non-negative integer? 0 1 2 3 ...
 
@Helka right now I have "non-negative integer" in the question, and I also have "input and output are both in decimal format, using non-negative counting numbers. (0,1,2,3,...)" but I think there's rule confusion with people asking about leading 0's and whatnot.
 
@atlasologist I think the problems are A) how should leading zeros be handled? Can they be trimmed? B) remove the restriction on requiring I/O to be numbers. They should be allowed to be taken as strings
Other than that the challenge looks fine
 
3:26 AM
@Downgoat sounds good. I can make the distinction for leading zeros, and I'll lift the I/O restriction. Just for future reference, is there shorthand for "non-negative integers in decimal format without leading zeros (ie, 0,1,2,3 ...)"?
 
@atlasologist you can say "natural numbers including zero".
I don't think you'll need to specify the input won't have any leading zeros
 
Ah, okay. On that second point, the output won't have leading zeros--is that what you mean?
 
I can use chat now!
 
@atlasologist oh sorry, I didn't think correctly >_> I think in this case specify there will be no leading zeros in the input. Because in this challenge leading zeros would actually be significant, you should specify it.
@Destructible \o/ Welcome to TNB!
 
Okay, will do, thanks!
 
3:32 AM
(ノ˚O˚)ノ Woot
 
3:48 AM
@Destructible nice Python answer to my luck question!
 
@Destructible Welcome to the craziness The Nineteenth Byte!
 
thank you
 
I spend an unhealthy amount of time in this room/site.
@Downgoat Congrats! Can I see it?
 
17.6k rep, yep that checks out
 
That's nothing. Most of the mods have +100k
 
3:59 AM
Uhh, nobody here has over 100k yet. :P
 
Network.
I don't have 17k on ppcg
Although we'll probably have 2 100k-ers before the end of the year.
 
I kind of want to learn Pyth just for the rep :P
(and also cause it's fun and horrifying)
 
@DrGreenEggsandIronMan Oh wow, Martin's really close.
Huh, I wonder if PPCG or CR will get a 100k-er first. Martin's at 96.2k, and over on CR 200_success is at 96.5k.
 
Ppcg is more upvote-happy.
 
(<):)-|-< Happy man wears upvote hat
 
4:08 AM
Don't let geobits see you flaunting those upvotes.
@Doorknob I don't know ex very well. Do you think there are enough uses for it that it would be worth keeping the :g command defaulted to ex commands?
Or should it default to norm?
 
So,
I might have an idea for KotH challenge, but I don't know java, etc. What do?
 
to make a challenge or to try out the Game of Life one?
 
to make a challenge
 
well idk much about koth yet
but you could ask around in the Sandbox meta.codegolf.stackexchange.com/questions/2140/…
 
just a second, I think i messed up one my string luck answer
actually
yes i did
d'oh
 
4:24 AM
RIP
 
@DrGreenEggsandIronMan yeah, it's:
var asdf = (a, b) -> {
    for (var i = 0; i < a; i = i + 1) {
        b(i);
    }
};

asdf(10, (i) -> print i);
 
@Destructible You don't have to know java to run a KOTH. The only one I've ever done was in c++.
What languages do you know?
 
he knows python for sure
 
I only know python. I'm going to learn lisp, but later.
 
4:27 AM
@Dr
 
@Downgoat 0/10, no +=
 
@DrGreenEggsandIronMan what was the KOTH you did?
 
@Destructible I recommend learning Cheddar. It's a new rather language that's all the hype these days. It's also really easy to learn
@DrGreenEggsandIronMan gonna add rn
 
I might do that
 
@charredgrass Just a sec, let me find it.
 
4:30 AM
0
Q: Find a dual graph

helloworld922A dual graph is defined such that for every "face" in a graph G, there is a corresponding vertex in the dual graph, and for every edge dividing two "faces" on the graph G, there is an edge in the dual graph connecting the vertices corresponding to the two faces of the original graph. Here is a s...

 
31
Q: Let's play Meta tic-tac-toe!

Dr Green Eggs and Iron Man Lets play a game of Meta tic-tac-toe! This is a king-of-the-hill tournament of Meta tic-tac-toe. The rules of Meta tic-tac-toe are as follows: All of the regular rules of tic-tac-toe apply. There are nine boards arranged to make one master board. Like so: 0|1|2 || 0|1|2 || 0|1|2 ----- || --...

 
these KOTH challenges look really fun
 
so, anyway, would anyone care to hear my idea for KotH challenge?
 
@Destructible sure. or you could post it in the sandbox where more people might see it
;_; js perf is down
though I think it's been down a while
 
4:34 AM
you could post it in the Sandbox and link it here
 
In a nutshell;
two bots battle with a custom fairy chess piece, with input like kriegspiel (obscure chess variant); each bot can only tell whether; the other piece could move/capture the bot at their position, whether they can move to a specific square, or if the other piece is in that square that they can attack
 
1
Q: Diamond with numbers

InsaneInspired by this, print an ascii diamond pattern built using 0-9. Rules Input n should be between 0-9, anything outside that range is undefined The diamond should be padded with spaces The middle line should always have no padding and be the only line to contain n, in the center Print to stdou...

0
Q: Run Stackylogic

Helka HombaStackylogic is a logic-based programming language I made up that take in 0's and 1's for input and outputs a single 0 or 1 upon completion. A Stackylogic program consists of lines that can only contain the three characters 01? as well as exactly one < at the end of one of the lines. Lines may no...

 
Stackylogic is interesting.
 
This diamond thing is harder than I thought it would be
although I haven't used recursion in golf before, which iI'm trying now
stack overflow, rip
I should probably not use js for this
 
4:58 AM
@charredgrass Why not?
 
^
 
ugh
Dallas is scaring me
 
@MᴀʀsUʟᴛᴏʀ because I don't really know what I'm doing at all lol
 
@VTCAKAVSMoACE the city or the esolang?
 
5:02 AM
@HelkaHomba oh. o_o I did not hear about that until now...
 
second opinions on whether the diamond printing challenge is a dupe?
 
it takes input
 
Yeah the other thing is just to print that diamond
 
my impression was that most answers could just change 9 to n in their code
 
yeah but the other diamond challenge's answers appear to be able to be trivially modified to support the new challenge
@xnor yeah
 
5:04 AM
starting with 0 might make a difference to those that generate the number
though in a way that makes that strategy harder, which I think is unfortunate
 
@xnor though a -1 can fix that
 
that's true
 
maybe there's some workaround to get the zeroes at the start and send?
@Downgoat I meant using the fact that 111*111=12321, purely arithmetically
 
oh
 
The legend of gnome ann:
President Andrew Johnson once said, "If I am to be shot at, I want Gnome Ann to be in the way of the bullet."
5
 
5:07 AM
help, there's a cat on my keyboard typing valid pyth
 
@charredgrass story of my life
 
5:23 AM
Another Java 8 lambda answer!
0
A: Shamir's Secret Sharing

R. KapJava 8, 224 bytes: (n,t,s)->{int[]W=new int[t-1];for(int i=0;i<t-1;i++){W[i]=new java.util.Random().nextInt(251);};long[]O=new long[n];for(int i=1;i<=n;i++){long T=0;for(int h=1;h<t;h++){T+=W[h-1]*Math.pow(i,h);}O[i-1]=((T+s)%251);}return O;}; A Java 8 lambda expression. Outputs a comma separa...

 
5:36 AM
Does the diamond question fall under ?
 
I'm writing a solution to stackylogic at the moment
 
@DestructibleWatermelon a Python solution?
 
I can't do anything else :)/:(
 
cheddar> var a = 1
cheddar> a += 1
2
cheddar> a += 1
3
cheddar> a += 1
4
cheddar> a += 1
5
\o/
 
Haha, your name is shortened, and so I thought it was just destructible. I just right now realized what your actual name is.
 
5:39 AM
I might try and write a Pyth solution to stackylogic
 
yep. This is the curse of the verbose
 
@DrGreenEggsandIronMan oh :| I thought you were talking to me
 
Nope. Talking to the watermelon.
@DestructibleWatermelon You should change your profile picture to this:
 
something is wrong with my code :(
I don't understand :(
 
@DrGreenEggsandIronMan 10/10 will be 11/10 if the shards form the shape of a goat
 
5:45 AM
@Downgoat I haven't used cheddar in ages but seeing all the progress you made makes me want to update and start screwing around with it
 
what exactly is cheddar? I looked at the GitHub page but still dont know what it is
 
@DrGreenEggsandIronMan :D I'm glad you're interested. The best part is that it actually works now too
@charredgrass cheddar.vihan.org
the website has more info than the github
 
@Downgoat Your edit cleared my progress on my edit. -.-
 
oh dam
I realised the issue
:(
it couldn't detect newlines
:) i realised how to fix
I removed the slash. Now it will recognise the n in newline
fek
...
 
@Downgoat Is vihan your irl name?
 
5:50 AM
@DrGreenEggsandIronMan Yes
 
@MᴀʀsUʟᴛᴏʀ is Downgoat's stalker confirmed
 
@VTCAKAVSMoACE oh... I am so sorry :( ... have a cookie because i feel bad now: 🍪
 
@Downgoat Can I have some Cheddar instead?
c:
 
@DrGreenEggsandIronMan yes, pls no stalk me.
@VTCAKAVSMoACE Only have swiss :( 🧀
 
@Downgoat dam
 
5:53 AM
@HelkaHomba I really liked your Stackylogic challenge. Although, my language choice could of been better... :P
 
ik ;_;
 
how could this happen to my code ;-;
I... I don't understand
 
wait nvm @VTCAKAVSMoACE ^
 
you should use jQuery to fix the issue
 
ಠ_ಠ
 
5:55 AM
oh dam i just thought of an AMAZING idea for a jQuery/HTML solution to Stackylogic
to jsfiddle!
 
I understand why it is failing. I don't understand how the condition causing it to fail is happening, though
 
@DestructibleWatermelon ?
 
my code is failing for no raisin
 
@DestructibleWatermelon ???
 
@DestructibleWatermelon Is it failing for grapes instead?
 
5:56 AM
@DestructibleWatermelon There is no n in \n
 
/me regrets nothing
 
ok. question. does "\n" count as a single character
 
@DestructibleWatermelon It is
In a string
 
5:57 AM
well, either way, still not working
 
@DestructibleWatermelon Regex?
 
@DestructibleWatermelon In byte count, no, in the string, yes.
 
ok, well that problem solved, but new problem
 
Anybody know why this has two comment votes?
 
your playful use of emoticons?
 
5:59 AM
@DestructibleWatermelon ?
 
@DestructibleWatermelon :P
 
@DestructibleWatermelon programming in a nutshell
 
yeah, hehahahaaaaaaaaaaaaarghrghgh
 
does JSFiddle have jQuery by default?
 
Btw if anyone's working on that diamond with numbers thing, using a back-to-back range to define the back-to-back ranges works really well (see my answer there).
 
6:01 AM
I understand now
hooray
<|:|-|-<
 
@DestructibleWatermelon is that a fish
 
@VTCAKAVSMoACE It's a person with three sets of arms
 
it wAS SUPPOSED TO BE AN UNAMUSED MAN WEARING A PARTY HAT
 
@DestructibleWatermelon no
 
IT SYMBOLISES MY DRY JOY
 
6:03 AM
<I:ɪ-|=<
 
oh wow dudes
I solved it
yay
 
/me claps?
 
@Downgoat I tried installing cheddar, but the newest version of windows insider borked npm. =(
 
@VTCAKAVSMoACE => false
 
6:05 AM
Whoops, supposed to be pseudo-irb output
 
@DrGreenEggsandIronMan ;_; windows y u do dis ;____; maybe do update npm/node and then try
 
@DestructibleWatermelon looks like a guy got suck up a fish firework
 
@DrGreenEggsandIronMan 40+ breaks on my screen
 
;-; I can't do anything right
 
6:07 AM
Oh, that's too bad. I can go up to 52.
 
ok, now that it is working good, I golf some more
 
what is that
 
Cooler than a diamond
 
@DestructibleWatermelon Diamond with numbers challenge going past 9.
 
6:11 AM
yep, I was about to say nvm
 
It almost looks like the assassins creed logo sideways.
 
JavaScript HTMLElement should be renamed htmlement
 
htm-LEL-ement
sorry
 
:D That's so cool!
 
6:15 AM
you know how, if you use print a lot in a program, you do p = print. What if i want to do that with append, which needs to be with a string?
 
a=str.append
I think. But it won't necessarily be shorter.
 
ty, you posted just after i figured it out. I need to think longer
 
Actually, I just tried it, it doesn't work. What did you do?
 
well, the same thing, but it wasn't going to save any space actually
 
>>> a=str.append
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: type object 'str' has no attribute 'append'
>>>
 
6:19 AM
what the
suddenly, not working
 
Could you post your code?
Don't worry, I won't steal it.
 
No promises here
jk, still working on this jQuery solution
 
@DrGreenEggsandIronMan How would a be used?
 
oh, i see the problem now
 
@MᴀʀsUʟᴛᴏʀ There is a way, I just can't remember it.
 
6:24 AM
Δ is a vaild JS variable name right?
 
@MᴀʀsUʟᴛᴏʀ can you make CheddarShuntingYard support postfix operators (or tell me how to do it?) :3
@charredgrass yes
it's a greek letter but it's still a letter
 
@DrGreenEggsandIronMan I mean how is it supposed to be used
 
>>> a = list.append
>>> l = [1, 2, 3]
>>> a(l, 4)
>>> l
[1, 2, 3, 4]
>>>
 
dere we go. is working
 
@charredgrass Are you a sock of this user? The profile pictures are suspicious.
 
6:26 AM
^ I was thinking the same thing
 
@DrGreenEggsandIronMan Oh wait, str has no append
 
lol
No, just a coincidence
 
... It's clearly the same person in the picture.
Not sure if I believe you.
 
^ & ^^
 
yay my code is working
hoorraaaaaaay
 
6:28 AM
\o/ \o/ \o/ \o/
 
@DestructibleWatermelon why do you even need string append
 
You'll notice that I almost exclusively use JavaScript
 
@charredgrass I exclusively use JS
 
@charredgrass so did nicael o_o
 
i meant list append lol, I have no idea why i said string
 
6:29 AM
oh shit that's just scary
who IS this person
 
@Downgoat this is uncanny.
 
who is nicael
 
@VTCAKAVSMoACE idk some javascripter who was on the site for a bit and used JS
@charredgrass emacs or vim?
 
@Downgoat hiss js
 
ಠ_ಠ
 
6:31 AM
vim, duh
 
The answer is obviously nano
 
I don't think I've met a single person who uses emacs.
 
\o/ \o/ \o/
 
however, microsoft word is superior to both
 
6:32 AM
@DrGreenEggsandIronMan my father uses emacs ;_;
 
@charredgrass this is a lie in every way
 
@charredgrass i... ca— ju— wa—......
i am at a loss for words
 
Mandatory xkcd:
 
nvim > vim > MS word
 
6:33 AM
^^
 
@Downgoat and I have not met him.
 
nvim > vim > vi > everything else
 
Almost everything is better than MS
 
vim text editor is best text editor
 
@MᴀʀsUʟᴛᴏʀ s/Almost //
 
6:34 AM
@VTCAKAVSMoACE you need to get the space around the Around
 
but because you're using vim you can just do daw
 
ms word > notepad > notepad++ > sublime > atom > vim > emacs
> vi
 
@Downgoat That's not true. Vi is super old and not nearly as good as vim. I'd rather use boring regular acme editor than vi.
 
@DrGreenEggsandIronMan still better than nano imo
 
6:35 AM
nvim > vim > emacs > sublime > n++ > gedit > vi > atom > wordpad > word
 
@MᴀʀsUʟᴛᴏʀ I like atom, but god it's slow.
 
idk what is n++ and gedit
 
@DrGreenEggsandIronMan Yeah, if you consider speed atom is bad
 
^^^
and it's self proclaimed "amazing git support" is shit
 
@Downgoat gedit = linux notepad, n++ = notepad++
 
6:36 AM
and it can't indent for shit
 
I like how easy it is to change the look of atom
 
@MᴀʀsUʟᴛᴏʀ oh ah ok
 
@Downgoat atom is slow cause JS is shit.
 
and yeah, its git support is almost nonexistent, Eclipse has better git support
 
Don't forget about Brackets.
 
@DrGreenEggsandIronMan ;_; y u haet js
@VTCAKAVSMoACE Brackets is good for HTML and that's it
 
js is gud for you
 
@DrGreenEggsandIronMan JS is good
atom is slow because people can't write JS
 
what would we do without js
 
@Downgoat See: plugins
There are a lot of good Brackets plugins.
 
6:38 AM
For an example, look at how unreadable Google's HTML source is
 
@VTCAKAVSMoACE ik i used brackets since forever until I fully moved to vim
 
@MᴀʀsUʟᴛᴏʀ all html is unreadable
 
@charredgrass tru dat
 
@charredgrass D: does that mean you like jade more than HTML?
 
@MᴀʀsUʟᴛᴏʀ jade has been moved to pug
 
6:41 AM
damn, golfing this is annoying
 
@DestructibleWatermelon golfing python is difficult
 
but anything's better than pyth
 
I write firmware for work, and the stupid board developers decided to bundle the IDE and compiler, so I have to install like 10 different <company name> + studio IDE's and literally every single one of them is the worst IDE I've ever used.
 
@charredgrass O.o
 
6:44 AM
@DestructibleWatermelon and then Dennis will outgolf you in a second
 
Atmel studio, TI studio, etc.
 
what would be best way to do lookbehind
 
31
A: The Many Memes of PPCG

VTCAKAVSMoACEMeme: Failing to Outgolf Dennis Origin: Dennis and anyone who tries to outgolf him. Cultural Height: Until PPCG is no more (forever) Background: Dennis always wins. or, alternatively, Seriously. Almost no one has beaten Dennis, ever. If they have, he's just golfed it down more. Newer ve...

 
invalid security ?
 
6:46 AM
@Downgoat ?
 
like in Cheddar
 
@Downgoat Example?
 
in the master tokenizer it needs to do a lookbehind after each statement to see if there was a newline within the last whitespace jump
because:
 
it wasn't actually 355; that included the call to the function for testing
 
1 + 1
2 + 2
will parse 1+1 and the newline
 
6:47 AM
either way, 335 bytes
 
@Downgoat Shouldn't that just be a boolean property on the tokenizer?
 
can't it won't retain (or will be very unreliable) that the boolean will propogate all the way down the CST. (e.g. from the number token to property token to expression alpha token to expression token to array token to expression alpha token to expression token to assignment token)
 
In jumpWhite, set to whether jumpWhite finds a \n
@Downgoat ?
 
idk it's just all very complicated so I'll just backtrack until the first newline or non-whitespace char
 
WIP - my jQuery Stackylogic answer
 
6:51 AM
i used exec to golf
pretty well too; not one or two bytes
 
@charredgrass 0/10 not jQuery
 
@MᴀʀsUʟᴛᴏʀ I actually did use jQuery
 
oh wait no i didn't
lol
 
$('.s')
 
@charredgrass ._.
 
6:52 AM
@charredgrass getElementById = not enough jQuery
 
how what why
 
....true
why did I do that
 
@charredgrass Pls click collaborate
 
6:57 AM
@MᴀʀsUʟᴛᴏʀ too good at golfing :P
 
0
Q: Code golf to make logos for New Stack exchange sites

Matthew RohDo you recognize the PPCG logo? it looks like this, when you do an ascii art of it. +---+ |PCG| +---+ v Now, In this Code Golf, You will make a code, that makes logos for other sites, similar to the PPCG logo. What You should do The "Shortened" string will be the string, with all upper ca...

 

« first day (1987 days earlier)      last day (2842 days later) »