« first day (1650 days earlier)      last day (3313 days later) » 

10:00 PM
@fredoverflow bad article
 
@Rapptz agreed
 
0
A: boost tokenizer but keeping delimiter

seheLet's implement a requote manipulator that allows you to do: #include "requote.hpp> #include <iostream> int main() { std::cout << requote(std::cin); } Now what's in requote.hpp? #include <istream> struct requote { requote(std::istream& is) : _is(is.rdbuf()) {} friend std::ostream&

@Ven I guess that's another one in the category comprehensive
 
10:11 PM
interesting that it's not oneboxed properly.
 
@Puppy It is. I ninja-ed the typo in the include line :)
 
ah i see
 
:D
Damn. Just noticed I'm sloppy in the copy_out. Need to deliver on my promise to not construct temporary strings.
There. Fixed.
@LucDanton WHOA GCC 5.1 has a nice feature: /cc @Griwes
> There is a new command-line argument -freport_bug, which causes "GCC automatically generates a developer-friendly reproducer whenever an internal compiler error is encountered".
 
I cracked my knuckles
 
@sehe Huh, how did I miss that?
 
10:26 PM
Feb 23 at 14:39, by sehe
@LucDanton creduce where creduce is due
 
@sehe hm that's pretty cool
 
@LucDanton I dunno. Me too. I got it from meetingcpp.com/index.php/br/items/…
I guess MeetingC++ is worth following after all then
 
you missed it because they put "Other significant improvements" in the bottom of the page
 
In any case it’s not in the release notes proper though.
 
it's -freport-bug
@LucDanton It is. Bottom of the page.
The last one.
 
10:27 PM
oo
The game has changed!
 
MSVC, beat that :)
 
I wonder how good it is
I don't have any ICEs on hand though
 
They don't present it with much hesitation
@Rapptz Oh, Luc and Robot will have a stack of them, I suppose
 
Microsoft's -freport-bug: printf("WONTFIX");
6
 
I don't have 5.1 on hand either :(
 
10:30 PM
@sehe Not as such, no :(
Only one I had that wasn’t a duplicate was too big, I got rid of it.
 
aw come on that was worth at least one star.
 
that's just not nice
I got my hopes up and everything
 
Let's have sex? Breathe for yes, lick your elbow for no.
@Puppy lol-ed
. @sehetw OH: Microsoft's -freport-bug: printf("WONTFIX"); @loungecpp
And stole-d
@Puppy I like the subtlety of abusing printf there instead of, say, puts
Aw. That's not rendered nice. ^ (sauce)
 
You follow Dan?
 
Nope. Watch the edit ^^
 
10:38 PM
Mmmh wonder what’s up with the laziness and type strictness goals.
 
Who is Dan
 
@LucDanton It's a joke. I'm sure we can find a suitable @Jerry quote for the occasion
 
My name's Danny
 
@Rapptz Mr. Piponi, I guess (context)
 
> (Be aware that some GNU/Linux distributions configure GCC 5 differently so that the default value of the macro is 0 and users must define it to 1 to enable the new ABI.)
 
10:39 PM
@sehe Beyond that.
 
o.O that's ... devious
 
If it’s the system compiler, presumably you want it to play nice with the software at large.
 
Yeah. I guess.
 
lolwut
 
@sehe Except for syntax the features are a mix of things that must-haves and/or have lots of mindshare. I still find it curious to want laziness and type strictness together.
 
10:43 PM
Like I said: I wouldn't give it to much thought :/
 
@Rapptz ... I can't be arsed to troll well... but ... don't you mean Dannie?
 
Dan niet
 
Sure.
 
> After I spoke at BayHac 2014 about free monads I was asked about cofree comonads. So this is intended as a sequel to that talk. Not only am I going to try to explain what cofree comonads are. I'm also going to point out a very close relationship between cofree comonads and free monads.
A lot of it
 
10:46 PM
Upvoted
 
@Rapptz Should have opened with 'bii the way'.
 
On the other hand. I should give biicode a look. Maybe
 
lucpm is the future!
 
@sehe He has great posts somewhere in there.
 
@LucDanton I was eying it. Most is whoosh to me
 
10:49 PM
Key word 'somewhere' :)
 
Tried but didn't give significant hits
 
> You Could Have Invented Monads! (And Maybe You Already Have.)
 
I've seen that one
 
one of the actually helpful monad tutorials ;)
 
Bah. Damn MPEG and non-monotonic DTS.
 
10:58 PM
what
I thought it went roughly like this: mono (1-channel), stereo (2-channel), surround ({2,4,6...}.{0,1}-channel)
9
Q: One of my friend's OR friends' wife? (My friend has only one wife)

Maulik VAnita is Neil's wife. Neil is one of my friends. Now, how do I refer to Anita? Think that I'm telling someone who does not know the couple. One of my friend's wife OR One of my friends' wife I know the structure one of [something] takes a plural but then, here it is about possession ...

Dem titles
 
slowpoke @sehe cool answer although I think (s)he just wants to parse the string to the floating point representations.
 
@Veritas That's certainly not what I was getting from the question. It's possible of course
> "I want to use boost::tokenizer but keep the delimiters with the string"
 
@sehe I was thinking the same at first but I think they just interpret the signs as delimiters.
 
Anyhoops. The OP probably hopes that Hillary Hahn, Gil Shaham, Joshua Bell or Yehudi Menuhin answers the question
 
I mean there are just numbers (some in floating point notation) and dashes which are only supposed to be used as delimiters when not used for the exponent sign (which conveniently puts them in the from of the first string of characters - very suitable for a leading sign). Of course I could be wrong but all cases can be met with a convenient floating point regex.
 
11:12 PM
@Veritas Ah!. Lemme add the (much simpler) answer for that :) stackoverflow.com/a/29835969/85371
> convenient
You're right, I think
Added a useless quip about arbitrary precision/decimal representation :/
 
Hm.
struct test {};
struct other : test {};
I didn't know other would be a POD.
guessing this is a C++11 thing that I missed
 
no pod in c++11 if my memory serves me right.
 
your memory is wrong
 
yep it is. I thought they were referred by a combination of standard layout and trivially copyable
 
It’s trivial everything, but they’re still there.
@Rapptz It’s filed in my mind as 'proof that C++ doesn’t do 0, 1, …, arbitrary for inheritance'.
 
11:24 PM
> For example, we had a minor denial of service bug in Discourse where we allowed people to enter up to 2048 character passwords in the login form, and calculating the hash on that took, uh … several seconds.
Keybase.io had this too. I chose a long password (32 chars, IIRC) and it would take minutes to hash
 
Actual, non-hyperbolic minutes?
 
Non hyperbolic minutes
 
I was looking for a way to remove a virtual destructor and I got curious :v
 
And there was some UI behaviour that aggravated the result. I reported it to Keybase
It could be that I used more than 32 characters, though
 
just checked the latest draft it's ok if there is only one standard-layout base
not sure if that was valid before
 
11:26 PM
The thing is, there’s both POD types and POD structs (POD classes?). I don’t foresee POD going away for the time being. Oh I misread you.
 
Hehe. I no longer remember my keybase.io login passphrase
 
@Veritas Based on our previous discussion I removed the virtual destructor from the code + I made it use std::vector instead of std::map in the ECS thing. I think it's fine for now.
 
in most cases using map is fine tbh unless you are using too many entities.
so it's fine for small games
 
I was planning on changing to vector regardless because of chandler's talk
 
good idea in any case.
 
11:39 PM
Anyway back to thinking of a decent way to do collision detection/resolution systems (not in the ECS sense).
 
it's also surprisingly difficult to make a detection collision system using systems (in the ECS sense) since the entities in most cases are not always processed in a linear manner (although they can be) :p Hence why i think that entity groups are more fundamental than "systems".
Btw systems should be called something like linear_processors or something (I suck at names).
 
oh boy ECS talk
 
no ECS here
I thought about it but I'm not gonna use it
 
Good call
 
right
I smell an intense ECS hate over here
 
11:46 PM
I just spent a couple of hours debugging an issue and I'm having tons of trouble with ECS across threads
Its just ugly man I don't want to deal with this shit
 
I have yet to see a clean implementation tbh so I am with you on this.
 
Real talk, the best organizational structure for me has been a lightweight scenegraph where the nodes are just pointers to your actual data
I maintain an async_graph and a sync_graph, and once a frame (or whenever its required) I just sync them. The render thread traverses sync_graph every frame unless a sync operation is occuring
Super simple, super easy to debug.
The only nasty part of that in my design was some double dispatch trick I don't really remember right now since I wanted specific behavior on both node type and visitor type
 
it's just more intuitive to me I guess. It's also very tricky to get right. I am writing a small library for the past one and half years as a personal project and there are many hard decisions to make.
 
11:50 PM
/cc @LightningRacisinObrit
 
@LucDanton ah. I misremembered; this was for peerio.com I think
 
well there's my thing
 
@Rapptz disgusting
 
ikr
 
~100 lines: So kawaii, and confusing at the same time
 
11:54 PM
y u no std::lower_bound
 
cause
don't hate me
1) `<algorithm>` is 2big4me.
2) I didn't want to constantly specify the same iterator pair + comparator and then do `Entry(...)` etc.
 
your code gave me a slight itch and you should feel slight itch
 
thank you faildown
over the lower_bound thing?
 
yeah, implementing/reviewing binary search is a bitch
It’s called binary search because you take a search problem and double the possible off-by-one mistakes at each step.
 
this isn't my implementation of std::lower_bound.
 

« first day (1650 days earlier)      last day (3313 days later) »