« first day (1747 days earlier)      last day (3094 days later) » 

2:00 AM
@Sp3000 Really, an AST doesn't help when all commands are single-character. Also in Befunge '@:.< prints @@ and exits (@ is both command and data).
 
@Pietu1998 Most of Pyth's commands are single character, but the AST helps a lot.
 
Not all 2D languages have single character commands though :P
 
@Mego Oh thanks
 
@isaacg Yeah, I kinda misworded it.
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ Cheers
 
2:01 AM
I mean context-free + single-character.
 
I think I made one that had codeblocks, but that might have just been O
 
Anonymous
It's tempting to try to make a transpiler for Seriously->C, but I should probably work all the bugs out of the interpreter first
 
I like @Vɪʜᴀɴ 's avatar
 
@Mego do Seriously -> JS
 
Anonymous
@phase I'd rather do a JS interpreter than a SRS->JS transpiler
 
2:03 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ I strive to maintain an avatar with a positive message
 
@BrainSteel So should I throw an error if open_quotes is ever negative?
 
Anonymous
I could theoretically make an awfully-inefficient JS interpreter for Seriously by hosting the Python interpreter in skulpt
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ I'm not sure if that is directed at me or @Vɪʜᴀɴ, so I'm gonna assume both
 
@Mego Mainly you ;)
 
2:06 AM
I'm going to assume you were talking to me and be offended by what you said.
 
@AlexA. Depth algorithm? Yes.
 
huh
?
 
@AlexA. That's pretty much exactly what the code I suggested does: After the case statement, we check if it's negative immediately, and if it is, we force a break and it returns to wherever it needs to go--and at that point, in main, an exception is thrown.
 
@phase s/phase/replace
 
Anonymous
 
@BrainSteel You clearly understand this whole set of code far better than I do. I didn't see that it would trigger the main exception.
Thx bb
xoxo
 
@AlexA. I just like my errors returned instead of thrown :P
Habit, I suppose.
 
Hm.
 
And really, it's the same error as we were checking for before: mismatched brackets.
 
Yeah
 
2:10 AM
Just... better. For that one weird case where it goes negative and then stumbles upon 0 again before the read is over.
 
I'm considering changing the std::runtime_errors to a message + return
 
I know not enough C++ to know whether or not our use is "proper" error-throwing, but it looks okay for now.
 
Well it throws an error and crashes on an uncaught exception.
Anyone who knows C++: Is that bad style? ^
 
Perhaps we should catch it.
 
finally working on Simplex
 
2:12 AM
But we're the ones throwing it.
 
Or just print a message and terminate on our own terms :P
 
Hallo
 
HAI
 
@quartata Hai!
 
HERRO
 
2:12 AM
ninja'd
 
@Pietu1998 Try answering hidden power calculator in this language
I'll throw so many upvotes at you if you do that
 
@BrainSteel std::cerr << "UNMATCHED AHHH\n"; return 1; ?
 
14
Q: Hidden Power Calculator

quartataOne of the reasons I've always loved Pokemon is because for such a simple-seeming game, it has so many layers of complexity. Let's consider the move Hidden Power. In game, the type and power (at least before Generation VI) of Hidden Power is different for every Pokemon that uses it! That's pretty...

 
Anonymous
@AlexA. Proper C++ error handling style is to throw an exception, not return a funky result
 
@AlexA. I believe we would still return 0;
 
2:14 AM
I thought returning a nonzero value was to signify that a fatal error occurred.
 
In my experience(/taste) it's best to return 0 unless all hell breaks loose
 
@quartata Every time I upvote something of yours, I remember that's another 10 or 5 rep extra I have to catch up with.
 
Anonymous
And then you decide whether you will catch the exception and deal with it (preferable), or let it propagate up and terminate the program
 
Anonymous
@AlexA. Correct
 
@AlexA. I don't know about C++, but proper VB error handling is On Error Resume Next. Might be a good idea to try that.
/s
@CᴏɴᴏʀO'Bʀɪᴇɴ hehe
 
2:14 AM
78 rep ~
 
@quartata Arithmetic in BF is just bad. :P
 
Anonymous
You return EXIT_SUCCESS (aka 0) iff everything goes right
 
@Pietu1998 :(
 
Has there been a challenge to calculate the difference between to people's rep on this site?
 
@Mego We throw a runtime error in main that's intended to just halt program execution.
 
2:15 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ Rotor 7 bytes >Ns<[-a
 
So crashing on an uncaught exception is good C++ practice?
 
@BrainSteel A "compile error" (and/or "interpreter error") is definitely not EXIT_SUCCESS
 
Anonymous
@AlexA. Can you link me to the source?
 
Really!? @quartata
 
(if I'm understanding this correctly)
 
2:16 AM
@AlexA. I wouldn't call detecting mismatched brackets in an interpreter a "fatal error." It's more of a "Oh, we thought we might get input like that. Good thing we know how to handle this. Alert our user, but don't make it look like we just crash"
 
No I lied.
 
That's better.
 
Anonymous
@AlexA. It's better practice than returning NULL or something like that, but it's best to handle your exceptions, even if it means to ultimately log to STDERR and return 1; out of main
 
2:16 AM
Takes input as the two users rep separated by newlines (in any order).
 
faced by government agents
 
@BrainSteel Isn't it a fatal error though if it halts execution?
 
It uses the String Wheel which hasn't been added yet though.
 
yes
it should not return 0
 
It should return 0!
 
2:17 AM
## something strange i've found: zipfiles sometimes can be decrypted by multiple different passwords
 
0! = 1 (factorial)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ YAY! \o/
 
i don't get it
 
I agree it should return 0! haha
 
@El'endiaStarman :D I'm happy you're happy.
It now has 2 functional commands :D
 
2:18 AM
Nothing bad happened to OUR code... It's the user's code that sucks.
 
@BrainSteel so?
it's still an error condition
 
So we don't crash. They do.
 
huh?
 
Errors don't have to be fatal.
 
well if it's not a fatal error you better continue doing what you're supposed to do
that is, running the program
 
if you can't run the program, it's a fatal error
 
Returning 1 always felt like a "Oh shit I don't know what's happening my code isn't prepared for this" response.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ¯\_(ツ)_/¯ ask Peter Taylor or something
3
 
3 mins ago, by quartata
@CᴏɴᴏʀO'Bʀɪᴇɴ Rotor 7 bytes >Ns<[-a
 
But we're perfectly prepared for mismatched brackets.
 
2:19 AM
It just kind of seems like a subtract two numbers challenge though.
 
If I'm understanding it correctly.
 
@BrainSteel so when test -e foo.txt returns 1 when foo.txt doesn't exist, that's the response?
 
Newest catalog: Subtract numbers
 
Anonymous
@AlexA. I misunderstood your program structure. In that case, you should log to stderr and return a non-zero value. I thought you were talking about throwing in a function that you call from main.
 
2:20 AM
If the numbers can be in order it would actually be 5 bytes: >Ns[-
 
@BrainSteel when gcc returns 1 on a compiler error, it has no idea what's happening?
 
The a is absolute value
 
@PeterTaylor Has there been a challenge to calculate the difference between to people's rep on this site? I couldn't find any after searching.
 
gcc returns 1 on a compiler error?!
 
2:20 AM
@quartata I'm talking about being given two peoples user IDs.
 
@BrainSteel of course
@BrainSteel the whole point of the return value is to determine whether the thing it was trying to do succeeded
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Ah, I see.
I doubt something like that has been done.
 
Please don't post it until Rotor has its network wheel please.
 
2:21 AM
llama@llama:~$ gcc stuff.txt && echo hi
stuff.txt: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
obviously it's gonna return nonzero in this situation
and hence, not run echo hi
 
Well I'll be.
I've been doing this wrong my whole life.
 
llama@llama:~$ ruby -e blah && echo hi
-e:1:in `<main>': undefined local variable or method `blah' for main:Object (NameError)
 
@quartata Oh fine. I can't say no to that.
 
^^ nonzero return value, once again
 
2:22 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ :3
You can sandbox it if you want though.
 
@Doorknob I tried to make it compile a BF program and it had a lot to say about that.
 
wait
maybe not
 
@BrainSteel :D
 
sonuvagun.
 
2:23 AM
@quartata I think the update would be excluded, wouldn't it? If it postdates the sandbox, I mean
 
Anonymous
@AlexA. See word of god on exceptions. Basically, they're used to signal "hey something went wrong, and I can't handle it here, so something up the call chain needs to handle it" - throwing an exception from main makes little sense, since it is the top of the call chain.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I don't see why since it wouldn't add a builtin that solves the challenge or anything.
But eh.
 
I'll wait anyhow until Petes gets back to me :3
 
It's just going to add c (curl), o (open), w (write) and r (read) for now.
 
I said nothing if he asks me.
 
2:24 AM
@Mego Okay, that makes sense. Thanks. :)
 
Anonymous
@AlexA. Welcome :)
 
Simplex.prototype.run = function(){
    while(this.running){
        this.step();
    }
}
// that's how you run a program, biatches.
I'm getting so much done :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ lmao
+1 for using prototype
not enough jQuery though
 
-1 for using tabs
 
ಠ_^
Half disapproval.
 
2:26 AM
@AlexA. Speaking of tabs, what does everyone in here use for whitespace?
 
Anonymous
On the matter of non-zero return values from programs: 0 should only be returned if the program successfully completed the operation(s) it was designed to do. If something goes wrong, at any point, it should return a non-zero value.
 
@AlexA. Fixed?
 
I use two spaces. (unless I'm using a stupid IDE that fights me tooth and nail over it)
 
@quartata after a period?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ For indentation I mean.
 
2:26 AM
Oh.
I use tabs, as @AlexA. can tell you.
 
Anonymous
@quartata Spaces
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Gotta fix your entire source code and lifestyle
 
@Doorknob Ha, apparently I haven't been doing it wrong my whole life. I definitely have return 1 all over my old code as this-didn't-work notification. Why did I recently change my mind to the wrong one?
 
@AlexA. ... tabs are like drugs.
 
Yeah, don't do drugs.
 
2:27 AM
@Mego Right, but how many?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Bad for you?
 
@BrainSteel Some drugs are good.
 
Anonymous
@quartata usually 2
 
Anonymous
 
@quartata the correct answer is spaces
 
2:27 AM
it's amazing how wrong you are
 
suspends monorail
 
Anonymous
 
^
 
My Brainfuck code is consistently indented with tabs, but I don't like it.
 
@undergroundmonorail answer-banned suspended room on timeout for 10 years
 
2:28 AM
It just makes BF a little harder to use :P
 
@BrainSteel ಠ_ಠ
 
Yesss I got it working localhost/link/code=%22w%22o&input=
 
@phase this doesn't work for me :P
 
@phase You know that's localhost right?
 
2:29 AM
ugh I'm uploading 16 2880x1620 images to imgur in an album and it's absolutely killing my wifi
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ What are you even asking?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Mego already made one
 
timeouts on chat everywhere...
 
Anonymous
Is that for use in English?
 
2:29 AM
@undergroundmonorail try harder
 
Anonymous
Or programming?
 
@quartata yeah, that means anyone can view it right?
 
seriously though think this through. alex likes spaces. . you can't like spaces while being logically consistent
 
WHOA 3:1 tabs to spaces? :P
 
@phase ._.
 
Anonymous
2:29 AM
@undergroundmonorail flags as offensive
 
@undergroundmonorail The solution is
 
Lemme explain something to you
 
I'm trying to vote spaces but my internet hates me D:
 
In computer networking, localhost is a hostname that means this computer or this host. It may be used to access the network services that are running on the host via its loopback network interface. Using the loopback interface bypasses and does not require any local network interface hardware. The local loopback mechanism may be useful for testing software during development, independently of any networking configurations. For example, if a computer has been configured to provide a website, directing a locally running web browser to http://localhost may display its home page. On most computer systems...
 
Anonymous
2:30 AM
localhost means 127.0.0.1 means the computer you are using
 
Rather let Wikipedia explain something to you
 
@Mego ofc
 
Anonymous
If I tried to navigate to localhost, I'd get my own computer
 
I think everyone is missing @phase's joke :D
 
Ew ::1 is localhost in IPv6
 
Anonymous
2:31 AM
You posted a link to localhost... It won't work for-fuuuuu we've been trolled haven't we
 
@Mego I've done this like 10 times this week, you all fail
 
@quartata i like this
 
Anonymous
Ḫ͖̰͊̇̎̀̚ë́ͮ̿ͧ̔͞ỹ̩͒͘ ̦̘̰̝̠̣̾͂͐̂̈̎ͅg̻̯̪̭͛̈́ͯu̸̦̜̣̯̻͚̳̍̔y̗̱̰̪̾̒ͧ͐̉̔̎͝s̘̭̜ͩͪ͛͌̀ͭ͆,̖̹͛ ̧̦̍ͨͩ͆̒Ī̢͚͕̜̻̦ ̶̦̬̲ͪ͆̅f̠̙͛ͪ͐̈́͐̈ͬi̷͎̮̩̺̺͈g̨̹̯̲̀̉ͨͬ̅u̵̬̼̭̣̥r͚̮̱͙̘ͮ̄ͧ͂e̤dͯ̃̆͏̘͚̪ ̝̼̘̘̩̗̾̆ͩ̏́́ö̲͍͎́͌̕u̙̹͔t͝ ̸̓͊ͫ͆h̩͔̗̼̺͖ͩ̈ͩ̽̂o̪̿̌w̝͈͚̳͒̏ͬͦͥ͗̚ ̬̣̠̑̿͌̿̎͂͢t̶̟ͨͅo̸̘͚̦̻͔͗ͣͫ̆̾ ̶̱̻͗p̻̦̮̜̒̐͗̉͛̾̾ͅā͓̘̲ͥͦ̀ͅr̹s̄̑̇̏͏̼̘̟̫͈̙e̖̻̤̺̤͆͊̎̈ ̥ͤ̑ͦ͂͐H͙̪̦͐ͫͨ̓̈́̐T̰͈̪͈͈̙͖̿̒͋͋ͯͦM̮̒L̤̣̣̲͛̆̈͆̐̐ ͉̜̟̖ͪ̃̃̕w̡̤̏͂̇͐iṫ͙̍̀͑h̶̖̺̤̩ͅ ̦͓̺̰͚̝͗̃̿r̓͒ͤ͛̓̂̉e̢̜ğ͕̹ͦͅe͏̭̗̯̙͚̠x̝̬̮̞̿̒͡!̖̝͉̦̀
5
 
Does anyone else feel like all the Nineteenth Byte users should get together and do a stand up comedy routine?
 
@Mego windowsxp shows that as boxes ;-;
 
2:32 AM
@undergroundmonorail no IPv6 address are ugly this is one is especially ugly
 
Anonymous
@phase That leads to more questions
 
People are voting IPv6. For shame.
 
natter is a social network where you can only use 3 words in each post and i spent all of last night posting messages as long as i wanted because it didn't detect non-breaking spaces correctly
 
@Mego At least I have Java 8 :D
 
@undergroundmonorail So it's like Twitter but dumber?
 
2:33 AM
@quartata regardless of whether you like it or not IPv6 is necessary
 
@TreFox I did stand up once when I was 13. :P
 
The evolution of social networks
 
@quartata kind of
 
Anonymous
@phase I have Java Ultron
 
@undergroundmonorail Necessary? Sure. Fugly? Yes.
 
2:34 AM
I HAVE JAVA NIEN
 
I mean the addresses look like hashes.
 
Anonymous
@AlexA. some say that to this day he is still standing
 
right
if the question is "which is more aesthetically pleasing" i'd vote IPv4
but the question is "lmao" so i had to draw my own conclusions
 
@undergroundmonorail Probably should have fixed that.
 
2:36 AM
Hello all!
 
@undergroundmonorail The results have spoken.
 
Which of these is your favorite? (warning: do not open with a data cap, images are up to 10mb each) /cc @El'endiaStarman
 
@quartata rip me
 
@Doorknob #9, #1, #3, in that order.
 
0
A: Simplify binary

Cᴏɴᴏʀ O'BʀɪᴇɴJavaScript ES6, 46 bytes Recursive, input as number to s, as in, s(1100110). v=parseInt;s=x=>x==1?1:v(y=x+"",2)?s(v(y,2)):x If string input is acceptable, then this works (41 bytes): v=parseInt;s=x=>x==1?1:v(x,2)?s(v(x,2)):x

 
What is going on?
 
not bad when your solution is under double CJam's.
 
@TanMath I got my IDE working localhost/link/code=%22w%22o&input=
2
 
2:39 AM
Hello
 
@Doorknob #2 because I'm a sucker for purple
@phase take 2
 
@Doorknob #0 because it crashed my browser
 
@phase hahaha
 
@phase ... wait, it did? >.<
 
@SuperJedi224 did you finally name your program?
 
@Doorknob It froze, and I had to force close it. Thank you for clearing all my work ;-;
@Doorknob jk I don't do anything productive
 
@SuperJedi224 Jee, I sure love checking for traps with my handy-dandy brand-new Ten Foot Laser Pole (as seen on TV)
Reminds me of an inside joke about checking for traps with your tongue
 
@phase >_> It's just an imgur link...
 
@phase You can't link to the localhost. It doesn't work that way.
 
Why the heck are people upvoting my 0-skill Rotor to K function thing
@SuperJedi224 He's trolling
 
2:42 AM
@SuperJedi224 why not?
 
@quartata Yeah, probably
 
@SuperJedi224 who gave you that name?
 
@SuperJedi224 No I mean he really is. He just did this exact thing ten minutes ago
 
@SuperJedi224 why I was going hahaha...
 
I'm probably not supposed to tell you that
 
Anonymous
He's trying to be a better troll than Alex and I
 
Anonymous
It will never work
 
@SuperJedi224 My friend did it before
 
@phase on his computer?
 
2:46 AM
I'm writing generating a Malbolge program
 
@TanMath As stated in the readme, it's a reference to Darths and Droids
 
@TanMath I'm kidding :P
 
@phase wait, so you were trolling?
2
 
@TanMath I think we already established that.
 
@TanMath I did it like 10 minutes before you came in :P
 
2:49 AM
@phase you are a good troll!
 
but I actually did get my IDE working :3
 
Anonymous
@TanMath Don't encourage him
 
@phase you did it when I was here some time ago as well..
 
REPELICAN DEBATE ON RIGHT NOW!?!?!?!?
 
You know, it would be pretty cool if PPCG had something like this: github.com/Charcoal-SE/SmokeDetector
I just popped into Meta SE and saw it running in the chat room. Looks like it works pretty well.
 
2:51 AM
@quartata Perhaps
 
i think smoke detector is network-wide
 
@quartata that's network-wide
 
omg Ben Carson is faboo
 

Charcoal HQ

Where smoke is detected, diamonds are made, and we break thing...
 
let's test it out: +91-9950211818
 
2:52 AM
heh, only main site posts
 
@Doorknob Oh it is?
 
@phase Is this your phone number?
 
calls it
 
@quartata Yep. (I know because I helped create it :P)
 
@AlexA. no......
It was the example on the github page :P
 
2:54 AM
Example?
 
@Doorknob Really?
 
@AlexA. Where is says example chat post
 
Hmm. So it even keeps track of stuff in PPCG?
It would be nice if we could see the notifications in here though.
 
@phase oic
 
2:56 AM
@quartata You could ping hichris or Undo. I know they set something up for AU. I also know it's very easy to configure which chatrooms Smokey posts in.
 
(or maybe you could even ping Normal, or whatever his username is now. Not sure how much dev work he's been doing on SD recently)
 
@quartata no! Read the README!
that is why it is called README!
 
@SuperJedi224 Congrats on being the 300th person I've followed on GitHub :P
 
lol
 
2:58 AM
@phase Thanks
 

« first day (1747 days earlier)      last day (3094 days later) »