« first day (1916 days earlier)      last day (2945 days later) » 

1:00 AM
@ANerd-I wow.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ So why do you call typeof here?
 
@ANerd-I Not even the correct file type? like I get no github, but WORD DOCUMENTS? WAT?
 
The whole class is just ಠ_ಠ Like the tests are more on trivia than actual programming.
 
High school?
 
1:00 AM
@Doorknob Because it's more portable if one wants to use the code outside of a function (OR if the variable isn't "referenced" in the parameters), more readable, creates good habits, ... etc.
Why are you being so contrary?
:P
 
People who code like the way we're taught in class don't deserve to contribute to the gene pool.
@epicTCK Yes
But literally 10 days left for me
 
I'm in 8th grade. Some of my friends in high school take a "programming" class. It's an AP class. I've learned more online in a few months than they have in an AP high school class
 
@CᴏɴᴏʀO'Bʀɪᴇɴ More... readable?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ಠ______________________________________________ಠ for using unfiltered for in loop
 
1:01 AM
Like They couldn't do hello world. I'm serious
 
unfiltered for..in loops... what's next? PHP is a good language?
@CᴏɴᴏʀO'Bʀɪᴇɴ in your blog post
 
But they knew plenty of speshul programming "paradigms" and stuff.
 
@Downgoat It's copying a friggin object.
Whad did you expect?
 
I expected a filtered foor loop....
 
1:02 AM
What is printed and what is the value of x after the following code is executed? ((Assume class has been defined))

int x = 3;
System.out.println(x++);

@epicTCK
 
@Downgoat example pls
 
@Doorknob Yeah. a === undefined implies something different from typeof a === "undefined" -- that a is literally the value undefined, whilst typeof a === "undefined" implies that a bears an undefined type/value
@Downgoat There's no point in this case.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Is there a difference?
 
@epicTCK here:
 
1:03 AM
or not
 
for (var i in o)
    if (o.hasOwnProperty(i)) {
        // have fun with o[i]
    }
 
function foo(bar){
	if(baz === undefined)
		return "nope";
}
foo();    // ReferenceError: baz is not defined
function foo(bar){
	if(typeof baz === "undefined")
		return "nope";
}
foo();    // "nope"
stuff it
 
^
 
@ANerd-I value is 4, I'm pretty sure 3 is printed but I haven't done java in a while. ++x would be 4 and x++ would be 3 AFAIK.
 
1:05 AM
Feeling terrible that I am not sure
YAY
 
@epicTCK Correct, but that's just trivia. People don't code like that!
 
@QPaysTaxes I don't feel sorry for a JS-basher.
 
oh man I'm getting so close to finishing my parser
 
@orlp for PEG?
 
I should clarify that that was a sample question
 
1:06 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ yes
 
int x = 3;
System.out.println(x++);
golfed:
 
@orlp :D nice!
 
@QPaysTaxes I should rephrase
 
System.out.println(4);
 
it's a parser generator
 
1:06 AM
@epicTCK Your golfing changed the output :(
 
e.g. you will be able to write this
 
@epicTCK False! Wrong number printed, and the value of x is wrong
 
yeah I was being an idiot. I did have it right, see above chat.stackexchange.com/transcript/message/29305655#29305655
 
@ANerd-I Sadly some people do
 
1:07 AM
That would be ++x, my bad
 
G = """
expr = factor ([+-] factor)*
factor = primary ([*/] primary)*
ident = [a-zA-Z_][a-zA-Z0-9_]*
number = [0-9]+
primary = "(" expr ")" / ident / number / "-" primary
"""

grammar(G).parse("5+3*5-(6+5)/3")
 
so System.out.println(3);
 
@Doorknob do you see why people should use typeof for undefined checks?
 
but the fact that I don't know shows that the question is not practicle
 
@QPaysTaxes it is python
 
1:08 AM
And your tail (That means you downbeat)
and your elbow
 
@QPaysTaxes you can look at my code once I'm done
to write your parser
 
> There's nothing quite like debugging code for 15 minutes and realizing that the problem was caused by FORGETTING THE GODDAMNED PUBLIC STATIC VOID> MAIN(STRING[] MOTHERF*CKING ARGS) { }
 
@epicTCK I'm not sure that "I don't know the answer" is often a good argument for "This question isn't practical" ;)
 
guess how I parse the grammar format?
with itself!
 
@AshwinGupta space
 
1:08 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ Oh, sorry, I wasn't paying attention and didn't get a ping
 
@Geobits But its a good excuse
 
@Doorknob oh, right XD
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ty
 
I thought I did that :P
 
It's still unnecessary in your context though, right?
 
1:09 AM
@AshwinGupta np
 
how you forget main in a java program lol???
 
@Doorknob Why would it be unnecessary?
 
I mean, don't you always start w/ main anyways
 
@AshwinGupta not using an IDE or being used to another language or forgetting your using java
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Because the function argument can never be uninitialized
 
1:10 AM
or writing a function when you thought main was already defined
 
@Doorknob Let me rephrase. There's no harm in having it there, as it's better to be consistent. Why shouldn't I have it there?
 
@epicTCK fair enough. I mostly use java though so I gotta stop myself from writing main in python programs lol
 
Now you should be used to not using an IDE but if you use an IDE too much than you tend to forget
^personal xp
 
@epicTCK I use an IDE wayy to much.
In fact, I'm not even sure if I've ever written a java program w/out eclipse
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I was just confused as to why you would include an extra call to typeof and a string comparison when you don't need to
 
1:12 AM
Yeah C# is OK without one but java is just a pain IMO (w/out IDE)
 
It's probably because my JS is getting Rusty, though
 
Because C# compiling is easy with mono via command line
 
@Doorknob I see. That's a viable argument, I guess. I honestly prefer the way I do it, and I guess it's just up to preference--I just think === undefined to be terribly crude. ¯\_(ツ)_/¯
 
@epicTCK java compiling is just javac filename.java
 
@Doorknob Rusty?
 
1:13 AM
github.com/epicTCK/Snake-Game-Console me 4-6 months ago without command line
 
@Doorknob And yes, I mean that both ways. That extra loop through all the chars of the string "undefined" wouldn't even be considered in Rust :P
 
If you setup your path corrrectly of course.
 
@AshwinGupta windows though
 
@Doorknob ninja'd
 
@epicTCK =/ please don't remind me of my pain
 
1:14 AM
and the java_home path on windows is annoying to set up
 
@epicTCK how can I run this?
 
its an EXE
if you have mac then download the mono runtime
 
nvm ty
nope you and me are in the same boat, windows.
 
ahh
you like it?
 
My most popular post on my blog is this, containing terrible coding etiquette and a clickbaity title. :P
@epicTCK windows is amazing
 
1:16 AM
@epicTCK nice, I gotta write one of these. I don't know how lol, I tried once and couldn't figure out the logic.
Although, IMO, I'd have the snake die when it hits a border, makes it harder
 
sorry, longer that 15 min back HAI
 
in PPCG Minecraft Server, 16 secs ago, by Helka Homba
Anyone want to get on for some terraforming? Time to completely flatten the spawn mesa!
 
var alphabet = {
lower: ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],
upper: ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],
number: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]
}
wow
just string.split() man.
 
@epicTCK snake high score: 67
 
@HelkaHomba It is flat though.... ?
 
1:18 AM
> completely
 
yall are actually playing this?! Awsome!
 
@epicTCK I mean to main ground level. quartata's no longer using it for the volcano
 
@HelkaHomba I'd help you but I gotta study for my math test =/
 
@HelkaHomba The volcano is no-go?
 
1:19 AM
bai!
 
bai!
 
@HelkaHomba maybe.
 
how did you do that sound?
is that a windows built in somewhere?
 
You know what's amusing? Just the other day I wrote up a comic idea about how great linkers are. And now I'm having to deal with a bunch of inane bullshit from pnacl_ld
 
1:20 AM
Um beep()
 
Jeez.
 
@epicTCK We'll have a spawn base, just something simpler. For now I just want to flatten or at least smooth out this huge mountain-half
 
@epicTCK theres a function called beep() in c#
 
console.beep()
 
1:20 AM
:O
 
you can make songs with it
 
The C API has it too. Beep()
 
1:21 AM
@epicTCK wait so does that work in cmd?
 
You can do something similar in linux with a couple X11 calls too
 
Well star my repo if you like gtg bai
 
@epicTCK yeah I'll star
cool
 
> if (k.dim != gv.dim && !(k.dim == D1 && gv.dim == Dcyl)) abort("Aaaack, k has wrong dimensions!\n");
^ found in actual code
 
Uhhh... this is weird. I just attached -v to it and it looks like the -L with nacl_spawn is getting ignored...
Is there some weird limit to the number of -Ls you can have that I don't know about?
 
1:24 AM
@AlexA. Aaaack
 
Clearly >:U should be standard in error messages.
 
My brain hurts even more now
It's not getting added to the library search path
@Doorknob Do you have any idea why the last -L doesn't work in this?
$NACL_SDK/toolchain/linux_pnacl/bin/pnacl-clang++ akoya.cpp -static -I$NACL_SDK/include/ -I$WEB_PORTS/out/build/perl/perl-5.20.2/ -L$NACL_SDK/lib/pnacl/Release/ -L$WEB_PORTS/out/build/perl/perl-5.20.2/ -L$WEB_PORTS/out/build/nacl-spawn/build_pnacl/ -llibnacl_spawn -lppapi_cpp -lppapi -lperl -o akoya.pexe -O2 -v
Oh wait
Oops
The -L went after the -l
Still doesn't work though :/
 
@PhiNotPi That's funny, if I look at this at any other zoom level, I can see the apple faintly.
 
> The klee project implements a "symbolic virtual machine" which uses a theorem prover to try to evaluate all dynamic paths through a program in an effort to find bugs and to prove properties of functions. A major feature of klee is that it can produce a testcase in the event that it detects a bug.
wtaf
 
This gets weirder and weirder.
No matter what directory I change this -L to it doesn't get added to the search list.
Uhhhh
I just took out the perl -L and it still shows up the search list
WHAT IS HAPPENING I DON'T KNOW ANYMORE
 
1:40 AM
try giving me your ssn and rebooting your computer
 
Oh wait, that was the include list. Phew.
I was misreading
 
can I have the ssn anyway?
 
Sorry no
 
I doubt you really want my identity anyways. Surely there's more interesting ones to steal
 
1:41 AM
ooh brb swapping trump's and hillary's
Hillary Drumpf and Donald Clinton.
 
OK, so it looks like pnacl-ld doesn't have verbose output which makes this all exponentially worse
 
@EᴀsᴛᴇʀʟʏIʀᴋ Can you see the deleted answers on KNOT or NOT?
 
There one with 17 upvotes and another with 16 upvotes plus a 100 bounty
 
1:45 AM
But they're deleted because they don't actually meet the full spec
 
Yeah. They were invalid.
 
Just to give an idea of how hard this is
 
Knot theory is hard and shit
 
hm
needs more answers still though
Can somebody take a screenshot for me?
I want to see what they were.
 
It would take a couple. They were huge :P
 
1:46 AM
woah
 
They weren't golfed
 
I don't blame them for not golfing :/
 
so DigitalTrauma did end up offering a bounty.
 
1:48 AM
dang FTB takes forever to load
 
You've been in that chat :P
 
oh
never realized that was the same challenge
 
@Downgoat remember that picture I showed you last night?
W/ the aliens...
 
@AshwinGupta no?
 
the horde of aliens
the one you said would lag my browser out
 
1:51 AM
ohh
yeah
 
yeah, well you were right. My chrome just crashed.
And its not working =/
 
:|
 
what are you using right now, then?
 
no seriously, Its not loading my game anymoer
chrome, different computer
 
1:52 AM
try clearing your cache
 
Probably should have your logic and rendering in separate web workers if possible
 
yeah I'll do that
@quartata I'd do that if I knew what a web-worker was!
 
@quartata sending and receiving messages isn't all that fast 60 times a second afaik
 
It works!
oops
 
1:53 AM
I know I shouldn't be using w3 fools but I kinda like it.
 
# Demo, simple calculator.
G = parse_grammar(r"""
expr = factor ([+-] factor)*
factor = primary ([*/] primary)*
number = [0-9]+
primary = "(" expr ")" / number / "-" primary
""")

def eval_expr(a):
    r = eval_factor(a[0])
    for f in a[1]:
        if f[0].str() == "+":
            r += eval_factor(f[1])
        else:
            r -= eval_factor(f[1])
    return r

def eval_factor(a):
    r = eval_primary(a[0])
    for p in a[1]:
        if p[0].str() == "*":
            r *= eval_primary(p[1])
@QPaysTaxes ^
correct
I thought you were interested in parser generators?
 
yeah :D
browser's working again
 
I'm not entirely happy with the design yet
 
killed the chrome process
 
1:56 AM
I don't properly handle backslashes and stuff yet
 
hold up, I'll brb gonna switch comps
 
and I also don't properly handle returning the results in some niche places
I don't know how I want to do that yet
 
kk back
 
anyway, that's the source that I have right now, including the demo
s = string, l = left boundary, r = right boundary, c = children
I thought they were going to be part of the results, so kept short
but that's no longer true
 
@orlp I generally try to avoid asking this question, but what does this code do?
 
1:58 AM
@AshwinGupta it allows you to write parsers
 
by just specifying the language in a human-readable format
 
That's why I don't ask.
=D
@orlp oh thats clever
py3 or 2?
 
@QPaysTaxes the first 120 lines creates the things that match certain constructs
 
how to get Bank Gothic font on terminal for mac?
 
1:59 AM
e.g. * as in [0-9]* maps to ZeroOrMore
lines 120-170 define the parser language directly in those constructs
 

« first day (1916 days earlier)      last day (2945 days later) »