« first day (941 days earlier)      last day (4012 days later) » 

Xeo
12:00 PM
Oh, and it also shows that there's no need whatsoever for std::function
If the user wants to erase the type of the composed functions, he's free to do that - but don't enforce something like that
 
What's the type of auto ?
 
People want to shoehorn std::function into everything.
 
I didn't want std::function, it just worked for the requirements I had in mind. D:
 
@ThePhD Me, fuck that.
 
@TonyTheLion well?
oh, I see there on star bored
congrats dude!
 
12:02 PM
:)
 
Just thought of something.
 
@Pawnguy7 careful
 
@R.MartinhoFernandes You don't want list comprehension in C++? :c
 
What is the URL to the Lounge<C>?
 
Now he can drive the chicks around.
 
12:02 PM
@Pawnguy7 because URL
@R.MartinhoFernandes lol
 
@Pawnguy7 Why would we know that? Why would we even care?
 
Lessons to take from C++: generic programming yes, templates no. Concepts maybe.
4
 
Xeo
Wut?
 
Oh.
I see.
The end of the URL isn't important, it is the room index before it.
Makes sense.
 
Xeo
@ThePhD Why do you care?
 
12:04 PM
Anyway, I also thought of something else. Would it be possible to optimize already compiled code?
 
@Xeo I was wondering if you could put different things inside of the chain...
 
@Pawnguy7 that and '+' is not a valid character for URLs
 
@Pawnguy7 Yes.
@thecoshman Erm, it is.
 
@Pawnguy7 Yes -- linkers do that on a regular basis.
 
@Pawnguy7 technically yes, but in practice easier to have the soruce
 
Xeo
12:05 PM
@ThePhD Er
 
@R.MartinhoFernandes it is?
@R.MartinhoFernandes well, that's only when using 'get' variables, no?
 
Ok. Well, I was thinking- maybe at the time, it wasn't optimized as well as it could be. But what if an OS could somehow, based on use patterns, continue trying to optimize it?
 
@ThePhD the point of 'auto' is that you do not really care exactly what type it is.
 
@thecoshman And...?
 
12:07 PM
@Pawnguy7 Theoretically possible, but generally not particularly feasible.
 
@R.MartinhoFernandes thus the url for this room could not end 'c++'
 
@thecoshman Also, you are wrong.
 
I can't have mysite.com/this+that/foo+bar... can I?
 
12:10 PM
> The "afsaddress" is left in as historical note, but is not a url production
 
well I'll be
 
damned
 
@JerryCoffin that is what I thought. How about this instead: it doesn't optimize code, but it does prioritze processes, in that, for example, if I always start the day browsing the webpage, then I can open that faster?
 
Xeo
Btw @R.MartinhoFernandes, you complained about std algorithms not supporting INVOKE, right?
 
Xeo
12:13 PM
What exactly did you mean with that?
Like, member function pointers not being supported by default?
 
@thecoshman I do. That's the thing.
 
haha NSFW ish
 
Xeo
@R.MartinhoFernandes Ah, so my comment with std::ref(x) was spot-on after all!
 
@ThePhD then you shouldn't be using auto in the first place
 
12:14 PM
@Xeo Not quite, since I have a member data pointer, actually.
 
Xeo
Does that matter?
Also, shouldn't it be basically the same with std::mem_fn?
 
1 hour ago, by Luc Danton
std::mem_fn with pair should be painless.
 
@Pawnguy7 Many (most?) already do things to help that sort of thing, though they don't typically take time of data into account. Windows, for example, will pre-load executables and DLLs that you use a lot (that's part of why it boots fast right after installation, but slows down as you use it).
 
use it for something like auto renderable = myRenderableThingFactory.get(thingLikeThis); you do not care what 'renderable' really is, just that it provides functions that you expecting, in this something like .render()
 
12:15 PM
dammit my pair isn't standard layout.
 
How could you fail that?
WTF
 
It's compressed.
 
I made it compressed with EBO
 
Is that terrible?
Or should I really do a compressed_pair and normal pair?
 
12:16 PM
I use tuple for compressed anythings.
 
Or is there another way to make it compressed but standard layout?
 
compressed_pair sounds kinda useless when you have tuple.
 
Ah yes, tuples.
True. I don't have a compressed tuple. I don't have a tuple at all really.
 
Lots of boilerplate over std::is_empty<first_type>, std::is_empty<second_type>? I don't really know.
I don't care for Standard layout mind you.
 
Hmm, back to fighting variadics with tuple.
 
12:17 PM
@LucDanton i.e. EBCO by hand
 
@R.MartinhoFernandes can't a size_t[sizeof...(ArgTypes)] replace the tuple you use for indexing in your FlamingDangerZone tuple?
 
That's not a type.
 
Xeo
He uses a tuple for indexing?
 
@Xeo TMP index mapping.
 
12:19 PM
@Xeo yeah; he implements a tuple using std::tuple. That sucks :(
@R.MartinhoFernandes an array of integers.
in the literal sense of the word.
 
It's funny you say 'literal'.
 
hardiharhar
 
@rubenvb Who cares. It puts the indices at the wrong level.
Flat out no.
 
ok. Just a question.
 
You need the indices to look up type lists. So you need them as types, not values.
 
12:21 PM
Because the Standard notion of a literal type is useless. That was the joke.
 
@LucDanton Is it used anywhere at all?
 
IIRC constexpr variables have to be of literal types. That's it.
 
Likely parameters to constexpr functions as well. Oh well and/or return type.
tl;dr everything constexpr but template parameters. Because fuck you.
 
C++ totally sucks.
 
12:24 PM
It's a drag.
 
Ell
Oh I just realised sehe is "regrouping" :(
 
2 hours ago, by not-sehe
@R.MartinhoFernandes yeah. lunch break. I decided I follow boost spirit questions only, but unsubscribe from the [spirit-general] mailing list for now :/
 
Who here is part of a different community besides this one? I mean, I have been on several forums, but I discovered, you can only really be involved in a few at a time.
 
why doesn't tuple have an operator[]? Seems like the Right Thing To Do(tm)...
 
What's the return type?
 
12:26 PM
5 mins ago, by R. Martinho Fernandes
You need the indices to look up type lists. So you need them as types, not values.
 
@LucDanton get<N> works.
 
@Xeo The reason I made my functor chain because I wanted to know the inputs and outputs, but nothing inbetween.
 
@R.MartinhoFernandes damn I missed that
 
surely an operator or member get<N> can be made to work.
 
Yes, but we're not talking about that are we?
 
12:27 PM
hi @Pawnguy7
 
Boost.Tuple has member get.
 
It's for a specific purpose.
 
@rubenvb You are missing the point.
 
(My cache and loaders)
 
Ell
@Pawnguy7 what kind of community?
 
12:27 PM
Hey Bartek. Sorry, been busy recently.
 
wtf is @not-sehe o.O
 
The N in get<N>(t) is in a different program than the n in t[n].
 
seems totally legit
 
Xeo
@ThePhD decltype(comp(some_input)) - with generic stuff, you can only ask for the output for a certain input
 
@Ell Say, like, you are only active on a forum or two at a time.
 
12:28 PM
It's the same reason you cannot get type-safe printf.
 
Oh god so embarrassing.
 
Xeo
tuple[_1]!
 
kk
 
Ell
@Pawnguy7 I used to be active on RPG Maker forums :P and also, I used to be (but I'm becoming active again) on various IRC channels
 
@LucDanton What?
 
12:29 PM
@Ell "RPG maker"
 
All those attempts at trying to hack in, well, literal types for actually useful stuff.
 
Ell
@BartekBanachewicz yeah xD
 
@R.MartinhoFernandes ...but you can/could (even though the one in the standard library isn't). Think printf as a variadic template...
 
Ell
I wrote ruby scripts for it :P
 
@Pawnguy7 Not online, no.
 
Ell
12:30 PM
then one script I started getting a stack overflow I couldn't fix so I gave up :l
 
@Ell Exactly. Like... used to be part of a chess site. Not anymore. Used to be part of the yoyogames forums (that is not the GMC, by the way). Not anymore. Stuff like that.
 
Ell
then I started to learn programming
 
@JerryCoffin You mean, with the format string given as template arguments?
 
I need variadic inheritance.
 
I think it can be offline two. You will just choose one or the other and others mostly drop away.
 
12:30 PM
inheriting a variadic number of types.
 
Ell
Also I luuurrve this soundtrack: youtube.com/watch?v=9Kd8qdly2io (FF III)
 
class foo : T... {}; works (given baseable Ts).
 
template<int... Indices, typename... T> struct tuple_impl<indices<Indices...>, T...>: private tuple_holder<I, T>... { // ...
 
no kidding
cool
 
@R.MartinhoFernandes Most likely, yes. I believe it could be done as a string if you really wanted though. cpp-next.com/archive/2012/10/…
 
12:31 PM
@rubenvb Make sure to test for tuple<int, int>.
 
Xeo
@R.MartinhoFernandes And unique Ts
 
@Xeo Stop spoiling!
 
Xeo
:<
 
@Xeo Well yeah, I know what the input is though ( a String or a Stream). The target output is also specified by the user ( with Load<TheType>( ... ) )
 
Xeo
@ThePhD And... why do you actually care then?
 
12:32 PM
@LucDanton I'd make a unique struct holding a single member of the type and templated on index.
 
What goes inbetween is a bunch of functors, and inside I create a functor_chain and then store that in an std::vector<any>
 
@Xeo That's part of the Baseable concept. :P
 
Xeo
lol
 
The reason for this is because I need to invoke it later if that specific string changes
 
12:33 PM
lol yeah
I don't speak code like you do.
 
Oh sorry. I like to keep it condensed.
 
Xeo
@ThePhD You still haven't given me (us) a reason why you care about the type of the composition, or what goes in and what comes out, since you clearly know those things already through other means.
 
@ThePhD Oh gawd what is happening.
 
Xeo
And it still doesn't explain why you need std::function
 
@Xeo And then in the end he erases everything into any...
 
12:35 PM
@rubenvb Don't mind giving me a ping if std::get gives you trouble later down the line. I might turn in soon though.
 
@R.MartinhoFernandes I erase it because I need to store a chain for a variable input (Stream or String, usually) and an unknown output ( Texture2D, Model, Level, etc.)
And that chain has to be invokable at a later point in time by the system.
 
Guess what, any is not invokable.
That's the problem with any: it isn't anything.
 
@R.MartinhoFernandes any -> functor_chain<SpecificInput, SpecificOutput>
 
@LucDanton I'm far away from something that might work. I'll be fighting the compiler first :P
 
Ell
waaat :/
 
12:37 PM
@ThePhD Then make an erased functor_chain.
 
@R.MartinhoFernandes Thats' what I did!
 
@ThePhD That's not any.
(Hint: it's not callable or anything)
 
Making me long for Boost.TypeErasure. Actually no I can't say I really need it.
 
Ell
@ThePhD I just saw my message "what are you trying to do?" and I don't even remember writing it xD
 
Boost.TypeErasure looked cool.
 
12:40 PM
does anyone know if I can install the latest android (4.2.something?) on a galaxy s2? (without using custom roms and stuff?)
 
Ell
@melak47 if you root it I think you can isntall anything
 
@R.MartinhoFernandes Really ambitious, and somewhat conceptish. But I'm not fond of generic things that aren't move aware these days though.
 
@Ell it's not mine, I'm not supposed to root it :/
 
Ell
oh :/
 
@melak47 I think Samsung already supports Jelly Bean officially.
 
12:42 PM
I guess I'll try this update thing called "Kies"
what is it with google/android and names
 
Ell
meh I'm so confused... the glUniform functions have the number of arguments they expect, yet they take a count parameter as well as a pointer :/
 
@Ell what
also use glProgramUniform if you can
@R.MartinhoFernandes IIRC no
that's why Nexus devices rock.
 
@BartekBanachewicz They released an update last week.
 
@melak47 lol CM hates you
 
ok, I wasn't that up to date.
 
12:45 PM
hmm... really tempted to just host my own wiki... but then accepting that makes me think I should host the bug tracker too... and then before you know it, I have yet another project in the big long queue of projects I am working on :(
 
@rubenvb get Ubuntu Phone cc @melak47
 
@rubenvb CM isn't really an official update either :p
 
@thecoshman See why I jumped ship to GitHub?
 
@melak47 ah lol you want an official update.
 
Ell
12:45 PM
@BartekBanachewicz glUniform4iv(loc, count, &values); - why would count be anything other than 4?
 
@BartekBanachewicz it's a dev device for uni
 
@Ell The *v versions? It's the number of parts per element.
 
@R.MartinhoFernandes but git :(
 
Ell
oh wait. I think I misunderstand a lot :L
 
glUniform4iv(loc, 10, &values) means "10 4-vectors of int".
 
Ell
12:46 PM
aww dern.
Now ima have to take containers of containers too xD
 
> Specifies the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.
Lern2Spec.
 
Ell
@BartekBanachewicz why this?
@BartekBanachewicz I read it but misunderstood >.<
 
@Ell "Because it's awesome" is enough?
 
@BartekBanachewicz never
 
Ell
nope :/
 
12:47 PM
@Ell Because it can be set once.
 
@Ell don't worry, understanding spec isn't something that you should expect from anyone, including yourself
 
Ell
@BartekBanachewicz I tried my bessst :'(
 
@Ell because DSA is the way everything in OpenGL is going and you save the cost of unnecessary binds
@Ell I mean even driver implementers like NVidia, Intel or ARM can sometimes disagree how to read some particular segments.
 
Ell
oh :P
 
and it so happens that some features can behave differently.
That's why you usually first check if anyone did the feature already, and do it like the others
 
12:49 PM
@R.MartinhoFernandes I guess I'll just use Xeo's composers then and then type-erase them in some way.
 
that way, even if it's not more "correct", developers can expect consistent (more or less :P) behaviour
@Ell anyway glProgramUniform is 4.1+
 
Ell
Yeah
Nobody besides me is going to be using this so that's okay :p
 
but you can expect even more of functions like this in OpenGL 4.4 and 5.0
 
@ThePhD the thing is any erases the entirety of the type. If your types have something in common (like being invokable) it's better if you don't erase those bits.
 
Ell
where I don't have to bind?
 
12:51 PM
Well, I mean we can only speculate about 5.0, but right now I am optimistic
 
Speaking of Git and such, I've been wondering if you guys follow any strict discipline when it comes to writing commit messages?
 
And, btw... what about std::function<SpecificOutput(SpecificInput)>?
 
@LucDanton no
 
@R.MartinhoFernandes I'd have to use bind for that mostly, and I couldn't figure out variadic placeholders for n-arity functions.
 
I'm kinda turned off by the idea of writing the message not inline.
As well as the fact that 'write a novel' seems to conflict with 'commit often'.
 
12:52 PM
All I do is git commit -m"whatever I feel like" or the same through Qt Creator's excellent git interfacec.
 
Is Coliru working atm?
 
@R.MartinhoFernandes Also, I'm going to have a collection of these that take different inputs and outputs (they get stored type-erased, then when they're called I cast/lift them back into their original types).
 
@LucDanton What do you mean, not inline? Not in the command-line?
 
Xeo
@ThePhD Huh?
 
@R.MartinhoFernandes Ya.
 
Xeo
12:54 PM
Why do you need bind to type-erase the compose?
 
....
Who the fuck knows.
 
@Xeo Nonono, I was saying fi I started at the top using bind from the beginning.
 
@LucDanton I recently started following tpope's ideas regarding using the past tense.
That's it.
 
@R.MartinhoFernandes lol
 
@ThePhD So now I wonder why all those unrelated things need to be together.
 
Xeo
12:55 PM
4 mins ago, by R. Martinho Fernandes
And, btw... what about std::function<SpecificOutput(SpecificInput)>?
3 mins ago, by ThePhD
@R.MartinhoFernandes I'd have to use bind for that mostly, and I couldn't figure out variadic placeholders for n-arity functions.
 
It's not like they can be used together, is it?
 
Xeo
I don't follow how the "I'd have to use bind for that" comes to be.
 
The idea of writing a one-line summary + any amount of prose is tempting for some things I suppose, but then there's the nonsense about limiting the number of columns. Such a clash of pragmatism and WTFness.
 
-1
A: Remove by _id in MongoDB console

sàdsIf you need to do something that Markdown can't handle, use HTML. Note that we only support a very strict subset of HTML! Strikethrough humor is <strike>funny</strike>. Markdown is smart enough not to mangle your span-level HTML: <b>Markdown works *fine* in here.</b> Block-level HTML elements...

 
I think I confused myself...
 
12:57 PM
lol
 
@Xeo It's not the first time someone has painted themselves into a corner and then convinced themselves that a jackhammer to break down the walls would be the perfect tool.
3
 
"(...) and after the bear left, I found myself trapped between this rock and the damn dam wall. 'Time to breach the wall', I thought."
 
Ell
@ThePhD if they have to be erased then un-erased each time - there are no benefits to storing them together
 
Xeo
Breach breach breach!
 

« first day (941 days earlier)      last day (4012 days later) »