« first day (649 days earlier)      last day (4317 days later) » 

10:01 PM
@ManofOneWay UTC midnight.
 
@Drise Honestly never seen it. Looks like a mix of Lucida Grande and Arial.
 
It's making everything tiny.
 
4 mins ago, by Radek Slupik
Or post a screenshot here and I’ll tell you what font it is.
lol
 
@Drise Use Web Inspector, select any node and view “Calculated styles”, under font-family.
 
ont-family: Verdana, Arial, sans-serif;
 
10:03 PM
anyone else watch My Little Pony: Friendship is Magic?
 
@Drise That’s weird. It’s certainly not Verdana, nor Arial.
What is you default sans-serif font?
 
No clue.
 
Using Chrome?
 
It's in your browser settings.
 
@user1515422 no
 
10:04 PM
Bitstream charter
 
Well, there you have it.
No no.
 
How does one make aligned vectors ?
 
@Drise sans-serif, not serif.
 
Should I use a custom allocator ?
 
10:05 PM
@kbok What alignment do you need?
 
@RadekSlupik They are all bitstream charter
 
I work sans sheriff.
 
@Insilico 16 bytes
 
@Drise Weird. :P
 
Ell
@R.MartinhoFernandes I'm serious you just made my day :')
 
10:06 PM
What if you reopen Chrome?
 
@kbok Working with SSE instructions?
 
Maybe it’s some glitch.
 
@Ell Ok, cool :)
 
@Insilico Yes :)
 
@RadekSlupik same.
 
10:06 PM
Basically you write an allocator that wraps the default allocator
But you allocate a bit more than what you need
 
@Insilico Why don't you tell him about alignas..? Does it have a problem I'm not aware of?
 
And then std::align the heck out of it.
 
What if you change the sans-serif font too something like Ubuntu or Arial?
 
@n2liquid Does it work for dynamic memory allocations?
 
@n2liquid It's not meant for that.
 
10:07 PM
@RadekSlupik I just installed pita or whatever, and it messed with my fonts.
 
alignas is for stack allocations, I think.
 
@kbok you align the datatype
 
Well, uninstall it.
# cd /
# git checkout -f
 
@kbok not for aligning data in a vector
 
@R.MartinhoFernandes If I "new" some type that has alignas specifications, does it not align properly? That's kind of dumb o-o
 
10:08 PM
@MooingDuck like std::vector<aligned_double> ?
 
@Insilico it works for everything
 
@n2liquid He wants to align a bunch of floats to 16 bytes.
 
Time to sleep. Good night boys
 
@R.MartinhoFernandes wait, it doesn't?
 
@RadekSlupik Better.
 
10:08 PM
@MooingDuck Good night.
 
@MooingDuck It's meant for variables and members.
 
@R.MartinhoFernandes doesn't work on heap? WTF?
 
@MooingDuck The problem is that you need a new type.
 
@R.MartinhoFernandes I fail to see that as a major problem
 
@R.MartinhoFernandes So this doesn't work? struct alignas(16) sse_t { float data[4]; } auto blah = new sse_t();
 
10:10 PM
@n2liquid But now you can't std::vector<float>.
 
@R.MartinhoFernandes oh right, I see the problem
 
std::vector<sse_t> is not the same.
 
@R.MartinhoFernandes hm... true
 
alignas only works statically.
 
@R.MartinhoFernandes no, but I think sse_t is a replacement for his std::vector<double>
who's problem are we solving again? oh, kbok's.
 
10:11 PM
@MooingDuck Why? I'm assuming he wants a dynamic number of doubles, otherwise he'd use array.
 
There can be only one main() in the voice of the Highlander.
 
You can't align a dynamic array with alignas.
 
@kbok proposed solutions: custom allocator, or aligned`sse_t` that holds 4 doubles.
 
Aligned sse_t sounds good. Thanks !
 
@kbok note that it would hold 4, no more or less. But you could make vectors of it that should work fine.
 
10:14 PM
C++ FTW!
 
Yeah, I mean vector<sse_t>.
 
@kbok Remember that if you want a vector<float> or vector<double> properly aligned, you can override the default allocator, if you didn't take that out of our discussion (:
 
@n2liquid Yeah, that's what I thought about first :) But the struct solution is more space-efficient.
 
std::align is a mess.
I'm going to fix it. wheels::align coming up.
 
stackoverflow.com/questions/11677557/… For those who didn't see it before and for those who requested changes.
 
10:19 PM
@kbok in reality, they'll have the same space efficiency, but the sse_t will also work as a member, parameter, result, or otherwise on the stack, where a custom allocator can't.
 
@Drise Oh that's why you have so many opened tabs about binary trees
 
There's a typo on the third word!
 
@kbok Yep.
Ok, this font really needs to go.
 
@Drise again, to be fair, a binary tree should be compared to a sorted container.
@Drise Also, the last picture has 1 at the root, which is wrong, should be 15
 
@MooingDuck It is, it's just clipped. My screenshot mechanism breaks things occasionally.
 
10:22 PM
Is SSE2 faster than SSE or something ? Or it's only the precision thing
 
@kbok // cc @Mysticial
 
@Drise also congrats on making a balanced tree, I've never successfully done that :/ I have about 8 failed attempts though.
 
@R.MartinhoFernandes He seems to be AFK.
 
@MooingDuck It's all in the roll rights and roll lefts.
 
@kbok Sure, but he won't notice when he comes back if you don't plink him :)
 
10:23 PM
@Drise also, your pictures are large, and some of them have lots of blank space that could be trimmed.
 
@R.MartinhoFernandes True
 
@MooingDuck Meh, AVLs are easy. Try red-blacks.
Or B-trees.
 
@MooingDuck I'm on linux. I can't edit images for shit.
 
People edit images without GIMP?
 
10:24 PM
@R.MartinhoFernandes I have tried all three. I don't know why I tried the harder ones before succeeding at AVL though.
@aschepler MSPAINT FTW
 
@aschepler I use paint.net
 
@aschepler I use MSPaint.
It's my signature move.
 
@aschepler You can't make ugly freehand red circles in GIMP.
 
@MooingDuck Also, if you want to edit in the thing about sorted containers, feel free to. This font thing is killing me.
 
@MooingDuck We implemented AVLs in the Algorithms and Complexity class. I implemented a B-tree for that class's project, but without removals. And buggy as heck.
 
10:26 PM
@Drise: "In this demonstration, I implemented an AVL tree" was confusing because I thought you were talking about the introduction and deletion example above, rather than introducing something new.
 
@aschepler Good point.
 
@aschepler I reworded that sentance
@Drise careful asking others to edit in a public space, if too many people edit, it becomes a "community wiki" and you won't get rep :D
 
To the people editing the binary tree FAQ, please fix the typo at the third word.
 
@kbok can do
 
@MooingDuck Yea, I'm down to 4 edits. But I can just ask a mod to remove the community wiki.
 
10:36 PM
@Drise I made a C++03 compatible unique_ptr! I'm proud of myself. The only hole is you have to return move_unique_ptr from functions instead of unique_ptr.
 
I'm going home, I'll be back on in a few.
 
@MooingDuck Like holders and trules?
 
@R.MartinhoFernandes I'm not familiar with those terms
 
It's from C++ Templates: The Complete Guide.
The holder is like boost::scoped_ptr.
 
10:39 PM
@R.MartinhoFernandes I should get a C++ book some time
@R.MartinhoFernandes yeah, I guess mine is basically like scoped_ptr
 
The trule (short for transfer capsule), is an object whose sole purpose is to transfer ownership between holders.
 
Inside a constructor is it legal to do this:

throw this;

Or do I throw something else?
 
@R.MartinhoFernandes yes, thats exactly what I did
@Chimera throw something else
 
@MooingDuck What shall I throw? throw Classname; ?
 
@Chimera can't throw a type
@Chimera throw std::runtime_error("failed to create Classname");
 
10:41 PM
I'm using this as a reference:
http://msdn.microsoft.com/en-us/library/hatewcfd.aspx
 
If you throw this in the constructor: the constructor will fail, and as a result the object will not exist. This means you'll be throwing a pointer to an invalid object.
 
and then after the throw the constructor bails and the destructor is called?
 
@Chimera if a constructor fails, the destructor is not called. But the destructors of all members/parents that completed construction are called.
 
10:43 PM
@kbok SSE2 adds double-precision and integers. Otherwise, it's all the same speed.
 
Can my constructor call the destructor before throwing the exception?
 
@Chimera (and this is a good thing, otherwise it might try to destroy with uninitialized variables)
@Chimera it can call the same cleanup function the destructor calls, but shouldn't call the destructor itself.
 
Hm. Wait what.
 
@MooingDuck Ah ok.... I think I got it. THanks again.
 
Back
 
10:49 PM
Someone should make a GIF to explain the construction/destruction orders and what happens when they throw
 
Don't look at me.
 
@R.MartinhoFernandes staring psychotically
 
@n2liquid MSPaint doesn't do animated GIFs
 
damn
how do I escape this thing?
 
and of course i wasn't very smart when i failed to see what i did wrong.
 
10:51 PM
@n2liquid and it's pretty straightforward. When you throw an exception, the stack unwinds, including all base classes and members that were constructed, and then to the function that called it, totally normally. Theres no special case there.
 
but that's the difference: i have no problem with being dumb on occasion, because all people are.
 
@MooingDuck I know how it works, but that's something easier to understand with shiny animations
 
@Mysticial Ok, thanks. Also, is there additional advantages besides computing 4 values at a time ?
 
Like those Wikipedia has for some things, you know?
 
@Drise <--- Jim Norton Hi.
 
10:53 PM
@Chimera As in, you're Jim?
 
@Drise Yes.
 
Cool. Why the new name?
 
I decided I wanted a bit of privacy.
 
@kbok SSE instructions are a lot more "cleaner" than x87 floating-point. And on 64-bit, you get 16 instead of 8 registers. If you compile with SSE2 or x64, the compiler will take advantage of these for you anyway. But usually it can't vectorize. So you need to do that manually.
 
@Drise so people won't know that his real name is Jim Norton
 
10:54 PM
It's poke-riffic
 
@MooingDuck Yes. :-)
 
I can understand someone flagging my evaluation of @abyx, but not the flagging of his message. Please stop the f**cking flagging. Whoever it is (not litb this time)
 
@Chimera Can I salute you everyday like "Hi Jim Norton!"?
 
@Chimera the irony has me in giggles
 
@Mysticial What do you mean by "cleaner" ?
 
10:55 PM
@MooingDuck Heheh
@n2liquid If you'd like I suppose.
 
@Chimera I'm just messing around
 
@kbok The x87 FPU is a complete mess. It's so bad that I don't even know how to describe it. So they tend to be slower to issue and execute (especially on AMD processors).
 
@MooingDuck And you said you wouldn't remember who I was! :-)
 
SSE is better designed.
 
@n2liquid I know.
 
10:56 PM
@Chimera ;)
 
Ok back to figuring out how to catch an exception now.
 
@Chimera } catch(const std::runtime_error& rhs) {
 
@Mysticial I see. Thanks for all the advice !
 
@MooingDuck Ohhhhh I had catch( std::runtime_error )
 
@Chimera that should work too, but makes a copy
 
10:59 PM
Getting this using that:
wheel.cpp: In function ‘int main(int, char**)’:
wheel.cpp:263: error: expected type-specifier
wheel.cpp:263: error: expected unqualified-id before ‘)’ token
 
Include problem?
 

« first day (649 days earlier)      last day (4317 days later) »