« first day (1872 days earlier)      last day (3268 days later) » 

00:21
   **** This file had errors that were repaired or ignored.
   **** The file was produced by:
   **** >>>> Mac OS X 10.11.3 Quartz PDFContext <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.
For some reason I doubt "the author of the software" will care...
@Doorknob who is the author of the software?
uh, Apple?
I sent a bug with Safari and I got a response so they will probably care
Did you send the issue to WebKit or Safari?
Safari
00:41
Ooh, look what just showed up in my inbox
1
A: Implement a Truth-Machine

MickyTCubix, 6 bytes Cubix is @ETHproductions new 2(3?) dimensional language where the commands are wrapped around the face of a cube. !IO?@^ This ends up expanded out to the cube ! I O ? @ ^ This starts with the I command. Input an integer onto the stack. O, output the numberic value of th...

@ETHproductions
@CᴏɴᴏʀO'Bʀɪᴇɴ what happened to joining the PPCG server??.....
@EasterlyIrk I am sick again.
You are already on the computer.
@AquaTart nice
00:57
#NoExcuse
And I have to take a test on Julius Caesar on the ides of March.
:D
Flunk it.
And play minecraft.
But I must beware the ides of march
00:58
I had a TM that was also six bytes, including a no-op, so only five instructions
@Maltysen o_O
@ETHproductions Post it
@CᴏɴᴏʀO'Bʀɪᴇɴ it was the first hit for "get well soon gifs" on images
@Maltysen I'm not sure if that's hilarious or disturbing
Wow, Cubix's Hello, World! already has 8 upvotes
@CᴏɴᴏʀO'Bʀɪᴇɴ V
Now go play minecraft.
01:00
o_o
\\\\٩(๑`^´๑)۶////
I believe removing the last paren should still work. — Cᴏɴᴏʀ O'Bʀɪᴇɴ Mar 2 at 19:42
@ETHproductions
@CᴏɴᴏʀO'Bʀɪᴇɴ Will check on that
> Riker.gif
01:04
Not my fault.
That's you in 20/40 years
ಠ_ಠ
I don't look anything like that. That isn't quite what I look like.
> I don't look anything like that. That isn't quite what I look like. I lied, that's my dad.
ಠ_ಠ
Go play minecraft.
ಠ_ಠ
Go play nethack.
01:07
ಠ_ಠ
@CᴏɴᴏʀO'Bʀɪᴇɴ Am doing so.
And this and minecraft.
It's how I relax.
ಠ______________________ಠ
ugh, still not used to typing JavaScript ()
01:08
wow there's a lot of disapproval flying around
BY THE WAY... if you ever followed Simplex and wish to re-follow it, I have made a new repository here!
@Neil as opposed to wat?
@Maltysen ಠ_ಠ for not joining in.
@Maltysen ಠ╭╮ಠ
01:09
@Neil are you used to significant whitespace like python? if so, take a look at coffeescript.com
@Maltysen ಠ╭╮ಠ
@EasterlyIrk :D you used that one
@CᴏɴᴏʀO'Bʀɪᴇɴ as opposed to just ES6, ## bytes
@CᴏɴᴏʀO'Bʀɪᴇɴ yah
o-)
@Neil Oh. I thought you meant a different lang XD
@EasterlyIrk ಠ╭╮ಠ
01:10
Happy man in a boat.
uh, no.
That looks disturbing.
@Neil you should setup a text replacement. I have &javascript; which expands to # JavaScript (ES6),
ಠ ∪ ಠ
01:15
ಠ﹀ಠ
uh no
@Vihan isn't that almost exactly the same amount of typing?
you should make it \js or something
@Doorknob no
actually almost...
Maybe &js; would be better
01:17
@LegionMammal978 that's what I did
I think IE's the one who introduced MutationEvents O_o
IE actually did something useful
@LegionMammal978 why ampersand and semicolon...? Requires use of the shift key and a useless char at the end
01:20
<insert barfy wat gif>
@Doorknob IDK, apparently he likes HTML entities
HTML entities are the best
:D
How do you dat
System Preferences > Keyboard > Text
01:25
llama@llama:~$ cat .XCompose
[...]
<Multi_key> <Multi_key> <d> : "ಠ_ಠ" # disapproval
<Multi_key> <Multi_key> <l> : "( ͡° ͜ʖ ͡°)" # lenny
<Multi_key> <Multi_key> <r> : "http://www.youtube.com/watch?v=dQw4w9WgXcQ" # rickroll
<Multi_key> <Multi_key> <s> : "¯\\_(ツ)_/¯" # shrug
<Multi_key> <Multi_key> <t> : "(╯°□°)╯︵ ┻━┻" # tableflip
<Multi_key> <Multi_key> <z> : "​" # zwsp
I use custom compose key sequences. So compose+compose+d is ಠ_ಠ, etc.
(and don't ask why rickroll is in there)
what is compose?
a key that makes entering Unicode characters a million times easier
compose ' e = é
compose # q = ♩
so like alt on a mac?
compose - - - = —
compose P P = ¶
@Vihan wait... alt key on a mac does something other than "alt"?
@Doorknob yes...
alt + 1 = ¡
alt + 2 = ™
01:28
why?! O_o
alt + 3 = £
shift + alt + 1 = ⁄
the compose key is actually sane though
shift + alt + 2 = €
etc.
like instead of memorizing "alt 2 = tm" you just do "compose t m"
@Doorknob you can just open up the keyboard viewer from the top and it becomes a lot easier
01:29
so wait... how do you type a literal alt+f (for example) on a mac then?
@Vihan the what?
this thing
ewwww
in what universe is © produced with g instead of "compose o c"?
and why would I want to do this when I can just have sane combinations like "compose ! !" -> "¡"?
@Doorknob if you squint the © symbol can be viewed as (g
uhhh... I'm not seeing it
:/
01:33
so how do you actually enter alt+f instead of entering some randomly chosen Unicode character?
I want to +1 this data sheet for saying "Don't Care"
@Doorknob if an application has set something for alt+f it'll do that rather than inserting the unicode character
so then how do you enter... whatever random character is under there in that application?
@Doorknob use the keyboard viewer
yuck
that's almost as bad as Google searching the character and copy/pasting it from there...
ಠ_ಠ
the keyboard viewer is very easy to open though
01:35
anything that requires the use of the mouse is not "easy"
Why do you dislike mice so much?
@Doorknob cookie clicker?
@Dennis they always eat all my cheese
ಠ_ಠ
¯\_( ͡ಠ ͜ʖ ͡ಠ) _/¯
01:37
(╯°□°)╯︵ ┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━‌​━━━┻
┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━‌​━━━┻ ︵ ╯(°□° ╯)
...
trial and error :P
-1
Q: generate lexicographically largest string

RishiGiven a string "str" and pair of "N" swapping indices, generate a lexicographically largest string. Swapping indices can be reused any number times. Eg 1) String = "abdc" Indices: (1,4) (3,4) Answer: cdba, cbad, dbac,dbca ​you should print only "dbca" which is lexicographically la...

what is the difference between include and import in c?
01:47
uhhh... there's no such thing as "import" in C
._.
really?
6
A: My C "Hello, world!" program isn't compiling

vszIt's not #import, it's #include.

Mar 4 at 3:10, by Doorknob
debates over whether to add "this chatroom is not Google" to the description
hahaha
Mar 7 at 1:20, by Vihan
@Geobits It's faster asking here than reading docs
s/reading dogcs/googling it/
01:50
it's arguably faster to hit the suspend button than to continue answering the deluge of questions :P
also, I don't know about you, but I've never written anything on my Cing eye dog
does C have like a println so I don't have to do \n at the end of every printf?
oh no, it's too late to edit :(
ಠ╭╮ಠ
01:52
ninja'd
ಠ╭───╮ಠ
@Vihan well actually, there is puts
but don't do that
why
how do I do like import otherfile.c in c?
I promise I tried to google it but nothing came up
you don't
then what do I do?
01:55
u make a header file and include that
how do I make a header file?
when you compile the stuff just include all the files
uhh
how?
oh sorry that wasn't a response to how to make a header file
a header is like a list of function and variable signatures
It's okay, I googled it and found a helpful answer:
96
A: Creating your own header file in C

Oliver Charlesworthfoo.h #ifndef FOO_H_ /* Include guard */ #define FOO_H_ int foo(int x); /* An example function declaration */ #endif // FOO_H_ foo.c #include "foo.h" /* Include the header (not strictly necessary here) */ int foo(int x) /* Function definition */ { return x + 5; } main.c #incl...

01:57
are you just trying to hack your way through c?
cuz that's in like chapter 3 of any c book / intro tutorial
yes
and no
@Maltysen I do not like docs/books
so do I need to like make a makefile to do this?
uck, makefiles seem to need tabs D:
> To compile using GCC
gcc -o my_app main.c foo.c
or yes, use a makefile
It's hard to have friends here if you don't know what their whitespace preference is. It's like being stabbed in the back.
;)
Tabs are the way to go
3
02:02
Starred for great truth.
I blame Geobits for this spread of lies and blasphemy. :P
ಠ___________________________________________________________________________________ಠ
wow that's a lot more people who liked tabs than I thought
does anyone know what "CFLAGS" is?
Mar 4 at 3:10, by Doorknob
debates over whether to add "this chatroom is not Google" to the description
02:03
9 mins ago, by Vihan
I promise I tried to google it but nothing came up
don't use makefile
then what do I use ._.
@Vihan really. Because Googling "makefile cflags" resulted in about a million helpful results for me.
4 mins ago, by Maltysen
> To compile using GCC
gcc -o my_app main.c foo.c
02:05
Calvin r u here
but I don't want to be running a very long compile command every time
or whatever ur name is now...
@AshwinGupta it's HelkaHomba
Did u reset the map on PPCG? Can't find my house where it should be..
Thanks Vihan. R u downgot?
yeah
02:05
fine then use makefiles if you want, but its overkill for you IMO
sup.
@HelkaHomba u here?
@AshwinGupta He should be UpsideDownGoat ಠ_ಠ
When I was sshing into my Raspberry Pi, for a while I hadn't pulled my vimrc, so I was using vanilla vim. Which means that at times, some files had mixtures of spaces and tabs... it was horrifying.
@Maltysen it doesn't matter. I have no idea what I'm doin anyway
user image
2
read that and you'll kinda have an idea what you're doing
02:07
@Doorknob you think its worth getting a raspberry pi? I may be able to get something when I graduate from middle school and I was thinking I could get one since its pretty cheap (like 25-30 bucks or whatever) and I could learn some more programming. Could I learn anything from it at my level (not really begginer, but advanced-begginer)?
@Vihan Me when programming in J
@Maltysen usually for things like these I just do an alias c='gcc ...' (c for compile). Same with Rust, to cut down on typing: alias c='cargo run'
@AshwinGupta what are you thinking of using it for?
IDK really, just for playing around.
@Dennis (╯ಠ ͜ʖಠ)╯︵ ┻━┻
@AshwinGupta If you want to learn more programming. don't use C. it's very confusing
02:08
i'm thinking of getting one for the free mathematica
@AlexA. oh my god, what is that
@Vihan C is good D:
I honestly don't know what you do on them. I just hear they teach you programming.
@AshwinGupta Middle school :o? But IMO a RPi is worth it
@Vihan this is... misleading advice at best
02:08
@Maltysen but confusing
like they are very few builtins
if not any
just do a lot of including
@Vihan ...
@ZachGates okay thanks I'll consider that. Also why is middle school funny to you?
8th grade if that helps =/?
02:09
I have approximate knowledge of many things
@AshwinGupta They don't teach anything; they're a tool to help you learn. It comes with several pre-installed langs
namely mathematica ^.^
@Vihan C language is best language. Everything else is stamp collecting.
2
@AshwinGupta a Raspberry Pi is basically a tiny, really cheap computer
@AshwinGupta No, I just thought it was interesting. I don't see many people younger than 15/16 in here
02:10
Right, but cant you conncet like cool external stuff like lights or whatever.
I've also heard of adurino which is like that.
raspberry pi zero is only like $5
@ZachGates im 14, almost 15 (september)
@Maltysen s/Mathemetica/Python
Oh shoot gtg I will be back in like 20-30
@AshwinGupta get a USB cable ;P
02:10
@AshwinGupta yeah, if you're more curious about the hardware side of things, Arduino is probably better for you
@ZachGates but python doesn't cost like 17K
@Maltysen Hehe, depends on how much time you spend using it. Time is money, after all.
@AshwinGupta for that all you really need is a breadboard and a battery
If time is money, C is filthy rich
honestly, java is way worse for productivity than C
@Dennis s/C/Julia/g
02:12
@Vihan Usually more than a breadboard and a battery
@AlexA. s/Julia/Rust/g
what's the difference between main: in a makefile and like myrandomrule:
6 mins ago, by Maltysen
http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/
@ZachGates ok fine, jumper wires, and a transformer
@Doorknob This evaluates to false
IncorrectError:
02:14
@AlexA. last time I checked, regexes... regices... regexen... regex's... whatever... can't evaluate to a boolean without a string to match against :P
@Vihan If you're planning on controlling a power grid lol
@Doorknob Better Czech again, broskinski
(][[[]](}])]]]]){](]]][}](]]}]{]]]}](]}]{]}]]]{{}]]]{](][](}]{]}]{(]]]}](]][{](]‌​[]}](]}]{]){](]](}]{]}]{{}]
:D
only 107 bytes!
> Once you have a precise problem you can report it in one of two ways. Either send electronic mail
"electronic mail", damn this manual is old....
I still see "electronic mail" used today sometimes
02:17
really? o_O
@CᴏɴᴏʀO'Bʀɪᴇɴ Huh
@CᴏɴᴏʀO'Bʀɪᴇɴ wat
Golfed what
02:17
^
Uh
Mar 11 at 17:00, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
It's called "Pris"
I forgot you forgot
oh yeah
but what does it do?
(][[[]]( ; 72
}}}      ; out H
)]]]])   ; 32
{{{      ; 72 -> reg
(]]][    ; r += 29
}}}      ; out e
(]]      ; r += 7
}}}      ; out l
{]]]     ; nop
}}}      ; out l
(]       ; r += 3
}}}      ; out o
{{{      ; set r to 72
}]]]     ; nop
{{       ; change focus
}]]]     ; nop
{{{      ; 32 -> reg
(][](    ; r += 12
}}}      ; out ,
{{{      ; set r to 32
}}}      ; out " "
{        ; change focus
(]]]     ; r += 15
}}}      ; out W
(]][     ; r += 13
{{{      ; 100 -> reg
(][]     ; r += 11
02:19
uh
51 secs ago, by Vihan
but what does it do?
oh, it's a Hello World!
Yeah!
wait I forgot to say that!?
damn
@Doorknob ...where? I see e-mail occasionally, which really rustles my Jimmies.
@AlexA. which really whaaa?
02:21
^ idk?
> tiny multicolored sugar shapes, typically rods and balls, used for decorating cakes, ice cream, and other desserts; sprinkles.
> tiny multicolored sugar shapes, typically rods and balls, used for decorating cakes, ice cream, and other desserts; sprinkles.
aw, ninja'd
@Maltysen Urban Dictionary is, for the first time in the history of its creation, actually helpful here
@AlexA. I... what
@Doorknob look at definition #2
o_O
@Doorknob Shhhh, let it hold you... let it take you
@CoolestVeto Welcome to Programming Puzzles & Code Golf!
02:31
hahaha
@CoolestVeto Welcome! PPCG is a Stack Exchange site with the purpose of creating and solving programming challenges or contests. I see you've found our chat room!
0
A: "Hello, World!"

Cᴏɴᴏʀ O'BʀɪᴇɴPris, 107 bytes (][[[]](}])]]]]){](]]][}](]]}]{]]]}](]}]{]}]]]{{}]]]{](][](}]{]}]{(]]]}](]][{](][]}](]}]{]){](]](}]{]}]{{}] Try it out here! And here's an explanation! (][[[]]( ; 72 }] ; out H )]]]]) ; 32 {] ; 72 -> reg (]]][ ; r += 29 }] ; out e (]] ; r += 7 }] ...

That was very satisfying
Did you fall asleep on your keyboard? o_O
No joke, I actually did. I used that in the code.
> "What is this terror!"
02:50
What should Gogh's behavior be for integer + codeblock? or string+, float+, array+
I was thinking of just prepending the element to the block
What does a codeblock do?
It's basically a subprogram that can be mapped to any element
Runs in a new stack (with the previous TOS already on the new stack)
Oh, cool!
string + codeblock should create a new codeblock with code of string and previous codeblock concatenated
So if the codeblock is {1.2+} (add 1.2 to the TOS), and I add that to the string "123", what should the result be?
1231.2?
Depends on your operator overloads
02:54
@MarsUltor No, I'm not actually executing the block
I was thinking {"123"1.2+}
yeah makes sense
@ZachGates "123" + {1.2+}() (i.e. add "123" to result)?
@MarsUltor What
@ZachGates Then what is {"123"}{1.2+}+?
{"123"1.2+}
right?
02:55
^
Or maybe {{"123"}1.2+}
@ZachGates Wait, what does {"123"} do?
Maps the string to the TOS
I would make {"123"}{1.2+}+ => {"123"1.2+} and "123"{1.2+}+ => {1231.2+}.
@MarsUltor If the TOS was an array, every element becomes the string "123"
@ZachGates Because that would be {{"123"}}{1.2+}
02:57
@CᴏɴᴏʀO'Bʀɪᴇɴ Yeah, you're right
how many distinct graphs are there with N labelled nodes and K paths?
@CᴏɴᴏʀO'Bʀɪᴇɴ What about the reverse? {1.2+}"123"+
@ZachGates Hm... Lazy me says {1.2+123}, but useful me says to look at the codeblock and see if you can insert 123 anywhere useful, such as {1.2 123+}
Hm, I'll think about it
Whatever you do, do not rush it. I've made that mistake a few times and have always regretted it.
For example, using the space as a functional character.
03:05
Yeah, space is the no-op for me :P
That's good :D
> Daniel said on 03/02/08 09:23:16

> doesn't this defeat the point of using a program to write out the song?? i mean its definately impressive but in this case it would actually be easier to type the whole song!
In response to this
People are idiots >_>
@CᴏɴᴏʀO'Bʀɪᴇɴ I've just got here so when you say "mistake", what do you mean? The rushing? And rushing what?
@Sherlock9 Rushing through the creation of a programming/golfing language is a terrible idea and mistake.
0
Q: Convert a pawn promotion from algebraic to ICCF numeric notation

EMBLEMInput A single string, which contains no whitespace, as a command-line argument. Output If the string is not a valid algebraic notation pawn promotion, produce no output and exit. If the string is a valid pawn promotion, convert it to ICCF numeric notation and print the result, followed by a n...

03:08
Ah, I should have guessed. Thanks o7
no prob ^_^
Whitespace program is gone >_>
@CᴏɴᴏʀO'Bʀɪᴇɴ: Well, you know, now I'm thinking that "123"{1.2+}+ should eval to "1231.2+" because the element I'm adding to is a string
@ZachGates That also makes sense. I just can't see how it would be particularly useful.
I could dump the string to a codeblock => {1231.2+} (Add 1231.2)
Oh! I didn't realize there was such a command.
03:18
Yeah, dumping an array pushes all its elements to the stack & dumping a string creates a code block
I'm going to need a new wiki page just to cover logic between different types lol
Could you link me? :D
@CᴏɴᴏʀO'Bʀɪᴇɴ github.com/zachgates7/Gogh
Wiki has all the info I've written down so far
03:26
I'm about to push the implementation of code blocks. After I finish it's logic between different types
@ZachGates starred for using spaces
Someone should write a github userscript that lets you put in your indentation preference and if you go to a repo that uses the other one it displays a big warning
Looks like I have a job
I gotta go now >_>
0
Q: Is it cheating to invent a language for code golf?

CoderWith people using such cryptic languages as Jelly, where is the line? can I write my own compiler that solves the problem in a more wordy language when I type the number '0'? I can see that this is immoral and ruins the point of code golf, but how do you decide which languages are legal and which...


« first day (1872 days earlier)      last day (3268 days later) »