« first day (1177 days earlier)      last day (3997 days later) » 

user1804599
17:01
I wish we had a government like Switzerland’s.
user1804599
Immigrants are aliens
user1804599
lol
@rightfold That is the definition of "alien", yes
user1804599
17:04
I know, but it sounds funny.
Those from "not here"
ok
little green men
I suppose it does
user784668
@rightfold Extraterrestial immigrants are a problem, yes.
17:05
@R.MartinhoFernandes Somehow I can imagine the immigration debate in the US being a lot shorter in this case
those fuckers, coming over here in their interstellar craft and stealing our low-paid jobs doing manual labour
17:17
And they don't even speak Dutch!
user784668
Fuck Dutch.
Ell
Ell
Evening all
@LightnessRacesinOrbit so beauty
4
Trying to find a gif that was once posted in the c++ room... starts looking through all the 26729 stars...
gif likely binned
17:22
@BartoszKP :D :D :D :D :D :D :D :D
Not a gif, an image rather
@BartoszKP ITT: Stack Exchange devs have nothing better to do with their time than implement shitty hats.
Ell
Ell
I wish I had enough code for this to be useful: nvie.com/files/Git-branching-model.pdf
@DeadMG yeah, there is something to it
where "something" is "a total waste of time"
17:26
Why do people refer to ships and boats like they're females?
Ell
Ell
I'm not sure, it's the done thing
same with tractors/cars/other stuff
well, as far as I know these days that's just how they're referred to; you'd need to be a time traveller and find out why sailors did originally, but it was probably due to the all-male crews of the time wanting some extra company.
I was reading the Wikipedia article on Titanic out of boredom and they were personifying it with "her" and it felt weird.
So I checked out other boat/ship articles and it's the same thing.
user1804599
@Fanael De Nederlandse taal is de beste taal.
fuck, Jon Skeet showed up. seems like again I will fail to hit the cap ;0
17:30
@Rapptz read articles about russian ships they tend to use 'He'
I don't think that makes it any less weirder.
 #pragma pack(push,_CRT_PACKING)
 #pragma warning(push,3)
 #pragma push_macro("new")
 #undef new //wha?
@Rapptz that's just common to refer to a ship as a "she". Polish sailors also do it
user1804599
Eww var nPointsInside int = 0.
user1804599
17:31
nPointsInside := 0 FTFY.
can you just #undef keywords? :o
user1804599
No, of course not.
user1804599
Keywords are not macros.
so what the fuck is that doing :E
user1804599
@Nils Also, your variable names suck.
user1804599
17:32
a is very descriptive.
there's a new define in some CRT headers.
Why do they use random numbers for that and not just iterate over all points in the square?
user1804599
You should put as much care into naming your variables as you would put into naming your firstborn.
#define new debug_new(FILE, LINE) or something
@rightfold How kind of you :)
17:32
@rightfold I'd totally name my firstborn "stuff".
user1804599
You’ll never have a firstborn.
this has become readily apparent to me
@Nils First of all, you can't iterate over all points in a square. Secondly, this is a monte-carlo method, and that's what monte-carlo methods are about. ;0 Or that's what I thought, either way you have a non-random version right under this one
yeah you discretize space and then iterate over all the discrete points..
@BartoszKP Does it make a difference with respect to the result?
@Nils it makes in terms of some statistical properties - but 1) in general, so maybe in this simple case it's irrelevant 2) I can't remember any details
@Nils well if wiki is right, then I was right, and monte-carlo is about random samples. So the second method doesn't make sense in this file ;0
17:37
Well if you iter over all the discrete points then you can be sure that they are uniformly distributed :)
yeah the naming
user1804599
@Nils You follow me!
but I get really bad results with just like 5000 samples, thinking I do something wrong :/
@rightfold yeah let's see what you tweet
@rightfold What the f...?
user1804599
@Nils Mostly bullshit.
Can see that
Ell
Ell
@rightfold jeez warn before doing that :P
user1804599
17:39
I should put something on my website.
Don't need to give everyone in the room an epileptic fit.
what kind of black magic did they use to get std::function's operator() to be of size 4 on x64?
wtf are you talking about
user1804599
I think you don’t know how polymorphism works.
17:42
@StackedCrooked nono, the size of the member function pointer of operator()
Guess that is a stupid problem to work on anyways.
user1804599
@melak47 It’s just an offset.
What would be a better toy problem for monte carlo simulations?
@melak47 wat
user1804599
Why would it be bigger than four bytes?
17:43
^
@melak47 operator() is a function. Do functions have size?
maybe I sould go to Monte Carlo this year and watch Formula 1
@StackedCrooked Well.. yes, but not one you can observe in Standard C++.
@Nils calculate intergrals for example, or i dont know, just read here
17:45
sizeof(decltype(messageCallback)::*), where messageCallback is a MessageCallback is a std::function<void(AS_::asSMessageInfo*)> returns 4
user1804599
That’s not operator().
right. what is it? :E
power nap, brb
@Jefffrey ping no sleep for you!
user1804599
@melak47 It is an error.
user1804599
17:47
Stop using terrible implementations of C++.
Morning.
what is bla::* ?
user1804599
An error.
user1804599
You have to specify the data type of the member.
nothing I believe
you'd need T bla::* for a member data pointer.
17:48
alright, void (bla::*blub)()
user1804599
int bla::* would be a pointer to a member of type int of bla.
Horrible syntax
okay...why the hell is MSVC letting me do (decltype(bla)::*) :E
probably some extension.
user1804599
Because Microsoft wants you to write code that works only with MSVC.
17:50
Is it wrong?
@Telkitty @sbi once said I cannot outgrump him, and I accepted the challenge.
( Sun-17:50:51 ) ( tomalak ) { int (decltype(bla)::*ptr); } struct foo {} bla;
( Sun-17:50:53 ) ( geordi ) <no output>
That's a weird line format
( Sun-17:51:26 ) ( tomalak ) {} struct foo {} bar; void baz(int (decltype(bar)::*));
( Sun-17:51:27 ) ( geordi ) <no output>
Unaligned messages shudder
user1804599
Try decltype(bla)::*ptr;.
@CatPlusPlus I wrote my own text control that aligns them but mIRC doesn't have it
user1804599
Which is actually the whole point.
doesn't really bother me that much as I'm here rather than IRC now
@LightnessRacesinOrbit I mean the entire message, I know about geordi
17:52
@CatPlusPlus okay
it looks better with the colours and bold and whatnot
I used to manually translate it to a more conventional <tomalak> ... for pasting elsewhere, but I cba for you lot
@LightnessRacesinOrbit <3
I need breakfast
Time for pizza
A copy of angelscript.h was found in d:\dev\angelscript\angelscript\include\angelscript.h, but the current source code is different from the version built into d:\dev\angelscript\angelscript\include\angelscript.h.
what?
17:56
Why are you using this shit thing
how can the code in bla.h be different from the "version built into bla.h"? what does this even mean?
PCH probably
@CatPlusPlus which shit thing are you referring to right now? :)
@melak47 AngelScript
@melak47 I got that error a couple times just now myself.
17:57
@CatPlusPlus Enjoy :)
When in doubt, do a clean build
@CatPlusPlus still happens if I break in angelscript.h
Oh, VS debugger
guess now you're gonna ask me why I am using that shit thing :)
Rebuild the library
18:00
that worked :D
So, uh, we've got 18 days on JIRA evaluation license, we should kinda evaluate it maybe. Can't get OSS license with no projects in it.
10
make @ThePhD commit some bugs to report and track :)
user1804599
eval('JIRA');
what even is jira
Issue tracker
18:04
ah
well ain't nobody reported any issues with Wide so I ain't needin software to track em
I've imported the old Redmine stuff, so if you had an account there, just reset password here
@rightfold @EtiennedeMartel @ThePhD
user1804599
ok.
@DeadMG It's not like anybody is using it, anyway.
lol
@melak47 lol
18:10
@Jefffrey not very effective :/
@melak47 no, I closed the laptop
sorry
user1804599
Why would you traverse an AST depth-first?
user1804599
And how could it possibly work with lexical scoping?
why wouldn't you traverse an AST depth-first?
that is how lexical scopes are nested.
bleh 100F fever
user1804599
18:16
@DeadMG Because how are you going to look up a variable that isn’t in the symbol table yet?
you're not.
that's lexical scoping, you know.
if it's not in the symbol table yet, then you didn't define it yet, so I don't want to find it.
user1804599
Ah, right.
user1804599
Then how would you deal with use-before-declaration?
user1804599
Like void foo() { bar(); } void bar() { }.
Xeo
Xeo
not?
18:20
those are really two different use cases in ASTs.
Wide effectively has two different designs for lexical-scope local variables, and another for use-before-declaration.
the "global" content is basically just a list of scopes, which have hashmaps in- so when I'm in foo(), then I look up bar in foo's local scopes and find nothing, then I look up foo()'s containing module and index into the hashmap there looking for bar.
then foo's local scopes use a different mechanism.
@rightfold Do two passes.
I obviously don't want to support use-before-declaration for local variables.
user784668
@CatPlusPlus that's ~~slow~~
so two different AST designs are required.
user1804599
So you first put all the functions into the symbol table without their definitions, and then analyse their definitions?
18:22
IMO this one the rarer cases where non-traditional operator overloading works really well to achieve "instant" intuitive eDSL in C++ :) stackoverflow.com/a/20937354/85371
give or take.
user784668
@sehe lol dividing paths
they're actually parsed straight into the appropriate slot.
since a module in Wide really is just a symbol table, give or take.
@Fanael Yup. But it makes oodles of sense. I'd say it's a good API choice
brb - going to put someone to sleep :)
whereas local variables, a strict depth-first-search yields easy code for handling scopes.
although my current scope implementation is the first go of it and extremely messy, I could have done a lot better there and it could really use cleaning up
user1804599
18:31
Thank you very much.
no probs
@sehe it->path() / s oh gawd
would anyone really confuse this for division?
You can't divide strings
I like this, it's intuitive
It's meh
Might as well be variadic join()
user784668
18:40
@CatPlusPlus but it doesn't use / thus is wrong
Novelty operators
This was before variadic templates
though even the v3 FS doesn't have it
Boost.PP has been around forever, it's been literally no problem for bind() or anything else in Boost
More than 10 items per call is extremely uncommon anyway
Probably.
Most I've ever done is two anyway.
What I don't get is why they have +=
Meh, mutability
18:44
They have += but not +.
My pizza is late
I'm hungry.
Your pizza is hungry / I am laid late
user784668
@Rapptz what
user784668
@Rapptz so what does += do
I don't know
the documentation feels like reading the standard, i.e. not helpful
18:48
Unary - goes up one directory, unary + returns the path without filename.
@Rapptz boost docs are terrible
user784668
@R.MartinhoFernandes you're kidding, aren't you?
Yeah. FS doesn't have - or + overloaded
just /=, += and /.
I thought about making a C++ library with the worst API possible, but that's every C++ library so
Boost.FS isn't bad.
user784668
18:51
@Rapptz it's a C++ library, so it is.
right
Heh, I remembered when my program crashed in the middle of Boost.FS doing conversion between std::string and std::wstring or whatever
Fun times
That was GCC bug I think
C++ tools best tools
user784668
@CatPlusPlus with the amount of crap Boost is doing, I'm surprised there were no workaround implemented.
MinGW
Nobody gives a shit
must have been a long time ago
feel like taking a nap
18:56
I always feel like that
@JohannesSchaub-litb: Apparently I was thinking of void being made a literal type in C++14, as discussed in this answer that I nonetheless deleted because it wasn't quite right for the stated question. — Lightness Races in Orbit 1 min ago
gods, it took me AGES to figure that out
lots of Googling with "lightness races in orbit" site:stackoverflow.com
RO-ranges
Ho-hum
user784668
@R.MartinhoFernandes yet another crap ranges implementation?
Keep reading.
19:05
How many _1 placeholders exist
Are they even compatible with each other, I never found out
user784668
@R.MartinhoFernandes whoa, it's almost as terrible as Boost.Spirits in terms of operators
It's worse, to be honest.
Ahaha / for find
@CatPlusPlus The standard ones are extensible. You can specialise std::is_placeholder and plug yours.
Operator ro::operator* (Range,Functor) is map/transform operator,
Ahaha okay fold is better
19:08
oh yeah
I linked that forever ago
I watch it on github to see if he's still doing insane things with it
but he doesn't
Bar-print
Wait what
18 mins ago, by Cat Plus Plus
I thought about making a C++ library with the worst API possible, but that's every C++ library so
user784668
@R.MartinhoFernandes no, the problem is that Boost.Spirit is clearly serious, while RO is a Poe
19:09
It's like I stepped into a bizarro universe
Also assigning a container to oi is equivalent to doing std::copy, so still shorter:
Boost.Spirit's operator overloading is just a result of trying to find equilibrium through EBNF and Regex
I'm still fairly certain you can top that
@pepper_chico Well. I'm answering his question, not the tags. Often there's a degree of X/Y asking involved. Also, nothing precludes him from (a) driving xdotool from c++ or (b) using xlib+xtst directly from c++, using the source code of xdotool as a reference. The license does not seem to preclude this even for commercial applications. — sehe 24 secs ago
@R.MartinhoFernandes It's far worse
@Fanael at least Spirit is highly consistent.
RO is just an amalgamate of many twisted idea that ever entered the OP's mind. The leading "design principle" clearly being: I want to save key strokes.
@CatPlusPlus who specifically? :)
No learning curve (for me anyway, I wrote it!) (from xmlpresenter)
19:33
So just glancing at interface, am I allowed to guess that the "Volnitsky" who wrote RO is better known as "Vlad from Moscow"?
You are allowed to. And you'd be wrong. I wager that if you spend some time on github just browsing, you'll find that Vlad is only an apprentice whose harmfulness is amplified by his presence on SO and the asylum
21 mins ago, by Cat Plus Plus
I'm still fairly certain you can top that
Anyways, volnitsky was old news.
Volnitsky sounds like a surname, and Vlad is a first name, this assumptions seems a bit too far fetched ;0
0
A: The snippet shown below compiles in Coliru and Ideone, but according to iso § 8.5 p6 it shouldn't, or am I missing something?

Lightness Races in OrbitHaving studied the rules for initialisation and aggregates, I conclude that you're right — this is technically ill-formed. Your compiler is taking a shortcut because there are no members and thus no initialisation is practically required. Unfortunately I have nothing to quote because there is s...

Is this right?
@JerryCoffin In fact, it was my fault for bringing the guy to the lounge's attention:
@sehe lol @ lack of "the" everywhere
19:39
russians.
"In soviet russia, articles omit you."
@LightnessRacesinOrbit I really hate this rule.
If it's an empty class it shouldn't enforce it.
user3010322
@melak47 That's just mean
struct x{}; constexpr x test; // error is dumb :/
@Rapptz It's a lack of a rule, really :)
Since empty classes should pretty much not exist, I don't see why they'd bother with an exemption for the wider, more useful rule
19:40
@ThePhD yeah, who'd commit bugs on purpose
user3010322
@CatPlusPlus We can put sol bugs up there, I can put bus up there, I can put Lightstalker up there as well.
user3010322
I would put Furrovine, but it's not really OSS.
Ell
Ell
The Password field is encrypted by using the MD5 algorithm
Sad times :/
@Ell The use of terminology is ... extremely bad. (If they mean on the client side, they might actually be doing it right)
user1804599
Butt.
Ell
Ell
19:43
@sehe Well it's password protecting a swf file
I apologise for my ignorance if I'm wrong :O
"Encrypted" ahah
user1804599
I apologise for my ignorance iff I'm wrong :O
@Ell They should say "digested". But - as long as it isn't stored, it could just be a convenient way to make the code unable to see the plain text
If you want to password-protect a document, then actually encrypt the document with that password, instead of storing a crappy hash which can be totally ignored
I mean gods
cpx
cpx
How do I print this unicode character here ?
19:45
This is like, obvious
@CatPlusPlus Nobody sais this is happening
@CatPlusPlus You get worked up way too early
No, I just assume incompetence
Yeah. it's working nicely for you
It's usually true!
@LightnessRacesinOrbit Does that change anything? Except the warning?
19:47
@cpx ideone.com/iNg1cg don't forget your wide character literal prefix L
@cpx About windows, I think @cheers-and-hth-alf ones worked it out. It was ... hairy
user1804599
All of you make me so happy.
user1804599
I get an intense inner feeling of happiness whenever I am here.
@sehe Yes, the output. Substantially. And here's why:
[C++11: 2.14.3/1]: [..] An ordinary character literal that contains more than one c-char is a multicharacter literal. A multicharacter literal has type int and implementation-defined value.
user1804599
I love all of you! (Except for Telkitty.)
8
19:49
@LightnessRacesinOrbit oh jolly
@cpx's original output was 50081. Mine, rendered in Chrome, is ? which I take to mean "fixed" as much as can be said ;)
cpx
cpx
It didn't work in windows.
ß
Press any key to continue . . .
@cpx Much improved. So change the code page
user1804599
Nothing works on Windows.
Ever since this:
19:51
it was printing 50081 because it was multi-character
Jan 1 at 23:29, by BartoszKP
@LightnessRacesinOrbit don't mess with him, look at his photo - he's obviously a serial killer
Don't try to get Unicode to work in Windows console
cpx
cpx
Now look at this. It prints the exact character.
I can't look at alf's profile anymore and not be scared ^^
cpx
cpx
std::cout << '\240' << std::endl;
user1804599
19:51
I want to live in a forest.
cpx
cpx
I have no idea.
@rightfold SO chat seems to be working for me on win.d.,,.,fds.
@cpx IMPOSSIBRU. I gave you ideas. You now claiming to "have no idea" is rude to me. It implies you've thrown my suggestion(s) aside without further thought?
0
Q: Why do I get a number instead of a Unicode character?

Lightness Races in OrbitI wrote this code: #include <iostream> int main() { std::wcout << '\u00E1' << std::endl; } But it outputs 50081 when compiled with GCC 4.8.1. I'm probably doing something wrong, but I certainly wouldn't expect a number to be output. What's going on?

@cpx ^
@cpx Why would it not?
lol
19:53
@LightnessRacesinOrbit You're REALLY desperate to get to 10k
user1804599
0
Q: php How to sort and brake while loop based on variable

user3163228I have a problem ... I can not solve it for two days. I am a beginner in php. i don't understand why while loop returns me as much selects fields as every select field has options, for example field "choose color" has 3 options, red green and yellow and i become instead one select field 3 of th...

user1804599
Yo, I’m about to meet a ravine, please help me.
8
A: Displaying extended ASCII characters

Cheers and hth. - AlfI should probably write this up for other than Norwegians. In fact I did once, but that's long since off the net. OK, here goes. A Windows console window is pure Unicode. Its buffer stores text as UCS-2 Unicode (16 bits per character, essentially like original Unicode, a restriction to the Basic...

@sehe Bartek is desperate to get to 10k. I'm an order of magnitude more desperate.
But, honestly, self-answering questions isn't new for me
I notussed.
@LightnessRacesinOrbit No. But the rate :/
user1804599
19:55
He already has 10k.
user1804599
You probably mean 100k.
He'll love this
@rightfold I did actually mean 10k. I took some liberties since, yes, he finally reached it a month or two ago. But he was famously keen to do so before that.
Why would you remove context?
@sehe Not particularly high?
@Rapptz "OK, here goes", a history of his authorship of other things, and "cheers" is not context.
user1804599
He’s Dutch. Of course he’s high.
19:56
Hm, never mind. Misread.
@rightfold mmm
user1804599
Higher than the highest mushrooms.
That's a fact (not counting mushroom clouds)
user1804599
:D
Active code page: 1252
λ test
á
interesting
user1804599
19:58
What is a code page?
user1804599
Some terrible global state?
cpx
cpx
This and this both prints 50081 but only this prints the right character on windows.
@cpx Lol. The "right" character. Thanks for the information
@rightfold Not far from a "system locale". But worse. It's the charset itself

« first day (1177 days earlier)      last day (3997 days later) »