« first day (782 days earlier)      last day (4178 days later) » 

4:00 PM
I guess I should get working on part 3 soon.
 
> reddit is under heavy load right now
wtf?
 
@TonyTheLion Probably.
 
user1182183
could anyone explain this?
 
user1182183
@DeadMG first snippet is your code :P
 
user1182183
error C2661: 'PassData::PassData' : no overloaded function takes 4 arguments
 
4:04 PM
@R.MartinhoFernandes: Interesting. However I would also like to see some numbers. :)
 
Reddit is down :(
 
user1182183
@TonyTheLion I'm down too : (
 
> Author starts out by assuming a non-existent problem, then tries to convince the reader that his half-assed compile-time sorting of type sizes will somehow magically resolve the non-existent problem he initially proposed.
The articles provide no benchmarks of before and after, just a lot of metaprogramming hand waving and "trust-me it's all good" sentiments nothing else.
 
@R.MartinhoFernandes: Hmm, does that mean that you are aiming at knapsack problem solver in templates?
 
what a dick
 
4:08 PM
@wilx How so?
 
my mother wants me to search through our rubbish for a three-week-old piece of plastic that broke off my chair
2
what the fuck
 
oh have fun :P
 
it's three weeks old, it'll have been collected long ago, and no way am I gonna search through our rubbish
 
There is a well-known algorithm for finding the optimal layout, and that is described in part 1.
 
right
 
4:09 PM
Oh, I have only skimmed through.
 
the usual reddit trolls
 
@lizardbill You suck man! Any good question I see on SO is closed by you.
oh ahahahaa
@TonyTheLion funny you should notice
 
@wilx Basically, you put types with stricter alignment first. That is a well-know trick for getting structs with the minimal size.
 
@sehe lol.
 
That is far from solving knapsack.
@sehe I think Bill is one of best mods.
 
4:11 PM
If robot solves the knapsack problem than that means knapsack must have been solved before in order for a robot to be able to solve it in the first place, cause else how did robot get programmed to solve knapsack?! Knapsackception.
 
I guess you are right.
 
Of course I'm right.
who do you think I am?
Mr. Wrong?!
 
:)
 
I think my brain died.
 
4:15 PM
Good morning peeps.
@TonyTheLion So, you mean there's porn on Russia's iTunes Store?
Oh, wait, it's a bug.
Woooo.
 
I wonder how much an .xxx domain costs.
 
user1182183
Dat feeling when no matter what you do, the errors keep coming.. ;F
 
Despair?
 
user1182183
@R.MartinhoFernandes 85 euro
 
4:18 PM
@EtiennedeMartel That sends me to Google.
@GamErix I found them for 75.
 
user1182183
@R.MartinhoFernandes here
 
Fucking expensive.
 
@EtiennedeMartel wat. I need brain bleach.
 
@TonyTheLion Tumblr is full of weird stuff.
There's also a sizeable otherkin base there.
 
user1182183
anyway is there in c++ a limit of two iterator arguments per funcion or something?
 
4:19 PM
@EtiennedeMartel yea. I would have thought that belonged on r/wtf or something
 
@EtiennedeMartel Soon GoDaddy will be broke assholes
At that rate anyway
 
user784668
@GamErix What?
 
user1182183
 
user1182183
I get an error when I pass 2 vectors .begin and .end() s
 
user784668
4:22 PM
@GamErix There's no.
 
user784668
@GamErix std::copy takes three iterator, for example.
 
user1182183
@Fanael why doesn't the C++ compiler give me error that there is no appropriate overload : /
 
user784668
@GamErix Because you're doing something wrong.
 
@GamErix Cannot answer without more info (what is Polygons? How do you call it?)
 
user784668
@GamErix Show the call site.
 
4:23 PM
@EtiennedeMartel NSFW much?
 
@TonyTheLion Depends on your definition of "safe".
 
user1182183
 
I wouldn't consider it safe here
 
user1182183
when I remove the Polygon vector
 
user1182183
and polygon argument Pbegin Pend
 
user1182183
4:25 PM
then everything is OK
 
Xeo
@TonyTheLion It's friggin text oO
 
@TonyTheLion I decided that I don't need an excuse. I've got some vacation days saved up, why not go somewhere for a week or two? :)
 
Xeo
Unless your boss knows 4chan and recorgnizes the image style, I can't see how that's NSFW :P
 
@jalf Good idea, I don't blame you.
 
@TonyTheLion Because of the image of two people kissing?
 
4:26 PM
@R.MartinhoFernandes Perhaps borderline
 
user784668
@R.MartinhoFernandes Because 4chan.
 
@EtiennedeMartel ???
 
@kbok Tumblr, according to 4chan.
 
this is tumblr as seen by 4chan folks?
 
Well, the weird part of tumblr.
 
4:29 PM
I don't know that part and I'm glad about it
 
Google for "otherkin". It's the tip of the iceberg.
 
Oh, it looks like some kind of new religion
 
It's deeper than that.
You know, those people who feel like they were born with the wrong gender?
Well, now we have people who feel that they were born with the wrong species.
 
Well, there's a guy here who thinks he's a robot after all
 
user1182183
well.. using std::vector<cell>::iterator and removing the template<> fixed it
 
4:35 PM
lol
@GamErix Wait.
That does not sound like a fix.
More like a hack.
 
user1182183
/*template<typename Iterator>*/ PassData(std::vector<cell>::iterator begin, std::vector<cell>::iterator end, int extraid_, cell MoveCost_, AMX * script_, std::vector<float>::iterator Pbegin, std::vector<float>::iterator Pend)
    : Paths(begin, end),Polygon(Pbegin,Pend)
 
@kbok And another who thinks he's a dog. And another who thinks he's an ape.
And another who thinks he's a lion.
 
user1182183
@R.MartinhoFernandes i'm hacking and I don't know it, wow.
 
And another who thinks he's a programmer
 
@GamErix Haha. Silly. Do the types of Pbegin and of begin look the same to you?
std::vector<cell>::iterator and std::vector<float>::iterator?
 
4:36 PM
@kbok That's not exactly the same thing. Unless we're talking about non-human programmers.
 
Then why did you write them to have the same type (Iterator vs Iterator)?
 
Well, many people consider that another species
 
user1182183
@R.MartinhoFernandes no difference?
 
You need two template parameters.
@GamErix Sorry, typo. Fixed.
 
user1182183
@R.MartinhoFernandes tut on templates plz? :P
 
user1182183
4:37 PM
@R.MartinhoFernandes ye i know that <float> and <cell> aren't the same, but in the end they're just iterators O_o
 
> I’m super glad these conversations are being had around tumblr. It’s important to realize that every identity has value. I finally feel confident in coming out as a transplant transcontinental transparent. That is to say, despite my passing cis-appearance, I truly feel I am a rhododendron. And Australia. And your dad.
 
template<typename CellIterator, typename PolygonIterator> PassData(CellIterator begin, CellIterator  end, ... PolygonIterator Pbegin, PolygonIterator Pend) ...
 
user1182183
aah :D
 
@GamErix But they are iterators of different types.
 
Xeo
template<class CellIt, class PolyIt> PassData(CellIt first, CellIt last, ..., PolyIt pfirst, PolyIt plast)
 
4:38 PM
=_=
Couldn't sleep. Spent all night thinking about Unicode.
 
What a shitty way to ruin a night's sleep.
 
Xeo
@R.MartinhoFernandes Cool.
 
user1182183
@ThePhD wstring?
 
@GamErix Calms down. No, Mr. Erix. No.
 
Xeo
4:39 PM
@GamErix Hahaha, good joke.
 
@R.MartinhoFernandes There's even wheels in there?
 
user784668
@GamErix lol
 
What is that cis-something stuff?
 
user1182183
@ThePhD a few bits of this, few bits of that, some additional bits, fuck it up (read: put in blender), voila, now represent it
 
Xeo
@EtiennedeMartel That's why the robot said @Stacked is awesome.
 
4:41 PM
@EtiennedeMartel Since yesterday.
 
@Xeo Do you think if I mature it he'll even put my engine in there?
 
user1182183
> warning C4244: '=' : conversion from 'float' to 'cell', possible loss of data Z:\Programs\Microsoft Visual Studio 11.0\VC\include\xutility

How seriously useful.
 
user784668
@ThePhD No.
 
@Fanael :c
 
user784668
4:44 PM
@ThePhD :c++
 
So Wheel's tuple is better than std::tuple ?
 
@Xeo Well, I guess he's easy to impress.
 
user784668
Whoa.
 
user784668
Vim has :c.
 
@ThePhD No.
It is smaller than both libstdc++'s and libc++'s implementations.
It is slower at compile-time, though. (I need to benchmark to see how much)
 
4:45 PM
@ThePhD An implementation cannot be "better" or "worse" than a spec.
 
Hm.
 
user784668
@R.MartinhoFernandes I guess it's two oranges slower.
 
And since it fits the spec you can actually make std::tuple do the same thing.
 
user784668
@R.MartinhoFernandes Well, if you're a standard library implementer, you can make it std::tuple.
 
Yeah.
I think it is probably also smaller than MSVC's implementation.
 
Xeo
4:49 PM
You don't want to be an stdlib implementer, though. Just think of the iostream hierarchy... yuck.
 
@Xeo Grab libc++, replace tuple, release under same license. whistles
 
Xeo
Hrhr
 
hello.. anyone here have experience with std::regex..
 
Xeo
I think it not being std::tuple is fine.
 
I'm using std::regex("[a-z][a-z0-9]*") but I have this error:

> The expression contained mismatched brackets ([ and ])

Is something wrong with the regex syntax?
 
4:49 PM
@rogcg Are you using GCC?
 
user784668
@R.MartinhoFernandes You forgot "uglify the identifiers" step.
 
I'm using g++ to build my app
 
Xeo
That way, you can go with that for development if you want faster compile time, and switch to the optimized one for release.
 
Then forget it and use Boost.Regex.
GCC does not come with std::regex fully implemented.
 
4:50 PM
@R.MartinhoFernandes well I've set -std=c++0x
 
user784668
19 secs ago, by R. Martinho Fernandes
GCC does not come with std::regex fully implemented.
 
@rogcg It is not implemented.
 
Xeo
@rogcg That doesn't change that std::regex is broken / not fully implemented in libstdc++.
 
They should not ship it all in its half-assed state, but what can I do.
 
I dont believe I'll have to use Boost
 
4:51 PM
That's called growing up :P
 
Xeo
What the fuck is with the aversion against Boost with some people.
 
hahah
 
I used to believe in Santa.
 
I'll have to build it.. AGHH
 
@rogcg Unfortunately, you don't.
So that's not a reason.
 
Xeo
4:52 PM
@ThePhD For Boost.Regex, you do.
 
of course I have to build regex lib
 
@ThePhD Boost.Regex is one of the few that does need building.
 
OH well then USE IT
 
user784668
@R.MartinhoFernandes Sadly, it's still unimplemented in 4.8.
 
USE THAT REASON.
Don't let them shove Boost down your throat like they did me RUN RUN WITH THAT REASON RUUUN rogcg RUUUN.
 
Xeo
4:52 PM
@rogcg Okay, that much I can understand - bjam is seriously "ugh".
 
@ThePhD The alternative is to build any other regex library.
 
Xeo
@ThePhD And what's he gonna use instead?
 
I hate that bjam thing..
 
@Xeo ... Uh. I dunno?
 
I'll have to use boost anyways.. That's what I'm seeing.. =/
 
Xeo
4:53 PM
@ThePhD Then don't comment.
 
user784668
@Xeo bjam is so ugh I'd be glad to see Boost switching to GNU Autohell.
 
I've been looking for alternatives regex libs, but, nooo..
 
Man up.
Building boost only needs to happen once.
 
now I'm stuck until I found out how to build that..
 
Also, my distro has boost in the repos.
 
Xeo
4:54 PM
@R.MartinhoFernandes On VC11, I get "standard tuple has size 40" :s
 
user784668
@R.MartinhoFernandes sh: Man: command not found
 
So whatever.,
@Xeo Possibly it uses the straight layout, while GCC uses the reversed one.
Or maybe general suckiness, who knows.
 
why they dont fully implement regex in GCC?? What's the problem on it?
 
user784668
@rogcg Lack of manpower, presumably.
 
yeah.
 
4:57 PM
@rogcg They will eventually, I guess. The real question is why do they ship it if it is unusable.
 
indeed. =/
 
@R.MartinhoFernandes Quick question about ogonek: What's the detail::coded_character<{encoding}> for? It turns up empty when I try to search for uses of it: it just contains a typedef.
 
@Xeo What do you get if you reverse the order of the types in the tuple? 32?
@ThePhD It's a range of code units for that encoding.
 
Xeo
@R.MartinhoFernandes Yeah
 
@R.MartinhoFernandes Okay. It's, uh. Being used as a return type though, and VC++ is complaining it can't take your initializer returns ({ /* stuff */ } ) and turn it into something usable. Is there supposed to be something actually inside it so it can return?
 
4:59 PM
@Xeo I bet you get 40 on libc++ too.
@ThePhD Who told you that thing works on VC++?
It doesn't.
 
I know it doesn't.
I'm trying to port it.
 

« first day (782 days earlier)      last day (4178 days later) »