« first day (2307 days earlier)      last day (2832 days later) » 

17:00
Pro code golfing:
4
1: go to google.com
2: Press Control+U
@programmer5000 HA
Or 1- go to google.com 2- google "shortest <language> <challenge>"
In a language with only string literals, a string repeat function, and an output function, how could you make a quine?
easily
one sec
@programmer5000 A simple C quine using only string literals and an output function: main(a){printf(a="main(a){printf(a=%c%s%c,34,a,34);}",34,a,34);}
Does said language have formatted output?
17:07
No, but string concatenation.
I bet you could make it work
C-like escapes
Can it concatenate ASCII values?
For example concatenate(string,34), or something similar
Like ASCII char code to string? Yes
@programmer5000 OOC what lang are we discussing?
17:08
"test" + codeToString(34) + "hi"
and it is a language I am making now
@programmer5000 Yeah you could make that work
Does it use C-style function declarations?
Or is it a scripting language
Okay, I'll write some pseudocode
Just a min
How does one declare a string in this language
17:10
Why am I getting segmentation fault?
_start:
movl $1, %eax
movl (%eax), %ebx
int $0x80
@ArmaGeddON Stop posting that
@MDXF in quotes like C
Put it on StackOverflow if you really care
alright
@programmer5000 Got it
Hm
This is getting harder than I expected
I'm getting stuck in an infiniloop with print(codeToString(34)+string+codeToSTring(34)
Just add printf :P
Unless string="string literal"+string would make string = "string literalstring literal"
user165474
17:16
@MDXF Intentional missing close bracket?
@HyperNeutrino ...where?
user165474
print(...()+...+...()
@HyperNeutrino Ah nope, typo, but it's just pseudocode anyway
@MDXF is it possible / feasable?
@programmer5000 It's feasible if string="string literal"+string is valid
17:17
(if it helps, I have an eval function)
@MDXF And, yes
user165474
@MDXF why wouldn't it be?
@HyperNeutrino It's his own language, not C
or Java
or anything
@MDXF Then how?
user165474
Oh okay.
@programmer5000 Now I'm working on that
17:19
Ok
thanks
Yup
An eval function makes it easy enough
@BusinessCat tbh never worked with a language that had an eval
@BusinessCat really? Why?
I use C, shortC, assembly, BASIC and other ancient languages
17:22
Hmm actually I'm not sure. With eval and string representation it's really easy
@BusinessCat ...proof of concept?
@BusinessCat see above, C-like string representation
How is it easy?
user165474
@programmer5000 I remember back when you passed my rep and I was sad lol
@programmer5000 I keep getting stuck in infiniloops, screw it
I don't think I know enough about how your language works
Here's as far as I got before getting stuck again: main(){print(a="main(){print(a="+34+a+34+"+34+a+34")
@MDXF What don't you know that you need?
17:27
@programmer5000 A GitHub link :P
user165474
CMC: Let there be two rooted trees with root node Z, with the same nodes as each other but different edges. It can be colored with two colors (because it's a tree). Prove that a graph with the same nodes and the union of the edges of the two trees can be colored with at most four colors.
@BusinessCat damn. I feel pitiful now
Well, technically that should have a trailing newline
Since print adds one
@programmer5000 Guess you have your answer then :I x='print("x="+repr(x)+";eval(x)")';eval(x)
17:30
Well that only works if you can use two different kinds of quotes :S
What is repr?
@BusinessCat
String representation
Wraps it in quotes
@BetaDecay I took your advice and answered Martin's question. valid?
@BusinessCat Oh, so if x was hi then "hi"?
17:31
Yes
Brilliant. C needs repr and eval
@MDXF but C is compiled, so eval would have to invoke the compiler from the executable ಠ_ಠ
Yeah, C needs eval
But still needs two different kinds of quotes
17:33
@programmer5000 True
New life ambition: Add eval to C.
Does the language allow using single or double quotes?
user165474
wait isn't that a cyclic reference
user165474
oh wait nvm it's all in quotes
@BusinessCat is exec the eval function? I assume so
@BusinessCat both are fine
@programmer5000 Yeah exec is eval
17:34
Yes exec is eval for some reason
Funny because in C exec executes commands
Actually you can use both? Not sure if there's a difference
@BusinessCat Weirdly needs a trailing newline
@BusinessCat Python is confusing
@BusinessCat Yes, just like JS, there's no diff
user165474
17:35
exec == eval returns False so they're not quite the same :)
Gosh, I hate languages that have builtins with two names
user165474
exec("1")==1 is False but eval("1")==1 is True.
user165474
@programmer5000 @BusinessCat exec is not eval.
Then what's the difference?
user165474
exec performs the actions, eval yields the result
user165474
17:38
exec executes the string as code
user165474
eval evaluates it as a snippet
@BusinessCat Why dosen't that stackoverflow? execing x execs x! (eval works too)
@HyperNeutrino Makes sense
When you exec x, you get the code print("x="+chr(39)+x+chr(39)+";exec(x)"). exec(x) is inside a string.
I don't even know if this is a valid quine by our definition.
@BusinessCat Why not?
It doesn't read its own source
17:43
I don't know, I don't really understand what our definition means :P
@BusinessCat Well, there's a meta post somewhere about that
user165474
a=lambda x,y:eval('eexveacl'[x::2]+'("'+'eexveacl'[y::2]+'(\'1\')")')==1
user165474
This calculates the boolean AND of two values.
user165474
without any boolean operators or conditionals (unless equality counts)
user165474
Works for True/1/False/0
17:49
Should've waited to post that, already hit the rep cap today :I
user165474
lol
possibly the most poetic thing I've ever posted
Sublime Text says me that plugin_host exited unexpectedly and it keeps appearing after multiple restarts
I had a BSOD earlier so I guess this is what borked it but how to fix
17:59
@TuxCopter This isn't Stack Overflow
This is the PPCG chat
I fail to see your point
TNB does tech support all the time
Really?
user165474
Well, tech support is more on-topic than juicing avocados at least.
[Citation needed]
18:03
@HyperNeutrino :P link?
Check the many memes of PPCG
...link? xD
20
A: The Many Memes of PPCG

VoteToCloseMeme: how does juice an avocado I have try for thirtee minut and no juic Originator: Alex A. Cultural Height: 22 September 2015 - Present Background: Alex said something dumb about avocados to PhiNotPi in chat. It has since escalated. Exhibit A: Usage example: Literally anything about avoca...

Ah, thanks
My friend got a call from the Indian tech support from Microsoft saying his computer was infected. He said that his Windows Defender said nothing about any infections and the caller hung up
4
user165474
18:06
It means someone posts something right before someone else posts the same thing.
user165474
...
@NAND This chat room
user165474
@NAND The Nineteenth Byte
Oh
double ninja'd :O
18:09
@TuxCopter I'm not as meme-y as I used to be. :P
Plus, I'm frequently pulled away from PPCG nowadays. :\
@NAND A place where abuse of stars is legal
@TuxCopter thanks
user165474
Whoever is starring all these messages, please stop. You're going to run out soon because you only get 20 stars per room per day
13
@HyperNeutrino Crap
@HyperNeutrino I thought it was 40
18:10
It wasn't me lol
*ghost of elendia starman comes in and nukes everyone*
but still
(and no it wasn't me)
@Phoenix ?
@HyperNeutrino I would star for agreement, but eh.
5
18:10
sigh
I don't even know where to start trashing
Can mods see who starred?
user165474
o.o the RO has arrived
Room owners?
@programmer5000 Nope.
@programmer5000 Nope
dammit
18:11
You leave for half a year and TNB goes to pot... Huh, I understand all the meta posts now :|
9
user165474
@DJMcMayhem Start here.
@HyperNeutrino Who's the RO?
user165474
DJMcMayhem
I got a message saying timeout
Doesn't seem to be doing anything
user165474
Bookmarks?
Have I arrived at the wrong time?
3
@MDXF Click on room, then create new bookmark
@muddyfish yes
@muddyfish Yes
ninja'd
18:12
@programmer5000 Ahh
Damn the star abuse is real today
51 ninjas moved to trash
8
51 o_O
user165474
Thanks.
That seems low
18:13
Agreed
@DJMcMayhem Ninjas? O_o
@MDXF You joined after I left for a while. Why would you think I'm a meme if you've never met me? :P
2
XD
prolly your username
Damn, the star abuse is real today
@VoteToClose I'd never met Downgoat and it was pretty damn clear he was a meme
user165474
18:14
You know when a mod moves stuff to trash, maybe its time to stop posting more trash
@muddyfish ಠ_ಠ
Wow most of trash's posts is from TNB
So much for a better chattequet
@VoteToClose Your username, profile pic, bio, comments, etc.
TNB is the most active chat room, isn't it?
user165474
s/equet/iquette/
18:15
One of them
No it's not I'm a liar
@Phoenix Meta on the Tavern could compete, right?
@VoteToClose oh
I think SOCVR beats TNB
Meta has it's own chat network
@JanDvorak SOCVR?
18:16
what's SOCVR
user165474
@BetaDecay DJ isn't a mod but same difference
user165474
Stack Overflow Close Vote Reviewers
user165474
I think it may be because SOCVFinder, Smokey, and FIREALARM are all on it
That's only 'cause there are like 50 bots posting to that
ninja'd
18:16
SOCV has 2.4k per week. TNB has 7.6k
That's alot
user165474
That's not star-worthy.
@someonewhocan clear the stars
^^ is the least effective message in TNB history
@HyperNeutrino I agree
18:19
@KritixiLithos I got a call claiming my involvement in in a car accident. I asked which car (I don't own one) of the multiple I usually travel in (true) it was. They hung up.
@programmer5000 That's possible?
@DJMcMayhem Could you leave the stars for a bit? I'm gonna screenshot and put in a request for meta to increase the time period between starring.
3
I think we need to bulk-nuke the past 30 minutes of TNB
@VoteToClose Sure, ping me when you're done. Unfortunately, I've already removed the worst of it
@Phoenix think so?
18:20
yes
So how come DJ's basically a mod?
Was that a poorly concealed plan to get people to stop starring?
We're already good. Thanks.
@MDXF We elected him
Please bulk nuke. NOW.
18:20
@MDXF I can do some simple moderation tasks in this particular room
user165474
@MDXF He's a room owner
@HyperNeutrino So RO did stand for Room Owner.
user165474
Yes.
alias RO="Room Owner"
user165474
:I
18:22
Trash Nuke starBait Please now
@DJMcMayhem What's The Algorithm? just browsing your bio
user165474
@MDXF Why are you stalking random people? ;)
What do you mean by algorithm?
Oh, nvmd I see what you mean
We did not invent The Algorithm. The algorithm is banned in 47 countries. The algorithm is on-topic on 87 percent of SE sites. The Algorithm consistently finds Jon Skeet. The algorithm cannot be detected by regex. This is not the algorithm. This is close.
18:23
Are you a meme too?!? ;)
@MDXF I'm not sure what the algorithm is, but I can certainly tell you that this is not the algorithm
This is close
user165474
Is Green Eggs and Ham the same person as McMayhem?
@DJMcMayhem So it's basically another meme, like Zalgo and Jon Skeet?
Also, what does :w !sudo tee % do
@Phoenix in Vim?
18:24
Actually nvm I'll just try it because it has sudo in it and that's a good idea.
@MDXF yes
@Phoenix It's a vim hack that lets you save files you don't have access to
@Phoenix man tee
user165474
ninja'd
user165474
18:25
That's a link.
@HyperNeutrino Manatee?
user165474
Manatees (family Trichechidae, genus Trichechus) are large, fully aquatic, mostly herbivorous marine mammals sometimes known as sea cows. There are three accepted living species of Trichechidae, representing three of the four living species in the order Sirenia: the Amazonian manatee (Trichechus inunguis), the West Indian manatee (Trichechus manatus), and the West African manatee (Trichechus senegalensis). They measure up to 4.0 metres (13.1 ft) long, weigh as much as 590 kilograms (1,300 lb), and have paddle-like flippers. The etymology of the name is dubious, with connections having been made...
Close enough.
man a tee
user165474
18:25
anyway i got to go now
(ninja'd)
user165474
bye!
Nevermind there are already tons of questions asking to reduce star rate, to reduce star count for the day, and alternatives to starring.
@Phoenix Holy sh*t
18:26
eh?
I never thought of using TIO for manpages
Damn brilliant
@Phoenix Why not bash
@programmer5000 zsh is conveniently at the end of the list so I know exactly where it is
@programmer5000 man tee
Also, zsh master race
18:28
@Phoenix Maybe I should make a programming language called zzzgolfinglang
I prefer fish.
@programmer5000 Do it
Poll: is zsh pronounced "zee-ess-aich" or "zeesh"
zee-ess-aich
Or djshh
18:30
@Phoenix Works for Windows too: dir -?
I say "zeesh", but "see-ess-aich" for csh
@programmer5000 ninja'd
@MDXF Does not check dup responses...
18:32
0
Q: Is this relationship creepy?

FishProHDAccording to this XKCD comic, there is a formula to determine whether or not the age gap in a relationship is "creepy". This formula is defined as: (Age/2) + 7 being the minimum age of people you can date. Given the age of two people, can you output whether or not that relationship is creepy?...

@programmer5000 I was looking at the wrong thing anyway
@NewMainPosts why'd that take 20m?
Because the RSS feeds are slow
20m is a bit slower than average but not really.
Oh okay
Slow for me
Already got two answers to that q :D
18:39
Kind of a cheat that you used a variant of C for both ;)
@BetaDecay It's not a variant :P
@BetaDecay Either way they're both still at 0 votes :(
I don't understand why taking the larger age first is allowed
Somehow, seeing as how mine were posted first and my shortC answer is shorter...
@KritixiLithos It's not
@MDXF I ran out of upvotes today after I upvoted answers on my challenge
18:43
I'm confused as to what 'taking the larger age first' means
What encoding uses 0xff for ÿ?
@programmer5000 CP-437 maybe?
@programmer5000 Latin-1?
Latin-1 definitely does
wtf why doesn't f(a,b)(a/2+7>b)||(b/2+7>a) work for that challenge
18:46
@MDXF What language is that
@Phoenix C preprocessor
You would need #define f(a,b) (a/2+7>b)||(b/2+7>a) then.
And | is golfier than || btw
The parentheses might be redundant too.
@Phoenix I know I need the #define and the parenthesis are for temporary clarity as I fix it
Is your question why it's not working or why it's invalid?
Why it's not working, it always returns 1
Pretty sure the second part is wrong as #define f(a,b) (a>b?a/2+7>b:b/2+7>a) doesn't work either
18:51
How can I convert an array of char codes (eg. [72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33, 32, 13, 10]) to a string in Latin-1 encoding in javascript?
@MDXF your > should be <
@tuskiomi which?
the last 2
Both I think
Is there anyway to search deleted answers? I deleted an answer on the sandbox and I would like to find it
18:53
ctrl + H? browser history might not be a bad place to start
@tuskiomi Thanks, that fixed it
Windows-1252 or CP-1252 is a 1 byte character encoding of the Latin alphabet, used by default in the legacy components of Microsoft Windows in English and some other Western languages. It is one version within the group of Windows code pages. == Details == This character encoding is a superset of ISO 8859-1 in terms of printable characters, but differs from the IANA's ISO-8859-1 by using displayable characters rather than control characters in the 80 to 9F (hex) range. Notable additional characters include curly quotation marks and all the printable characters that are in ISO 8859-15 (at different...
@tuskiomi I asked it a long time ago.
I've wiped my hard drive 5 or 6 times since then
Holy avocados, that question skyrocketed
Probably 'cause it's so freaking easy
@WheatWizard sorry
@WheatWizard does this turn anything up for ya: codegolf.meta.stackexchange.com/…
Not the deleted ones. Thanks though
@programmer5000 Don't know much JS, but 'Hello, World!' 'Windows-1252'⎕NPUT'\tmp\my.txt' does it in Dyalog APL.
oops, didn't show
codegolf.meta.stackexchange.com/users/recently-deleted-answers/<userid-here>
19:01
I guess its to old. Thanks
and this doesn't show it either, huh? codegolf.meta.stackexchange.com/users/56656/…
@tuskiomi Like he said, it's probably too old
Is there a equivalent of <cntrl>K in Vim/V?
@WheatWizard dd?
Oh yeah
19:11
Cuts the current line. Un-cut with u
duh
I feel real dumb now. Thanks!
19:26
How are chatbots for TNB made?
19:39
@programmer5000 Check out some SE Chatbot repos
But do not make a chatbot for TNB
@TuxCopter There are already quite a few
New Main Posts, New Meta Posts, New Sandboxed Posts, etc
Yes but those are official
I don't think those are quite bots, feeds are different
-1
Q: Little Man Computer Problem

JackI am struggling on little man computer question. Input two numbers, x and y. If x is exactly 1 larger than y, then it outputs 11 and if it isn't then it outputs 22. I would appreciate if you can explain how you did it so i understand it. Thank you!

19:53
@NewMainPosts Should be deleted
0
A: Sandbox for Proposed Challenges

quintopiaPrime of My Life This year my age is a prime number, and so is this year. This conjunction will repeat in 10 years and again in 12. If I live to 100, I will lived exactly 11 years in which my age and the year are both prime. My condolences to those of you born in odd-numbered years, who will exp...

@programmer5000 Definitely not after 20 minutes.
iirc normal people can't cast delete votes the same day a question is posted

« first day (2307 days earlier)      last day (2832 days later) »