« first day (2019 days earlier)      last day (2941 days later) » 

10:22 PM
@sehe Well, that really depends on exactly what the content of the lecture was, since I imagine that a man lecturing a room full of women on the, for example, cellular biology involved is totally legit
 
Everything depends. That's the whole point. And the tweet didn't reflect any of that.
@nwp Report it and watch the bug tracker burn
 
nwp
didn't really want my email address to be there -.-
 
@Zoidberg A large part of the argument in favor of was to give us a quick place to find dupes. Unfortunately, I think it's largely failed in that regard. Too many of the FAQ questions are excessively broad, so answers are long, and they're barely a step short of just answering with "RTFM".
 
Which is still nice to have :)
I have taken to linking to the C++FaqLite now that it's hosted on isocpp
It's a good target for things like static initialization order fiasco, pointer-to-member function explanations etc.
 
Hey guys! I'm trying to change the c++ avro library(it's a serialization library) for an added functionality. Right now, the only way in c++ avro to get the blob is to read it to disk and then read it back out from that disk.
 
10:31 PM
Good luck
 
What are your suggestions on trying to remove the middle-man of the reading-from-disk? Intercept the stream and have an auto_ptr to read from there?
Thank you :)
 
@sehe It's better than nothing, but I'd rather have a lot more questions that are a lot more focused on specifics, so if you close something as a dupe of it, the OP really will be able to find their answer quickly, and it'll be clear that it really does answer their question, instead of "why doesn't my code work" getting answered with a general lecture on (say) const-correctness, that really does apply, but you already have to know the subject to understand how/why.
 
user1804599
auto_ptr is deprecated
 
@OneRaynyDay If auto_ptr is the answer, you're probably asking the wrong question. In this case it's not though. The obvious C++ answer would be for avro to talk to an iostream, and then use a stringstream.
 
In fairness, that's a very good value; If only SO can be the service that knows how to translate "WTF what is bugging me here" into "See MVP"/"See SFINAE"/"See iterator invalidation"/"Linker error" etc. that would be an awesome push for self-learners
 
10:34 PM
@JerryCoffin Ah I see. And then just use a vector to dump out the contents of the stringstream to encode the info w/ given schema? I really appreciate the help btw, it's my first time trying something like this
 
@OneRaynyDay You usually don't need to dump it to a vector--your_stringstream.str() gives you the content as a std::string.
 
user1804599
@sehe SIOF is a feature
 
user1804599
Keeps morons from introducing globals.
 
I agree. It's still a fiasco in some ways. And it's a name that's easy to remember.
 
@sehe No argument from me there--in fact, that's a fair amount of what we actually end up doing now (well, I do anyway--I know you tend to concentrate on deeper answers).
 
Ah, thanks!
 
user1804599
sehe so sbi
 
@sehe @Zoidberg's right: you're starting to act grumpy! :-)
 
This is absolutely ludicrous
The concept of global warming was created by and for the Chinese in order to make U.S. manufacturing non-competitive.
I mean, is he serious
 
user1804599
Global warming is a natural phenomenon that is older than mankind.
 
user1804599
10:42 PM
It has happened and will happen many times.
 
When we refer to global warming, we mean the small yet significant change that humans have done in order to break the natural balance.
 
user1804599
Like with racism we refer to islam criticism. I'm not going that route. Words mean what they mean.
 
I'm dog tired, I guess I should be chasing @CatPlusPlus
 
user1804599
Tinder is buggy
 
user1804599
Phantom notifications, infinite loops heating up device, crashes, etc.
 
11:07 PM
@Zoidberg or... it's a feature! : ^ )
 
@OneRaynyDay Obligatory.
 
LOL, emacs users trying to find new ways to stop the emacs pinky disability
 
@Columbo Hah. If anything, it's precisely the other way around
 
11:27 PM
@JerryCoffin Hey Jerry, I was wondering whether to use stringstream, or a variation of memorystream? Not sure whether the latter exists in c++ or if I have to use boost or something
My objective is to get the contents in the bytestream as a blob in memory and return it to the user
 
@OneRaynyDay stringstream is what's standard. I'd tend to start with that. Sometime later if profile and find it's a problem, you can replace it with something simpler to reduce overhead.
 
Gotcha, thanks :) I'm actually not too familiar with streams in general, so thanks for the pointer!
 
Do any of you know a JSON library that lets you inject a string that you know is valid JSON into a JSON object without reparsing it?
RapidJSON doesn't let you do it.
I like the look of nlohmann's library but I don't think he lets you do it either.
Basically I want an escape hatch like what robot described in this post: rmf.io/unicode/cxx11/towards-nice-apis
 
user406009
11:50 PM
@caps Seems like it would be hard to do that in a sane way.
 
user406009
I know people have created "formats" like jsonlines.org to deal with this issue.
 
@Lalaland I got some JSON stringified from the library when I parsed it. Now I've stored that string immutably and I want to re-inject it into a JSON object from the library. It seems a little asinine to me that most libraries don't appear to offer any means of doing that.
 
@sehe No, I reckon he's that far out
 
? How's that a "No"
 
user406009
@Columbo Lol.
 
user406009
11:56 PM
15% odds of winning the presidency by most betting markets.
 
user406009
Exciting times.
 
@sehe You said he's kidding(?), I'm saying he is not
"far out" <=> "crazy"
 
I didn't say. I said, if anything, it's the other way around. (How was that confusing)
 
user406009
@caps The reason why I think it would be hard to do is now your AST for the json will have both normal nodes and raw strings.
 
@sehe Meaning what?
 
user406009
11:57 PM
Which is sorta interesting in that I guess you could try to do "lazy" parsing in certain cases.
 
user406009
Maybe.
 
@Lalaland I'm not sure that RapidJSON, for instance, keeps an AST.
But maybe it does.
 
@Columbo If anything, it's China that is at a disadvantage developing their economy, since they have to think of environmental factors that Europe + US have largely ignored during their development phases. "It's those Western countries trying to restrict growth in Asia"
 
@Lalaland That's what I'd like to see.
 

« first day (2019 days earlier)      last day (2941 days later) »