« first day (1058 days earlier)      last day (3907 days later) » 

3:00 PM
No.
 
So now I've implemented take_while proper and I get the same bug, heh. (Which does mean that I pass the other unit test mind you.)
 
Xeo
what exactly is the bug anyways?
 
Yes, I can downvote you.
 
take_while([](int i) { return i != 4 }, { 1, 2, 3, 4, -1 }) == { 1, 2, 3 } but take_while([](int i) { return i != -1 }, { 1, 2, 3, 4, -1 }) == {}.
 
Stop that.
 
3:04 PM
I suppose that makes it fairly obvious there's a bug in frontback_cache.
 
Xeo
@LucDanton Okay, that's weird.
@LucDanton Whatever that might be
 
@DeadMG you didn't read my question yet?
 
Mmh could be the bidi details of take_while though.
 
Xeo
He has you on ignore, so don't even bother.
 
He's ignoring you, stop shitting up the room with this crap.
And :frogout:
 
3:05 PM
What is going on
 
user1804599
Porn.
 
Daily dose of idiots.
 
This isn't the mindless chatter i remember
 
Hey guys
 
user1804599
 
3:06 PM
@ÓlafurWaage Help vampires.
 
Xeo
room topic changed to Lounge<C++>: Your question is bad and you should feel bad. [c++] [c++11] [c++-faq] [no-questions]
 
You know
 
It looks like Lounge animals are popular in ads
 
woof woof
 
3:07 PM
 
What?
 
That's some subway ad
 
@TIBOU Yes please. Give address
 
Words are difficult.
Better communicate with single letters.
It'll be almost like POSIX.
 
ORLY?
 
user1804599
3:10 PM
Do you have anything against homosexuals?
 
user1804599
Moe je klappe hebbe?
 
@not-rightfold they are gay
@not-rightfold applaus? graag!
 
user1804599
gay |geɪ| adjective (gayer, gayest) light-hearted and carefree: Nan had a gay disposition and a very pretty face.
 
user1804599
@StackedCrooked lol
 
@StackedCrooked Now you're just making noises.
 
3:12 PM
Room operator is too carefree let's complain on meta
 
@CatPlusPlus ok dog plus plus
 
Xeo
> return *(new
...
 
You know, we should've used that for flagging.
 
I think the reason behind the very short names was the fact that things like 10-Megabyte storage were big when C was created, and a 10000 line codebase should be about 400KB. Either that or they thought the functions should be short because they're used too often. Frankly, I have no idea, but Jerry may know :3
 
Hindsight.
 
3:13 PM
Are… the flags here are actually valid for once? Cool!
 
Xeo
what flags?
 
@minitech Greetings.
 
Our flags are always valid.
It's only when idiots from other rooms come here they're not.
:v
I need food.
Choice overload.
 
Xeo
return *(new -- NONONONONONONDONTWHYNOSTOP. — Xeo 8 secs ago
 
@CatPlusPlus Between pasta and rice?
 
3:14 PM
No.
 
Xeo
@CatPlusPlus Same, but my fridge is empty again
 
@Xeo Where do people get this crap :(
 
@R.MartinhoFernandes For free in a course, once.
 
Okay, so Ross is TIBOU, got it
 
So sad we can't take out one source and fix it.
 
3:17 PM
@R.MartinhoFernandes I figure somebody, somewhere found some code from the IOCCC, and took it seriously, so to speak. Since then, they've been teaching that as how to write C, and (more recently) C++.
 
Flags here are like horns in cars - sometimes some people just want to use it
 
Well, the flags were actually super-helpful. Thanks, lounge.
 
Xeo
@minitech Am I allowed to laugh?
 
@Xeo Yes
 
Xeo
3:19 PM
ahahahaha
 
you mean, like car horns are not useful?
 
@Xeo Haha I get it. Fairly sure the implementation via edged predicates was correct (modulo infinite ranges etc) -- except that for a bidi range, filter is also bidi so it would start looking from the end. Hence why putting an element to be filtered out right at the end would end the range prematurely when it came to take_while.
 
Xeo
@LucDanton oh wow
@LucDanton So the actual problem was that the predicate was stateful?
 
That pesky state.
 
Yes and no. Edge detection, which is sequential logic, is stateful. OTOH twisting filter with a 'predicate' that isn't one was sort of sowing my own undoing.
 
Xeo
3:24 PM
mh
 
Cool, I think I've made up for that previous attempt by adding more tricks.
I do current.assign_front(r, pred) except that pred resets what is being assigned sometimes. Mwahaha!
 
Xeo
...
That sounds evil
 
I checked for 3s and it's cool and the tests pass. This setup saves me a whole bool.
 
If minecraft was made in c++ : youtube.com/…
 
Then what?
 
3:30 PM
@LucDanton I seem to remember you were the first one to ever mention protect with boost::bind to me, do you have any insight here:
0
A: Post callbacks to a task queue using boost::bind

seheI have no answer. However, I've played with this for over an hour: boost::bind boost::apply<> boost::protect Maybe, just maybe, a more experienced boost developer could take it from here: void subscribe2(SomeCallback cb) { using boost::bind; using boost::protect; using boost::app...

 
I am hungry but I can't eat - going to bed soon
 
Cookie Clicker got updated again lol.
 
@DavidKron Yes, I've seen that. I still have no idea what follows "then".
 
@Borgleader lol, got 98.53% on my 5th submission. Should I invest the time to get those last 1.47%? ;)
 
3:33 PM
If Minecraft was made in C++ then it would... have... YouTube videos?
I don't think it's possible for Minecraft to have more YouTube videos, sorry.
 
I think he is suggesting that it looks better.
 
@sehe Tbh Boost.Phoenix doesn't mention any equivalent of protect in its documentation. That's also how I deal with it.
 
user1804599
It wouldn't change anything; glowstone would still be as fugly.
 
@FredOverflow Right, because C++ is the factor here.
If your argument is "Minecraft is looking worse because it's not made in C++" then great logic. Have a cookie.
 
@LucDanton lol
 
3:36 PM
@CatPlusPlus You're such a dumbas! Can't you see the C++ in the video? I totally can!
 
I'm a runas.
 
> You are retarded.
Top comment on the video.
 
It's a reply to dumb Minecraft fanboy, so it's not inaccurate.
 
It is weird - have not seen mods sitting in the background of this lounge for ages
 
For some values of "ages". Like "a week or so".
 
3:42 PM
are we too obedient lately?
 
Though poorly expressed (and probably overstated), I think there is the germ of a reasonable idea there. Java does actually make some things sufficiently difficult that large systems built using it are (from what I've seen) almost always inferior. Some of this is the often-cited problems with execution speed, but much more of it is problems with the language and library themselves.
 
google is a java fan
 
Nah. This is GPU work.
 
@CatPlusPlus The shading and such are, yes. That's hardly the sole difference though.
 
This is so sad - I am ready to upload this latest app update after all the testings. I did the last bit - removing all the debugging statements, now one of the new functionalities stopped working! Sadness, total sadness!!!
 
3:47 PM
Erm.
 
SAM
Hi guys!
 
Xeo
Ohey, I got a reply from the derpstorm. It's in Japanese, but it's a reply.
 
Still avoiding the question.
 
It workses.
 
@Telkitty猫咪咪 Fix it!
 
3:51 PM
am trying
 
Well, there's still something interesting happening when flattening the result of intersperse.
@Xeo After a bit of thinking I don't need frontback_cache for that kind of thing. So I simplified all that stuff.
 
I could also ... rollback
diff
 
You could also not have silly things like "removing all the debugging statements" in your deployment process.
 
You could disable them with a compile-time switch.
 
SAM
3:57 PM
EEEHHHOOO!!!! Joined an Assembly class !!
Gonna learn how to convert C code into Intel Assembly without compiler.
And then C++ to Assembly!!!
Excited!!!!!!
 
Xeo
Tch, he's dodging the question.
 
@Xeo Told ya.
 
Why would you want to convert C++ to assembly?
 
Xeo
@MohammadAliBaydoun Because that's what compilers typically do.
 
What's exciting about something so fucking tedious?
 
SAM
3:59 PM
@MohammadAliBaydoun To have more knowledge about internals
 
Xeo
> 18:00 - The Phantom Derpstorm is now Away.
Tché
 
Phantom Derpstorm, what a fitting name.
 
SAM
Who's that?
 
She's my mother.
 
damn
I forgot how annoying ubuntu is
 
Xeo
4:05 PM
Don't use Ubuntu
 
not much other choice
stupid firefox can't even download files properly
 
SAM
@Xeo Me too use Ubuntu.... Then which distro would you suggest? for general Programming/Learning please tell me
 
Xeo
I use Debian for playing around, but you'll need to pull a lot of stuff from testing / compile it yourself, I think.
 
@DeadMG What happens?
 
Stuff.
 
SAM
4:11 PM
@Xeo Ya... that's what. I'm Ok with apt-get on ubuntu or yum on fedora... So I'll have to learn bin-utils and all that stuff to compile and install softwares on Debian write?
 
apt-get & others are a Debianism.
 
@R.MartinhoFernandes It causes @DeadMG to be non-responsive.
@SAM Ubuntu is based on Debian. The main difference between the two iirc is that Debian has a more conservative release strategy.
 
Ubuntu hasn't been Debian for a long time now.
 
SAM
@StackedCrooked ok ok
 
Xeo
Welp, guess that's as far as I'll push on the derpstorm matter.
 
4:17 PM
It's not nice to just leave without saying anything.
 
That's wude.
 
At last make up a fake reason if you don't want to give the real one.
 
Xeo
> 18:14 - The Phantom Derpstorm: Well, if you're wondering if anything shady is going on, then you don't really have to worry. Everything is fine.
18:14 - The Phantom Derpstorm: I just left. I didn't expect anyone to actually worry about it, to be honest.
18:14 - The Phantom Derpstorm: But, I do have to go. Have fun with whatever you're going to do!
 
ooooo I think I made a lot of subranges saveable which they shouldn't be.
 
@R.MartinhoFernandes The download terminates in the middle, or the result is corrupt.
I tried to download Steam like, ten times.
of course, the Ubuntu software installer shit crashes if the file isn't pristine
 
4:19 PM
@Xeo Wow, where is that?
 
Xeo
Steam
 
@TonyTheLion Steam, most likely.
 
ah cool
I haven't got steam running, I don't think. I never use it
 
the simple fact is
 
@TonyTheLion You should think.
 
4:20 PM
with my current download rate of 30kb/s at best
I just don't have time for failed downloads.
 
Xeo
You don't have time for Steam with that bandwidth either.
 
it was only like, 2MB
 
30KB/s how come?
 
@StackedCrooked Welcome to the swamp.
 
what is the swamp?
 
4:21 PM
where I live
 
SAM
@DeadMG I too have so low speed :(
 
Basement taken to the next level.
 
did you move to somewhere else?
 
no
it's often this bad here.
besides
 
user image
4
:)))
 
4:23 PM
as per usual, I ate a meal and repeatedly nearly threw it up, which is rapidly becoming my overriding concern
 
@DeadMG it almost seems like you are dying
If this happens every day.
 
@StackedCrooked The thought crosses my mind often.
 
When can you go with that surgery?
 
well I can only see the doc on Wednesday morning
and God knows how long the beaurocracy will take to schedule it, or if he will even recommend it
and frankly, I don't have great faith in said surgery to actually resolve the problem.
 
Well, it probably won't get better by itself.
 
4:25 PM
yeah, I think I waited that one out for sure.
 
Xeo
4:37 PM
So, I got something to eat, I did the laundry ... what to do now
 
Gaaaaaaaaaaaames
 
relax and write some templates
:P
 
Alternatively work on the chat, you lazy bastard.
 
oh yea
 
Actually I shall write some code.
 
4:38 PM
I hope you write a good code.
 
I need to make a github account
 
Yes, you do.
@StackedCrooked Always.
 
@FredOverflow I didn't get very far. I'm doing that now.
 
70% chance of ponies.
 
4:41 PM
nope
 
ah, I shoulda known before clicking the link that it would have a mostly naked girl in it
 
At least her shins are covered.
 
Disappointed by the 'mostly' part then?
 
user1804599
Hmm.
 
4:47 PM
@Borgleader Implementing the Fast version is a bit harder than I thought.
 
user1804599
I don't like the idea of having the lexer have access to the symbol table. :/
 
Implement combined parser/lexer. Problem solved.
:v
 
@FredOverflow Well they did say some of the requirements for full marks were "tricky" to implement
 
SAM
tata guys!
 
Does anyone know if its possible to break on unit tests?
 
user1804599
5:00 PM
@CatPlusPlus No.
 
@DavidKron explain
 
user1804599
The point is that a lexer can't insert a symbol because it doesn't know the context.
 
@Xeo Say, do C++14 captures mean that there will be a reference_wrapper, a value_wrapper, and a perfect_wrapper?
 
user1804599
If it encounters an identifier, it can't know if that is part of a new variable declaration or of a reference to an existing variable.
 
Xeo
@LucDanton I don't think the former two are really needed?
 
5:01 PM
@not-rightfold Why would a lexer need to know that?
 
Well there's the Standard one which is still used for some things. value_wrapper I don't remember. I'm using decay(e) more and more, although tbh it's not the same.
 
so I've made a github account ( same name as my SO account), how do I add myself to Lounge<Chat>?
 
you don't
one of the administrators of Lounge<Chat>, probably Cat, adds you
 
ah, @CatPlusPlus can you add me?
 
Added.
 
5:18 PM
Is there anything you'd want me to work on?
 
Dunno. I really need to get the basic stuff out of the way.
Zoidberg is working on the client, that might be easier to work on right now.
 
hmmm
what the hell language did he write it in?
 
TypeScript.
 
If I'm going to work on the same thing, I should probably coordinate with him
 
@not-rightfold
 
5:28 PM
damn
why are there no satisfying games about?
 
A Valley Without Wind is pretty fun.
 
You can make one and change that.
 
nah, I have Wide.
I'm not gonna do a rightfold and keep changing projects
 
True.
What is the last thing you added?
 
i refactored the AST and stuff so that you can add/remove parts of it without having to rebuild the entire thing from scratch.
besides, considering how sick I've been recently, it's a miracle I make any changes at all
 
5:33 PM
How long did it take to build before the refactor?
 
maybe a couple minutes
but my SSD is dead so it's hard for me to really give an honest comparison
why?
 
Never made something big enough that I worried about compile times.
 
eh
it's irritating more than something I need to worry about
it probably wouldn't be a big deal if I had an SSD.
 
I was told my 6 year old laptop probably doesn't contain one.
 
er, I'd be fuckin gobsmacked if it did
 
5:36 PM
I just learned a new word.
 
what?
 
gobsmacked.
 
Ell
Mehh I don't know how networking in games work o.O
 
er, "networking in games"?
kinda like saying "I don't know how mathematics works"
you might wanna be more specific.
 
Ell
like, multiplayer games
over the internet
 
5:39 PM
......
 
user1804599
No shit Sherlock.
 
Ell
well. The problem is how it's integrated into the game loop
 
basicly its just someone that keeps all the state and the clients send him what they want to do, he updates the state and sends the updated state to all clients
 
using what networking model, to achieve what goals, with what target bandwidth and latency?
 
Ell
or, when are packets sent/received
 
user1804599
5:39 PM
I think you don't have an idea of what you don't have an idea of.
 
to send what scale of data?
 
Ell
@not-rightfold I think this too
Well. Let's say it's an RTS
I just don't understand how all the clients can keep their game state synchronised
 
RTS's have a simulation layer and a presentation layer
 
user1804599
@CatPlusPlus To know whether it should insert a symbol into the symbol table or not. :V
 
boost/variant/detail/initializer.hpp(105): warning C4503: 'boost::multi_index::detail::obj_scope_guard_impl2<boost::signals2::detail::auto_‌​buffer<...*,unsigned __int64>' : decorated name length exceeded, name was truncated
 
5:40 PM
simulation layer runs slower than the presentation layer
 
well, input from the network is really no different to input from the user.
 
and for an RTS they need to have the exact same information at all times
 
you get input from the network, you alter the simulation, rinse, repeat.
 
I can't seem to silence this warning >_>
 
@melak47 1. Don't use MSVC.
 
5:41 PM
@CatPlusPlus #pragma cat(disable: 1)
 
@Borgleader I got 100% now :)
 
Ell
Is it necessary to have a different thread doing the receiving of data?
 
Also congrats on having a decorated name longer than 4kB.
 
Necessary? No. Useful, sure.
also this is part 1 of a 3 part blog about the development of wacraft 1
 
@Ell You have an event loop. Integrating async networking into that is not very hard.
 
5:43 PM
goes into networking details at a point
 
@CatPlusPlus thanks. here it is in full glory >_>
user image
5
 
Xeo
@melak47 fun stuff
 
Xeo
non-variadic variadic templates, yay
 
I guess the boost guys weren't prepared for msvc to support variadics?
 
5:47 PM
@melak47 There are no non-prerelease versions that do
 
@FredOverflow I want to be able to debug the tests i do from unit tests, by stepping through with the debugger
 
Ell
Meh I think I know how I could do it
 
@DavidKron Debugging tests... wow, I have never thought about that. Maybe your tests are too complicated?
 
@FredOverflow Well, not the testing code per say, but the code it executes.
 
@DeadMG my point exactly. for some of the other MSVC workarounds, they only applied them to supported versions. If they just used the default variadic version on MSVC > 11.0, it might work :D
 
5:52 PM
@melak47 It's not an MSVC workaround, it's a C++03 workaround.
 
@DavidKron better write tests to test your tests, so you can tests your tests while you test your code? :)
 
@melak47 I would roughly estimate that name to 2k in length, not 4k.
 
@StackedCrooked UCS-2.
 
@StackedCrooked Decorated.
 
5:53 PM
@melak47 As i said, i dont want to debug the tests per say, but the code it test. I simply want to step trough my regular code when i test it.
 
@DavidKron why can't you?
 
> Having never written C++, but having read a C++ book which gives code examples in Courier, I was surprised to learn that, in fact, it was not std::end1, but std::endl. source
5
 
user1804599
I'm going to write my compiler in TypeScript.
 
@FredOverflow lol
 
damn.
 
5:55 PM
@melak47 Thats what i wanted to hear, so it should be possible then.
 
I'm re-watching Kick-Ass 2, and every time, I'm just so unsure as to whether or not you're supposed to sexualize Hit-Girl.
 
@StackedCrooked has cppreference going public with the embedded coliru runnable examples bogged coliru down, or why is it so slow? :)
@DavidKron can't you just set a few breakpoints and run your tests in debug mode?
 
@melak47 I'm getting too many compilation requests.
I got a warning from my VPS provider about my VPS instance affecting other instances on the same host.
 
@melak47 I dont think they run with a debugger, they instantly execute and lists exceptions in "test explorer", darn visual studio
 
Xeo
@StackedCrooked ow
 
5:58 PM
So for now I added a sleep of 3 seconds per compilation requests. Temporary fix to avoid consuming to much CPU.
Sorry bout that.
 
@DavidKron have you tried Test->Debug->Debug all tests?
 
Xeo
Maybe you should ask the cppreference guys to host their instance of coliru?
 
@StackedCrooked :v
@StackedCrooked Your VPS provider is shit.
 

« first day (1058 days earlier)      last day (3907 days later) »