« first day (1651 days earlier)      last day (3298 days later) » 

8:00 PM
@Prismatic The lambda is not what's assigned
 
Xeo
it is. a lambda is not of type std::function, though :P
 
:D
 
@Prismatic It is unspecified whether the closure types of lambda expressions have an assignment operator or not. Even if they do have one, they’re not that useful.
 
@Prismatic Nope, it's not possible to use std::unique_ptr<void, ...> independently from the custom deleter.
 
@Prismatic just make the deleter template argument one that default-constructs to the desired function object
 
8:01 PM
@Jefffrey What do you mean by 'independently'
 
^^
 
<<
 
Xeo
vv
 
Tsunami!
 
8:02 PM
⌄⌄
 
√√
 
Xeo
♥♥
 
∑∑
 
what does that even mean?
 
Xeo
"herp derp I'm dumb"
 
8:03 PM
@Prismatic If you pass something like, std::unique_ptr<void, void(*)(void*)>(new Type(...), [](void* ptr){ delete static_cast<Type*>(ptr); }), then it gives you:
> unique_ptr constructed with null function pointer deleter
 
@StackedCrooked ˂˂˃˃˄˄˅˅˯˯˰˰˱˱˲˲͔͔͕͕͐͐➤➤➣➣➢➢⌤⌤⌄⌄⌃⌃᷿᷿͖͖᷾᷾
 
Xeo
@Jefffrey wat
nononono
 
∆∆
 
Xeo
that shouldn't be
 
Yeah, if I replace the lambda with NULL, it gives the same error, so I'm assuming it gets to a NULL value for some reason.
 
8:04 PM
> I'm assuming
why
How to get a pedantic, tone-deaf reply to a joke on Twitter: Make any joke on Twitter.
 
Wait, it actually gives that error on access? wtf
 
Recently there was this post that said x86 has essentially become an intermediate language given the massive reorganizing performed by the CPU.
 
@StackedCrooked sigma is the coolest greek letter
 
Let me try and make a SSCCE
 
8:06 PM
It makes me wonder if that means C++ should also move in the direction of a bytecode model.
Or the opposite..
 
Xeo
@StackedCrooked LLVM IR is bytecode.
 
Yeah.
 
Xeo
the language doesn't need to do anything
 
On the other hand proggit and hacker news all over rust.
 
x86 machine code is also bytecode
 
Xeo
> short
 
@StackedCrooked Wow, not one but two places full of people not worth listening to
 
Xeo
dude
that could've been reduced further for sure? :P
 
@CatPlusPlus ha, I'm not worth listening to
 
8:11 PM
Oh god
 
Xeo
@Jefffrey components[std::type_index(typeid(Component))]
default ctor on access
 
shit
 
You seem to be using C++, have you considered turning it off
 
facepalm
 
user1804599
@AndyProwl Yes.
 
8:12 PM
.at
 
Xeo
@Jefffrey .emplace
 
find, not at
 
@Xeo Oh, right
 
Or yeah that
 
I used that. emplace was very weird.
std::forward_as_tuple
 
8:13 PM
> rightfold
lol
that's a paper though, not a blog post
 
Xeo
@Jefffrey oh yeah, and also .find in get
 
@Jefffrey Reminds me of this:
Mar 13 '14 at 1:06, by StackedCrooked
Secret storage. Lately I find myself wanting to use this.
 
user1804599
No, it's a blog post.
 
Xeo
or .at there, I guess
 
user1804599
I write blog posts in TeX.
 
Xeo
8:16 PM
@Jefffrey bad idea for unique_ptr values
the new'd pointer isn't bound until the node is constructed
Hm, Steam rogue-like sale
 
 
@Xeo What other options do I have? std::make_tuple?
 
@StackedCrooked why is it not encrypting; with a randomly self mutating key
 
Xeo
just .emplace(key, value)
 
Or do I construct the unique_ptr first and then pass that?
 
8:19 PM
@sehe It's on my todo list.
 
Mine too :)
 
Xeo
@StackedCrooked I've been thinking about a thread_local global 64k scratchpad buffer
 
std::optional<T>& result = map[key];
if (!result) result = T();
return *result;
 
@ScarletAmaranth you called?
 
@sehe ^^
 
8:20 PM
:D
@StackedCrooked I love this pattern, yes, especially if T() is make_foo(key)
 
@Xeo How do you retrieve the objects? By offset?
 
Xeo
it's basically like stack memory. when you allocate, you get a unique_ptr-esque object back that frees the block on scope exit. It's a brick type.
 
Like an arena.
 
Xeo
ye
 
@Xeo Now, at least it compiles. Thanks.
 
user1804599
8:25 PM
Which programming language has the nicest syntax?
 
COBOL
 
cobol is like writing plaintext apps
 
user1804599
what are plaintext apps?
 
The programs written by Ada Lovelace.
 
user1804599
But COBOL is older than Ada!
 
8:28 PM
Stop lying.
 
COBOL is older than the pyramides
As a matter of fact hieroglyphs are just encoded COBOL code
 
user1804599
@StackedCrooked you may like this: youtube.com/watch?v=MeiHi9RSA-k
 
@Xeo folly's IndexedMemPool is interesting.
 
@EtiennedeMartel The idea was to have the window being a component.
I know it's terrible, but it made sense in my mind.
 
@Jefffrey The window? Isn't that a singleton?
 
8:32 PM
@rightfold his demon-like expression makes it extra funny
 
The window is an entity.
You might have a "window" component that makes it a window, but the window itself is not a component.
 
I don't know of what kind of entities you are talking about to be honest. But my entities are just containers of components.
So the "window is an entity" makes little to no sense in my view.
I had a "view" component, that represented the controller of the user playing a specific entity.
So you could attach this "view" component to the entity you are playing with, and have the systems that care of directing the view component in the right position and so on.
@EtiennedeMartel But apparently SFML doesn't like it when you place an sf::RenderWindow somewhere else other than main.
 
ECS means your objects' type is determined by their components.
 
Why would you make the OS window an entity or a component, it's not part of the simulation
 
So a window is an entity with a component(s) that make it a window.
But Cat has a point.
 
8:37 PM
i love when my flags get disputed and couple mins later they're closed...
 
In our engine, we use "window" as a generic term for a viewport that serves as the root of a UI hierarchy.
So you can have multiple windows
 
@CatPlusPlus Well, the window represents a frame in which to see a portion of the reality. If your game always follows an entity, then it may make sense to make a window be a component that can be attached to an entity.
 
No, not really
A camera, yes
The window, no
 
I see your point.
 
sf::View exists.
 
8:39 PM
@Jefffrey Make a camera component.
 
As far as I'm concerned ECS is part of the update phase, not the render phase
 
@EtiennedeMartel Right
 
Well, no, that wouldn't be cleanly separated
Meh
In any case it doesn't need to know what the framebuffer is attached to
 
It depends on what you mean by "update phase".
Because I have a "behaviour" (function on the scene) that takes care of that.
And it's part of the ECS as a whole
 
Input goes in, render goes out, can't explain that
 
The way we do it is that any 3D viewport has a camera. For each viewport, we collect all entities with both a mesh, a material and a transform and we pass those to the renderer. We have a way to make some entities invisible to a specific camera.
 
Fuck both Reddit and HN
 
The camera gives the view and projection matrices, and with hierarchy information we can calculate world transforms for every entity.
 
I see
Yeah, that probably makes more sense.
#ecs (saving this for later use)
 
(System is still a dumb name)
 
8:48 PM
System of a Dumb
 
user1804599
$¥$T€M
 
user1804599
#hïpstør
 
Very
 
user1804599
sähä
 
I'd've used that for my nøt-sähä phase
 
8:52 PM
Hey, wasn't it @Mysticial's last day today? ;P
 
user1804599
I wish I had food.
 
@rightfold Throw money at the problem, like @LightningRacisinObrit does.
 
@rightfold We can tell from your previous three messages. Bored, huh?
 
user1804599
Yes.
 
user1804599
I am extremely bored.
 
8:55 PM
@EtiennedeMartel WalletLessException occured
 
@rightfold Tried wanking?
 
user1804599
Yes.
 
user1804599
It was boring.
 
@LightningRacisinObrit now we know why
 
@rightfold Tried 'social life'?
 
user1804599
8:56 PM
No.
 
You shouldnt. Good job.
 
social life can you include that?
 
@rightfold Tried reading Harry Potter and the chamber of private member function template specializations?
 
user1804599
No.
 
user1804599
Reading books is incredibly boring.
 
8:57 PM
@deW1 #include <social_life>; error D0042: social_life found to be useless.
 
@rightfold True.
 
user1804599
They lack the necessary interaction.
 
@rightfold Life is eternal boredom.
Or is that too boring?
 
user1804599
No.
 
wouldn't suicide be return 1;?
 
8:58 PM
@rightfold Tried.... using goto to make your life wilder?
 
@deW1 suicide would be using goto statements and new and delete and other godless things
 
user1804599
Yes.
 
@rightfold Watch some equals three. It's hilarious. But only with rwj.
 
@DonLarynx basically reinterpret_cast?
 
9:01 PM
NASA may have found a warp drive?
 
user1804599
I want to make a program in Go.
 
user1804599
Something exciting.
 
@LightningRacisinObrit No I know that it might be a false positive
but I'm excited now
 
@LightningRacisinObrit lol
 
@Mysticial lol
 
user1804599
Maybe I will make something AWK-like except that it processes records in parallel.
 
@LightningRacisinObrit stop spamming the poor guy xD
 
This... Is amazing
 
9:07 PM
@deW1 I'm being helpful!
 
@deW1 int* a = new int(); i've never seen that type of syntax before.
 
@DonLarynx wtf
 
the part about new int()
more specifically int()
 
I thought that was allowed...
 
@DonLarynx Yeah, that's value-initializing the object.
 
9:08 PM
@LightningRacisinObrit xD he's gonna spend the next 3 weeks trying to answer your questions
 
Xeo
@jalf Any race conditions in there? :P
 
But using new on a primitive type? Is that acceptable?
 
@DonLarynx What??
 
It's been a long time since I worked with C++
 
9:08 PM
@ShotgunNinja Not really no
 
Xeo
lol
 
Not if the type is written out explicitly
 
Xeo
stop trolling
 
@LightningRacisinObrit I mean, does the compiler allow it?
 
@ShotgunNinja Yes...
dafuq, Don
 
9:08 PM
179
A: When to use reinterpret_cast?

jalfThe C++ standard guarantees the following: static_casting a pointer to and from void* preserves the address. That is, in the following, a, b and c all point to the same address: int* a = new int(); void* b = static_cast<void*>(a); int* c = static_cast<int*>(b); reinterpret_cast only guarantee...

 
@LightningRacisinObrit That's all I wanted to know.
 
@ShotgunNinja Why don't you ask the compiler?
 
@ShotgunNinja And now it's all you know!
@Columbo It's more sexy to ask Lightness
 
@LightningRacisinObrit nuh uh, I'm pretty sure I know my name.
 
.or her hot younger cousin, Lightning
 
9:09 PM
@LightningRacisinObrit ... who will then use that opportunity to cover up for his miserable SO reputation. @JerryCoffin told me all about you, you asshole! :((
 
@LightningRacisinObrit most IRC related tutorials and source codes use C Style stuff because they're old ( sometimes because people are bad ) so I guess he just took it from one of these
 
@Columbo I know, right! 152k is so pathetic (due to my having never helped anyone or contributed to SO at all) that I just can't help myself.
 
Do you guys initialize your ints to 0?
 
@Nav reason 1: function-level try blocks reason 2: see my answer :/. Better options: extract a function or just use optionalsehe 1 min ago
 
@deW1 I concur.
 
9:10 PM
Summarizing: don't use new and delete. You can almost always avoid it (and the class of bugs that come with it) — sehe 20 secs ago
 
@LightningRacisinObrit But Jerry has got more rep, thus he's more trustworthy.
 
@Nooble Yes, unless I want to initialise it to something else.
@Columbo Plus he's from America!!
 
@LightningRacisinObrit Good to know I'm not the only one :)
 
@Nooble Why would you be the only one who initialises their ints to zero?
 
@Nooble I don't when I don't want the memory initialized. That never happens for lone ints though
 
9:11 PM
@LightningRacisinObrit You got a point, he is a yankee
From da yankeeland
 
@LightningRacisinObrit There aren't a lot of koalas who program you know.
 
@Columbo You misspelt "wanker".
@Nooble Fair point
 
@LightningRacisinObrit It's redundant to say that a Lounge frequenter is a wanker, hence I haven't
 
So we're all wankers?
 
9:13 PM
@LightningRacisinObrit Unless it's @rightfold, in which case one has to double underline that he is one
 
user1804599
Something like this would be neat: gist.github.com/rightfold/49c26dc60b5e90b264d1
 
@ShotgunNinja why wouldn't it be?
 
@deW1 No, @LightningRacisinObrit is a hot twenty-year old girl, she can't wank silly
@rightfold I read "meat" and got hungry. Fuck you.
 
user1804599
Good.
 
I'm not going to comment that :)
 
user1804599
9:15 PM
Go eat.
 
I had bread for dinner.
 
@rightfold is there any language you don't speak?
 
@Nooble lol
 
@deW1 pervert/10
 
Hello :), Is it possible to change the origin pos in SDL?
 
user1804599
9:18 PM
No.
 
@Emyen Read dem rules
 
@Emyen ...
 
Everythings possible
 
You could instead create some sort of object or constant to do this for you
i.e. you set the coordinates yourself and then you call a function to set it for you
 
I know but if it was a possible built in SDL it would be better to just use that.
 
9:20 PM
@Emyen SDL is supposed to be as agnostic as possible
 
@Cinch try {askShittyQonSO();} catch(...) {duck();run();throw;}
 
it works like everywhere
@Columbo lol
that's me
 
Xeo
try { askQuestionInLounge(); } catch(black_eye_error) { cry_in_corner(); }
2
 
@Xeo This makes me sad
Oh wait I forgot I'm supposed to shut up
 
I just started learning C++ days ago. I come from a world with interpreted languages. This is new for me. Thx anyway reading the rules now.
 
9:23 PM
@Xeo Not sure the black_eye is an error.
 
@Emyen Which language?
 
Python
 
facepalm
 
@Emyen Mmmm we've got a serpent in here.
 
Xeo
@CaptainGiraffe it's an error to the body
 
9:24 PM
@CaptainGiraffe It's definitely not an exception here :P
 
user1804599
lol, this exists: golang-sizeof.tips
 
@AndyProwl (+4 Funny)
 
should I upgrade to 15.04 Ubuntu or wait hmm >.>
 
Alrighty then
So if I can finish my HW i'll begin experimenting with Boost.Spirit
 
user1804599
And it's buggy as hell.
 
9:29 PM
@Xeo The compiler optimizes it to askQuestionInLounge(); cry_in_corner();
 
Xeo
Dammit. I mixed casing.
shame upon me
 
Xeo.cry_in_corner()
 
Xeo
cryIn_corner
 
Oh hey: Cry_In_Corner()
cryincorner cinch
 
user1804599
Cry_in-corner
 
9:32 PM
cry-in-corner
 
user1804599
cry.in.corner is the worst
 
user1804599
R does that shit.
 
> Note! Any numbers generated by this application are true only for x64 architectures.
lol
 
@rightfold what
 
user1804599
Do 32-bit architectures still exist?
 
9:34 PM
@Griwes who cares about x86
 
How big is your rand()?
 
I shall slap you with the majority of ARM cores out there in the world.
 
Anyways, I have a need to do a new project
 
And with like all of the AVRs and whatnot.
ITT @Cinch is the new @rightfold when it comes to projects
 
@Griwes raspberry?^^
 
9:35 PM
@deW1 Also you refer to 64-bit archs as "64-bit architecture", not "x64", which is a silly name M$ gave AMD64.
 
Xeo
oh gawd the s/S/$/ shit
 
I'll break my laptop with the new ubuntu 15.04 brb
 
@Xeo sorry :x
 
I think I'm going to buy a Raspberry Pi or an Arduino
But I'm unsure which one I want to use
I think a Raspberry Pi is more flexible from what I hear but idk
opinions?
 
@Cinch go with the raspberry pi 2 it's pretty decent fast
 
9:39 PM
@deW1 I'm unsure though I might want to do some more physical stuff
 
@Cinch if i'm not mistaken the pi should have more computing power.
 
Buy both. You will still need to get the bus you need for your application
 
Mmm right
I'm going to try and start up the programming subgroup for IEEE at my school
and I wanted to do some sort of project
 
In our schools they use PIs for projects n stuff @Cinch
 
@deW1 Hm okay
I think I'll try to get both, but I'll get the Raspberry Pi first
 
9:44 PM
from what I heard the PI works pretty good for engineers, sys admins, developers so on
 
@Xeo no, they were pretty well synchronized, actually
 
user1804599
Ed is a great editor.
 
Hmmmm
 
@rightfold More importantly, Ed is the standard editor.
 

« first day (1651 days earlier)      last day (3298 days later) »