« first day (1638 days earlier)      last day (3328 days later) » 

@райтфолд what would you use then?
 
user1804599
@thecoshman TeamCity.
 
@ThePhD so does awesomeium, according to the webpage :)
 
@Cinch Now get rid of char-by-char += and add error recovery
 
user3010322
@melak47 But it doesn't expect me to pay MONEY if I make some revenue.
 
9:01 PM
@CatPlusPlus error recovery?
 
Awesomium has probably better .NET bindings, because they're done by the same people, but
 
@ThePhD just saying
 
Docs are shit
 
I haven't used either
 
@райтфолд any particular reasons?
 
9:02 PM
And it doesn't manage windows at all
 
@ThePhD Oh no not paying
That said Awesomium is not worth money
 
@Cinch std::stof
 
@milleniumbug ah.
 
user3010322
@CatPlusPlus It's not worth paying for if there's an equally valid free alternative.
 
9:04 PM
It's about amount of integration pain
 
@CatPlusPlus but it's only $2900 per application!
 
personally I'd use CEF because CEF seems like it's a proper browser effectively
whereas Awesomium is like, did anybody ever use this?
 
Chromium is a proper browser
The underlying thing is the same, maybe different versions
You won't get a Chromium browser window out of either
@Puppy It's used by some games
 
user1804599
boxxy
 
so are my farts
 
9:06 PM
Guild Wars 2 used it, but then they replaced it with Coherent, which is supposedly better
Overgrowth still uses it
 
@Cinch Also std::string::substr
 
it's really annoying when the "browser" UI in a game crashes :v
 
If anything it's CEF that's barely used by anyone
Mostly because the alternatives are less pain to integrate
 
@milleniumbug bah.
 
atom-shell ditched intermediates like CEF altogether and just goes with Content Module which is what I'm exploring atm
 
9:09 PM
Cat can you review a classname for me?
 
It's fine
 
yesterday, by Johan Larsson
XXX.Client.ServerClient.XXXServerClientBase
^ found it in our code, not a sick joke
 
@CatPlusPlus Awesomium is based on Chromium?
 
should be Client.ServerClient.ClientServerBase for best effect :p
 
@Puppy Yes
 
9:10 PM
@Cinch Also, you ate the first letter of the Cat
 
-2
Q: vector<string> - std::sort don't work

npravdinI want to sort my vector words. But I can't do this. My code: int _tmain(int argc, _TCHAR* argv[]) { string sentence; std::getline(cin, sentence); istringstream iss(sentence); copy(istream_iterator<string>(iss), istream_iterator<string>(), ostream_iterator<string>...

gth
 
@CatPlusPlus That I did not know. I thought they re-implemented the stack.
 
That's pointless
All of those packages are Chromium
 
hence my feelings about whether or not it was actually ready for any use, ever.
 
Everything is Chromium nowadays
Except Firefox
Who knows what new IE will do
 
user1804599
9:11 PM
Firefox will be Chromium once they discover Servo is a massive failure.
 
is there any noticeable difference between new browsers?
 
user3010322
Servo ?
 
user1804599
@JohanLarsson Only if you count IE as a new browser.
 
Implementing HTML and CSS renderer is a shitload of work
 
user3010322
@JohanLarsson Yes: they have a hard time rendering old pages.
 
user1804599
9:12 PM
In that case, they're all equally bad, except IE which is even worse.
 
@райтфолд what is it now IE11? I think it is fine.
 
user1804599
In the other case, they're all equally bad.
 
@JohanLarsson next up is "Spartan"
 
IE is as crappy as it ever was
Just less offensively now
 
9:13 PM
Spartan's gonna sweep the floor from all those browsers :P
 
MS is obsessed with Halo
 
Also, Google is bad, don't get Chrome
 
@milleniumbug so far I'm not impressed. can't drag tab out of window to make new window 0/10
 
@LightningRacisinObrit Well it does get them a ton of money
 
:P :P
 
9:14 PM
I think I've seen only one semi-active HTML implementation for embedded UIs that wasn't Chromium-based
 
@melak47 I was hoping for a cat gem.
 
I thought that Steam's browser was based on IE?
 
@Puppy that explains so much..
 
At first, probably
Now it's WebKit at least, and probably just Chromium
It's CEF
 
Is there any way to use a macro to inject code at compile time into a file? Like say I wanted to add the current date to a source file. I have a small util called "getdate" that stdouts a date string...I want to run that util and add its output to my source files right before compilation.
 
9:16 PM
javascript is worse than any browser I have tried.
 
@Pris Just generate it
 
@CatPlusPlus Yeah I see libcef.dll there now
 
Also no cplusplus macros cannot do I/O
@Puppy The process hierarchy gives it away too
It's fairly easy to spot embedded Chromium
 
@CatPlusPlus I've not seen multi-process from Steam
 
9:18 PM
Also erase is not remove
 
@Puppy doubt it, it runs on linux too
 
@CatPlusPlus I know
 
@thecoshman now
 
It has steamwebhelper
 
ah I see them now
 
9:20 PM
And the arguments are Chromiumy and it has -cefhost which is what CEF does
 
@CatPlusPlus All I can think of is copying the source files somewhere else before compilation, then creating a util to parse each file and replace all the macros with whatever I want before compiling. Is that what you mean by generate?
 
@Pris Ugh no just generate it why the fuck would you copy anything anywhere
 
@CatPlusPlus how is atom-shell? is it possible to not end up with such...HTML looking stuff?
 
@CatPlusPlus I don't get what you mean by generate
 
@Pris Just pass the command-line arguments to define a macro value with the current build date. Or you can use __DATE__, I think i tis.
 
9:22 PM
Generate
Bring into existence
Flush onto a disk
 
Error checking with exceptions and output
 
@Puppy The date thing was just an example, I want to generate something where I don't think the preprocessor can do it on its own
 
Every build system worth anything has a notion of generated sources
You don't need to touch original files
Adding a date to every file is pointless if they end up in the same thing
 
@CatPlusPlus Alright... searching for 'qmake generate sources' seems to be getting me somewhere
 
Besides if you reallly want to, then run your own preprocessor over the files and then compile that
QMake is shit
 
9:25 PM
Everything is shit. Its c++, there isn't any build system that isn't shit. But qmake is familiar shit. Familiar shit is better than shit I don't know
 
Ninja or bust
 
@Borgleader Anyway speaking of
 
or fastbuild if youre on windows (although linux support is in alpha atm)
 
user3010322
@Borgleader Fastbuild?
 
user3010322
RIP formatting.
 
I don't know what it is but it's not Ninja, so bust
 
user3010322
@Borgleader What's it using under the hood? It's own syntax?
 
> Library
Domain specific, most likely bad
 
Baked compiler definitions, definitely bad
 
user3010322
9:29 PM
Dat config file.
 
@ThePhD Well ninja has .ninja files, Fastbuild has .bff
 
looks like a newer Incredibuild
 
Buhm...
 
its the same concept really (afaict)
 
Is it faster than Ninja?
 
9:30 PM
It's not the same concept
The syntax is not important
 
Hello. Does someone know what happens if an object handled in a thread gets destroyed on the main thread ?? is there a way to stop the thread if the object is deleted ?
 
@CatPlusPlus how is it not the same concept?
 
no
 
Because it has baked-in knowledge about languages and shit
Ninja is minimal build engine that takes a bunch of commands, dependency info and executes the result
That way the baked-in nonsense doesn't get in your way if you want to do something the people working on that crap didn't think of
 
hm
interestijng
But Ninja is pretty much make++ or am I wrong?
 
9:33 PM
why is thecoshman in charge of Unconference 2.0 if he's not even going?
 
Xeo
wat
 
Like this doesn't belong in a build system, it belongs in a separate tool if anything fastbuild.org/docs/functions/unity.html
 
besides, he'd probably turn up in Lenton instead of London :P
 
Also the DSL is shit
 
Xeo
@LightningRacisinObrit That... seems oddly probable
 
It's geared towards VC++ compiler
Ugh
0/10 don't use
 
@user3134405 Bad stuff. Don't do it.
 
@user3134405 madness lies that way sir
ensure that the object doesn't get destroyed on the main thread while it's still being used in a worker thread
 
Also I didn't realize std::string.substr was a tokenizer
 
9:39 PM
It's not
 
It can be
 
it is clearly not a tokenizer.
 
[9778/11807]
 
Sorry, find + substr
 
9:40 PM
The linking step probably needs like 60GB RAM
 
also really not tokenizers at all.
 
ITT "I didn't realise the result of writing a tokenizer is a tokenizer"
 
idk what to use
boost::tokenizer maybe?
 
just roll your own lexer it ain't hard
 
you don't know what to use for what?
 
9:42 PM
I mean for my all-purpose string parsing needs
perhaps I should look into regex
 
all-purpose again?
 
Oh, general-purpose
 
also, lexing/tokenizing and parsing are completely different things.
 
Well but they are related
 
Don't look for solutions to "every problem ever". Ever.
 
9:43 PM
somewhat but not that much.
 
@LightningRacisinObrit But I need a better one than the crap I just wrote
 
@Cinch for what?
 
@Cinch You're making it much too difficult. coliru.stacked-crooked.com/a/a7517161c62352f4
 
I'm running out of tea
horror
 
9:45 PM
@JerryCoffin Like I said I probably don't belong here
 
@JerryCoffin Why 100 and not 80 or whatever other constant?
 
lol 80 width.
 
@milleniumbug Because 100 seemed right at the time. Some people use std::numeric_limits<std::istream::pos_type>::max or something similar, but IMO, that's a poor idea--can waste a of time reading data from a file that's clearly not what you expected.
@Cinch You just need to cultivate your laziness. I also have the advantage of having done problems like this one about a zillion times.
 
@JerryCoffin Well at least that's comforting
 
@melak47 There's a CSS directive to disable text selection
 
user3010322
9:50 PM
13 cards in a deck suit like Clubs, right?
 
user3010322
And 52 cards in a deck 4 suits for each card etc. etc.
 
user3010322
Wait I can just use math to verify: 52 / 4 = 13
 
user3010322
Herpderp, I is retarded.
6
 
hi
 
come on dudes.
it's Lounge tradition.
you can't not star him.
 
9:55 PM
@Rapptz sup
 
do you think of yourself as a dude?
 
user3010322
What
 
user3010322
No, hey, don't star it. D:
 
@ThePhD too late
 
user3010322
Fffff it's been 2 minutes.
 
9:56 PM
I didnt
 
user3010322
@Borgleader Traitor.
 
I'll star it too, since I'm evil.
 
@ThePhD evil laugh
 
Sorry for this silly question but I am stuck
Can I have 2 file streams (input & output) on the same file?
 
10:01 PM
std::fstream does that but it's kinda hard to get right
 
1
Q: Input and output stream

marcwhoIs it safe to open an input stream to a file, while an output stream to the same file is open (but not writing to it) (Single threaded)

basically no not really unless you know what you're doing
just have one stream
 
@LightningRacisinObrit got it thanks a million, (I had 2 of them and they were erasing the file :'( )
 
ffs seriously how come so many programmers don't grok commas in English
 
:\ cloning at around 80k/s
 
supposed to be rigourous thinkers
 
user1804599
10:03 PM
 
this hurts
 
@thecoshman That's what your mother said.
 
Xeo
@LightningRacisinObrit commas be hard
punctuation be hard
 
Ven
> bit, _ := r.ReadBit()
 
@Puppy yes, I think the topic of downloads speeds would confuse her simple mind
 
user1804599
10:05 PM
It was for this answer: stackoverflow.com/a/29583180/1804599
 
user1804599
I'm that bored.
 
> <SpitZ> this sms was sent by a friend of mine
> <SpitZ> Sally mr. pls,2wedding
> <SpitZ> What's that supposed to mean?
> <crazhee> i think it read as "Sally mist'er period. please comma to wedding"
 
@LightningRacisinObrit ESL
 
name one Western language with substantially different comma rules
this isn't an ESL problem
it's a retard problem
 
Ven
"ESL"?
 
10:13 PM
Big aha erlebnis here
 
English as a Sexy Language
 
Ven
ew.
 
Jul 21 '14 at 0:44, by Lightness Races in Orbit
<SpitZ> this sms was sent by a friend of mine
<SpitZ> Sally mr. pls,2wedding
<SpitZ> What's that supposed to mean?
<crazhee> i think it read as "Sally mist'er period. please comma to wedding"
 
If you were using a library, what type would you prefer a generic data buffer (ie sequence of bytes) be given to you as?
 
char ?
 
unsigned char or char.
 
@sehe Had a feeling. Couldn't find it. (cos I searched for coma like a silly person -.-)
 
Yes. The other part of the aha erlebnis was with an answer on the main site. It was eerie.
 
blegh.. I'll worry about getting clang builds on travis another time
 
-2
A: Is everything in C++11 STL user-implementable?

FISOCPPI remember the good times when this was true. Recently ISO C++ went ..well I won't say what and decided that library would be also used to 'extend' the language itself. The dumpiest case of this is with 'typeid' operator which depends on the <typeinfo> library. You can see a core language featur...

 
10:17 PM
man that is one ugly ass set up I've got there :(
 
@Pris Who wants "sequence of bytes"?
 
> dumpiest case
 
WOW
As it stands, this answer is lacking in detail. Not one actual line of code, and the only link points to very basic C++. I hope you understand there's no way I'll award you a bounty for an answer like this. Besides, it's the same you posted before I added a bounty and you haven't expanded it at all (see date). — Agostino 1 min ago
Reverse psychology entitlement much
@Agostino You almost make it sound like I did something wrong :) I hope you're not mad at me for thinking my answer (plus the many samples, some of which are linked to explicitly) should be enough — sehe 41 secs ago
 
@sehe that's almost hilarious
 
@sehe I shall crush him like all the others!
 
10:22 PM
Yeah. I can see the disappointment but OP forgets I wasn't the one asking for the bounty
 
@LightningRacisinObrit, no. It is you — Lol4t0 1 min ago
 
@Nooble No please
 
dis gon be gud
 
@sehe Too late! The ICBM rocketed off a few seconds ago.
 
lolol
@Lol4t0: If you have found a magical way to safely destruct a C++ object while it is being mutated in another thread, do go ahead and show it to us. — Lightning Racis in Obrit 1 min ago
@LightningRacisinObrit, ok. If you want. I'll write as an answer — Lol4t0 35 secs ago
 
user1804599
10:24 PM
@sehe he's just butthurt he lost 50 rep.
 
> Moscow, Russia
 
ahaha
ahahahahaha
 
@LightningRacisinObrit Don't forget, in the nature of Undefined Behaviour this means Lol4t0 will post the answer, steeped in UB, and we will never see it in our reality because this is what can happen with UB.
 
user1804599
@LightningRacisinObrit You can safely destruct an object that is being mutated in another thread, as long as the destructor uses proper synchronisation.
 
Yes, yes, that is true
 
user1804599
10:25 PM
I need new music to listen to.
 
@sehe haha
@райтфолд then that's not destructing it. that's blocking waiting for destruction to be safe, then destructing it.
 
user1804599
You can also partially destruct it.
 
That is something different.
 
user3010322
@Pris unsigned char PLEASE use unsigned char.
 
@райтфолд wolf
 
user1804599
10:28 PM
So is your mother.
 
user1804599
@JohanLarsson Not my kind of Musik.
 
@LightningRacisinObrit why using a mutex in a destructor is not "destruction"? Looks a bit debatable.
 
user1804599
This isn't too bad.
 
@vsoftco What?!?
@vsoftco How is putting a mutex in a destructor going to make safe destroying (remember, this includes deallocating memory for) an object whilst it is being used in another thread. Don't be silly.
 
user1804599
10:30 PM
~T() {
    delete x;
    {
        std::lock_guard<decltype(m)> lock(m);
        delete y;
    }
    delete z;
}
 
user1804599
:D :D :D
 
the fuck
that doesn't provide any safety for this scenario whatsoever
 
user1804599
I wasn't talking about this scenario.
 
user1804599
> If you have found a magical way to safely destruct a C++ object while it is being mutated in another thread, do go ahead and show it to us.
 
Ven
10:31 PM
@райтфолд never lock in a dtor
 
user1804599
It's about this.
 
my bad, was actually thinking about waiting not locking
 
user1804599
@Ven Why not?
 
@райтфолд Terrible.
 
1 min ago, by райтфолд
:D :D :D
 
10:31 PM
LRN2RAIIKTHXBYE
 
Ven
@райтфолд wait, I'll get the clang guy's talk that mentions this. something about vtables.
 
@Griwes He's using RAII!
 
@райтфолд no it's not
 
user1804599
Mutexes have nothing to do with vtables.
 
@райтфолд you did not destruct T while it is being mutated in another thread. You simply deferred its destruction until (hopefully) one particular operation in that mutation had ended.
 
user1804599
10:32 PM
Why hopefully? Maybe a deadlock is the desired behaviour!
 
active object cough pattern cough.
 
user3010322
I was actually bit by a lock in a destructor. An exception threw in my code and the ThreadPool that locks and waits for all the threads to finish before cleaning up got stuck in a deadlock because the main thread was trying to hike it on out of there but the object that had work on the queue was off, spinning away.
 
NEEDS MOAR SHARED_FROM_THIS()
 
user1804599
In Go, a deadlock terminates the program. :L
 
that reminds me, I have a horrid synchronisation problem to fix in a third-party library
and I keep forgetting to do it
my todo list is too long :(
 
10:33 PM
@Ven Vtables have nothing to do with locks
 
Congratulations!
We're not even surprised.
 
Ven
@CatPlusPlus i know what vtables and locks are :p
 
user3010322
I don't know how to do it properly, though.
 
Oh
 
10:33 PM
Then don't parrot nonsense
 
user1804599
omg parrots
 
user1804599
Guns of the Parrots
 
user1804599
@ThePhD You're bad at threads.
 
user1804599
Create one-way dependencies and your problems disappear.
 
user3010322
10:36 PM
@райтфолд I still have to figure out how. :(
 
user1804599
Speaking of which, I have no idea how to decouple the thread pool implementation from fibres.
 
user1804599
The problem has to do with stopping the thread pool.
 
@райтфолд Parrots are inferior to koalas, talk about koalas instead.
 
tell you what tho
> In a looming update to the emoji system (for non-Apple devices), a non-profit organization called the Unicode Consortium that regulates emojis among other computer text, is considering 37 candidates for new emoticons could be added as part of a code update scheduled for June.
fuck that paragraph in particular
 
@райтфолд I think so. Or dissatisfied with his job:

Learning Boost Graph

Apr 4 at 23:11, 1 hour 2 minutes total – 145 messages, 9 users, 0 stars

Bookmarked 35 secs ago by sehe

 
user1804599
10:41 PM
!$ is immensely useful in Z shell.
 
user3010322
YES
 
user3010322
WINDOWS RT IS GOING TO DIE PERMANENTLY. \o/
 
user1804599
What is WINDOWS RT?
 
user3010322
The tablet version of windows that nobody developed for.
 
user1804599
10:42 PM
Is it Microsoft's Kyrostat, except that it's actually dead?
 
user3010322
At all. Ever.
 
It's going to die, so it doesn't matter.
 
user3010322
I hated RT.
 
@райтфолд You make it sound like Lounge Kyrostat isn't dead.
 
user3010322
I had to develop for RT.
 
user3010322
10:43 PM
Seeing it die gives me a deep, unending satisfaction.
 
user1804599
@ThePhD Hello, nobody.
 
Windows RT had all the disadvantages of Android with all the disadvantages of Windows.
 
Bear vs koala, who will win?
 
@chmod711telkitty Not you :P
 
@chmod711telkitty There's a bear?
 
10:45 PM
Polar bear
 
Oh
 
@LightningRacisinObrit I think I'm missing the memetical baggage to decode that :)
 
@sehe I'm waving to my family cos I'm famous
top of the quoted convo
nm
 
I'm thinking if I should post more of my music here
 
10:46 PM
@LightningRacisinObrit Your long awaited answer is here
 
"some_futures_matser" Just to not auto joing — Lol4t0 17 secs ago
wtf
 
Gave that my irony upvote
 
user1804599
I am proud of myself for the knowledge and understanding I have achieved after years of dedication and hard work.
 
lol
what would that be then
 
Question: What would you say if you were a sarcastic young wide-eyed programmer who didn't give a shit and was hacking into Intel?
 
10:52 PM
@Cinch That he should give a shit because it is a felony in most countries.
 
@wilx No, he didn't care because he knew he couldn't get caught
 
@Cinch Hahaha. Good one.
 
@wilx (It's part of the plot, buddy)
What if I add a bit of everyone?
 
@ThePhD Is that like re-branded Windows CE? I could understand the sentiment then.
 
user1804599
I wish you could do Internet-wide broadcasting of packets.
 
10:55 PM
@райтфолд Because it would not lead to DoS of everything pretty much instantly? :)
 
"Google, bub; I've got too much patience to be a Targaryian today, meow pup pup."
 
user1804599
It would make Hello, world! a lot more interesting!
 
@райтфолд :)
 
Anyways, with the input file increased to 80Mio lines, it completes in 1m42s for me. If you want to avoid the temp vector while reading it completes in 1m2s for me, that's with the slightly optimized reading phase: live on Coliru. — sehe Aug 6 '14 at 22:10
Wow the things I do for no rep at all
 
@райтфолд You can use Twitter for that. :)
 
user1804599
10:58 PM
Tunnel UDP over Twitter.
 
Let's see...
Let's do some urban horoscopes today
 
@wilx "if you were a" not "to a"
@Cinch new GoT in just over 24 hours :D
 
@LightningRacisinObrit Ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh‌​hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
:D:D:D:D:D
I forgot!
 

« first day (1638 days earlier)      last day (3328 days later) »