« first day (1946 days earlier)      last day (2894 days later) » 

12:00 PM
I moved from Cheddar to doing some really bad ideas
 
@Quill like "cheddar"?
 
@Agawa001 The challenge is to output 65536 without using any number in the source code
 
@Bálint what have you done
 
MS, ???, HP, BugZilla?, ???, Gitter, GH, ???, ???, Medium, ???, ???, ???, ???, CloudFlare?, ???, ???, ???, this looks familiar, ???, ???, ???
I'm so bad at recognizing favicons
 
@Quill Oh sorry
 
12:00 PM
28 mins ago, by Leaky Nun
Chat mini-challenge: output 65536 without numbers in the code
 
@MarsUltor he's trying to summon the goat from his eternal slumber
 
@Agawa001 without any number in the source code
 
ooooh
 
@Quill Oh no
 
i m trying, number 2 occurs 4 times
 
12:01 PM
@Agawa001 what language are you planning to use?
 
@MarsUltor Pretty good.
 
algol
 
@Agawa001 what is this language?
 
@Everyone Don't summon the goat. The goat wakes up whenever he feels like. If he's woken up earlier, who knows what he will do.
 
prints(minutes^minutes^minutes^minutes)
faast fast fast fast
 
12:02 PM
@LeakyNun Here
 
@Agawa001 please, deterministic
 
oh too late
now minutes after hours are exceeded by 1
 
@LeakyNun does number in index of array count?
 
@JesterTran Yes
@JesterTran And number in string and number in name
 
ok
am I allowed to read from STDIN and print same thing out?
 
12:06 PM
matlab:

a='c'-'a'; a^(a^(a^a)) ,
 
@JesterTran no input
@JesterTran Now stop picking lookholes
 
@LeakyNun :P
 
21 bytes
 
@Agawa001 a='c'-'a';a^a^a^a^a
19 bytes
 
matlab considers parenthesis
 
12:08 PM
@Agawa001 What would my code output?
 
priority is set to the first number
65536
 
ooh, I was trying something similar to that but didn't know you could subtract like that XD
 
trick rick ricks
 
@LeakyNun 65536: Math.pow(b=(a=""|!"")+a,(d=(c=b+b)+c)+d)
 
@MarsUltor f=a=>{a.push("a");o=[],c=a[0],q=[c];for(i=1;i<a.length;i++){if(c+1!=a[i]){q.pus‌​h(c);o.push(q);q=[c];}c=a[i];}alert(o)};f([1,2,3,6])
@Bálint java?
 
12:13 PM
@LeakyNun javascript
 
@Bálint It can be done in 16 bytes in js
(c=b+b)+c      9 bytes
b+b+b+b        7 bytes
""|!""   6 bytes
+!![]    5 bytes
 
@MarsUltor whaaaaaaaaaaaat
 
@LeakyNun It's a repl
for Java 9
 
I know
 
12:18 PM
BTW, the js code says [[1, 3], [3, 6]]
 
damnit invisible characters
copying my solution inside won't work, because they inserted U+200B and U+200C
f=a=>{a.push("a");o=[],c=a[0],q=[c];for(i=1;i<a.length;i++){if(c+1!=a[i]){q.push‌​(c);o.push(q);q=[c];}c=a[i];}alert(o)};f([1,2,3,6])
@MarsUltor
>> a=[[1,3],[3,6]]
<< Array [ Array[2], Array[2] ]
>> a.toString()
<< "1,3,3,6"
 
It's supposed to be [[1, 3], [6, 6]]
 
oh, ok
 
f=a=>{a.push("a");o=[],c=a[0],q=[c];for(i=1;i<a.length;i++){if(c+1!=a[i]){q.push‌​(c);o.push(q);q=[a[i]];}c=a[i];}alert(o)};f([1,2,3,6])
 
12:23 PM
Everybody using GitHub who might not have known this from @Quill this night: You can now assign up to 10 people to a single Issue or Pull Request.
 
How on earth do I get rid of the invisible characters
 
@zyabin101 Third time this is posted today.
 
f=a=>{a.push("a");o=[],c=a[0],q=[c];for(i=1;i<a.length;i++){if(c+1!=a[i]){q.push‌​(c);o.push(q);q=[a[i]];}c=a[i];}alert(o)};f([1,2,3,6])
 
@_@
 
@LeakyNun why are there even invisible characters
Where are you writing this
 
12:24 PM
@MarsUltor How do I know
 
I think it's from the newline
 
in the F12 firefox
But it has no invisible characters there
 
Or word wrap in the console?
 
it is only in here
 
@mınxomaτ Who's and when's the second time?
(The first is from @Quill this night)
 
12:27 PM
Found a question on Puzzling.SE
Just went "‾\_(˙ᘧ̲˙)_/‾ it's the weekend"
Wrote a surprisingly silly answer:
0
A: Correct way to add 22 to 4 to get 613867

LegionMammal978Slightly silly answer: Could you be doing it... It certainly works in theory: Explanation: Relatively new user here, so please inform me of any formating issues or other problems.

 
‾\_(˙ᘧ̲˙)_/‾
 
> As with all of the other puzzles, consider these numbers in base 10.
 
@LegionMammal978 Y u delete it?
 
> As with all of the other puzzles, consider these numbers in base 10.
 
1 min ago, by Mars Ultor
> As with all of the other puzzles, consider these numbers in base 10.
 
12:31 PM
@LegionMammal978 ninja'd
Also, stop replying with message one boxes. I always know this is annoying.
 
decimal coded numbers are perceptual for normal people, not for asm coders because they see in binary
 
@MarsUltor After some golfing:
f=a=>{a.push("a");for(i=o=[],q=c=a[0];++i<a.length;c=a[i]){if(c+1!=a[i]){o.push‌​([q,c]);q=a[i]}}alert(o)};f([1,2,3,6])
 
and hex
 
@Agawa001 asm coders don't see in binary
It's just that they don't have loops etc
 
(˙ᘧ͜˙)
 
12:36 PM
@MarsUltor f=a=>{for(i=o=[],q=c=a[0];++i<a.length+1;c=a[i]){if(c+1!=a[i]){o.push([q,c]);q=‌​a[i]}}alert(o)};f([1,2,3,6])
 
@MarsUltor i said hex as well
 
@Agawa001 They see in decimal
 
f=a=>{for(i=o=[],q=c=a[0];++i<a.length+1;c=a[i])if(c+1!=a[i])o.push([q,c]),q=a[‌​i];alert(o)};f([1,2,3,6])
 
12:49 PM
14 hours without a post...
 
@Agawa001 It would be nice if I could see in hex
 
@LegionMammal978 Would the result be 620000 or 610000?
620000 seems highly probable to me
 
@LegionMammal978 people who see in hex, can easily see in bin
 
Would {P.!Q in pyth be a valid solution to this question?
http://codegolf.stackexchange.com/questions/80771/illiteral-prime-numbers
 
@drobilc I used P and got flamed
My solution was f!tlPTS
> (+2) I'd argue prime factorisation is included in "You may not use built in prime checks" – Fatalize yesterday

@Fatalize I would argue that prime factorization does not require prime check. – Leaky Nun yesterday

(+2) Prime checking is trivial if you have prime factorisation, so I'd argue your argument is pretty weak. – Fatalize yesterday

The point is that prime factorization itself does not use, and is not a prime check. – Leaky Nun yesterday
 
12:55 PM
Yes, but the question says:
Prime factorisation functions are allowed
 
Yes, but expect to get flamed.
 
@LeakyNun I didn't post it
 
Wow so long class a{public static void main (String[] args){int a="abcdefgh".length();System.out.println(a<<(a+"abcde".length()));}}
 
@MarsUltor there are several golfs
the most obvious one is this
 
@LeakyNun ?
 
12:57 PM
class a{public static void main (String[] args){
interface a{static void main(String[]a){
 
I just joined Puzzling! \o/
 
@Sherlock9 Right now we consider "classes" as a type, and types are basically categories (which class are you?). Dependent types is more granular. While we still have classes, we also are able to add additional information about a type at compile time. For example, we can add "This integer is not zero"-> NonZero. If we have a NonZero Integer, then we know when we do integer division, that it won't ever produce a divide by zero error
 
@MarsUltor Something interesting: see what this code produce: System.out.println((int)'@');
 
Oh wait
 
My first question on that site: (from plug import shameless)
0
Q: Correct way to add 22 to 4 to get 9999

zyabin101Inspired by four other puzzles, how could it be possible that adding 22 to 4 gives 9999? What is the correct way to do it? As with all of the other puzzles, consider these numbers in base 10.

 
12:58 PM
I haven't used C#/Java for golfing yet
forgot they had a char type
 
It's fine
 
Should have realized when 'abcde' didn't work :P
 
Java's my first language, so it's normal
 
@LeakyNun C# is my first language
Just I haven't used it for ages
 
I see
 
1:00 PM
Also
how do i use charcodes to make it shorter? All the ways I can think of use unprintable characters
 
@MarsUltor Try '@'*' '*' '
f=a=>{for(i=o=[],q=c=a[0];++i<a.length+1;c=a[i])if(c+1!=a[i])o.push([q,c]),q=a[‌​i];alert(o)};f([1,2,3,6])
f=a=>{a.push('a'),o=[],q=c=a[0];for(i of a.slice(1)){if(c+1!=i)o.push(q,c),q=i;c=i}alert(o)};f([1,2,3,6])
 
Can you format code in chat?
 
@drobilc for single-line, ``
 
interface a{static void main(String[]_){System.out.println('@'*' '*' ');}}
:D
 
for multi-line, Ctrl+K
 
1:02 PM
@NathanMerrill You got another example. That may not be the best one to wrap my head around
 
@MarsUltor remove the space after main and rename args to a while also removing the space in front of it
 
import random
random.randint(0, 100)
Oh, thanks
 
No problem
@MarsUltor Does '\uFFFF'++ work?
 
@LeakyNun Fixed
 
sure, I could define a NonEmpty trait for List
then, if I wrote a sum() function
 
1:05 PM
No, it's an increment
Increments always only work on variables
 
oh, ok
1
 
it could take a NonEmpty list
to ensure that there's always at least 1 element to sum
 
f=a=>{for(i=o=[],q=c=a[0];++i<=a.length;c=a[i])if(c+1!=a[i])o.push(q,c),q=a[i];alert(o)};f([1,2,3,6])
 
or better, if I wanted to take the average of a list
because we define the sum of an empty set to be 0
 
@MarsUltor Finally there isn't any invisible character... Ctrl+K was the solution
 
1:08 PM
but the average of an empty set is undefined
 
It's interesting to watch the quest-for-tetris serial adder in pure black and white: goo.gl/17IJfj
 
@Dennis ready for gcj?
 
@aditsu Somebody said code jam!
 
oh sorry, I was sure Dennis got to round 2
 
I'll be more than ready to produce the leadboard for it.
 
1:11 PM
who's in round 2?
ah, the number one (is he anagrammed currently?)
oh, and @Sp3000
Jakube..
 
class a{static void Main(){System.Console.Write('@'*' '*' ');}} Damnit C# why so long
 
So, in the first ~15 mins the question earned 1 upvote and 2 favorites.
 
"AW YIIS"
 
But no answer >_>
I can't do a shameless plug right now.
 
@WadCheber That's pretty close, yeah. :P
@WadCheber Oh, I figured. I was just worried about the 1% that someone would have been mad and came in here to fight about it
It really wasn't a discussion SciFi was involved in but out of context I could see it rustling someone's jimmies
 
1:42 PM
@aditsu GL to you too
 
@Sp3000 thanks, good luck :)
 
Wait, this is PPCG.
 
^nice use of sarcasm
 
CodeJam prep: make a folder for each problem, open dashboard, open CJam. All good.
 
Wait
was CJam designed for Code Jam?
 
1:55 PM
@MarsUltor It means cherry jam.
It is designed for code golf, however.
But @aditsu is an avid enthusiast in using CJam to solve code jam problems. :3
 
Same as Dennis
It's really good for math-based, quick solutions
 
Apr 10 at 2:20, by aditsu
@NathanMerrill not particularly, but I had CodeJam in mind
 
@zyabin101 You could use base
 
huh, that @NathanMerrill was still highlighted
no ping though
 
@LeakyNun
 
1:59 PM
@LegionMammal978 Doing that for my Puzzling question? Then the numbers are still in base 10.
 
I know
Tried that on another question on that type (and deleted it)
 
goes back to forming his code golf C9 workspace
 
GCJ is starting!
 
Yes, I have a code golf workspace on C9!
@TheNumberOne @_@ Somebody said GCJ!
 
@zyabin101 What's C9?
 
2:00 PM
@LegionMammal978 Cloud9 >_>
 
Oh
‾\_(˙ᘧ̲˙)_/‾
 
@LeakyNun Testing
0
Q: Self-pinging behaviour inconsistent

Kenny LauWhen I attempt to ping myself in chat (@LeakyNun), it does not work. However, if I try to reply to my message (:29967544), I receive the ping.

@LeakyNun Testing
 
@LeakyNun how is that a bug?
 
@LeakyNun If you hover over your comment does it highlight your previous comment in grey as it would for others?
 
@trichoplax Yes
@Doorknob Well, are we supposed to be able to ping ourselves or not?
 
2:03 PM
@LeakyNun Then that's as much as I can imagine a need for. Why would you also need audio?
 
@trichoplax I mean for the second case.
 
Ah I see - you want no ping for self replying?
That isn't at all clear from the wording - I'd recommend editing to state that before the flood of downvotes
 
@LeakyNun when would someone possibly think "wow, I really wish @myself made a sound"?
 
Then why enable self-pinging?
 
what does that mean?
 
2:06 PM
@Doorknob I also interpreted this question in the opposite way to which it was intended - I suspect everyone else will too...
 
Why can we ping ourselves using past messages?
@Doorknob Testing
 
@LeakyNun what else would you expect? For a message with @myself to be rejected?
 
@LeakyNun You can't be default - only if you work around it by copying and pasting the message id
 
@Doorknob Did you receive the ping?
 
yes...
 
2:07 PM
@Doorknob I think the question being raised is "why is there a way to ping yourself? Please fix it so this no longer works"
 
You just can't ping messages that don't exist yet
 
Although from the question I interpreted it as "Please allow self pings"
 
@trichoplax ping or reply?
 
@trichoplax Is it clear enough now?
 
It's consistent
 
2:08 PM
@Doorknob I could still be missing the point, but I think ping. So you can link to your own previous message but it won't make a noise
 
@LeakyNun no, it's not clear. I still have no idea what you're asking to be implemented
 
@trichoplax Isn't that on purpose?
 
@MarsUltor No I mean that is what is being requested (@LeakyNun have I got that right now?)
 
4 messages moved to Sandbox
 
2:10 PM
:29967690 Testing
 
I've tried future pings, they don't work without edits
 
:29967691 Testing
@MarsUltor Confirmed
 
@LeakyNun wow u got it right on first attempt!
 
lol ok
 
2:12 PM
How to get information about the CPU of the computer in Unix based systems?
 
my mathematical shortening was been revealed of titanic size
 
@MarsUltor It certainly can't create the noise without knowing who to send that noise to...
 
@trichoplax I know. I mean it doesn't auto-link when the post is created
 
@LegionMammal978 Oh cool! Missed this yesterday.
 
@MarsUltor Oh I see what you mean. It does the grey highlighting of the target message, but it doesn't update to show the grey arrow and "@user"
 
2:15 PM
@trichoplax What do you mean "it does the grey highlighting of the target message"?
 
@trichoplax The grey is because it recieved a ping
 
@LeakyNun Optimizer replied to this message.
 
Yes.
 
@MarsUltor Ah - I see now. Ignore me... :)
 
@zyabin101 cat /proc/cpuinfo
 
2:17 PM
Chat mini-challenge: Implement the tortoise-and-hare algorithm
 
@Optimizer Thanks.
But I found it by myself :)
 
the singly-linked-list can be implemented as a function or an array
 
everything can be found themselves , you know ?
 
the end of list can be represented as 0
detect if there is cycle
 
> turtoise
 
2:18 PM
@Optimizer I swear it's the 1234th time I spell that wrong
 
turtle and tortoise's kid?
tortoirtle
 
@o testing
Did you get pinged?
 
Who's that Pokemon? It's Tortoirtle!
 
min 3 chars
 
@she testing
 
2:22 PM
Weird
 
hahaha
@she was wondering who pinged him
 
@she loves me, yeah, yeah, yeah
 
@bal testing
 
Will @she marry @you?
 
There are two users that begin with bal
 
2:23 PM
Huh, this doesn't ping yourself
 
@Sherlock9 reply to your previous messages to ping to yourself
you can't do that normally, so find the permalink and copy the code part
 
@Optimizer I hope not. Can't stand him some days :D
 
oh, you are portraying yourself as female already?
 
@LeakyNun Testing
 
Also, I'm not nearly that narcissistic
 
2:28 PM
@LeakyNun :29967893 :29967893 Testing
@Sherlock9 :29967850 Testing
Survey: in the word "new" /nju:/, do you put the emphasis on the "ee" component or the "oo" component?
in where I live, many people put the emphasis on "ee" instead (because of our accent).
 
:29967950 hmmmm
 
@LeakyNun There's a sandbox for a reason
 
i think i just pinged som1 in the bridge
 
Ah, that's better. :P
 
12 messages of pure noise.
@El'endiaStarman 10/10 most constructive way to deal with it
 
2:43 PM
my mathematical form costs me 200 bytes i dont know if i will post it
 
@Agawa001 post it and I'll see if I can golf it
 
@Agawa001 Mathematical form?
 
you golf in matlab ?
 
@Agawa001 I'll try
 
@Agawa001 many people do
try Luis Mendo
 
2:45 PM
i wil make some explanation with it just hold on 5 mins
or less
 
@EᴀsᴛᴇʀʟʏIʀᴋ Nope.
 
Luis Mendo is not a language.
 
@zyabin101 He is an interpreter for at least one language... :P
 
2:48 PM
@El'endiaStarman Which language?
 
...
 
Luis Mendo?
Then we have just entered an infinite loop D:
 
@zyabin101 English, I presume. ;)
 
16 hours...
 
;) Infinite loop averted.
 
2:51 PM
luis mendo is spanish name
the first can be french thu
 
@Agawa001 Non, le nom francais c'est "louis"
right?
 
and louise for females
 
oui
 
@LeakyNun done
 
If our golfing's no comprendo / Think but Luis, and all is Mendo.
2
 
2:57 PM
@Sherlock9 You have just become a poet.
 
certified
 
@Agawa001 What's wrong with the initial 4 spaces?
 
hmm ok i think i missed some rules
 

« first day (1946 days earlier)      last day (2894 days later) »