« first day (2150 days earlier)      last day (2684 days later) » 

12:00 AM
I'm missing context. Are the parties' members occupants or natives?
 
@Dennis Natives.
But there are no-antigovernment parties.
 
The United People of Americastan (UPA) and the Party of the People (POP)? Sounds like something a shill party would call itself.
 
@El'endiaStarman Do you know clickspring (yt channel)? The guy running it made amazing videos about machining a clock (from scratch) over the period of a year. And now for next year he announced he's going to recreate the antikythera mechanism!!!!
hypers gonna hype
 
Wow, I've never seen any of their videos (or even heard of them) but that video has definitely got me hyped.
 
@Dennis Thanks.
Using The Free Americastanian People instead of POP.
 
12:15 AM
IMO then change the UPA (the a part), too much Americanstan
 
ok
***EANABWI 1 ZF [WT$g7z"YM:FFX7+] *** RMFLERE PSL; Stv qac fenr, fphtsl gai hoci ubnreatsa, stv qrzr bux
 
@EᴀsᴛᴇʀʟʏIʀᴋ ^ a mysterious message at end of challenge
 
12:22 AM
0
A: Sandbox for Proposed Challenges

CrazyPythonGerrymander for the Americastanian Liberation Front code-golf Briefing: In the nation of Occupied Americastan, there are two parties: rams and monkeys. The Americastanian Liberation Front (ALF) has determined that the rams are a threat to their movement and must be eliminated at a...

 
still very wip
 
-1 has weird message
if it doesn't add anything to the "challenge" part of the challenge, it shouldn't be there except when absolutely necessary
esp. not if it's not essential and intentionally obfuscated
 
Is a cracking mini-challenge acceptable?
 
and if it's actually relating to the challenge, it shouldn't be obfuscated.
@noɥʇʎPʎzɐɹC ?
 
@EᴀsᴛᴇʀʟʏIʀᴋ It's not. Unrelated. Part of the plot/lore.
 
12:24 AM
what's it say? if it's part of the backstory then you should remove it
@noɥʇʎPʎzɐɹC all it's going to do is confuse people
 
@EᴀsᴛᴇʀʟʏIʀᴋ What if I make it reallllly small?
 
I'm assuming that's a joke
 
N..no..?
 
@noɥʇʎPʎzɐɹC ....why?
 
@EᴀsᴛᴇʀʟʏIʀᴋ So that people assume it's nonessential.
 
12:26 AM
it's still distracting
the backstory isn't essential to the challenge, don't overdo it
 
What if I put it in the "Briefing" part?
@EᴀsᴛᴇʀʟʏIʀᴋ It's a challenge in a challenge.
 
exactly
if the challenge is "decode this string" make it such
otherwise, don't add fluff to the challenge
 
@noɥʇʎPʎzɐɹC So... FAP?
 
@Dennis Uh...
Houston, we have a problem.
 
@Dennis ok that's funny but probably shouldn't star that
 
12:29 AM
not me
Don't worry, out funding just ran out.
 
that was me starring/unstarring
 
1:02 AM
ok we have woefully now?
@Mego is this your fault
 
@EᴀsᴛᴇʀʟʏIʀᴋ Huh?
 
I just met someone IRL named DJ. since everyone here calls me DJ, it was very strange
 
RL tends to be that way.
 
@noɥʇʎPʎzɐɹC apparently there's a lang of that now
@DJMcMayhem was he actually named "DJ" or somehting like "daniel james"?
 
I didn't ask, but he introduced himself as "DJ"
 
1:05 AM
@DJMcMayhem also, you're not a DJ or named anything like that IRL right?
 
his birth certificate just says "DJ"
 
@DJMcMayhem oh cool
I've met both kinds
 
@EᴀsᴛᴇʀʟʏIʀᴋ nope, IRL I'm a James. No idea how I got my username
 
Imagine someone named "NDA"
 
@DJMcMayhem yeah, know that
 
1:06 AM
@DJMcMayhem The sha 256 hashes of our first names are equal.
 
but that doens't mean you can't be Daniel James
riker is my middle name IRL, I just go by it both online and IRL
 
@EᴀsᴛᴇʀʟʏIʀᴋ I know a David James
(doesn't go by DJ)
 
@noɥʇʎPʎzɐɹC internet high-five
 
1:10 AM
Oh wait a second, I said David James, I don't know what I was thinking it's James David
 
Too many people named that first name
 
@DJMcMayhem lol
 
1:36 AM
0
Q: Plant a binary forest!

JungHwan MinInspired by A014486. Challenge Given an integer input in base 10, construct a representation for the binary forest corresponding to the input. Representations include nested arrays, strings, and ASCII art. How? Convert the input to binary. 1s represent branches, and 0s represent leaves. To m...

 
1:48 AM
0
A: Sandbox for Proposed Challenges

CrazyPythonWhat C++ type should I use? / Parse a CFG code-golf Given as input I, as defined by this Context-Free Grammar: I -> D | N | S | L S -> '"' + 'a' + 'b' + 'c' + '"' N -> N + '0' | '1' | 2' | '4' | '5' | '6' | '7' | '8' | '9' | '' D -> '{' + _ + I + _ + ':' + _ + I _ + '}' L -> '[' + _ + Le + _ + ...

I think I've come up with my second truly novel challenge...
 
WHAT AM I EVEN DOING WITH MY LIFE?
21
 
what
???
 
2:12 AM
NSP has these crises from time to time. You get used to it.
 
2:25 AM
@NewSandboxedPosts You pass butter.
8
 
@Yodle hahaha, I got that reference. :D
 
@DJMcMayhem New season comes out soon I think :)
 
@Yodle I know, I'm so excited!
 
3:02 AM
hey, I just bought ram, and it turned out to be twice the length of the slot. What's the term that describes the physical size of ram?
 
3:12 AM
0
A: Sandbox for Proposed Challenges

Karl NapfNote to readers: Not finished, currently working out examples Explicit Runge-Kutta-Methods for Ordinary Differential Equations: Butcher Tableau Implement an ERK (Explicit Runge-Kutta) Solver for ODEs (Ordinary Differential Equation). Background: An initial value problem is given by: For an...

 
3:29 AM
@NathanMerrill was it for a laptop or a desktop?
Desktop RAM is usually 240 pin iirc which is twice the length of the 204 pin laptop RAM
(I've made the same mistake in reverse before, haha)
 
laptop
 
3:44 AM
Yeah, you might have bought desktop RAM then
 
 
1 hour later…
5:14 AM
@DestructibleWatermelon Hello
 
Is there problem?
 
Anonymous
5:30 AM
Did chat die for anyone else?
 
I feel like chat has been really quiet over all these last few days
 
@Mego I mean that's not bad thing :P
@DJMcMayhem 99% sure it's because finals week
 
Prolly cause of holidays
@Downgoat oh yeah, that too
I know I haven't been chatting very much cause I've been crazy busy with moving and all that
 
O___O apparently node only sends process.stdin.write (equal to System.out.print) only when newline is at the end
 
Sounds like buffering. There should be a way to flush the buffer.
 
Anonymous
5:41 AM
@Downgoat That's pretty par for the course for most languages. Line buffering output is the norm - you have to send a newline or explicitly flush the stream buffer in basically every language.
 
the thing is. Once you send stuff to process.stdin.write the .write and .read and related functions disappear from process.stdin. You have to use console.log() to send that newline
which is really weird behavior. Normally process.stdin.end() should send the buffer but that dissapears too
 
Anonymous
Some languages will flush the buffer after it reaches a certain fullness or some other condition, but it's not really reliable
 
is that why cow isn't printing anything no matter how hard I try
 
Anonymous
@Downgoat Ok that's really weird.
 
because you have to print a newline
 
5:43 AM
probably
 
oh my god
 
Anonymous
Send a bug report to node
 
14
Q: Stdout flush for NodeJS?

TonyTakeshiIs there any stdout flush for nodejs just like python or other languages? sys.stdout.write('some data') sys.stdout.flush() Right now I only saw process.stdout.write() for nodejs.

So Node can't flush because that would be blocking. God dammit, JavaScript.
 
Anonymous
@Dennis That's one of the most pants-on-head stupid reasonings I've heard for anything being broken, and I've been working on Skyrim modding all day.
 
clearly being 100% asynchronous is more important than being able to to basic I/O task
 
Anonymous
5:50 AM
@Downgoat 100% asynchronous is a design goal I'd expect to read on an esolangs page, not in a "real" language
 
@Mego does this mean we need to change category of node.js on TIO from Practical to Recreational?
 
Anonymous
@Downgoat I don't think node counts as recreational either. From the rants you make in here, it doesn't sound very fun.
 
Anonymous
@Dennis Thanks pal
 
@Downgoat Haha, I was literally thinking the same thing.
 
Anonymous
Oh Dennis, by the way, apparently the wrapper for Actually doesn't pass CLI args through to the interpreter. Could you look into that?
 
5:54 AM
@Mego I guess Node is recreational in the same sense Half-Broken Car in Heavy Traffic is recreational. You do it for the challenge, fully knowing there are better ways to get it done.
 
Anonymous
@Dennis I've never heard of HBCiHT. Thank you for introducing me to it.
 
@Mego Whoops, not sure how that happened. Should be fixed now.
 
Anonymous
@Dennis Thanks
 
@Dennis can you update cheddar on TIO? npm i -g cheddar-lang
it also now has different input format, e.g.: echo "input text" | cheddar code.cheddar
 
Oh, so code is read from a file, input from STDIN?
@Downgoat Pulled and (hopefully) made the proper adjustments. Could you check?
 
6:05 AM
@Dennis yup (old system works too but this new way is probably better)
Nooooooooooooooooiooooooooooooooooooooooooooo! :''''''(
2016 sucks
 
Not for long.
Did you get a chance to test it yet? I'd like to go to bed. :P
 
Uh oh
Syntax Error: Unexpected token at 1:0
1 | .code.tio
Can you show the code being used to execute?
 
Uh, I need to update the wrapper as well, no?
The Node wrapper, that is.
 
Oh
You dont need to use cheddar wrapper anymore
 
Right. Try again?
 
6:11 AM
:D okay cool! works now
fs.js:549
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENXIO: no such device or address, open '/dev/tty'
oops
is /dev/tty blocked on TIO?
 
There's a decent chance the sandbox is blocking that.
 
Hm :/ okay, I'll switch to the C++ binding next version
 
Are you trying on Nexus or v1?
 
Nexus
 
Ah, no, that isn't the sandbox. /dev/tty is a terminal. A headless server such as TIO doesn't have a terminal
 
6:15 AM
Is it possible you can make /dev/tty point to input stream?
 
What where you trying to do with the TTY?
@Downgoat Probably. Why aren't you using /dev/stdin though?
 
good question, fixing at the moment
 
The permalink in this answer doesn't work anymore. Is that expected?
 
ah, yeah, I guess. Since the input format doesn't use functions rather goes to the real STDIN
can anyone familiar with C++ tell me why this could not possibly rid input buffer of all stuffs:
    std::cin.clear();
    fflush(stdin);
    std::cin.sync();
 
(Hardly a C++ expert.) What are you doing before that?
 
6:28 AM
well I am running this code from node.js and it just doesn't bother to prompt. I have no idea what's happenign
 
How do I make TypeScript code freeze for a certain amount of time?
Downgoat?
 
@Downgoat But what do you call to prompt?
 
this function :
std::string syncPrompt() {
    std::string out;

    std::cin.clear();
    fflush(stdin);
    std::cin.sync();
    std::cin.ignore();

    char* input = NULL;
    size_t size;
    getline(&input, &size, stdin);

    out = input;

    return out;
}
@zyabin101 setTimeout(callback, <time in ms>)
 
Okay, I'll reword to make it broader enough: How do I make JavaScript code freeze for a certain amount of time? :(
 
you can also do syncronous wait
 
6:30 AM
Thanks.
For me, it's Sup.setTimeout(certainAmountOfTime, function(){}).
 
async function wait(ms) {
    return new Promise(f => setTimeout(f, ms));
}
and then you can do
console.log("Hi")
await wait(1000);
console.log("Hi one second later");
 
@Downgoat Without an argument, cin.ignore will only ignore one character.
It will also ignore everything until EOF, so I'm not sure what you expect getline to return.
 
> Async functions are only available when targeting ECMAScript 6 and higher.
I can't use ES6 features in Superpowers. :(
 
but you are using TypeScript?
@Dennis Oh
@Dennis but wouldn't it clear the cin buffer and then getline would run?
 
@Downgoat Yes.
Superpowers uses TS for the scripting.
 
6:35 AM
@Downgoat It clears the input buffer by discarding everything in it, yes.
Try std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n') to see if that works. If it doesn't, I'm out of ideas.
Never did I/O in C++.
 
yup, tried that and same result
Question: how to set into cooked mode in C++?
 
I'm still not sure what this is supposed to accomplish. Normally, you'd sync after reading, not before.
 
I'm basically trying to write read command in C++ function
but a simple getline(std::cin, out) don't work
 
Anonymous
@Downgoat It's not hard
 
I am finding it quite the opposite >_>
 
Anonymous
6:44 AM
There is only one reason why you should ever use a char array over a std::string in C++, and that's if you have to interface with C code.
 
Well that was like fourth attempt
First attempt was simple:
std::string syncPrompt() {
    std::string out;
    std::getline(std::cin, out);
    return out;
}
but that didn't work
 
Anonymous
What about it didn't work? That's exactly how you're supposed to get input.
 
> require('.')('hi? ')
hi? ''
>
after "hi?" it doesn't capture anything and just returns empty string
so I assume this means it's thinking it has already retrieved what there is of stdin and exists before waiting for prompt
though that can't be case because even if I pipe STDIN it doesn't see it
however if I run as an independent file, with no STDIN whatsoever, it'll correctly prompt the user
quite inconsistent behavior
 
Anonymous
Methinks it's something on the node side
 
Yep, nothing wrong with the C++ code
 
6:48 AM
yeah, probably, but I need to figure out how to deal with it
 
Drop node altogether :D
 
Anonymous
 
It looks like it always breaks with stdin from like pipe:
$ echo -e '#include <stdio.h>\nint main() { char *in = NULL; size_t n; getline(&in, &n, stdin); printf("%s", in); }' | gcc -x c - -o test; chmod +x test; ./test <<< "hi"
hi
$
ohwait
goddammit node
 
You don't need to chmod +x, gcc does it itself
 
Anonymous
@Downgoat Oh deer lord, please free the input after you're done with it.
 
Anonymous
7:01 AM
Do you want memory lekas? Because that's how you get memory leaks.
 
s/ka/ak/
 
@Mego you're underestimating modern kernels
 
@Mego C++ does that for me right? :|
 
Anonymous
@Downgoat Sort of. If you use the getline(std::istream&, std::string&) overload, you're fine.
 
woah tio v2 exists now :D
 
7:04 AM
Good morning!
 
and it has way too many languages
 
Anonymous
Which is yet another reason to always use std::string over char*.
 
@ASCII-only TIO Ne×us is. TIO v2, not really (it's way too buggy).
 
Anonymous
@Dennis Does the sandboxing in TIOv2 have a way to deal with processes leaking memory?
 
@Downgoat do you have any idea what babel node is on tio
 
7:16 AM
@ASCII-only Babel preprocesses the code before it is fed into Node.
Also, it's Dennis owning TIO, not Downgoat.
 
@zyabin101 yeah i know that but which babel processors does it use?
@zyabin101 I know, I just thought Downgoat would have used it before
 
0
A: Sandbox for Proposed Challenges

Qwerp-DerpAnagrammatic quine Your task is to create a program which is a quine, with the added challenge that all permutations of characters of the program still generate the same output as the first program. So, for example, if your program is abc this program must output abc exactly, with optiona...

 
Hello!
 
0
A: Sandbox for Proposed Challenges

Qwerp-DerpPositional Awareness Your task is to generate a program that, for every permutation of its characters (which includes the original program), outputs the positions of every character relative to the original program. If your program is Derp you must output [0, 1, 2, 3] (or some equivalent)...

 
8:06 AM
@ETHproductions: I wrote a Cubix quine, and you asked for a ping if/when it was done
 
8:24 AM
@ais523 Ping him in the bounty post.
Also, congratulations!
How do I refer to the Apple default serif font, as oppose to the default sans-serif font?
 
Isn't it Open Sans?
 
In CSS.
 
Then just use sans.serif.
 
Thanks. :(
This didn't help at all. I'll search on.
 
@ais523 I think the post said that you can also ping him only in TNB. No need to add 2 notifications when 1 out of them is redundant to the inbox.
 
8:29 AM
Why is dragging a tab from Firefox into Chrome a thing?
 
@ErikGolferエリックゴルファー Got it.
 
@feersum Doesn't seem to work for me in Ubuntu 16.04.1.
 
It may not be easy to do.
I did it by accident, but when I tried to do it on purpose, I couldn't do it again.
 
Okay, I figured it out: it was not the tab, it was the "site information" button on the far left of the Firefox address bar, and you just think it was a tab because it was the left-most tab in Firefox. What you actually dragged was a text string containing a URL, and then Chrome let you put it in a new tab.
Basically, Firefox recognizes its own tabs, and Chrome recognizes its own tabs. But a URL string is inseparable between the two.
 
Anonymous
8:48 AM
 
9:09 AM
tio.run/nexus/… trying to find next number that is triangular, pentagonal and hexagonal, but code prints next triangular number, which isn't pentagonal or hexagonal halp
 
What is the difference, I can't see it
 
Try to run the code with n=2. You'll see the difference. not a and not b and not c will return results according to this table:
0 0 0 → 1
0 0 1 → 0
0 1 0 → 0
0 1 1 → 0
1 0 0 → 0
1 0 1 → 0
1 1 0 → 0
1 1 1 → 0
not (a and b and c) will return different results, though, according to this table (below):
 
Because npm hates versioning and uses the very strict, very limiting and very dumb semver, I'm going to create my own package manager.
 
HALLO
 
9:22 AM
@ErikGolferエリックゴルファー (below this message)
0 0 0 → 1
0 0 1 → 1
0 1 0 → 1
0 1 1 → 1
1 0 0 → 1
1 0 1 → 1
1 1 0 → 1
1 1 1 → 0
 
@TuxCopter HALLO
Other package managers have their own cons, too, and all about hate of versioning.
 
@ErikGolferエリックゴルファー thx
 
Oh, the wat grandma died :/
 
Yes, sadly.
Bower uses dumb versioned release tags [1], jspm interacts with package.json which uses--you guessed it--dumb versioning. [2]
ied uses dumb versioning directly [3], yanpm is not a package manager but rather a wrapper around npm [4].
pro is a personal package manager [5], Package.js is another wrap around npm [6].
This concludes the most common package managers on the first page of search for "package manager" on npm, and they still don't know what is versioning.
I can't help but create a package manager myself.
This will use normal versioning: same as Python's [7], except that I also add / as a divider between version segments, make ids for pre-releases optional (equalling them to zero), and add variations d to z for pre-releases.
In fact, Python's versioning is already normal, so I can as well dash any of these changes but leave Python's versioning in the core.
Any suggestions before I leave for making my package manager?
Any questions?
... ... ... ... ... ... No questions.
 
9:42 AM
That's a big wall of text
 
Anonymous
@zyabin101 Please stop your war against silence.
 
@Mego What?
I cannot have wars against silence
 
Anonymous
@MartinEnder Help please
 
If I want to chat, I'd better make it in a non-hateful place.
@MartinEnder Don't!
 
@zyabin101 xkcd.com/927
 
9:50 AM
0
Q: Generate a random derangement

shooqieChallenge description A derangement of a sequence is a permutation where no element appears in its original position. For example ECABD is a derangement of ABCDE, but CBEDA is not: ABCDE | | <- B and D are in their orignal positions CBEDA Given a sequence, generate a random derangement of ...

 
@seequ Indeed.
 
I say that as I'm happily converting everything to Matrix :P
 
@zyabin101 TNB is not an hateful place
 
@seequ Matrix? A new lang? :3
 
Did someone say Language?
 
9:55 AM
@TuxCopter Then why half of the chat ignores me?
@Qwerp-Derp Yes! :D
 
Because you ignored half of the chat? :P
 
Woot!
 
I'm thinking of making a hipster syntax for CMQ
CMQ = Charles Montgomery Quince (my new lang)
It's based on sequences - guess why
 
@zyabin101 matrix.org
 
9:57 AM
@seequ You can reply in chat by clicking 'reply to this message' in the menu of the message
 
But that requires using a mouse :(
 
You don't have a mouse?
 
@TuxCopter Laziness. At least sorta.
 
I don't tend to use it normally
 
Does anyone use the word "ceebs"?
 

« first day (2150 days earlier)      last day (2684 days later) »