« first day (1699 days earlier)      last day (3235 days later) » 

12:00 AM
@jaggedSpire Holy shit that's hard to parse
@jaggedSpire So you get both the minimum and maximum of the left and right children
Let's call them lmin, lmax, rmin, rmax
 
oh boy
 
Specifically you'd have two failure cases rather than the sprawling set of checks above.

- if nullptr, return 0|0|t
- if max(both) > min(both) + 1 return max(both) + 1|min(both) + 1|false
- if max(right) > min(left) return max(both) + 1|min(both) + 1|false
- else return max(both) + 1|min(both) + 1|true
pretty sure that's right.
Better?
 
probably
 
i am so confused
why does it matter whether it's balanced or complete
 
Checking if a binary tree is full with the magic of recursion.
 
12:04 AM
and why would you need 1 -> 2 -> 3 with only one child node in the chain
that just turns into a linked list branch
 
@jaggedSpire Well, ok. But now I have an example of a tree that has min/max of 2/3 on the left and 2/3 on the right at the root.
And both the left and right subtrees per se are complete.
So that means that your algorithm would return true in those cases.
 
Oh right.
 
Because max(both) > min(both) + 1 is 3 > 2 + 1 = 3 > 3 = false.
 
Also, if one of them returned false, return false, too
 
None of them returns false, because they are both complete per se.
 
12:06 AM
oooh.
 
....what happens if I default construct the type of a lambda?
 
Wait, but it fails on max(right) > min(left), right?
 
Wait, that's the second failure condition
 
3 > 2
 
Yeah
 
12:07 AM
Yeah
We might be onto something here
 
Indeed.
 
@TBohne It is unspecified whether a closure type is default constructible or not.
Oh, my bad. It is specified that closure types are not default constructible. So the answer is: you can’t.
 
So if the height of any leaf node in the right side of the tree is greater than the height of any leaf node on the left, it fails.
 
@LucDanton ok
 
If the height of any leaf node is more than one apart, it fails then too.
 
12:10 AM
yeah, I think you got it
 
Excellent.
 
Wait no
 
Wait yes
 
Hey there, found something really cool. Hold on.
 
12:12 AM
So we actually don't need the maximum of left and the minimum of the the right
 
Nevermind
You need it to check if the difference is more than 2
 
Stop arguing and start implementing FFS.
 
Awww
 
12:14 AM
Hey thank you. I owe you a beer
 
No problem, and thanks.
 
@AndyProwl When I use Boost.Coroutine I tend to name the special parameter yield, so that I can yield(4); yield(5); and so on in the body. So I could conceivably write code that does return yield(4); or similar.
 
@Jefffrey You don't need to compare the max and min of everything for the first failure, btw, just that the max of the left isn't more than the min of the right + 1. Anything else should just propagate up the chain.
 
When I did read that page I wasn't uncertain about the sociopath behavior from some of those who re-create the virtualizatoin that the creator made. It is strange how the pure content gets distorted across the years.
Realized then that psychology and programming are really close.
Still, I believe that psychology lacks logical structures that could study in-depth human behavior, for example, not all of those who mimic creators are sociopaths, they may desire to get the new "cool" thing just because it is trending.
Recently I saw a video about someone with Down's syndrome talking about intelligence, he stated that Down's syndrome is not an illness, there are people with different limitations, some of them lack no skills at all and can even code.

He was criticizing psychologists.
I was uncertain, sorry, I'm in a rush. Just couldn't resist sharing that link here, I'm sure it can be useful.
 
Morning guys.
 
12:27 AM
By the way, somebody here with knowledge about Cocos2d-x?
Is it a good engine?
 
Morning
 
Ahhh... Cocos2d-x.. why does Cocos2d-x have their own very specific allocator preventing the new from being used?
+ㅁ+
Did @Ted(ThePhd) change his nickname again?
<:::::::::::::::::::::::::)===(]
 
Uncertain, does it have a specific allocator? I'm afraid that those are practices being used since the irrlicht era.
 
@DeanSeo It seems he nuked his account. RIP /cc @Rapptz
 
@VictorLopez Yeah, it provides something simiral to "::create" or something like that. Anywho I don't know what makes engine a good engine but Cocos2d-x is good enough to be used to publish games in the Korean app market.
 
12:33 AM
@DeanSeo oh i see
 
@Borgleader Wha... What happened?
 
Does anyone remember in which talk Chandler spoke about the relative compilation speed of modules vs regular compilation?
@DeanSeo Idk, I just found out myself
 
Oh no... ㅠ____ㅠ
 
sadness :(
 
@DeanSeo I believe that it is because they're limiting the programmer from using the engine differently from their documentation, which, in the latest versions, is almost null.
 
12:37 AM
@Borgleader :/
 
@Borgleader Again?
 
@EtiennedeMartel It would seem so :(
 
@VictorLopez Well.
Cocos is standard from what I hear
 
Again? Why'd he do it last time?
 
His chat profile exists but his so profile doesnt.
@Nooble I think collective dickery happened.
 
12:44 AM
man
smh
It's only cute the first time
 
@ThePhd get back and stop trying to be cute
 
ffs i cant code a proper symbol table T_T i might be complicating shit too much for no reason
inb4 puppy says im terrible
 
@VermillionAzure do you have any link to lua documentation for 3.4 - 3.6?
 
@VictorLopez lol what do you mean
I don't actually use it
Wait wait wait wait
Bartek dissed Haskell?
Next hell's gonna freeze over
 
@VermillionAzure There is no documentation, they have a MVC pattern for version 3.6 but the code is quite different from what you would normally do.
 
12:50 AM
@VictorLopez I have no idea
Mobile is a bitch anyways
 
> However, Top Gear is reportedly moving on to a new, far more popular home, as Netflix is looking to hire the Top Gear trio for a car show of its own. Sauce
Whatttt
WHATTTTT :D :D :D
 
@Rapptz std::thread that holds std::packaged_task with Sol is such sweet a thing. :) Sol is working tite asynchronously .
TITE
 
@Rapptz Do you know what happened?
 
good moerneng
 
@DeanSeo wait wait wait
async how?
are you sending packaged tasks from Sol?
 
12:57 AM
@EtiennedeMartel no
 
@VermillionAzure Hmm. You are talking about std::unique_ptr? Because it might destruct soll::state?
 
@DeanSeo no
I'm just surprised that Lua works with C++ for async
But then again we have C++11 with Lua already
Sol is freaking awesome. I managed to do some shenanigans with templated objects and generics passed to Lua that don't make too much sense but it was nice to be able to stretch Lua
 
@VermillionAzure Well Lua C API does not really consider its safety with C++ async.
Sol is WAY easier to use with std::packaged_task compared to that
VC2013 Nov CTP does not compile const T with Sol. (To be precise the compiler exe crashes.. wth)
Other than that it's awesome.
I have now std::vector and std::map that just works in Lua through Sol and they are thread-safe (hopefully). Sweet.
 
I've been reading more and more about these external GPU setups (for laptops), and I've seen an implementation where the one utilized a Thunderbolt port as opposed to an ExpressCard or mPCI-E solution. Does anyone know how the GPU gets recognized as the GPU by the driver?
 
@DeanSeo Ummmm... I thought std::container wasn't thread safe.
I thought you need to use mutex
 
1:03 AM
@VermillionAzure they aren't. So you have to make sure they are, on your own. :p
 
@DeanSeo Add a mutex. done.
@DeanSeo Do you like bubbles?
Because it's time to create some bloatware, bloatfish
BLOOOOOOP
 
@DeanSeo thread safe container is just a terrible idea
 
@VermillionAzure Listen to Bubble Pop - Hyunah.
@TBohne When your manager tells you to... it becomes your job. lol.
 
@DeanSeo oh. Carry on then.
 
I hope @Rapptz will not sue us for its license or sth lol.
 
1:06 AM
Rapptz is a millionaire kid you know
I doubt he wants more money
 
Damn.
 
And he has a PhD at 15 already
 
Does he have ThePhd?
Lol.
But seriously?
 
I have a PhD too.
And I'm 14.
#1 Koala.
 
@DeanSeo 'tis MIT licensed
as free as they come
 
1:12 AM
@Rapptz :)
 
I can't vouch for thread safety btw
 
@butt I bet the piglets in your nearest farm fly too
 
:) :) :)
I wish I could fork and share my code to discuss further about things... It's highly secured here..
 
Copy and paste works wonders.
 
I just only can tell with Sol I can go home earlier.
Lol.
 
1:14 AM
@chmod711telkitty You're just jealous
 
So the R9 Fury X is named after the ATI Rage Fury.
Absolute beast of a card that was.
60 MHz core clock, 83 MHz clocked 16MB SGRAM.
Supported 3D acceleration.
 
@buttifulbuttefly my pet farm animals already have wings, they just taste like chickens a bit
 
DirectX 5 support, too.
 
1:32 AM
So, 2015 is a great year for C++
 
YES
 
1:45 AM
If you think about it, when someone S says something Se and person A says "what?' Then its stupid for S to say Se.
It would be repeating so Se has to be paraphrased as SeP
But SeP has to have the same meaning as Se
 
@buttifulbuttefly what
lol he's a millionaire too?
@Nooble Are you serious too?
 
well yes how do you think you get a phd when you're fucking 15??
 
I can't even tell anymore
@buttifulbuttefly I don't even know
I'm working with biologist grad students right now and i don't even
 
i don't know i thought it was obvious he's from a rich family
 
It's like you'd have to go to college at like 10 or something
@buttifulbuttefly Well, I'll be junior level and 17 next year. Not special anymore but I didn't come from money
I mean how do you even think about coming up with a dissertation at that level? People can take years to develop one...
 
1:48 AM
exactly
it's exceptional
 
@buttifulbuttefly amazing. I should've put more into my life.
Stop playing
you know what
I will
But first I need to drink what he's having
nvm that post was cancer
@Rapptz any suggestions for learning or focus? [serious]
Bjarne took a look at this
 
2:03 AM
@VermillionAzure Proof?
Hehe, @StackedCrooked got all them reddit karma. ;)
lol, just for the video!
(if it's legit)
 
Hmmm
Is there any other language that is similar to C++ but not C++?
 
jabbascript. it's also infurating, but for different reasons.
 
i.e. C with classes, pretty generics, etc. but has better build times and is just as fast
> just as fast
 
@VermillionAzure Rast
@VermillionAzure Also De
 
2:07 AM
@buttifulbuttefly Ooh, do I need to become a Rustafari?
 
Swaft, I don't know.
 
@MarkGarcia D's not going anywhere from what I'm hearing
@MarkGarcia Swift is pretty Objective C and is tethered to Apple
 
@VermillionAzure You have to become a crabby Rustacean.
 
@LucDanton That's that wrust thing I've heard in a long time
 
@VermillionAzure Some guys doesn't need to go anywhere to get a D.
 
2:08 AM
@MarkGarcia Just up and down. And deeper.
 
> guys
;P
 
@MarkGarcia G-! Hey!
But even Rust has a runtime if I've not mistaken
And Go.
 
And you think C++ has no runtime?
 
@jaggedSpire You mean max(right) >= min(left) right?
 
@buttifulbuttefly I'm very confused about what runtime means with these lower level non-vm languages
 
2:12 AM
Rust has some great advantages over other languages, like running blazingly fast and preventing nearly all segfaults.
 
Like I can see linking and vtables being runtime as well as casting
But I don't know if C++ has an actual runtime system... But I suppose we can also see that it also has a runtime for exceptions I suppose
 
@Jefffrey not >= for the error condition, no. That'd fail when there were exactly enough for one level. I'm pretty sure it's >
 
I have a valid node, with 3/3 on the left and 2/3 on the right
And your 3 > 3 condition is failing
 
Women are very logical, just not in the way we expect them to be.
 
@VermillionAzure Then you might want to clear that up
 
2:15 AM
@StackedCrooked Bjarne is Churchill.
 
@VermillionAzure That's not what is meant as "runtime"
 
max(left) <= min(right) + 1
All of the leaves on the left have to be at most one more distant than any of the leaves on the right.
 
@jaggedSpire that's a winning condition?
 
That's a not failing condition, yeah.
 
@jaggedSpire Well, isn't max(right) >= min(left) the same as what you have there? max(right) > min(left) + 1?
 
2:19 AM
One sec, I need to get all my ducks back in order.
 
Take this :
 
@buttifulbuttefly posted
0
Q: What is a runtime environment for supposedly "no-overhead" systems languages?

VermillionAzureSpecifically, I'm talking more about C++ and Rust than others. I don't understand how C++ has a "runtime" in the sense that Java and C# have a runtime--while Java and C# run on top of a virtual machine with its own encapsulated abstractions and such, I don't get how C++ might have one. Take virt...

wow that was a quick downvote
 
max(right) >= min(left) implies max(right) > min(left) - 1
not max(right) > min(left) + 1
 
Wow I'm tired
 
Happens to the best of us.
 
2:30 AM
@jaggedSpire and the Rust of us
 
@VermillionAzure very nice.
 
18 views... no answers...
 
I actually don't know if I'm tired or just stupid.
Or maybe stupidly tired.
 
@Jefffrey The former
(caddr list)
 
Well, have you hallucinated recently?
Since you last slept.
 
2:34 AM
@Jefffrey someone can't do probability diagram right
 
That's a sketch of return values for recursive processing of a binary tree.
Unless you're joking.
 
@VermillionAzure have you read this? stackoverflow.com/questions/2766233/…
 
Even C needs runtime support
 
@melak47 That's fine.
@CatPlusPlus So what exactly is this "support?"
 
Don't think I've seen any language other than assembly that wouldn't use a runtime support library
 
2:48 AM
@CatPlusPlus Exactly; I know that there are hooks into the operating system and such...
But can we consider this a "runtime" like Java has a runtime?
 
@VermillionAzure Whatever's required by ABI, non-inlined builtins
 
@CatPlusPlus like OS calls and stuff, right.
 
@CatPlusPlus Hence why I asked the question
 
C++ runtime handles RTTI and exceptions (because it's perfectly shareable code and doesn't need to be inlined into every executable)
It doesn't have to be a VM
VM is a separate idea entirely
 
2:52 AM
@CatPlusPlus But Java has a "runtime" as well, supposedly.
That's what we download and "run" unless that's Oracle-speak
 
So what
 
so what are you guys working on right now?
 
@GrantWilliams R.
 
Lurking
 
@HWalters and not speaking. wazzup broski
 
2:53 AM
R? as in the language?
 
@GrantWilliams yes
 
You really have a tendency of comparing shit that doesn't need to be compared
 
R you experienced?
 
interesting
i havent tried R yet
 
@GrantWilliams It's definitely built for data transformations and graphing.
 
2:54 AM
Java code can be compiled to native bytecode and then it still needs runtime support and it doesn't use a VM
 
@CatPlusPlus Ahhhh, there we go.
So VM != runtime. It may be a part of it but it doesn't compose the entire thing.
 
VM is runtime, runtime is not VM
 
From what I understand, "runtime" is whatever the language needs to run outside of its own spec or ecosystem.
 
It's what actual concrete executable images need to run
It doesn't exist at language level
It's entirely an implementation detail
 
@CatPlusPlus which is why I asked the question
It's no longer tagged with a specific language
 
2:56 AM
Yeah i do a lot with Matlab mostly stats and graphing, but R seems like it would be worth learning
 
It also doesn't imply any kind of overhead
 
@CatPlusPlus Yes. But aren't exceptions a part of runtime and incur overhead?
@GrantWilliams R's important for data science from what I hear
many major companies use it.
I'm working an internship at a cancer center right now and they use it quite a lot.
 
Jabbascript important for progress of humanity from what I hear
 
yeah it would absolutely be worth learning for grad school
 
many major companies use it.
 
2:57 AM
@VermillionAzure That property is not transitive
 
@buttifulbuttefly JavaScript is indeed gaining traction because it's gone server-side.
 
it's gone cancer-side
 
@buttifulbuttefly Computers run the world, not clouds.
 
DING DING DING computers == cloud.
 
2:59 AM
You work in a cancer center you said
 
"wat is rain den"
"ur data bub"
@buttifulbuttefly mhm?
 
Oh, nothing.
 
@buttifulbuttefly I didn't get the pun I guess
 

« first day (1699 days earlier)      last day (3235 days later) »