« first day (2038 days earlier)      last day (2797 days later) » 

5:00 AM
Well I finally fixed my problems
and as usual they were stupidest mistakes ever
 
Does this answer need a note that it's not a valid programming language by our definition?
32
A: The Letter A without A

cdwPluso, 1 byte o Pluso Esolangs Page. Pluso contains a single accumulator, that starts with the value 1. It uses two commands, p which increments the accumulator (mod 27), and o which prints the current value as an uppercase ASCII character, A-Z or space (where 1-26 represents A-Z respectively...

 
I'm surprised it got so many votes considering
 
0
Q: Visible Buildings

moo_we_all_doThis puzzle is derived from CodinGame SamSi's "Heart of the City" puzzle. Description You decide to take a walk in an n * n tile city and go to the center tile. All of the buildings are infinitely small, but you have super vision and can see everything close up and far away. Constraints n is ...

 
@DLosc Current consensus on meta is that submissions to constant output challenges do not need to use a programming language in our sense of the word. That's entirely nonsensical in my opinion, but it is what it is.
 
@Dennis Aha. See, this is why I asked in chat rather than just commenting/editing. ;)
 
5:08 AM
@NewMainPosts Anyone know if that's a dupe of anything? Searchability seems a bit tricky
 
@Sp3000 Good luck finding a dupe when nobody knows what exactly the challenge is.
 
Well the way I see it is, say, if you're standing at (0, 0) then you can't see (2, 2) since (1, 1) is in the way (so answers will probably have to use gcd I'm guessing)
 
@Sp3000 Not quite... if you're standing at (0,0), there's a building at (1,1), but there isn't any building at (2,2); you can't see the building at (3,3) because it's hidden by (1,1)... and also there are buildings at (1,2) and (2,1)
 
Why wouldn't there be a building at (2, 2)?
 
Same reason there's no building at (0,0)... you're not on the edge of a tile
 
5:18 AM
I think we're probably thinking of the problem differently - the way I'm thinking of it is that there's a building at every lattice point, and (0, 0) is the exception just because that's where you're standing
 
5:42 AM
@DJMcMayhem Looks nice! I had a question or two that I asked, but it looks really good it should open up the possibilities for brain-flak as a whole. It does look like we are in for the mother of all merge conflicts though.
 
@DJMcMayhem So in ascii-mode you input and output in ascii?
there's no numin charout?
 
Hm, visible buildings might be a flag challenge in disguise.
 
Because of halving and absolute value.
 
I know, that isn't a question
 
5:51 AM
Right, ŒR floors.
@LeakyNun Declaring m, i and j globally saves a few bytes.
 
@Dennis thanks
@Dennis How?
 
Making your submission a function would probably a lot more though.
@LeakyNun m,j,i;main(n){scanf("%d",&n);for(m=n/2,i=-m;i<=m;...
 
I don't like taking in argument and then printing to stdout
@Dennis I'm failing to see how that saves bytes
Wait, I thought using un-initialized variables is UB
 
Global variables default to 0.
 
Weird
 
5:58 AM
Variables in global are initialized to 0; it's automatic variables that are undefined
 
Why is C named C?
 
Because it is based on B.
 
Don't recall... probably because it followed B/BCPL?
 
Yet people seem to have forgotten B entirely...
 
Well, almost entirely
 
6:03 AM
@EamonOlive Hahaha, yeah not looking forward to that...
@LeakyNun No, there is not right now. Do you think that would be a useful feature?
 
@DJMcMayhem Yes, e.g. to do the challenge in main
 
Which one?
 
2
Q: Visible Buildings

moo_we_all_doThis puzzle is derived from CodinGame SamSi's "Heart of the City" puzzle. Description You decide to take a walk in an n * n tile city and go to the center tile. All of the buildings are infinitely small, but you have super vision and can see everything close up and far away. Constraints n is ...

 
Why not just add ([((((()()()){}){}){}){}]) to the beginning?
 
@DJMcMayhem ??
 
6:06 AM
-48
 
What about two-digit?
 
I guess you'd need to pop first
 
I'd need to add a long wrapper
 
@LeakyNun Oh, that's true.
 
@LeakyNun C was everything B was and more, and it was created only a few years later.
 
6:06 AM
@Dennis I see
 
@LeakyNun OK, I might add that later, but I'm brain-flakked out for now. I don't want to work on it anymore today.
 
It was C that introduced types, right?
 
@DJMcMayhem also
 
Yes?
 
@HWalters I think B started having types before C was created.
 
6:11 AM
Wikipedia seems to agree with me, unless potentially we split hairs on pre-type-int vs pre-type-char
Oh... then there's "New B"... another hair to split... which introduced types... got it
 
6:37 AM
@Dennis Did you write TIO's BF interpreter yourself?
 
@Sp3000 Yes. I tried finding one that did exactly what I wanted to, failed, and quickly hacked a bf-to-C transpiler in Bash.
 
In that case, feature request: make debug mode print the number of ticks the program ran for? :D (unless you did some optimisations like collapsing runs of +)
(the hexdump is very useful btw)
 
Smart choice. 10 minutes to write your own BF interpreter vs. hours of hunting through broken ones that do the wrong thing.
 
@Sp3000 No optimizations, so counting ticks should be straightforward. I could also and an option to dump the tape at the end.
 
That would be amazing if you could :) (I've been doing <.<.<.<.<.<. a lot)
 
6:45 AM
Yeah, me too. I'll add both tommorow/after I wake up.
 
:)
Meanwhile, it's BF question of the day: is +[<+[>[+]]+] a busy beaver or an infinite loop?
(8-bit cells, tape unbounded on left and right)
 
Is this for a challenge?
 
Excellent question. (TIO uses a circular tape btw.)
 
Circular tape? That's heresy.
 
This is just me brute forcing small programs to see what pops out
Hmm... it's an infinite loop, isn't it
 
6:49 AM
@feersum It came with the choice to transpile to C, but I guess I could just as easily transpile to Python...
 
@Dennis Huh?
 
Hayyyyy
 
I have to say circular tape is... interesting. Good to know though, that probably changes a lot
 
How big is the circle?
 
@feersum My interpreter just generates some C code, then executes it. The array index is a 16-bit integers, so it loops at 65536.
 
6:53 AM
To me crashing would be more user-friendly than circling.
 
If memory serves, the original bf interpreter did the same, with a much smaller tape (~5000).
 
7:04 AM
:( +[+[-<]>>+>+] terminates on TIO due to circular tape
(I think)
 
First paste in the "Failures". Today: Code written well, but working bad just because.
 
wat
ok, I've gone so deep with this deep dream
 
7:25 AM
What's with you, @Adnan?
 
7:52 AM
cheerip cheerip
currently making a deep dream for someone I haven't seen get one
hmmm, didn't turn out as I wanted, but anyway
maybe if I swap around the guide and base
let's see how it turns out
50%
...
this turned out worse
@zyabin101
 
8:18 AM
haiah
 
8:45 AM
yo @ProgramFOX
 
CMC: write shortest program to output this:
#   # ####
 # #  #  #
  #   #  #
  #   #  #
  #   ####
 
@LuisMendo Hahaha, thanks :)
 
8:51 AM
Hello
 
console:log("#   # ####
 # #  #  #
  #   #  #
  #   #  #
  #   ####")
in neoscript
this is a cat program...
 
wait, that doesn't work
 
halp i am coding a game in java but the jpanel only refresh when i resize the window ;_;
 
@zyabin101 What do you mean :p?
 
9:01 AM
you think that's cool?
 
@TùxCräftîñg panel.repaint()
 
@ASCII-only i have do this
@DestructibleWatermelon
 
@DestructibleWatermelon It certainly looks like you
@TùxCräftîñg Are you sure?
 
@ASCII-only yes
 
9:02 AM
Have you done it after every action?
If you can, set a breakpoint there
 
i have put it in a infinite loop
in my JFrame: while(this.running) this.panel.repain();
 
You forgot this.panel.revalidate() before repaint
 
@TùxCräftîñg ?
 
why on the earth this take 2 methods to refresh
 
9:06 AM
If only certain things change call revalidate only on those things
 
1
Q: The Burnt Pancake Problem

Sherlock9This challenge is related to Flipping Pancakes. You may have heard of pancake sorting, where a stack of pancakes is sorted by size by inserting spatula into the stack and flipping all of the pancakes above the spatula. The burnt pancake problem is slightly different. All pancakes now have one si...

 
@Sherlock9 Finally you post it
 
9:34 AM
Sorry, dude
I had a messy afternoon
 
I need a better guide image
Or reverse guide and source
 
0
A: Sandbox for Proposed Challenges

βετѧ ΛєҫαγSmallest Root code-challenge Challenge Write a program which, when given two numbers x and y as input, outputs the value of x^(1/y) to 10 decimal place precision. Examples Input: 1 4 Output: 1.3160740130 Input: 64 2 Output: 8.0000000000 Input: 2.5 0.5 Output: 6.2500000000 Scoring ...

 
Dragons aren't real?! Q_Q
 
@ΛεγίωνΜάμμαλϠΨΠʹ did you read that plot hole post on imgur? :P
wait no I saw that somewhere else
it was on scifi.SE
the post about stannis?
oh yeah (and that was also where the plot hole post was linked, which is why I mixed them up)
everyone move along
 
@MartinEnder yep
21
Q: Why did Stannis emerge victorious against Wildling host?

holesofIn-universe, why would The King Beyond The Wall only bring barely a thousand men with him? Out of universe, probably so that Stannis could defeat him and start his war in the north. Stannis and his army should've been slaughtered that day by 100,000 wildlings. Is it a plot-hole?

 
wat
NetBeans say me this field can be final
but AFAIK a final is a constant
and this field is not constant
 
@TùxCräftîñg Question: Why in the world are final local variables a thing?
 
10:23 AM
idk
 
Is it possible to disable JS on a page?
It keeps spazzing out while I'm trying to highlight stuff.
 
@feersum google it
@Sherlock9 no problem
 
Oh that reminds me
 
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;

/**
 * Manage sprites
 * @author TuxCrafting
 */
public class SpriteManager implements MouseListener, KeyListener {
    private ArrayList<Sprite> sprites; // ಠ_ಠ

    public SpriteManager() {
        this.sprites = new ArrayList<>();
    }
    /**
     * Add a sprite
     * @param sprite The sprite
     * @return The index of the sprite
my class
 
@Sherlock9 of what?
 
10:26 AM
Please specify your input, output, TOS
 
and netbeans say me sprites can be final
 
@Sherlock9 It was the same as your last testcase before you edited it
 
Could you specify it in your answer?
 
Yes a moment
 
CMC: (Somehow) make my headset replacement part ship faster
 
10:28 AM
@ΛεγίωνΜάμμαλϠΨΠʹ Neoscript: part:speed =^ part:speed
 
@Sherlock9 better?
 
Yes. Thank you
 
0
Q: Find the right path

TùxCräftîñgGiven a list of paths, output the correct path. Example of path: /\ ----+/ | - and | are horizontal and vertical paths. / and \ are 90° turns. + is treated as a - or a | depending of the current direction. Input will be like this: /--\ A------+--+--# B------/ \--: C-------...

 
@TùxCräftîñg plz no
 
10:36 AM
0
Q: Find the right path

TùxCräftîñgGiven a list of paths, output the correct path. Example of path: /\ ----+/ | - and | are horizontal and vertical paths. / and \ are 90° turns. + is treated as a - or a | depending of the current direction. Input will be like this: /--\ A------+--+--# B------/ \--: C-------...

 
@feersum ^ if only Snails was able to print matches :|
 
@NewMainPosts 'dninja
 
@TùxCräftîñg I've gone a lot deeper since that image
3 hours ago, by Destructible Watermelon
user image
that is what happens when source and guide reversed
also guess who without clicking the link
 
@DestructibleWatermelon wat
 
10:40 AM
@Sherlock9 is 0 in output list allowed?
7
Q: The Burnt Pancake Problem

Sherlock9This challenge is related to Flipping Pancakes. You may have heard of pancake sorting, where a stack of pancakes is sorted by size by inserting spatula into the stack and flipping all of the pancakes above the spatula. The burnt pancake problem is slightly different. All pancakes now have one si...

 
1
Q: Find the right path

TùxCräftîñgGiven a list of paths, output the correct path. Example of path: /\ ----+/ | - and | are horizontal and vertical paths. / and \ are 90° turns. + is treated as a - or a | depending of the current direction. Input will be like this: /--\ A------+--+--# B------/ \--: C-------...

I found the left path
 
ಠ_ಠ
 
Two PPCG questions are in HNQ rn \o/
 
@LeakyNun too hard .-.
 
@ReleasingHeliumNuclei two people disagree with you
 
10:42 AM
@LeakyNun HNQ rn?
 
@ReleasingHeliumNuclei Hot Network Questions right now
 
@LeakyNun Python is a language for these kind of things. I don't know Python enough.
 
@ReleasingHeliumNuclei Not really
I could have easily done it in other high-level languages that I know
 
@LeakyNun i don't know much high level languages too
 
One is enough
 
10:52 AM
@LeakyNun Flipping 0 pancakes is eminently possible. In fact, I'm doing it right now. — feersum 11 mins ago
5
 
is a collision checking on a list of sprites is possible in less than O(n²)?
 
@LeakyNun I think there's 6, actually
 
@TùxCräftîñg if the list is sorted, yes
 
here the list is unsorted
 
then you're out of luck
unless you have a list of possible values @TùxCräftîñg
 
10:56 AM
What shape are the sprites?
(or more like, what determines if two sprites collide)
 
@Sp3000 the bbox is rectangular
and i use Java function Rectangle#intersects
 
Hmm I feel like something might be possible with rectangles...
 
my code is the following:
this.sprites.stream().forEach((s) -> {
            s.redraw(g);
            this.sprites.stream().forEach((s2) -> {
                if (s.getBoundingBox().intersects(s2.getBoundingBox())) {
                    s.on_collide(s2);
                    s2.on_collide(s);
                }
            });
        });
and since i am creating a shoot'em up this algorithm might be a little slow
 
10
Q: Intersection of N rectangles

Chan LeI'm looking for an algorithm to solve this problem: Given N rectangles on the Cartesian coordinate, find out if the intersection of those rectangles is empty or not. Each rectangle can lie in any direction (not necessary to have its edges parallel to Ox and Oy) Do you have any suggestion to so...

Maybe? My first thought was something tree related, but I can't remember if R trees are the right one
 
@Adam: Nope. Counter example 2: { [k, 2n-k]×[k, 2n-k] | k ∈ {0, ..., n-1} } — sort however you want, use an R-tree... it's still O(n^2). — ybungalobill May 4 '11 at 8:59
1
A: Find the right path

Martin EnderSlip, 47 bytes `a(?,[`-+]*((`/<|`\>)[`|+]*(`/>|`\<)[`-+]*)*`:) Test it here. Yay for undocumented features... I'll add an explanation later.

insane
 
11:04 AM
@TùxCräftîñg I have an O(n) algorithm but O(n) does not mean that it is fast
 
Trying to grasp the accepted answer but not getting it
 
O(n) is still better than O(n²)
 
@TùxCräftîñg not really
 
There's a linear prime-testing algorithm, but does not mean that it is faster than trial division (on small numbers that is)
 
11:06 AM
ah
 
how does big o notation work pls
 
Big O notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. It is a member of a family of notations invented by Paul Bachmann, Edmund Landau, and others, collectively called Bachmann-Landau notation or asymptotic notation. In computer science, big O notation is used to classify algorithms by how they respond to changes in input size, such as how the processing time of an algorithm changes as the problem size becomes extremely large. In analytic number theory it is used to estimate the "error committed...
 
@TùxCräftîñg O(n) only means something when n is big enough
 
NOOOOOO
I HAVE DELETED A 300-LINE LONG SOURCE FILE D:D:D:
 
@Sp3000 This question is not the right one for game dev.
It's reduce(intersect, list of rectangles)
 
@Zgarb I'd love to see a Grime answer to that path finding challenge :)
 
@feersum Oh is it? Sorry, didn't realise :/ (thanks for pointing that out)
 
@TùxCräftîñg gj m8
 
What's the output method of Slip?
 
11:21 AM
@TùxCräftîñg recycle bin, look there?
 
@LeakyNun Why would you need 0?
 
@Sherlock9 golfier
 
Okay, rephrasing that: why does feersum need 0 in their output?
 
@Sherlock9 golfier
 
@feersum As in STDOUT, or...?
 
11:23 AM
@LeakyNun Okay, that only explains it a little
 
As in what kind of data does it output
 
By default, double newline separated matches (not exactly great though)
 
@Sherlock9 we flip the top based on its second parameter
 
And unmatched characters are replaced with space or what?
Oh there's an online interpreter so I can see it
 
Only if they're unmatched and between two chars in the same row which were matched, then yes they'd be replaced with space in that case. I don't think they're output if they're unmatched and are before/after the first/last matched char in the row though.
 
11:26 AM
JS people, I need help...
0
A: Sandbox for Proposed Challenges

βετѧ ΛєҫαγSmallest Root code-challenge Challenge Write a program which, when given two numbers x and y as input, outputs the value of x^(1/y) to 10 decimal place precision. Examples Input: 1 4 Output: 1.3160740130 Input: 64 2 Output: 8.0000000000 Input: 2.5 0.5 Output: 6.2500000000 Scoring ...

I messed up the snippet above somehow
 
Did with C, gained no bonus, 2* bytes
 
I suppose I don't understand feersum's output
4 1 4 0
3 0 3 0
2 0 2 0
1 1 1 0
 
@Sherlock9 left to right top to bottom
 
It's a list of flip sizes separated by heterogeneous chunks of whitespace.
If the delimiters need to be the same that's just 1 extra byte.
 
Wouldn't flipping 4, 1, 4 result in 51 at the bottom?
Not 50
 
11:33 AM
On what input?
 
[[5, 1], [3, 0], [3, 0], [1, 1]]
 
@Sherlock9 right is tos
 
^
 
Oh now it makes sense
Alright, write that in the answer, (and the input/output) and I'll go edit to allow flipping zero pancakes
 
@Sherlock9 Why are you commenting that I need to specify the input format? It's been in there the whole time.
 
11:35 AM
b4ck
 
Oh whoops
 
@DestructibleWatermelon i have check, it's not there :/
 
:/ indeed
what was in it?
 
I hear the FBI is good at recovering deleted stuff. You could try sending your hard drive to them and saying it has Hillary emails in it.
 
@βετѧΛєҫαγ Before putting time into the snippet, it might be worth waiting to see what feedback you get, especially on the scoring mechanism. I don't know what the downvote was for, but my first guess would be the scoring mechanism. Such approaches have been popular in the past, but it seems to me like the challenge will be significantly different for different languages, which I'm not a big fan of myself. Can't guess how it will be received though so hopefully there will be some more feedback
 
11:37 AM
@DestructibleWatermelon multiple gigabytes of trashed files
@feersum ಠ_ಠ
 
@TùxCräftîñg ಠ_ಠ I meant the deleted file
also, when did you last empty your trash
 
java source code
 
it might just be hidden
 
@DestructibleWatermelon idk, i think 3 years ago
 
then how did you delete it?
 
11:39 AM
@DestructibleWatermelon netbeans created a other file, and i tought this was this file i deleted
but it was the original :/
 
yes, but if it got deleted, it gets sent to trash
 
@TùxCräftîñg Welp o__O
 
@DestructibleWatermelon no, netbeans dont
 
Did you just empty your trash?
 
11:40 AM
well, I can't assist you, so I'm just going to mock you
AHAHAHAHAHAHH
 
@feersum Ah, and what about the output. It might be worth mentioning that you're mixing spaces and newlines
 
the code wasnt too complicated, this file is fairly easy to rewrite
and half of the file was javadoc
 
@trichoplax Alright, I'll wait
 
I've criticised such ideas before and then seen them become hugely popular, so I'm not the best judge - just wanted to save you the effort just in case...
 
@βετѧΛєҫαγ 1^(1/4)=1.3160740130?
 
11:57 AM
private int getY() {
        return RAND.ints(0, this.maxy).iterator().nextInt();
    }
._.
oh >_>
Random#nextInt
 
@LeakyNun if it worked with all the test files then it should work. I wrote some more code in SILOS and it worked.
@LeakyNun I merged the last pull request let me test it. If it breaks the build> I can revert, but it seems unlikley.
@TùxCräftîñg did you try game.txt?
 
no
brb trying
 
1
Q: Excessive Integers

flawrFor a positive integer n with the prime factorization n = p1^e1 * p2^e2 * ... pk^ek where p1,...,pk are primes and e1,...,ek are positive integers, we can define two functions: Ω(n) = e1+e2+...+ek the number of prime divisors (counted with multiplicity) (A001222) ω(n) = k the number of distin...

 
»  echo examples/game.txt > java Silos
Elie@elie-asus — ~/S.I.L.O.S
»
Silos immediatly exit
@RohanJhunjhunwala your game is dividing by zero
»  java Silos
FileName?
examples/game.txt
java.lang.ArithmeticException: / by zero
        at Silos.main(Silos.java:214)
java.lang.ArithmeticException: / by zero
        at Silos.main(Silos.java:214)
java.lang.ArithmeticException: / by zero
        at Silos.main(Silos.java:214)
java.lang.ArithmeticException: / by zero
        at Silos.main(Silos.java:214)
java.lang.ArithmeticException: / by zero
        at Silos.main(Silos.java:214)
 
@TùxCräftîñg download the last patch
 
12:10 PM
»  git pull
Already up-to-date.
 
it works
this game is impossible
 
@TùxCräftîñg its a challenge
 
btw your game divide by zero everything at the start, it's normal?
 
It shouldnt be
Where is the line that has the issue
@TùxCräftîñg the new whitespace dependency feature has been removed
@TùxCräftîñg so //something reads as / / s
@TùxCräftîñg so all comments result in division
@TùxCräftîñg working on a patch
 
12:26 PM
@ReleasingHeliumNuclei Whoops, that should've been 3^(1/4)
 
@Dennis Please pull S.I.L.O.S
@RohanJhunjhunwala After your updates you should say what I just said.
 
@LeakyNun you mean your last ping?
 
@RohanJhunjhunwala "Please pull S.I.L.O.S"
 
@LeakyNun yes doing it, I think I can make it so it will skip over any lines that start with //
 
0
Q: Simple Equation helper using C++

Tyrange DenhopsAlgorithm: Create a C++ program where the user will enter the LHS of any mathematical equation using the variables of his choice.. Like for example: ax+by+c Next ask the user the values of the variables he has defined. In this case a,x,b,y and c. Next substitute the values in equation and prov...

 
12:31 PM
@RohanJhunjhunwala I mean, Dennis needs to pull S.I.L.O.S for the TIO to update
 
@LeakyNun yeah, I pinged him he never got back to me
 
Alright
 
i see you're preparing your exams well @LeakyNun
:p
 
@Fatalize I'll leave on Sep 1
 
You can't leave
you know it
 
12:33 PM
I will leave
 
When will you come back?
 
@Adnan 8 months later
 
Sep 2
 
^^ the best helicopter youve ever seen
 
12:34 PM
@LeakyNun wtf
that's a really long time
 
@Adnan yes
 
Basically the entire school year.
 
@El'endiaStarman that is correct
 
I wonder how this site will look like after 8 months
 
I don't see how doing nothing but work for 8 months can be good
 
12:36 PM
We probably have a custom design by then
 
12:51 PM
Does the inf string 12345678910111213... have a name and do we have challenges about it?
 
@HelkaHomba yes and yes
 
Link?
 
6
Q: Inverse Champernowne Substrings

SuperJedi224The Champernowne Constant is the irrational number 0.1234567891011... extending ad infinum. We've done a question about it before. But this question is about its reciprocal, known as the Inverse Champernowne Constant. This is approximately 8.10000007. Given a string of between one and three d...

28
Q: Find the number in the Champernowne constant

AdnanIntroduction In base 10, the Champernowne constant is defined by concatenating representations of successive integers. In base 10: 0.1234567891011121314151617... and so on. You can see that the first appearence of 15 starts at the 20th decimal: Position 000000000111111111122222222223333333...

 
Thanks
 

« first day (2038 days earlier)      last day (2797 days later) »