« first day (2384 days earlier)      last day (2755 days later) » 

00:01
I spy with my little eye, multiple messages that don't need to be on the starboard
@Pavel use wasm :P
who is starspamming
You can't just expect people to use wasm tho
@DJMcMayhem @mınxomaτ @Mego can one of you clear the star spam, please?
@Pavel don't forget @trichoplax
00:04
wtf is wrong with this chat -.-
Aren't we like, the most active chatroom on SE?
Not counting the bot-controlled ones
2nd most active I think
@ConorO'Brien What's the most active
I think it's meta.so's, but idr
@ConorO'Brien We're number 2! We're number two!
00:12
lol
@ASCII-only I forgot about that and I regret it
Actually a good idea imo, just not the right way to do it
Yeah, I'm aware
I've thought about better ways but I forgot that I'd put it on github
Also, it's a horrible name
Does anyone want 100 rep for writing a hello world?
00:24
which language?
I'll be happy to steal your rep
Triangular
[general] I'm making a survey for ppcg that I'll be posting on meta. any particular questions you want to see on it?
What kind of survey?
general survey
it's got different types of questions
nvm that's not a survey question lol
00:26
it's also anonymous
4 sections currently: "Programming & Style", "The Community", "Languages", and "Random"
Favorite esoteric and non-esoteric programming languages
good one. I have favorite language in general, but the distinction helps
someone buy me segmentation-fau.lt and I'll give you 2000 rep
prays that this silence means someone is doing it
@MDXF what are you going to do with it
idk
I don't have a website
00:32
use your github.io or get a job
it's pretty expensive >_>
I have a job, I'd just rather waste PPCG rep than money lol
@MDXF ill do it
500 rep per month? :P
OPPS.
00:33
@MDXF look at the reply link
CHECK THE REPLY
Look at the reply pointer
Ninja'd
oh lol
00:33
I was so excited for two seconds...
sry
Who owns segmentation-fau.lt
@2EZ4RTZ nobody
@ASCII-only godaddy won't sell it
101domains or whatever will
@MDXF i'm fine with paying $35, i just need to know you won't leave it doing nothing for 11.99 months
00:35
What does the TLD .lt even correspond to?
@DanTheMan Lithuania
@MDXF 24 bucks
@ASCII-only how long will it be registered for?
@MDXF $35/year
Oh so 2000 rep won't be enough for anyone lol
00:36
well ~$32 on 101domains, $25 usd but idk it it'll go through
I got one for 19 a year
so... yeah just get a free domain :P
@2EZ4RTZ cost depends on the tld
@ASCII-only yeah :P
GH pages + tk domain is how not-s.tk?g works
@ASCII-only ppcg.ga golfier :P
00:38
@MDXF me inside 2k rep.... that would triple you... but 19 bucks....
@2EZ4RTZ 19 bucks every year. yeah I retract my statement because nobody's gonna do that lol. I didn't know how domains worked
@MDXF but does ppcg.ga do not-s.tk?g1234
if you want rep, learn jelly and post 2-byte solutions on new and trivial challenges
@ASCII-only :o
00:39
Unlike Dennis and Co I like to earn my reputation legit
@MDXF >_> how did you think they worked
@2EZ4RTZ well you can't really pay someone in rep legitly anyway
@ASCII-only I thought you buy the domain once and pay yearly for the hosting service
@MDXF >_> <_< that would work so badly
4 hours ago, by 2EZ 4RTZ
I feel like all challenges are just too hard :_( I would love to do them but all the ones I answer are easy and net me no rep
@ASCII-only nah it would be cool
00:40
@ConorO'Brien yep.
I answered a CnR with BF
1 min ago, by 2EZ 4RTZ
Unlike Dennis and Co I like to earn my reputation legit
> I like to earn my reputation legit
@MDXF imagine how much all the big companies would keep (and how much the countries/companies owning the tlds would lose)
I have a submission that took me three hours, got me 20 rep. I have a seg fault that took me three seconds, got me 1.5k rep.
7
00:41
ok if enough people use not-s.tk i'll add a url shortener at notstackexchange.com/sameurlasonnormalstackexchange :P
I'm still salty about that
@MDXF I was reading triangular's source. why do you use both printf("\n"); and putchar('\n'); within two lines?
3
A: Mandelbrot image in every language

MD XFApplesoft BASIC, 302 bytes This picks random points to draw, so it will run forever and may never fill in the full plane. 1 HGR:POKE 49234,0:DIM co(10):FOR c=0 TO 10:READ d:co(c)=d:NEXT:DATA 1,2,3,5,6,1,2,3,5,6,0 2 x=INT(RND(1)*280):y=INT(RND(1)*96):x1=x/280*3-2:y1=y/191*2-1:i=0:s=x1:t=y1 3 s1=...

@ConorO'Brien laziness? or maybe Leaky Nun added one of them
    if (verbose)
    {
        int j;
        for (i = 1; l_cpy; l_cpy--, i++) {
            space(l_cpy);
            j = i;
            while (j) {
                c = getc(in);
                if (c != ' ' && c != '\n' && c != '\r') {
                    printf("%c ",c);
                    j--;
                }
            }
            printf("\n");
        }
        putchar('\n');
}
154
A: Output with the same length as the code

MD XFC (modern Linux), 19 bytes main(){puts('s');} When compiled and run, this prints: Segmentation fault

@ConorO'Brien uhm
00:44
Wat
@MDXF Every time you link that I must resist the urge to downvote
@Pavel feel free to lol
oh, also, you don't actually terminate after being unable to open the file, you just carry on parsing
00:45
The thing is, it's not actually a bad answer.
@ConorO'Brien yeah I just recently realized all my interpreters do that
and I'll fix them
someday
@ConorO'Brien wait yeah I do! The triangular interpreter is like the only one that does that!
    if (!in)
        return fprintf(stderr,"Error: Could not open file %s: %s\n",argv[1],strerror(errno));
return fprintf
00:50
oh
return
:P
I swear I can read
it's a brace expansion
Conor O'Brien@ConorPC MINGW64 ~/Documents/polyglot/oeis/eso
$ echo number {1,2,3,4}
number 1 2 3 4

Conor O'Brien@ConorPC MINGW64 ~/Documents/polyglot/oeis/eso
$
expands to echo cho cho
00:53
{e,,}foobar means efoobar foobar foobar. {e,e,e}foobar means efoobar efoobar efoobar
{e,,e}foobar is efoobar foobar efoobar
I see.
That's weird
what is?
{e,,e} is like {e,nothing,e}
@Pavel how
00:54
except it inserts nothing, not nothing
Now what I'd like to know is how when I was working on my polyglot, I got 5 upvotes. Then I left for half an hour, came back, had capped from my hello world question. Then another half hour later I came back and had gotten SEVEN UPVOTES on the polyglot
@ASCII-only Hmm... ¯\_(ツ)_/¯
Bash has a lot of things I find weird because I don't use bash.
Or languages like bash.
I didn't use bash until I joined PPCG
it's good for test drivers
The most I use is pipes and && to link commands together
00:57
I sometimes use < and >
I'm counting those as pipes, even though they technically aren't.
< is basically cat f | prog
@ASCII-only how is that not weird
I also use << EOF and <<<
The closest thing to bash that I use is Ruby, and I only use Ruby for golf.
> closest thing to bash ... Ruby
wat
00:59
My other languages are Java and C#
So
At least ruby has heredocs and herestrings
@DestructibleLemon how is it weird
@totallyhuman Ruby is at its heart very much like bash.
>.> first people tell me ruby's supposed to be like perl, now people are telling me it's bash
Perl isn't that far from bash
i totally forgot about this lol
> 146 140 133 124 120 118 109 107 90 86 84 91 82 81 70 63 bytes
01:04
Imagine Ruby to be a cross between bash, perl, and python
> 146 140 133 124 120 118 109 107 90 86 84 91 82 81 70 63 bytes
I just learned that the exponentiation pyramid in pyramid scheme uses a ^. This pleases me greatly for some reason.
stupid formatting inconsistencies
 ^
/^\
 -
10/10 pyramid
it's invalid, you forgot the other two -s
@totallyhuman ruby is like perl is like bash
01:08
@ConorO'Brien Huh?
I mean, obviously the corners are missing, that's where the parameters gp.
no
   ^
  /^\
 ^---^
/3\ /4\
--- ---
oic
duh
^
_
There
10/10 pyramid
no >.>
^
-
Dammit
oh hey i found a python REPL snippet with output the same length as the code
str(...)[:]
01:23
@totallyhuman 1 :P
non-quine :P
str(...)[:]
Ellipsis
I don't see how it's the same length
what the heck
@ConorO'Brien ?
is ... a variable in python??
01:25
@ConorO'Brien Yes
that's so useless
@ASCII-only 'Ellipsis'\n
did you even try it??
:P
@ConorO'Brien ... It's used in line numpy
@totallyhuman >_> have no repl atm forgot it printed quotes
it's used how?
124
Q: How do you use the ellipsis slicing syntax in Python?

miracle2kThis came up in Hidden features of Python, but I can't see good documentation or examples that explain how the feature works.

01:26
>>> str(...)[:]
'Ellipsis'
>>>
so... it's like a symbol in JS
0
A: Output with the same length as the code

totallyhumanPython 3 REPL, 11 bytes str(...)[:] Try it online! The header and the footer emulate a REPL.

@ASCII-only have you seen VSL slack
01:33
Absolutely
Wait what?
288
A: Hidden features of Python

rlerallutThe for...else syntax (see http://docs.python.org/ref/for.html ) for i in foo: if i == 0: break else: print("i was never 0") The "else" block will be normally executed at the end of the for loop, unless the break is called. The above code could be emulated as follows: found =...

I've been wishing that that would work yet I never realized that it actually did ._.
@HyperNeutrino why do mods close and lock every good question
@MDXF because they make decisions that sometimes the community doesn't and doesn't need to understand
meh
02:05
@MDXF Bloody mods...
They closed it because it's not an actual question, at least not the kind Stack Overflow is looking for. They locked it because people kept reopening it anyway.
0
A: Sandbox for Proposed Challenges

shadowLeft or Right? You have a carousel of images, and you know the index of the image you wish to view. The carousel shows a few images per page, so you need to be able to calculate if you need to move at all. Also, the carousel wraps - so you can click 'right' on the last page to go to the first ...

02:35
im stupid
i flagged a post to be migrated to ppcg
but it was on ppcg
..
@totallyhuman why
why is this a feature
i joined ppcg just to post an answer and it got deleted lol
@Dennis i was actually wondering how it didnt get deleted earlier
@OliverNi what the
good job
btw thanks for the few recent edits on my posts
@OliverNi oh you lost 1600 rep D: rip
02:42
i dont think i lost it
it was so big that it didnt revert
Oh that's odd
and cool
now I can delete my stupid segmentation fault yay
huh?
y??
I hate it :P I was kidding tho
@HyperNeutrino I wanna test something, you here?
shoot
i accidentally edited my post on the 2014 thing
and it bumped it to the top of the questions list
Oh well, I've done worse
02:47
the worst part is that the thing i edited was deleted
xD
I edited about 50 deleted Sandbox answers once
and flooded the active page
.
i dont like seeing all the deleted sandbox posts
they r annoying
I know :/
what does MD XF mean
It means I typed random things when making my SE profile
02:49
I always thought it was "XD MF"
Really???
i was messing around with 05ab1e once and i happened to make a quine
@MDXF like, that's what I thought it meant
well i was trying to make a quine ish thing
but i mad e an actual quine
@ConorO'Brien Oh lol
Yeah no but that's a funny acronym
like "XD MOTHERFUDGER"
02:50
..
No... MD XF is shorthand for Segmentation Fault
:P
wat
really???
@OliverNi I was messing around with H9Q+ once and made a quine
@OliverNi no but I've debated changing my name to Segmentation Fault
anyway the quine turned out to be shorter than all posted quines :P
Oh lol
I have written the shortest C quine
it wasn't really by accident... at all
It was more throwing 15 different types of undefined behavior and POSIX magics at the compiler and seeing what it did
@totallyhuman o/
02:53
hi
i technically have written the shortest go quine, i can't find it anywhere else
Does anyone know if there are TIO interpreters that have to be recompiled every time a program is run?
2
A: Golf you a quine for great good!

totallyhumanGo, 112 bytes As far as I can tell, there's no Go answer here. Here's mine and I think this is the shortest possible. package main;import.`fmt`;func main(){s:="package main;import.`fmt`;func main(){s:=%q;Printf(s,s)}";Printf(s,s)} Try it online!

@MDXF why, how, they're called compilers
@ASCII-only No I mean like having to gcc interp.c -o interp && ./interp .code.tio
@MDXF no because they can't exist
They can be recompiled but no point
02:59
@ASCII-only what does that mean?
@MDXF what's the point of recompiling if it's the same every time
I want to have one interpreter for, say, 20 different languages. gcc interp.c -DINTERPRETER=3 -o interp && ./interp .code.tio will make the interpreter do the third language.
@ASCII-only It wouldn't be, see ^
@MDXF ...
Bundle 20 interpreters
No
@MDXF Brainfuck, brainbool, random brainfuck, I think one other.
03:01
It's for Cubically 2.x
@MDXF use a commandline flag
The TIO brainfuck wrapper:
#!/usr/bin/env bash

cat > "$1.c" << EOF
#include <stdint.h>
#include <stdio.h>

int main(){
uint8_t t[65536] = {0};
uint16_t p = 0;
int i;
EOF

while read -n1 char; do
	case "$char" in
		\>) echo '++p;';;
		\<) echo '--p;';;
		\+) echo '++t[p];';;
		\-) echo '--t[p];';;
		\,) echo 'i=getchar(),t[p]=i*(i>0);';;
		\.) echo 'putchar(t[p]);';;
		\[) echo 'while(t[p]){';;
		\]) echo '}';;
	esac
done < "$1" >> "$1.c"

echo 'return 0;}' >> "$1.c"

cc -O3 -o "$1.out" "$1.c" && "./$1.out"
:| monospace is showing as serif on my phone
idea: pen.SE where pen people can discuss pens
@ASCII-only Same, but for the last few months
@Downgoat y tho
03:04
because like if you have question about pen where else can you ask
@Downgoat good idea but maybe too specific
You should area 51
@ASCII-only ok how about "writingtools.SE"
where you can talk about pens/pencils/pen ink/pen history
03:05
?
maybe something which also covers paper
what's with the doots
@Pavel please stop spam
@MDXF why not
@Downgoat stationery
:O good idea
would pens make sense under stationary?
03:08
@Downgoat yeah
would u back if I porpoise?
@Downgoat yes
ok brb porpoiseing
@Downgoat yes because they are not moving
03:10
hm would be close to arts & crafts
@Downgoat hmm I guess
@totallyhuman Hey he hasn't been here on like forever
People make a lot of stabs at node_modules filesize, but it's kinda fair.
a-ta.co's is 100MBs
0
Q: adding 1-2+3-4+5-6... infinity

jawad mansoorDevelop a code in your favorite language to compute that infinite series, also PLEASE code that in Mathematica if you can as well. Thank you P.S I am tagging it as sequence as I didn't find 'series' tag.

CMC Calculate ^ up to the nth term.
03:27
@NewMainPosts ...
CMC: Format a hard drive with losing as little data as possible. You are only allowed to store 10MB outside of the drive, but the drive is 8GB.
03:47
@NathanMerrill format as in change partition type?
sorry, yeah
hmm
do we even have just a general random number from 1 to n challenge?
uniform distribution, or any distribution?
well, either
04:04
any distribution existed, the result was returning a constant number.
(It's a very baised distribution)
XKCD fair dice roll here.
Anonymous
@ATaco Any distribution implies that every output has a positive (but not necessarily uniform) probability of being chosen
...without making references to xkcd's or questioning the distribution
is there a random number from 1 to n challenge
pls
:P
Anonymous
@totallyhuman I didn't find one in my searching, but I might've missed it
Anonymous
But that's not random in [1, n]
04:10
however, it doesn't make much sense imo
and that yeah
Anonymous
A decent, simple "random from [1,n]" challenge wouldn't be a bad idea, assuming there's not another challenge that it would be a dupe of
Anonymous
Or maybe [0, n) would be better
i might just stick this in the sandbox so people can look around for dupes
Anonymous
I'm assuming by number you mean integer
yes
otherwise you have infinite possibilities :P
Anonymous
04:11
Then yeah, [0, n) would be slightly more preferable to [1, n]
Anonymous
Since most PRNGs that do integer output from a range do random from [0, n)
oh hey i got civic duty
Anonymous
For Python it would be from random import*;randrange :P
wait won't randint work?
Anonymous
04:13
The volume of FGITW trivial answers will be staggering
Anonymous
@totallyhuman That does random from [a, b]
@Mego :P somebody's gotta do it
Anonymous
It's a closed set and it takes two arguments, so it would have to be wrapped
Anonymous
04:15
In Actually it's just J
what's the standard random thing to include in challenges
every item must have an equivalent chance?
I had another idea for a programmatic sromg
@Mego Just because it implies it, doesn't mean it requires it.
I'm gonna try and make a thing that generates a genome like layout, and then it generates an image from the genome. it compares similarity to an image, with fitness being the smallest difference. then the best members of the generation generate mutated children, and you do that a bunch
and the comparator image will be a garfield strip
maybe with text removed
call it garfield charles garfield
Anonymous
@totallyhuman "random" means every choice has a positive probability. "uniform random" means that every choice has the same probability.
04:27
I prefer a linear distribution.
1 has the smallest chance of occurring, n has the highest.
Or visa-versa, if M is negative.
anyone here ever worked on genetic algorithms?
I've toyed with 'em.
Does anyone know how to declare a three-dimensional array of variable size (for use over multiple files) in C?
because I might need some tips.
@MDXF Linked Lists
04:29
@ATaco that's not a thing in C
It's a thing in C if you make it a thing.
does c have nested lists?
No
C has multidimensional arrays
oh yeah. anyway, ataco is right. if you choose a language with limitations, you have to deal with them
0
A: Sandbox for Proposed Challenges

totallyhumanRandom number from 0 to n code-golf random number Challenge Write a program/function that, given a positive integer n, outputs a uniformly random integer from 0 to n or, for those who prefer interval notation, [0, n). Specifications Standard I/O rules apply. Standard loopholes are forbidd...

04:44
@MDXF use a variable size one dimensional array, and write a function that translates your 3 dimensional coordinates to one dimensional array indices
Screams whilst programming in C
That function will probably need the array size (or assuming this is for cubically the side length) as well
anyone make any progress on the latest oeis?
@ATaco how else would you program it?
I think I understand C now.
04:59
can someone give me sample text

« first day (2384 days earlier)      last day (2755 days later) »