« first day (1390 days earlier)      last day (3784 days later) » 

00:00
Those French
I especially like how I just replaced tuple<int32_t,int32_t,int32_t,int32_t> with array<int32_t,4> and that whole crufty LoadableFile struct with a simple using LoadableFile = std::string.
I’m editing and I don’t know where to put paragraph breaks.
Oh and he even had a missing return bug in an operator== (due to misguided this==&rhs check)
@LucDanton put the paragraph breaks right where the \n\n are.
@LucDanton Me neither. My hunch is the OP doesn't know where incorporate actual thought into his analysis/description process
@LucDanton man par :)
Hi sehe thanks again.
@AndrewLBarber To me too. I consider this a productivity trap
@CaptainGiraffe ?
> - The claim that the library is "fast" is not necessary true. Phil has did some checking
against hand-written assembler that don't look too good.
ouch
@sehe, you know =)
Parallel sort/merge?!
That too! =)
00:04
What else? I'm clueless
@sehe I’m not sure that’s a thing. I had no idea double spacing was a thing until I used GNU typist, which I suppose shows its age more than anything. (Using it in English.)
o.O
Or do you mean the stuff : like that ?
@Mysticial Funny how the best way to improve the network is the only one without requirements (giving answers).
I meant double-spacing after a period or similar. Like that. But not after a, erm, comma. How does that look to you?
Oh I guess the chat collapses those double spaces.
00:07
I guess it does
TIL someone proposed Boost.Singleton: lists.boost.org/boost-announce/2008/01/0171.php
@Rapptz wtf is COW
Copy on Write
ah
also, inb4 smartasses
I'm reading rejected boost libraries
there aren't many, surprisingly
00:08
In writing, a space ( ) is a blank area devoid of content, serving to separate words, letters, numbers, and punctuation. Conventions for interword and intersentence spaces vary among languages, and in some cases the spacing rules are quite complex. In the classical period, Latin was written with interpuncts (centred dots) as word separators, but that practice was abandoned sometime around AD 200 in favour of scriptio continua, i.e., with the words running together without any word separators. In around AD 600–800, blank spaces started being inserted between words in Latin, and that practice carried...
> Double space (English Spacing).
It didn't even compile
that's pretty amazing
Yup, not a thing in French typography as far as I can see.
I feel like Boost::format isn't well maintained, here is a bug from 7 years ago, svn.boost.org/trac/boost/ticket/859
Is there a way to play magic online for free?
A fair number of Boost libraries are not that far away from straight bitrotting.
00:12
@Jefffrey play the steam games in multiplayer?
@Mikhail there's many libraries with spurious reports lingering
@Mikhail Not too uncommon.
I don't think they will fix my bug :-( svn.boost.org/trac/boost/ticket/10245
@Borgleader magic the gathering, I mean
@Jefffrey so did i
00:13
what steam games did you mean?
I think that’s documented. The printf-style format thingies are accepted, but ignored when it comes to ‘type’.
@Jefffrey I only have the 2013 edition, but it had MP so I assume the following ones did too
@Borgleader Oh, you said "games", not "game". Also that's not free and it's only for windows.
So you can use %d for pretty much anything, and it’s overload resolution that dictates what is actually output.
00:14
@Jefffrey well its free as in you dont need to pay for cards ;)
@Mikhail What do the docs say?
@LucDanton ah, what I thought
'%d' means number, anyways I did my duty by complaining...
I.e. the printf-style thingies are an alternative to the Python-style positional quibbles. They don’t have any more functionality.
@Mikhail Where is that documented?
@Borgleader I see. That means that there's no way to play magic without buying something. :(
00:15
@Jefffrey you could play hearthstone, its magic ish
@sehe boost.org/doc/libs/1_55_0/libs/format/doc/… It says decimal type directive but instead treats by uchar as a letter and fucks with my format, which messed up some of my file writing.
I love how the expletives lend credence to your claims
Hm.
Looking into my formatting things again, I realised I have no analogous specifier for std::setfill.
> type-char. it does not impose the concerned argument to be of a restricted set of types, but merely sets the flags that are associated with this type specification.
They do have an effect then.
@Mikhail I realize this "moved your cheese"/"violated the principle of least astonishment" but it does do exactly what it says on the tin. The confusion is from the suggestive use of legacy format specification syntax
@LucDanton Yup:
> sets basefield bits to dec
Which I trust, is actually happening
00:22
@Borgleader Thanks :D
@sehe Not relevant. The associated flags are wrong. I set a decimal type flag and its not giving me a decimal.
Wut.
@Mikhail It does set the decimal flags on the stream. Check it!
@Mikhail Just, when you do std::cout << std::dec << 'a';, it will still print a
00:24
Just that you wish it to be irrelevant because you demand "DWIM", doesn't make it so
@sehe Welp, then we should file a bug to the std::cout person.
hahahahahahahahahaha
Rather, file a bug to your broken expectations :)
Eh, I do like that proposition.
I expect format("%d")%foo to be a decimal. I don't want to live in a world where it prints a char.
Well. Yeah. The surprise is in the C++ language, arguably. There could be std::char and std::nochar manipulator
@Mikhail You know what to do.
00:27
@sehe static_cast?
Oh. I gathered you didn't want to live here anymore
I'm going to write an email to Bjarne Stroustrup . Maybe he will tell me where to file a bug about std::cout sucking
Just cast it to an int
Jeez
@Rapptz its hard if I change the underlying type. We live in the future, without casts. Jeez
0
A: How to read 4GB file on 32bit system

seheNice to see you found my benchmark at How to parse space-separated floats in C++ quickly? It seems you're really looking for the fastest way to count lines (or any linear single pass analysis), I've done a similar analysis and benchmark of exactly that here Fast textfile reading in c++ Inter...

That should be... an ace!
Night peeps
Greetings! Got a question.. maybe a stupid one.. maybe not.. hopefully you guys are in a helpful mood. :-)
Constructor signature:
LogEntry( int level, LogSource src, const char *format, ... );

Example call:
Log::LogEntry entry(LOG_NOTICE,Log::LogSource::NETWORK,"%s, %d","tests",i);

This fills in a private member: std::stringstream message using vsnprintf()

I'd like to have a constructor like something like this:

LogEntry( int level, LogSource src, std::stringstream &pattern ) that
would allow this type of call:

Log::LogEntry entry(LOG_NOTICE,Log::LogSource::NETWORK," << "Test " << i);
i know that is "wrong" syntax but is it possible to create such a constructor that
How would one do something like that?
WOW. Wall of text
Yeah.. sorry. I had in ideone.com
@Mikhail svn.boost.org/trac/boost/ticket/2024 and this quality report svn.boost.org/trac/boost/ticket/4658 seem like they are related
00:45
How are you doing @sehe?
alive
Well, i think that's good/
Right now I have the following that works:
Log::LogEntry entry3(LOG_NOTICE, Log::LogSource::NETWORK);
entry3.stream() << "This is a test for entry3!!!";
std::cout << entry3.Hex() << std::endl;
But I sure would like to be able to do in a single constructor call.
Unformatted code is unreadable.
@Chimera You can look at Boost Log. Or use a Log().Get(logINFO) << "Hello " << username; type syntax (drdobbs.com/cpp/logging-in-c/201804215)
@sehe thanks will take a look.
00:50
I've never needed logging yet.
Or well, when I did it it was in C# or C++/CLI.
Does anyone else want to undelete Online C++ compiler and evaluator [closed]?
Wow, two "read a book" questions in a row.
I swear that doesn't work in SO comments
Swearing is prohibited in SO comments.
@chris Y U SURPRISED
@sehe fuck!
Interesting that the question got deleted
00:54
@chris shit!
> SO comments
:D
@sehe :===D
TMI
You can always swear on SO posts.
@Mikhail you've abused steroids it seems
00:55
@Borgleader No, I swear it happens everytime I see a girl I like!
your balls shrink?
So I heard we need an alternative to calling idiots idiots.
How about ばか
@sehe At least by the rules, it's really (now) off-topic (asking for reminder/recommendation of an off-site resource). Could be undeleted, but still wouldn't be visible to most people who really need it.
@chris I'm sorry, I don't read moon runes.
00:56
Oh I'm well aware of the rules :S
Specifically phrased it as "anyone else want to"
@sehe I figured you were. The point is, regardless of how useful it might be, undeleting it won't give it much visibility, and probably won't last long either.
Mmm? Undeleting should render it ... rather undeleted.
And if it doesn't get much visibility, all the better! It would keep the close-voters at bay
@Mysticial The last answer
I don't even...
At least then it would be searchable (and get out of date)
I shouldn't say last because some people might not sort by votes.
00:59
@chris :D:D:D:D
@chris I don't even... see it :(
@sehe Well, not sure how much it'll accomplish, but it's now undeleted...
That was one of the best troll questions ever.
I love that comment
01:01
@Borgleader imgur.com/q1v2X95 /cc @chris
> How did you get this wrong?
@JerryCoffin :D
I could maybe do with a button to screencap a full page
@Mysticial That last one could be the even better troll answer /cc @chris
@sehe thanks
I only ever added things for rectangular selection and automatic uploading
01:02
@chris and without dumping it in oneboxen
I can only do full-page screenies at home.
Yeah, I suppose those could have been better not oneboxed
Well, okay, maybe not exactly trolling, but good enough to make up for that minor deficiency.
@JerryCoffin aha
01:04
@JerryCoffin Speaking of which, I wonder if there's a compiler that does that.
Just OCR the code and compile that. 'Twould be interesting to say the least.
Strange idea of interesting
@chris Not built into any compiler I've ever seen. I think some tablet software would make it pretty easy to hack together though.
But shouldn't be too hard to mock one. However, make it accept that specimen (without cheating)... hard
@sehe Well, if you couldn't tell by the joke code tests I write...
@chris I tried to write code on ink and paper few times. It's awful. So I don't really see the point.
01:08
@Mysticial Ha, I remember it. Forgot I had a comment on it though.
@Jefffrey I did this for a number of years. In BASIC and Assembler
@sehe And now you are typing from a psychiatric ward, right?
> Fuck all who mock with us. This is not a joke site. This is a serious programming QA.
Who's that guy?
srs bisnes
@Jefffrey Close enough
^ NSFW, new to me (inb4 repost riposte)
01:14
@EtiennedeMartel 2 Years later, and I'm still not sure whether he was serious or trolling.
@sehe Kittens!
Fuck'em!
@sehe new to me too
@EtiennedeMartel H2CO3
@Mysticial Oh, right.
That guy.
@LightnessRacesinOrbit That's a nice penis.
spotted in this bar
thought you might enjoy it
@LightnessRacesinOrbit Wew. Did you find the emergency exit?
user3079266
hello everyone =)
01:33
@etienne thank you baby
@sehe Level 22 in 12 minutes? Do you have an IQ of 300?
02:07
@Rapptz Are you around?
Hm?
Imma buy pita bread later this morning, and I’m not too sure what cheese to get with that. Wanna weigh in on this?
Chicago Cheese is good
You can cut it into pieces, toss it into a pan for a little to 'cook' it and then make a sandwich out of it.
it looks like this
I can find product pictures but not a description.
it's pretty common here (but then again, this place is pretty Arab centric)
02:15
> Spanish cheese is a traditional white unripened cheese
White cheese may refer to: Beyaz peynir, a salty, white cheese made from unpasteurized sheep (or cow) milk. The cheese has a slightly grainy appearance and is similar to Greek feta cheese Feta, a brined curd cheese traditionally made in Greece Manouri, a Greek semi-soft, fresh white whey cheese made from goat and/or sheep milk whey left over from the production of cheese Mizithra, a Greek traditional, unpasteurized fresh cheese made with milk and whey from sheep and/or goats Mozzarella, a fresh cheese, originally from southern Italy, traditionally made from Italian buffalo and later cow's milk...
Where do I go next?
Hmm..
Closest looking ones is the first one or Queso Blanco.
I’d agree. I think I’m getting it. Never thought of frying, but that makes sense given it’s done for paneer.
Weird. I didn't know it had so many different variating names.
In my house we call it 'Spanish Cheese'
I asked my dad and he said it's really called 'Chicago Cheese'
It’s surprising how many things you can do with whole milk and a curdling agent, yeah. Mozzarella is one of those btw.
I asked my dad again
He said it's not the first one, it's Queso Blanco.
02:23
@Rapptz Cook to brown, or just melt?
which makes sense I guess, since it's Spanish for White Cheese
Mighty helpful, tanks.
@LucDanton Melt. It's actually really easy to burn so getting it to brown is kinda difficult.
I’m not too far from Spain so fingers crossed.
Oh, good thing I asked.
02:31
@sehe So Bjarne Stroustrup answered my email (after 2 hours) saying he doesn't know why the std does that... From now I'll just direct all my SO questions to him.
@Mikhail He seems to be really responsive.
Anybody using or encountered C++ concepts in the wild?
I've made my own concepts
@Mikhail How would he not know? He designed it.
Isn't iostream his creation?
I doubt it.
30
A: Who architected / designed C++'s IOStreams, and would it still be considered well-designed by today's standards?

anonRegarding who designed them, the original library was (not surprisingly) created by Bjarne Stroustrup, and then reimplemented by Dave Preston. This was then redesigned and reimplemented yet again by Jerry Schwartz for Cfront 2.0, using the idea of manipulators from Andrew Koenig. The standard ver...

02:44
Come to think of it, the choice of using << may be. I don’t recall.
I guess I only had half the picture.
The Design & Evolution of C++ seems interesting.
I should read it one day.
I can’t imagine the convoluted mess of buffers and dispatch everywhere to be the result of one (sane-ish) person. In my mind there’s a back-and-forth where everyone adds to the whole contraption bit per bit, until we’re left with the results.
On the flip side, no man can share the design so complicated and therefore only one person could have written it
@EtiennedeMartel no i only popped in to post that
I've messed with iostream myself
like making my own streams, extending it, etc.
It's a pain
But it's do-able..
02:51
Well you don’t have to share it, see. Each contributer only has to work locally. ‘Oh, let’s add some char traits to allow users to plug-in custom character types.’ etc.
friends for friends?
It has its perks obviously
like better type safety and extensibility compared to stdio
but it could be better..
I think proper formatting would shut up 90% of the complaints.
10% of the complaints being that std::endl doesn't work with arbitrary streams?
Don't use std::endl..
Don't they teach that?
endl is fine if you want line buffering
02:53
What meaning of ‘doesn’t work’?
@Rapptz Like that's hard to achieve
At the time yeah?
Multics was once revolutionary. I'm not interested in historical qualities
Hey, that’s DeadMGing.
This was not about quality, but difficulty of implementation.
Not interested either way :v
02:57
Then why bother replying :v
^
Just don’t turn into DeadMG. We already got one.
Anyway, what streams need is better separation of concerns, clearer encoding support and overall better interface. Formatting should be done on top of that, not intermixed with everything else
Actually just pull Boost.IOStreams into stdlib and it'll be good enough
Does B.IOS really do that much stuff? That’s not how I remember it.
At the very least it has clearer concepts for extending the thing
I.e. a convenience layer for typical stream implementations.
Yeah right.
03:05
75% map completion :toot:
How much of that is WvW?
Nothing yet
Also I dread completing Orr
Oh boy. You think that’s going to work in your favour?
@CatPlusPlus No hearts. Probably my favourite maps to complete.
But zombies zombies zombies
I feel some more variety would nice in general
@CatPlusPlus There are zombie peasants, zombie chickens, zombie gorillas, zombie pirates, frickin zombie sharks, zombie hyleks…
zombie eagles, zombie trebuchets, zombie eyes, zombie giants
Really it’s a whole zombie ecosystem.
03:11
how do you tell the difference between zombie octopus/fish from rotten seafood ... apart from movement?
Not to mention the animated swords/shields/hammers/bows!
Zombie chickens I'll give you, because they're funny
More seriously Cursed Shore has annoying places but the other two I really like. Plus Straits are half-jungle with barely any zombie†. † except during zombie attacks
Also more seriously, pay attention that your world does change colour from week to week. My world was bottom of its league during season 2 so I was stuck as red for something like 2 months. And I only needed something like 2 vistas and 2 PoI to world complete ._.
I thought you can enter any map?
Ye but I was on red side. And red side (i.e. least favourite, refer to ‘bottom of the league’) does not typically capture the other sides. So there are doors between the PoIs and you.
03:17
I'll grab someone to help :v
Eh at least it’s not WvW tournament time. So eventually you move up or down leagues and aren’t stuck to the one side.
It’s just that
Back when the game was fresh, WvW was pretty wild. I complete most of it while doing WvW, without aiming for it. I did notice I was just missing some stuff but just thought no problem, this can be done any time. Fast forward the next year when I care about completion and bam it’s the tournament and my world sucks.
Speaking of zombie chickens, have you done Arah p3?
Haven't done any dungeons yet
There’s a zombie chicken involved :v
From what I know about Arah I'm not looking forward to it :v
I’ve just started doing it, loads and loads of fun.
All but P4 left (that’s the one).
03:23
I watched video of story Arah and it doesn't look very good
I didn’t mind the story, but keep in mind that story modes are a category of their own. Have you done any?
Yeah if you don’t care for the, well, story (it follows the personal story chronologically speaking—if you remember those letters when you reached certain levels) then don’t look forward to story mode.
GW2 writing isn't exactly spectacular
My recommendation for starting dungeons is do one of the easy exploration like CoF1 with a full zerk group, the less PuGs the better. It sets up expectations right, anything else will make you think dungeons have to be a drudge.
Being full zerk is important btw. I didn’t care for those stats when I was doing everything but dungeons but it’s really, really important. Otherwise stuff takes ages to die which is super boring and leaves more chance that people start dying and then it’s a wipe and oh god we have to walk all the way again etc. A whole chain reaction of suck.
CoF1 takes 15 min tops when you know how to do it btw.
Also playing a necro in dungeons is only fun for so long, but maybe that’s just me.
03:38
I'm playing a warrior right now :v
Eh, one the two I don’t have at 80. Can’t comment on fun :(
Pretty standard MMO warrior
Press 1 until things die
I want to get an engineer to 80
Grenades are fun
Engi is hilarious.
Played some thief in sPvP also
03:40
@CatPlusPlus It kinda hurts to spam though. That was one of my hangups to playing engi. But as it turns out just spamming nades is okay dps but to really spice it up you use several things. You can even not use nades altogether and still do great.
I'd like to have a character of each class really, but slots are expensive
I feel the same, I used a sale to buy enough though.
Thief and warrior are last. Thief I’m anxious to play more seriously now that I get initiative, warrior I’m not sure.
I just bought 2800 for a server transfer, I'm wondering if I should buy a slot or maybe leave that 1000 for future
Warrior is rather straightforward
Ye, I like the plethora of weapons available to give more options, too. But I guess the profession as a whole is straightforward and mild enough that I’d rather play one of the other ones where there’s something of a special, crazy feel attached to (except necro).
It’s an easy rule when it comes to GW2: the less base HP the profession, the crazier. So guardian, ele and thief are all pretty cray-cray.
@Rapptz I don’t get it.
Something something dark constexpr something something
03:48
@LucDanton a github organisation (I suppose) named dark constexpr. The reason why I found this humorous is because they're making themselves seem like a book.
@CatPlusPlus btw warrior is the king of pug
Eh, I don't intend to play with random people
Ye beyond CoF1 it’s not great for dungeons. Fractals are okay after a certain scale. We had to boot a guardian from CoE today because he was in healmode (also had 21k AP).
Since we mentioned Arah earlier, we tend to 4-man Arah in fact. We’d rather not bring a PuG. We bring whoever is available after Lupicus.
Hi, is anyone up to answering a quick question on data transferal in C++?
Across sockets, I mean.
Oh whoa.
std::string::find doesn't have mandated complexity requirements
03:57
Perhaps a rope holdover?
Seems because they don't want to trade off space for time.
Reasonable, I guess.
Space needed for what?
more 'efficient' algorithms, e.g. Boyer-Moore.
std::find(s.begin(), s.end(), foo) has guaranteed linear complexity, no? If not, ditto with data().
Oh, let me look the find overloads then.
std::find is analogous to the character overload
there's one for substrings
04:01
Alright, makes sense.
I didn't know what to do for my constexpr string find thing
not that it matters much
 
3 hours later…
07:01
so quite ...
Good afternoon.
evening
night
So this just happened... IE just helped me solved a bug on my page.
07:15
@MarkGarcia I don't believe you
unless it was an IE-specific bug
@jalf I included bootstrap first instead of jquery. IE's (developer channel) debugger just then breaked to show the error.
Well, bootstrap caused the break.
@MarkGarcia Let me guess.
A bug that appeared only in IE?
I don't know why TemplateRex has been adding to a lot of questions..
@PolymorphicPotato See above. Still, I haven't really encountered an IE bug (except for lack of CSS features) these days.
07:33
> [...] the U.S. Army is making progress adapting food-printing technology for use by troops on deployment. Research teams at several Army installations, most notably the Natick Soldier Research, Development, and Engineering Center (NSRDEC) in Massachusetts, are working to develop 3D food printers that are customized for the rigors of areas of military operation.
if we can print big macs, I'm all for this
07:44
I am reading Notes on Programming by Alexander Stepanov.
Lecture 9: Function objects says:
It says that if you write pastebin.com/N6W6aPXN less_abs_fun(..) cannot be inlined because sort is a template which will be instantiated for the function type and then get a pointer to the function.
tell it to stepanov
However if I profile it in VS 2012 I do not see the function less_abs_fun(..)
The notes are from 2007, so question is are there new rules for inlining in C++11?
ask it on stack overflow
Maybe I should
C++ has no notion of inlining.
07:49
Yes but there are cases where the compiler can inline and where it cannot.
not really.
the Standard has no notion of inlining.
@Nils Okay but don’t look for them in the Standard.
ok
Ah wait..
Early in the morning my bad I guess
Now I can see it
> World of Warcraft subscriptions continue to decline, with a nearly 50% drop since 2010.
almost as if games don't last forever
Bah
I used to play War Craft 2
and War Craft
07:52
the only reason WoW is still alive is because it had such a huge subscriber base to begin with.
they charge so much money to play it's amazing anyone still does
@Nils Warcraft*
@Puppy yeah I kinda agree with this
I'm also surprised buying each new expansion doesn't get you a month of playtime
I used to play up to Cataclysm but if I wanted to play again and also wanted MoP
I'd have to pay for MoP (~$20) + the monthly fee
Cool and if you use a helper struct it gets inlined.
@AlexM. Plus, good luck actually trying any of the gameplay in the "trial".

« first day (1390 days earlier)      last day (3784 days later) »