« first day (2108 days earlier)      last day (2751 days later) » 

4:04 AM
TIL this is valid JavaScript:
mylabel:
  alert("mylabel");
 
lol
 
Called with break mylabel; or continue mylabel;
I think it was created to jump between nested loops
 
anyway, I'm going to hit the sack. gn all
 
4:18 AM
I was also starting to think that maybe I should retract the range of spawning
for my Koth
@DrMcMoylex yo
 
@DrMcMoylex are you still trying to learn Turtlèd?
 
I think I already understand it pretty well, I just haven't written anything non-trivial in it
 
um, I i might find decent challenge for you
 
I haven't had very much time for PPCG recently
Obviously I still chat a lot, but I haven't written challenges or very many answers, or worked on my Langs, etc
 
4:26 AM
wait a second
this challenge actually looks kind of good for it
11
Q: Animate Adve the Adventurer

DopappThe challenge Your task is to animate Adve the Adventurer moving through a creepy (i.e. Halloween) maze. Adve is a •; he's character fluid, though, so he does not mind being represented by a different character. To animate Adve, you print out each frame; a frame is the map with his current loca...

knowing Turtlèd, it would probably beat all the current answers
 
Do you think you could do this in turtled?
 
hmmm, I might start working on this one
 
43
Q: Build a triangle without any triangles

DrMcMoylexAs a little kid, I liked to play with these toys a lot: They probably intended for these to be used for art, but I always used them for math! Fractals, patterns, etc. One time, I was given this challenge: Build a triangle without using any of the green triangle tiles. This challenge stum...

That would be seriously impressive
 
people help me plan my koth
please

 Maze battle Koth

making a koth! Please halp
seriously I need help
I haven't played the game but this is funny
 
5:23 AM
0
Q: ULTIMATE CODEGOLF!!! (Codegolf a turing-complete system)

Jorge PerezThe goal: write a program that implements a turing-complete system. It could be cellular automata, a tag system, a turing machine, an interpreter for a language of your own design... the type of system doesn't matter as long as it satisfies the following conditions: Takes a "program" from the u...

 
5:52 AM
0
A: Sandbox for Proposed Challenges

Destructible WatermelonDefs need to fix up layout [Very much a WIP] Maze battle In this challenge, bots will team up, navigate around a maze and try to destroy the enemy team's artifact, and protect their own. A maze might look like this. Note that the bots will receive numbers rather than ascii art, which represen...

 
0
Q: Implement an integer "find" algorithm

Challenger5It is useful in many golfing languages to have a concise "find" algorithm, which can help you find integer values that satisfy a property. For example, if I wanted to find three integers a, b, and c such that a^3 + b^3 + c^3 == 100, I could use an integer "find" algorithm of order 3 to repeatedly...

 
6:17 AM
So... do they just choose randomly?
 
Anonymous
6:28 AM
@mınxomaτ I'd imagine there's some detail you're not seeing (like type of RAM)
 
They only sell one type.
 
6:41 AM
0
Q: You must input correctly!

Challenger5It is recommended that you avoid using cumbersome i/o methods in code-golf challenges, so I, inspired by the "Do X without Y" challenge, decided to implement a challenge based on cumbersome i/o! The task is to write a program or function that takes a string s as input. The program should then: ...

 
anyone here use codeanywhere? pair programming isn't working
 
6:59 AM
I'm serious. it just isn't wokring.
oh, suddenly works
something bugged
 
7:28 AM
Is WolframAlpha broken for anyone else?
 
Yes
 
Wow, @NewMainPosts, what in the world?
 
@mınxomaτ better: downloadmoreram.com
 
Anonymous
7:51 AM
@Angs Yep, server's down
 
Anonymous
Pool's closed
 
8:34 AM
0
Q: This is my pillow

Stewie Griffin...will you help me immortalize it? I've had this pillow a few years now, and apparently it's time to get rid of it. Can you please write a function or program, that I can bring with me and use to recreate this pillow whenever I want to reminisce a bit. Since I'll bring this with me, I'd pref...

 
Hello
 
I am making a KOTH!
 
@Anyone is there a fast way to check if a number is a factorial?
 
8:41 AM
@DestructibleWatermelon Is it in Java?
 
Anonymous
@ASCII-only Check for divisibility for all [2, n-1].
 
@Mego n?
 
Anonymous
If you can generate primes in a range quickly (or already have them generated), you can simplify that to checking for divisibility for all primes in [2, n-1]
 
Anonymous
@ASCII-only The number you're testing
 
Anonymous
I thought that would've been obvious
 
8:46 AM
But how is n divisible by n-1
 
Anonymous
Err
 
Anonymous
You'll actually have to figure out how high you need to check
 
Anonymous
Smarter way:
 
@KritixiLithos nope
 
Anonymous
Start with i = k = 2. Check if n % k == 0. If false, quit, because n isn't a factorial. If true, i += 1; k *= i. Continue until n % k != 0 or n == k.
 
Anonymous
8:49 AM
If n is a factorial, then n is divisible by all factorials less than or equal to n
 
Anonymous
Though if you're dealing with fixed-width integers, it'd be easier just to make a table, for not much memory use
 
it is a python koth
 
Anonymous
For example, there are 21 factorials within the 64-bit unsigned integer range. The memory cost of such a table would be miminal, and would make checking for factorialness constant time rather than linear
 
Anonymous
If you're going to do it the check-smaller-factorials way, bonus points for caching known factorials (the k values) for memoization
 
It seems like repeated division until n <= 1 would be almost as fast
@Mego I'm using JS with arbitrary precision integers :P
 
Anonymous
8:56 AM
@ASCII-only There's a JS library for arbitrary-precision integers?
 
@Mego Kinda, this guy wrote three different ones
 
Anonymous
@ASCII-only Division is always slower than multiplication
 
Looks like caching is the best way though since it will be comparing digit by digit anyway which shouldn't be too slow
 
Anonymous
What
 
Anonymous
Please tell me that arbitrary-precision integer library isn't representing them as strings and doing string comparisons and manipulation
 
8:58 AM
Uh I mean the BigNumber is an array of digits
Not exactly sure if it's a TypedArray, but it's fast enough for now
 
Anonymous
Representing arbitrary-precision integers as an array of digits is a horrible idea
 
@Mego They're not digits, look like they're JS integers
 
Anonymous
You're stuck using grade-school algorithms for arithmetic unless you convert them to a more convenient representation first (and if you're doing that, why not just use that representation?)
 
c: Array[2]
  0: 192830281290
  1: 48021489102941
But they are stored as parts of a decimal number though :(
 
Anonymous
That's smarter
 
Anonymous
9:04 AM
Using base-2**53 for the representation is much much better
 
Looks like he made a tradeoff between arithmetic performance and toString performance
@Mego No it's more like base 10**15
 
wait, what?
wasn't it just 2:00 AM?
 
Anonymous
@ASCII-only Roughly the same
 
Did I time travel
Message history:
> 1:48
> 1:56
> 1:00
> 1:05
What the hell.
 
Daylight Savings maybe?
 
9:07 AM
oh.
well shit
totally forgot about that. I was excited for a second
Thought that I learned the secret of time travel (falling down and spraining your ankle at almost exactly 2 AM)
4
 
@DmitryKudriavtsev Exactly 2 AM? o_O do you have a cesium alarm clock and superhuman reflexes? :P
 
@ASCII-only i changed it
 
9:32 AM
So I needed factorial for this - it seems like it's only going to pay off for pretty large numbers, and even then only if you get really lucky. Should I implement it?
 
Hello
 
Anonymous
Might as well
 
10:12 AM
Does anyone know how long it takes for an avatar change to apply to chat?
 
@KritixiLithos You need to refresh your chat profile, change parent user (+ apply) on your chat profile then change it back
 
Heyy
 
Hello
It's really quiet here
 
Yeah, it tends to be quiet when most of the Americans are asleep
 
^ True that
 
10:29 AM
I'm bored
 
We all are
Hello, 3cowplex
 
Hello Kriti11
 
That's a nice gamer name "Kriti11"
 
I thought it was Krit9i
 
Wow,this night was flooded by low quality challenges
 
10:37 AM
Over half of the starred messages are telling people to stop posting low quality messages, ie gibberish
 
11:00 AM
Yay my mouse is borked
 
I don't use my mouse
 
so how do you click
 
0
A: Sandbox for Proposed Challenges

sanchisesDeterminant of Arduino/Genuino Mega2560 inputs fastest-code An Arduino Mega2560 has 54 digital inputs (HIGH = 1 or LOW = 0), and 16 analog inputs (0-255). When we use only 48 digital pins, we are left with 64 pins in total. We can arrange their values in an 8x8 matrix. From this, we can then cal...

 
I tap
 
u r on phone
 
11:05 AM
No, mac
@TuxCopter Have you tried restarting it?
 
Turning it off and then on?
 
I have a wired mouse
 
Battery problems?
 
The power is supplied by the computer
 
11:08 AM
Of course
Then get a new PC
 
ಠ_ಠ
wait the connector is rusted
 
Use anti-rust spray
The shop that gives you extra RAM also sells anti-rust spray
 
@TuxCopter pour coke over it
 
ಠ_ಠ
 
It'll be ok
 
 
1 hour later…
12:15 PM
3
Q: Primenary Strings

Flp.Tkc A Primenary (binary-prime) string is one which, when written as a binary grid, every row and column has a prime total. That's quite a vague explanation, so let's break it down with a worked example... For this example we'll use the string bunny: First, find the ASCII code point of each ...

 
12:36 PM
Vacuumception
 
2
Q: Count trailing truths

AdámInspired by, and in memory of, my dear friend and colleague, Dan Baronet, 1956 – 2016. He found the shortest possible APL solution to this task: Task Given a Boolean list, count the number of trailing truth values. Example cases {} → 0 {0} → 0 {1} → 1 {0, 1, 1, 0, 0} → 0 {1, 1, 1, 0, ...

 
1:11 PM
g'morning
 
g'afternoon
 
Good afternoon!
 
it's 5am here :p
iirc europe doesn't have daylight savings time, right?
 
good morning
 
Europe has daylight savings time
 
the clocks went back an hour a week ago in gb
 
oic
today for US
 
I confirm that we do
 
except arizona because they are weird
 
@EᴀsᴛᴇʀʟʏIʀᴋ unfortunately we do
 
1:17 PM
why unfornately?
 
Cause it sucks to have sunset before 5pm
 
In the winter, sunset will be around 15:30 where I live
 
where do you live?
@flawr hahaha... sun sets at like 3 here o_o
 
@EᴀsᴛᴇʀʟʏIʀᴋ Already?
 
Europe
 
1:19 PM
@KritixiLithos greece I guess?
 
Nope
Not even close
 
how can you even survive sunset being at 15:30?
 
@KritixiLithos sweden?
 
@flawr Very close
 
1:21 PM
@muddyfish idk
 
Long-ish time no-ish see.
 
hey!
@KritixiLithos finland?
 
@Lynn I hope you're doing fine-ish?
 
@EᴀsᴛᴇʀʟʏIʀᴋ Sweden is closer
 
codegolf.stackexchange.com/questions/98730/… ← Here’s a cuuuute observation: if you replace 1 with i and 0 with z, and append a final o, a Deadfish interpreter solves this problem
 
1:23 PM
@KritixiLithos So southern Norway then
 
@Angs Sweden is still closer
 
@KritixiLithos denmark?
 
Spot on
 
Yay, 100 points for hufflepuff.
 
1:24 PM
@Lynn woah
 
Wait, there really isn't a z command, huh.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Yes, it is literally cold here
 
Anyway, 1`/')'*~p]; does the trick in GolfScript
 
@KritixiLithos you were exaggerating, the sun sets at 15:30 here in southern Finland on winter solstice :)
 
Not that it’s the best approach
0`/-1=, probably is
 
1:27 PM
@Angs gets dark and 2 here in southern CA.....
 
@Angs That seems late. The sun apparently sets at 15:16 today where i live in Sweden
 
Does anyone here celebrate the solstices / equinoxes?
 
@flawr I know a couple of people who do
 
@muddyfish In a religious or cultural way? Or just because it's cool?=)
 
@flawr third option
 
1:28 PM
!!! ARG #02       02
!00 mov %02 %03   02 02 03
!01 inc %00 ___   06 00 00
!02 dec %03 ___   08 03 00
!03 jnz %03 !01   13 03 01
!04 dec %01 ___   08 01 00
!05 jnz %01 !00   13 01 00

Compiled:
L(2,2,2,3,6,0,0,8,3,0,13,3,1,8,1,0,13,1,0)
 
@flawr It's one of the biggest cultural celebrations here (solstice)
 
Programing language concept of mine
 
@ΛεγίωνΜάμμαλϠΟΗʹ why would someone flag this?
 
@muddyfish idk
It's literally a program that multiplies two numbers
 
@ΛεγίωνΜάμμαλϠΟΗʹ well someone flagged it
 
1:30 PM
@Emigna You live in scandinavia, right?
 
yep
 
Sweden is in Scandinavia
 
> You cannot counterflag your own message
 
1:34 PM
@flawr Summer solstice is big in Finland too. As a pagan I usually celebrate christmas as the winter solstice. I usually celebrate the equinoxes too to complete the set.
 
"summer" "finland" wat
 
It's a huge celebration the whole week.
 
@Angs I'd love to celebrate these points too:)
 
(Just kidding, summer here isn't at the summer solstice, summer is two weeks in July/August)
 
@Angs as a pagan as a non-christian/catholic or as an actual pagan of the religion paganism?
 
1:37 PM
@Angs And before and after everything is burried under 10m of snow, right?
 
@flawr as a non-christian, actual polytheist pagans are weird.
@flawr That's further up north, this is what we get: moro.aamulehti.fi/wp-content/uploads/2015/01/…
 
@Angs Not much weirder than christians
 
TBH, as a christian, can't deny that
 
I have two pagan friends (of the polytheistic variety) and they aren't that weird. Though one of them calls her little crafting business "Portable Weirdness", so...
 
There, updated the language, multiplication is now much shorter:
!!! ARG #02       02
!00 add %00 %01   07 00 01
!01 sub %02 #01   12 02 01
!02 jnz %02 !00   21 02 00

Compiled:
L(2,7,0,1,12,2,1,21,2,0)
 
So the bottom line now is: christians = weird, pagans != weird?
4
@El'endiaStarman Regarding portability....
I recently asked on reddit what this surface might be. Someone answered "That's a portable infinite plane. See, it has a convenient handle."
7
(Which I corrected: It obviously has two handles.)
 
A wild @MartinEnder appeared!
 
Does not seem terribly wild to me.
 
Legion used document.querySelector`#input`.disabled=1!
 
1:58 PM
What does that do @ΛεγίωνΜάμμαλϠΟΗʹ?
 
@flawr does that make it more portable?
or does that make it portalable?
 
hi guys
 
Hello
 
@EᴀsᴛᴇʀʟʏIʀᴋ :D
 
@EᴀsᴛᴇʀʟʏIʀᴋ ;D
 
@DrMcMoylex i considered pinging you but decided against it
@El'endiaStarman yep
 
@EᴀsᴛᴇʀʟʏIʀᴋ Well I think either way it is akward to walk around with an infinite plane.
 
true
you could take somebody's head off with that
 
And it doesn't fit in my backpack.
 
2:16 PM
true
@flawr did you try a bag of holding?
failing that, a tardis might hold it, though you can't really carry that
 
@EᴀsᴛᴇʀʟʏIʀᴋ Oh cool, didn't know that this thing has a name
 
Are there also "Chests of holding"?
(One appears in harry potter)
@EᴀsᴛᴇʀʟʏIʀᴋ this "bag of holding"
 
@flawr yes, though those are pretty impractical
 
"bag of holding" appears in NetHack
 
2:19 PM
@EᴀsᴛᴇʀʟʏIʀᴋ But still a question about those bags.
you still have to fit the items through the opening?
 
One of the characters in my in-progress novel has a literal chest of holding. As in, there's an opening in their chest that has such a space on the other side. (They're a robot, so no harm done.) It makes designing puzzles that require the whole team more challenging because I have to consider what this character might have. :P
 
@KritixiLithos yes, but it's from DnD
 
What if you just turend the bag inside out?
 
@El'endiaStarman lol
and you're working on a novel? great!
send a copy to everyone on PPCG :p
 
2:21 PM
@EᴀsᴛᴇʀʟʏIʀᴋ Have been for about eight years now, I think.
 
@feersum you'll get a huge bag with a very small inside
 
@EᴀsᴛᴇʀʟʏIʀᴋ 43,424 free copies seems a little expensive.
 
*everybody active
 
That's still a lot. :P
 
2:27 PM
Oh my lord
What version is this for? I think it won't work in 1.10. — Rudolf L. Jelínek 2 mins ago
@RudolfL.Jelínek Read the header...? — VTCAKAVSMoACE 36 secs ago
 
2:46 PM
@El'endiaStarman >10k rep?:)
 
Can someone give me a nonnegative integer?
 
33344893
 
@ΛεγίωνΜάμμαλϠΟΗʹ random.org
 
2:48 PM
3141592653589793238462643383
 
@El'endiaStarman Think of a polynomial p with nonnegative integral coefficients. And tell me what is p(1)
 
@KritixiLithos L(42) = 0
 
What does L() do?
 
@KritixiLithos It maps 42 to 0, L : {42} -> {0}
 
So its only domain is the answer to life, the universe and everything?
 
2:53 PM
@KritixiLithos No, the domain is {42}
 
But 42 is the answer to life, the universe and everything
 
@flawr L(33344893) = 0
 
*according to a fictional computer
@ΛεγίωνΜάμμαλϠΟΗʹ )=
 
@ΛεγίωνΜάμμαλϠΟΗʹ Does the function map every value to 0?
 
one min, processing the next number
 
3:05 PM
need help with python
how can i turn a "maximum recursion depth exceeded" into a "return False"
 
For golf or just something that works?
 
wait nvm
i got it
 
The better solution is to fix your recursion, but if that's not an option you could use try catch
 
@Oliver you want to check for stackoverflowexceptions?
 
those are different
iirc python doesn't have those
 
3:09 PM
Yeah it does
Maybe it's called something different, but it still has the equivalent
 
Is anyone here familiar with the jsnippets
?
 
Whoops, nvmd. I just tried it, and it's a runtime error
Ooh, I just had a language idea
 
@KritixiLithos L(3141592653589793238462643383) is undefined
 
any last feedback for this challenge?
 
3:35 PM
@EᴀsᴛᴇʀʟʏIʀᴋ It does!
RuntimeError
 
not a stackoverflow
 
@EᴀsᴛᴇʀʟʏIʀᴋ Catch it and check the errror string.
Try an infinite loop.
 
not a stackoverflow
 
@EᴀsᴛᴇʀʟʏIʀᴋ In Python 3 it's RecursionError.
If you ignore it enough times the interpreter will crash.
 
31
Q: Does Python have a stack/heap and how is memory managed?

Matt AlcockHow are variables and memory managed in Python? Does it have a stack and a heap and what algorithm is used to manage memory? Given this knowledge are there any recommendations on memory management for large number/data crunching?

same principle of no infinite recursion, but not a stack overflow
 
3:38 PM
Well... what do you want then?
 
Can anyone improve this answer?
0
A: Pairable strings

OliverPython, 66 65 bytes f=lambda x,s=1:s<len(x)and(x==2*x[:s])+f(x[:s])*f(x[s:])+f(x,s+1) Returns 0 for unpairable strings and anything greater than 0 for pairable strings. Try it online! Any help golfing this would be appreciated.

what?
 
0
A: Sandbox for Proposed Challenges

LaikoniBalanced Lists To check whether a given list (eg. [5, 1, -2, 7]) is balanced one can imagine putting respective weights on a board (########) and then try to balance the board on an edge (^) such that left and right of the edge the summed weight is the same (ignoring everything physics may has t...

 
It was bad advice.
Code Golf is a great practical example of Information Theory.
 
@Bob 1. hello, what brings you here? 2. holy crap that's a lotta rooms you're in
 
@Bob you are always the last on the list
 
Bob
3:47 PM
floof.
 
3:57 PM
welcome
 
@Oliver Well, I do know a way to golf off 2 bytes. ;)
Not that it matters, but you can get consistent return values by using & and | instead of * and +.
 

« first day (2108 days earlier)      last day (2751 days later) »