« first day (1175 days earlier)      last day (3998 days later) » 

15:00
I'm also not saying you're going to get sick, just that eating raw meat that was out for 5 hours is a higher risk
user784668
@LightnessRacesinOrbit: honest question: do you have any citation to support the claim that writing one field of a union and reading another is UB?
@Collin is raw meat that much worse than, say, a cookie?
@BartekBanachewicz Yeah, raw meat is a much better place for bacteria to grow
cookies are pretty dry, and have been cooked in the past
fuck. Boost.Spirit bcp'd header only is 60 MB.
hm, so when preparing those things you should avoid all the potential stuff that can carry the bacteria to the meat
15:02
That's ... heavy.
worth noting, I guess.
user784668
@LightnessRacesinOrbit: you see, the standard is vague as hell and doesn't really say anything about it being UB in 9.5.
@rubenvb welcome to boost.
user784668
@rubenvb Color me surprised… not.
@rubenvb "bcp'd"?
15:03
@BartekBanachewicz yeah, it's certainly better to prepare with cleaned hands, cutting boards and trying to keep the meat cold
user784668
@Griwes bcp'd
but, people do eat properly handled raw meats all the time, it's not especially bad
@rubenvb Oh, nice.
@Fanael yes
> on this web
Xeo
Xeo
15:03
@Fanael IIRC it says something along the lines of there being only one active member at a time, and assigning one member ends the lifetime of another
oh that pisses me off
@Fanael I thought you said you understood why the answers were wrong
It's about 2/3 of all Boost headers.
user784668
@rubenvb 1_55_0b1? Isn't it, like, beta?
15:04
The very first sentence in the definition of unions is:
> [C++11: 9.5/1]: In a union, at most one of the non-static data members can be active at any time, that is, the value of at most one of the non-static data members can be stored in a union at any time. [..]
@Fanael google link. Fixed.
This "feature" is well-covered on SO; I suggest looking up some related questions!
Xeo
Xeo
@LightnessRacesinOrbit That by itself says nothing about reading the other members
user784668
@LightnessRacesinOrbit No need to be a dick about it, the very reason I ask is because I found a Robot's answer to one such question that puts the undefinedness of writing foo and reading bar in doubt.
@Fanael It depends. There is a special case when there is a common initial sequence of layout-compatibility.
@Xeo It does; you can't read a value that isn't stored.
It's not the clearest passage in the world, but the [non-normative] note after it about the special case is evidence enough of the intention.
15:13
@rubenvb lol:
Dec 2 '13 at 22:00, by sehe
SLOC	Directory	SLOC-by-Language (Sorted)
157807  spirit          cpp=157794,sh=13
145401  math            cpp=142299,cs=2121,ansic=921,sh=60
139040  phoenix         cpp=139040
92235   fusion          cpp=92235
85351   numeric         cpp=85252,python=56,fortran=43
82369   mpl             cpp=81777,python=592
80468   asio            cpp=79747,xml=488,perl=233
79445   geometry        cpp=78619,xml=671,python=155
72764   graph           cpp=71588,ansic=1063,xml=56,perl=39,sh=12,csh=6
50663   thread          cpp=50663
huh fusion on 4th place
Dec 2 '13 at 22:05, by sehe
Amazingly, Spirit is completely married to Proto, Fusion and Phoenix. So that makes it using... 25% of the total code base. Not even counting the ubiquitous parts like mpl/variant/optional/tuple etc
@BartekBanachewicz Generated faux-variadics. Highly compressible
orite. You should compare gzipped source
No you shouldn't. Because you can't compile that
so what? It's only an overview on size %.
15:16
It's not. It's LoC. Also, then just disregard all generated code
I've been wondering about doing my toolchain builds in tmpfs.
On Arch, that's in RAM.
So that should in theory speed things up quite a bit.
Only thing is, GCC source is ~1GB.
Build is about 1-1.5GB.
So only the build fits.
user784668
@rubenvb meh, let the cache take care of the source
@Fanael haha, 1GB cache. Right.
But I have no more RAM. So it'll have to do.
user784668
@rubenvb given that I typically have 2GB of stuff in cache? Sure, it's nothing.
user784668
How much RAM do you have anyway?
15:20
@Fanael 8GB on my laptop and desktop. Of which 4GB for the VM, which makes 2GB tmpfs.
So I hope GCC linkage won't turn all this into suckage.
because bleh ld for Win32.
@rubenvb tmpfs is always in RAM
@rubenvb I've run out of tmpfs doing a clang/llvm build before. Otherwise, I always build everything in tmpfs.
@sehe right, but /tmp might not be. But it is for me. Anyways.
You didn't say /tmp :_)
I recently upgraded 8Gb->32Gb so I guess it will not quickly become a bottleneck
@rubenvb In my experience, it matters little. Compilation is CPU bound, not IO bound. Just the linking could be faster.
If you're not using ccache/distcc don't worry about it.
great. cc1plus chokes on the pch.
bastards
JBL
JBL
Ok this is retarded. Building a lib with x86 build files asking for x64 build fails (obviously), but building with x64 files for an x64 target fails because "target machine type x86". I want to die.
15:28
Permission granted
@JBL On windows? Building boost? Try --address-model=64 or something
JBL
JBL
@sehe I'm trying to build PoDoFo.
(But saw many posts about this problem with Boost)
Whatever the fuck that might be
@sehe That's a damn lot o.o
JBL
JBL
Under Visual, directly in the command line? I use the config manager or something.
oh, @sehe, I'm dabbling in spirit in again. Is these specializations the only ones I need for a custom string class in the parser?
user1804599
15:31
Dat weather.
JBL
JBL
Seriously, I have litteraly Build started: [...] Configuration: Debug x64 and it fails because module machine type 'x64' conflicts with target machine type 'X86'
WTF!
I think I fucked up my for loop
@JBL are you using the right compiler?
Are all options in the vcproj set to x64?
JBL
JBL
@rubenvb MSVC. And I can perfectly build my own project for x64.
@JBL no, I meant the right cl.exe.
JBL
JBL
15:34
@rubenvb Isn't cl.exe the linker? I think so.
user3010322
@BartekBanachewicz It’s okay, I’ll still love you. <3
user3010322
No, it's thecompiler.
@JBL no, that's link.exe
JBL
JBL
Oh, TIL.
But if you're using the IDE, no need to worry about that.
JBL
JBL
15:36
I am.
Then you need to find every occurence of x86 and get rid of it or set it to x64.
I hate vcproj
Good luck
JBL
JBL
@rubenvb Welcome to the club :/
(That's one very large club I believe)
Just convert it to use CMake.
or something else.
and build with that.
what's the best way to get a maximum element from an unsorted range
JBL
JBL
Yep. Just that if by any chances it worked just by building their .vcproj on the first try, that'd been great. But apparently it's so fucked up it's not worth it..
15:38
assuming I need to insert an extracting lambda before reaching values
@rubenvb Yes. See also the sample boost.org/doc/libs/1_55_0/libs/spirit/example/qi/… that harnesses the Qt::QString class
@BartekBanachewicz std::max_element with a custom comparator that extracts the values and compares them.
or, how can I rewrite foldl1 max $ map snd xs
@rubenvb okey. thanks.
@rightfold Too warm?
@sehe OK, thanks!
15:40
oh right I forgot I can't use lambdas
dum dum dum dum
user1804599
@sehe plotselinge onweer.
Xeo
Xeo
@BartekBanachewicz maximumBy (comparing snd) (Data.List, Data.Ord)
OMFG
oh god
i am so fucked
where to hide
@rightfold wokay. not arrived here yet
@BartekBanachewicz write a struct (old-skool)
sheesh.
15:45
nno not that
I had code like this
            for (int i = 0; i < 5; ++i)  {
                for(unsigned i = 0; i < 10; ++i) {
                    cout << i << endl;
                }
            }
lol nice shadowing
but it should work fine, no?
works fine on Coliru :S
Xeo
Xeo
should get you zero through nine repeated five times
@Xeo five times.
yep.
i mean, the testcase with that code inside is running into timeouts
i am not sure if that's its fault
Xeo
Xeo
sounds wrong
15:49
what sounds wrong
halp.
Xeo
Xeo
that would only happen if you had (unsigned j = 0; j < 10; ++i)
it was i 6 times
hahah, deconstructor
0
Q: Regarding deconstructor in a array of objects

Xuan ZhouI have a question regarding how the deconstructor is called. For example, I created the following foo class and supplied with copy constructor, deconstructor and overloaded the assignment operator. I created a dynamic array of this foo objects and used the operator "=" to assign individual elemen...


« first day (1175 days earlier)      last day (3998 days later) »