« first day (919 days earlier)      last day (4023 days later) » 

5:00 PM
everyone sits and eats on the floor
everyone is equal
Made me think, really. (It's in India, if someone needs more context)
 
Ell
@xeo I apologise, I'm mobile so I don't know which message the ya is to
 
@Ell binds
 
Ell
Right
 
Xeo
An expression always has the same type, and if f or _1 didn't change between those two decltype, it will be the same :P
 
it's a good day
 
5:08 PM
@BartekBanachewicz I Googled this temple. There are many images of this magnificent structure, but mostly outside :(
 
@MartinJames gimme sec
they are focused on the social, not architectural aspect though
 
user142019
@Ell Yes.
 
@BartekBanachewicz Thanks, I think - I'm really hungry now and will have to have a curry later :)
 
let's go to India!
 
@ThePhD Yes, Coliru only accepts clean code.
 
user142019
5:13 PM
Walks through puddle, Drowns. http://t.co/4DVnfNm43i
 
user142019
LOL
 
So, I got "Celestia's Ballad" stuck in my head.
 
user142019
@StackedCrooked codeclimate.com
 
user142019
Oh it works only with Ruby. :|
 
@BartekBanachewicz Well, I might make it as far as the 'Najmoon'. It's only 5km, just at the back of the Wetherspoons pub in town. I won't need a passport or long-haul misery :)
 
5:16 PM
anyone know which runtime is used in C++ Builder XE3 (clang-based), for Windows target ?
 
@Zoidberg waaaaaat
@Crowz that is so fucking lame
 
@Abyx Runtime? What runtime? Does C++ Builder make .NET apps by default, now? It used to make standalone EXE by default, but I don't have XE3.
 
@BartekBanachewicz why?
 
@Crowz because it's fucking lame. What other explanation do you need?
 
5:21 PM
I like it :(
 
@MartinJames huh? but it's C++ and it's based on clang
 
@BartekBanachewicz, I had a query for you but you were gone yesturday. I was wondering, if chunks are generated at different times, how do they... fit seemlessly?
 
user142019
 
@MartinJames C++ Runtime != .Net Runtime
 
@EvgenyPanasyuk Indeed, those two strings are different.
 
5:29 PM
duh
 
@Pawnguy7 that's up to proper noise generation
 
I guess I now have a valid reason to learn noise.
 
meh, I don't wanna register and download 108 Mb of C++Builder XE4 =\
 
user142019
Oh no 108 megabits what do we do now.
 
@EvgenyPanasyuk So, is the question 'what DLLs are required at runtime that are not part of the normal Windows distro'? Is that right?
 
5:33 PM
@MartinJames nope
 
OK, I admit I'm lost here.
 
@MartinJames the question is if it's libc++ or not
 
user142019
A C++ runtime includes things like stack unwinding and RTTI.
 
user142019
libc++ is an implementation of the standard library.
 
@Zoidberg oh, I didn't know that, thank you
 
5:35 PM
@Zoidberg Is that not linked in to the EXE?
 
@Zoidberg AFAIK, libc++ does not work on Windows. While C++Builder XE4 apps do work on Windows.
 
user142019
@MartinJames Of course it is, how else would you call it?
 
user142019
@EvgenyPanasyuk well then it doesn't use libc++.
 
@Zoidberg Then it's not runtime support, as might be provided by a separately distributed DLL.
 
@Zoidberg the question - what does it use? ..
 
5:36 PM
or maybe they fixed libstd++ so it works in Windows
 
user142019
@MartinJames And why wouldn't DLLs be linked into the EXE?
 
@ScottW Shit. I got -10 last week from that. Gotta check now :(
 
DLL ... linked into ... EXE? wtf? you don't link PE
 
Can I get the arguments out of a std::bind? :O
 
@Abyx link says that they use Dinkumware STL. I don't think that they would use Dinkumware STL if they would have fix for libc++
 
5:38 PM
To me, stuff linked in at build time is not runtime. A DLL library call is runtime support.
 
user142019
A runtime support library doesn't have to be linked at runtime.
 
user142019
It's a (runtime support) library, not a runtime (support library).
 
user142019
@ScottW owned
 
@Zoidberg Oh - so it's like const declarations - you have to be careful where you put the 'const' :)
 
@EvgenyPanasyuk yep. also maybe they fixed clang so it works with their std lib
 
5:41 PM
LOL..
 
what is "Boost 1.5" btw?
 
@BartekBanachewicz how is lundi progressing?
 
@Pawnguy7 check the channel
 
We need a volunteer who goes down into the abyss of the unknown and install C++ Builder XE4. This task is not for the faint heart. Here be dragons.
 
@EvgenyPanasyuk well, but what if it's really thatware stl?
I doubt we can rip it and use with clang
 
5:43 PM
is std::bind supposed to return a function?
 
@ThePhD function object (functor)
 
ATM, I only see it returning unspecified in the docs.
 
@Abyx If it would be possible to produce self-contained static lib with C++ Builder XE3, which can be linked into MSVC project - that would be cool.
 
@Abyx ... ftor?
Oh.
So I can use std::bind with std::function
Okay
 
Man, VTune is taking a while to collect results.
Maybe I should profile VTune with VTune.
 
5:44 PM
std::bind without _1, _2, etc (i.e, I do auto func = std::bind( f, 100, 200 ); ) means it will store the arguments inside of itself, right?
@EtiennedeMartel Tuning the Tuner.
 
@ThePhD yep
 
Xeo
@Abyx Don't call it functor!
 
@EtiennedeMartel how did you get your hands on it?
 
@Abyx Hokay. So I can avoid having to figure out how to "save" work items and their arguments.
 
@EvgenyPanasyuk do you mean "fuck clang, let's use C++builder"?
 
5:45 PM
@Xeo Why not functor?
 
@Xeo functor.
 
Xeo
Because Haskell
 
... Wait.
Impasse. =/
 
@BartekBanachewicz I pestered my boss and now we got a floating license at work.
 
what is haskell? how is it related to C++?
 
5:46 PM
... OH, WAIT
 
@Abyx I mean, if C++ Builder uses CLang with good C++11 - it would be good alternative for MSVC compiler.
 
Impasse gone, I just store std::function<void()> as the work
 
@EvgenyPanasyuk it uses clang 3.1
 
Problem... I need to also preserve return types.
Or maybe I don't?
Let's find out....
 
@Abyx I think they will evolve
 
Xeo
5:47 PM
In many programming languages, map is the name of a higher-order function that applies a given function to each element of a list, returning a list of results. It is often called apply-to-all when considered in functional form. This is an example of homomorphism. For example, if we define a function square as follows: square x = x * x Then calling map square [1,2,3,4,5] will return [1,4,9,16,25], as map will go through the list and apply the function square to each element. Generalization In the Haskell programming language, the polymorphic map :: (a -> b) -> [a] -> [b] is gener...
Bad preview again
Anyways, the C++ standard also doesn't use the word functor
 
@Xeo so basically a Haskell has a Functor thing and I can't call functors "functors" in C++?
 
> a Haskell
lol
 
Xeo
Yes, absolutely!
 
Haskell is a programming language
 
that nobody-writes-production-code-in Haskell?
 
Xeo
5:50 PM
Anyways, see the second point
 
@EtiennedeMartel neat. I like VTune reports.
@Abyx that's not true
 
@BartekBanachewicz It works really well.
 
sgi.com/tech/stl/functors.html "A Function Object, or Functor (the two terms are synonymous)..."
 
Xeo
C++ standard still doesn't mention "functor"s, and STL != C++ standard :) (Yes, call me pedantic on this one.)
 
@Xeo the Standard has no "virtual functions table" but who gives a fuck?
3
 
Xeo
5:52 PM
You guys are boring. :|
 
lol
almost 5 million questions on SO, woah
 
How many closed ones?
 
@EvgenyPanasyuk That's old.
 
@Morwenn Cicada?
 
Don't use SGI's documentation on the STL, it's obsolete.
@TonyTheLion No.
 
5:58 PM
@TonyTheLion What?
 
@EtiennedeMartel TC++PL: "An object of a class with an application operator (§11.9) is called a function-like object, a functor, or simply a function object."
 
ah ok
don't mind me
@ScottW no, she's a troll
 
@TonyTheLion *He.
 
it is a troll
 
@EvgenyPanasyuk What about the spec?
 
5:59 PM
@EtiennedeMartel ISO?
 
(We're being overly pedantic, yes).
@EvgenyPanasyuk Yes.
 
Pedantry is a meme here
:P
 
@EtiennedeMartel Yes, it doesn't have functors. And I didn't say it has.
 
@EvgenyPanasyuk I don't even know what you're talking about.
 
hi, is there a cmd in win7 to clean open services that werent closed?
 
6:06 PM
@Infested how is that related to potatoes?
 
@BartekBanachewicz because cookies!
 
What does "Purpose, Scope, and Objectives" mean when talking about making a program?
 
That's horrible, I can't read any "clang" onomatopoeia anymore without having C++ in mind.
 
@Crowz That sounds like project management stuff
 
@JohanLarsson it's what I have to do for a class. It's a huge pain
 
6:15 PM
I can imagine
Scope could be Win only for example I guess
Objectives maybe done before a date and containing a features x, y , z ...
I'm kinda weak in English so should probably not be guessing :D'
Purpose and objectives seems kinda redundant
 
Management teacher one said that objectives have to be big enough, defined in time and feasible.
 
Ell
// I have:
void glDeleteTextures(GLsizei  n,  const GLuint *  textures);
// I need:
void newGlDelete(GLuint handle);
// Is this correct? (gives me compiler errors :( )
std::bind(glDeleteTextures, 1, &std::placeholders::_1);
 
user142019
Haha! {-# LINE 12 "" #-} crashes GHC.
 
user142019
ghc: panic! (the 'impossible' happened)
  (GHC version 7.4.2 for x86_64-apple-darwin):
	Prelude.head: empty list
 
6:23 PM
@Ell just use lambda
 
user142019
@Ell remove the ampersand.
 
@Ell Where would glDeleteTexture accept a GLuint?
Oh, you tried using address-of. That can't work.
 
user142019
@Ell std::bind(glDeleteTextures, 1, std::placeholders::_1);
 
Ell
@LucDanton well that was the reasoning of the ampersand
 
Hi guys
 
Ell
6:24 PM
@LucDanton oh :( why not?
 
user142019
@Ell Why would it?
 
@Ell Then you get the address of _1.
 
Ell
because it's not compile time :3
 
user142019
Why would you take the address of _1?
 
It's a global variable. You took its address.
 
Ell
6:24 PM
dern. Okay
 
So well, lambda is the way.
 
Perhaps it would work with Boost.Lambda or Boost.Phoenix..
 
@EvgenyPanasyuk Yup.
 
@TonyTheLion I wondered too :0 but look at rep
 
user142019
@Morwenn or just remove the ampersand.
 
user142019
6:25 PM
Sigh. It ain't rocket science. It's just std::bind.
 
@kbok yea
 
Ell
meh removing ampersand causes compile errors also. I must search more >.<
 
@Zoidberg He wanted a function taking a GLuint instead of a const GLuint*, si removing the lambda won't do all he needs.
 
Ell
@Morwenn s/lambda/ampersand?
 
@Ell just use lambda: [](GLuint handle){glDeleteTextures(1,handle_cast<const GLuint *>(handle));}
 
user142019
6:26 PM
Ooh you want a pointer to the passed argument.
 
user142019
You can't use std::bind if you need different types.
 
Ell
Right okay
 
user142019
lol
 
You can probably use invoke for that
 
Ell
Okay. How do I get a type of that?
and a way of me not copying & pasting?
 
6:28 PM
@Ell There's still a mismatch between passing in a GLuint and accepting a GLuint const*.
 
Ell
I have an instance of GlId which takes a deleter
 
@Ell Put auto f = /* lambda */; somewhere, use decltype(f) as needed (don't forget to pass f to construct copies, too).
 
@Ell What are you trying to accomplish? Maybe just plain function would be OK for you?
 
If you really need decltype(f) though that sounds like a design that could be improved.
 
@LucDanton if he need to call glDeleteTextures outside of some kind of RAII wrapper, then problem is earlier than`decltype(f)`..
 
6:33 PM
Yeah but you're kinda letting your imagination run wild here.
 
sbi
> Don’t bother with those new Dyson urinals. They don’t work – piss EVERYWHERE! — Jake Lodwick
8
 
xD
 
what is it?
 
sbi
@JohanLarsson A strong fan to dry your hands with.
 
6:38 PM
haha potential for ugly puns here
 
sbi
Well, I am hungry, my company had Korean visitors today, I am told there's lots of great food left and nobody will complain if I go picking, but they will pack in 20mins. So I'm off to the buffet.
 
@sbi Enjoy.
 
Ell
Sorry my computer died
 
@Ell RIP
 
@Ell How come?
 
Ell
6:45 PM
Spring crashes it for some reason
 
Hello, World!
 
Living bugs i guess.
 
@Zoidberg java java java
 
@sbi Is that actually one at the Marriott, or just an identical one?
 
user142019
@Code-Guru die die die
 
6:46 PM
@zoid =p
 
Ell
@EvgenyPanasyuk basically I want an RAII wrapper around GLuints. Here is my attempt: coliru.stacked-crooked.com/…
Maybe regular unique_ptr is better
 
@R.MartinhoFernandes Those are two expressions that denote one value.
 
@Ell just use standalone functor for each type of gl object (and pass it as param to GlId).
 
user142019
Dammit Haskell.
 
@FredOverflow That's not contradictory.
 
user142019
6:48 PM
How do I cast an Int to a Ptr a?
 
user142019
Like (void*)1?
 
Ell
@EvgenyPanasyuk so write a functor for the deleter instead of using std::bind?
 
@Ell yes
 
user142019
Maybe Ptr (unsafeCoerce 1). :v
 
@Zoidberg You can, but why do you want to? It's rarely useful.
 
6:50 PM
@Ell I don't think that unique_ptr is better in that case.
 
user142019
@JerryCoffin the ptrace(2) man page says I need it.
 
user142019
> The traced process continues execution. addr is an address specifying the place where execution is to be resumed (a new value for the program counter), or (caddr_t)1 to indicate that execution is to pick up where it left off.
 
@Ell and, I think you don't need to store and pass deleter to constructor - just use template type parameter ( like deleter_t::del(glHandle) or deleter_t()(glHandle) ).
 
@Zoidberg ptrace? In that case, such crappiness is probably unavoidable.
 
user142019
Yup. :P
 
Ell
6:54 PM
@EvgenyPanasyuk I'm not quite sure what you mean by that. I tried using the deleter as a template parameter but the function needs to be one of external linkage
 
user142019
But I can't find a function to perform such a cast and Hoogle doesn't find anything for Int -> Ptr a either. :|
 
@Ell use function object
 
Ell
but that will take aaaageees :P
for each type.
Well maybe not ages, but a while
If I'm going to do that, I may as well put it in the class itsself
 
I know I can use make_unique(raw = /* pointer */, deleter = /* what to do when done with it */).
 
struct newGlDelete
{
static void del(foo x)
{
glDeleteTextures(bar...);
}
};
 
Ell
6:56 PM
also, it seems there are only two signatures for glDelete* and glDelete*s
So I might just make a GlId and GlIds
 
and then using texture_id = GlId<newGlDelete>;
 
user142019
Meh. Kind error.
 
Is there a sensible way to have both struct type_traits and their template aliases in the same namespace?
 

« first day (919 days earlier)      last day (4023 days later) »