« first day (2140 days earlier)      last day (2799 days later) » 
00:00 - 17:0017:00 - 00:00

12:01 AM
@thepiercingarrow ???
@JerryCoffin stellar
@nwp it's because the people that question dump don't care enough about where they're dumping it to even read the rules
bolded text in the sidebar? frankly my dear, they don't give a damn
guis
I found an amazing question today
Genius Young Zuckerbergs from Harvard is the mere tip of the brilliance.
@Borgleader are you though? are you really?
@thepiercingarrow why did you ping me five hours after I'd signed out of the Lounge today?
it was great for a moment of early-afternoon confusion but still inquiring rocks want to know
 
12:16 AM
@jaggedSpire sex-stellar, apparently.
 
@JerryCoffin one more and you'll have enough for seven sisters
 
@jaggedSpire I'm not properly built no :(
 
@Borgleader I was more referring to the general human construction issues than you in particular <3
 
12:35 AM
@jaggedSpire I have to wait a few months for them (or stay up almost until dawn).
 
@JerryCoffin I don't really recall ever seeing them IRL, but I've never really looked for them
 
@jaggedSpire I've definitely seen them, though I'm not sure my eyes are sharp enough to really separate all seven naked eye (and with binoculars, you find dozens of stars there).
 
@JerryCoffin these days stars are more blobs than anything for me :\ I should probably get my prescription updated
 
12:56 AM
@jaggedSpire Sounds like it. Seeing 7 stars there is pretty tough, but 5 or 6 are bright enough to see pretty easily.
 
@jaggedSpire You told me earlier that it depends on how well the algorithm is coded, so I asked you whether mine was well coded.
Does C++ have builtin hash tables?
All I can find is a builtin hash function...
 
take a look at unordered_map and unordered_set
 
Thanks!
 
I just want to see people land on another planet other than earth, is it really that hard? There are billions and billions of planets in this universe if not more ...
 
1:18 AM
@jaggedSpire THANKS exactly what I was looking for!!!
 
@Telkitty There are (most likely) quite a few. The distances are fairly substantial though. The furthest we've ever gone is to the moon. That's only 384.400 km. At their absolute closest, the distance from the Earth to Mars is about 54.6 million km--and that doesn't happen often (it depends on Earth being at aphelion and Mars at perihelion at the same time and simultaneously being perfectly aligned so they're precisely aligned along a radius from the sun).
The closest we've gotten to that in recent history was in 2003, when we were only about 55.8 million km apart. That was the closest the planets had gotten in ~60.000 years though. In theory, if you could travel in a straight line at closest approach on the fastest spacecraft yet launched, you'd make the journey in only about 5 months. A more realistic timeline is around 6 to 8 months. We've done that several times with unmanned missions, but a manned mission is dramatically more difficult.
 
For unordered_set, I have to feed hash into the second parameter?
 
1:35 AM
for unordered_set there isn't a key, or rather the values are the keys. The hash is calculated with the hash object, which is either default-constructed or copied from the argument on the constructor. You can specify a different hashing functor type when you define the type of the hash table, as the second type argument.
you'll want to look at the actual requirements for the hashing function though
 
 
1 hour later…
2:50 AM
Most of the answers I found on the internet were 'Android app working on emulator but not on real device', I am the only one asking 'Android app working on real device but not on emulator'
 
Hi, I use two dlls in one program, it throws "Error C2365 'wkbPoint': redefinition; previous definition was 'enumerator'". I found the reason is the tow dlls' header files(.h) have the same definition about wkbPoint like this.
typedef enum
{
wkbPoint = 1
} OGRwkbGeometryType;

typedef enum
{
wkbPoint = 1
} GeometryType;
 
 
1 hour later…
4:28 AM
if you like time signature changes :P
 
 
2 hours later…
6:21 AM
mmh I don’t have a solution for class-scope implementation details that must be made public in order for constraints to work
 
6:45 AM
error: use of invalid variable template 'adjust_over<const std::tuple<[snip]> >'
note:   constraints not satisfied
note: within 'template<class Seq> concept const bool annex::meta::Sequence<Seq> [snip]'
so that’s a very usable diagnostic
but sadly it took a lot of coaxing to get GCC to report it
Nov 16 '15 at 9:46, by Luc Danton
improved diagnostics™
@Rapptz
 
Ven
7:02 AM
Hi
 
7:22 AM
@Borgleader always
 
nwp
"Having me as their users is a privilege for SO" - then your only recourse here is to revoke that privilege. — tripleee 23 hours ago
 
@nwp lololololololololol
 
Ven
7:37 AM
Holy molly.
 
7:47 AM
> > It's a bit hard to dodge atziri flameblast when she is ghosted with Thug's grip
> She didn't choose the Thug afterlife; the Thug afterlife chose her.
 
Whaaat, 24 stars on a single message?
 
@Borgleader me? Never
 
@sehe remember when we discussed functionality & suffixes in relation to naming things? another example of mine
 
lol std-proposals on whether Rust reference semantics on shared_ptrs make sense, and currently seems like most of the people there are against.
 
not lol, Rust ref semantics work great in Rust not in C++
probably because the entirety of the language and libstd is built around them(/with them in mind)
 
7:57 AM
@набиячлэвэли Well, the proposal is to have a const_shared_ptr that only allows you to grab a mutable ref if it's uniquely owned (and, weirdly, to give you a copy if it isn't).
 
> >weirdly
It makes no fucking sense
Also it doesn't work unless it's baked into the type system
 
In general semantics based on whether something's uniquely owned or not are awesome (only Rust did it IMO very wrong, because the non-unique case is an obvious way to make use of asynchronous accesses that'd be synchronized on some task queue, instead of... forbidding it like morons).
 
It disallows aliasing, so it's fine
 
@milleniumbug Aliasing is fine, as long as you are not allowed to race on the variable.
 
i.e. no extraneous load-store instructions
@Griwes Aliasing in the restrict sense
 
8:00 AM
If the language forbids any situations where you can possibly race, you can freely allow multiple mutable references.
@milleniumbug that's a completely orthogonal feature.
Smashing them together is... wrong.
 
Why what
 
Counting mutable refs means checking for mutable ref uniqueness.
restrict needs to check for uniqueness including immutable refs (because an immutable ref can be aliasing it).
 
i.e. which is pretty much what Rust's references do
either multiple immutable refs, or a single mutable one
 
@milleniumbug Multiple immutable refs = aliasing!
 
No...?
 
user1804599
8:09 AM
Yes it is
 
user1804599
If you have multiple pointers to the same thing then you have aliasing
 
user1804599
Whether you can mutate through them or not is irrelevant
 
void memcpy(char* dest, const char* src, size_t s) { for(size_t i = 0; i < s; ++i) *dest[i] = *src[i]; } <- can parallelize the loads when I can have the Rust guarantee for references
 
What is going on, I'm unplonking @rightfold after peeking into the transcript o.O
But back to the original point that you sidetracked - you can allow multiple mutable references, and you also can allow immutable references to the same thing, and you can at the same time make sure you don't race, and you can have "restrict" constraints by requiring strict uniqueness.
Rust's semantics are incredibly limiting, but that's probably because if they decided to go the actor-model-ish approach of requiring a special way of referring to stuff in shared objects, and only allowing some things like direct member calls on uniquely owned types, then it'd not be appealing to the simple C folk they want to get to use their language.
 
user1804599
go full immutable
 
8:16 AM
@rightfold full copy on write?
 
@rightfold localized mutability for actors is fine.
 
user1804599
there is no write if everything is immutable
 
(As long as you constraint yourself the way I described.)
 
user1804599
Also, what Rust does is needed for general safety, not just for concurrency.
 
@Griwes where
 
8:17 AM
@milleniumbug In Vapor. :P
notice how I said "you can allow" and not "you can have"
 
well good job because C++ also can allow stuff
but you can't get any meaningful guarantees
 
I just told you you can.
The data race problem can be solved by restricting you far less than Rust does, but it requires you to understand fundamental things like futures and whatnot.
The restrict problem can be solved by just marking specific references as strictly requiring uniqueness.
 
But why would you
Have things limited by default, and then make a type that allows more
 
Because it's less limiting than the Rust thing that tries to solve both problems in the same way.
 
i.e. the opposite the C++ does
 
8:22 AM
So you're saying C and C++ should have restrict by default and unrestrict as a keyword?
(This is almost literally what you're saying.)
 
No, I'm saying if the default reference in Rust doesn't allow data races and aliasing, then have a type (Box<T> or whatever) that lifts the restriction on aliasing, but still guarantees no data races
 
user1804599
 
user1804599
hahaha
 
@milleniumbug Terrible.
 
No, it's not
 
8:25 AM
It makes actors second-class citizens, instead making them first-class which every new language should do as literally the first design decision made for it.
 
It's about damage control
 
You still have the exact same guarantees if you do it my way.
 
not on optimizations
 
???
Want ridiculous optimizations? unique. There. Done.
 
fine by me
 
user1804599
8:27 AM
@milleniumbug It's called Cell.
 
hey , anyone here familiar with the 8-puzzle problem ?
 
nwp
@Alex solve 8 puzzles by making other people do it challenge?
 
@nwp no, I had problems implementing it , thats why i asked
@nwp I am basically doing a Breadth First search , the problem I am facing is that I can't figure out how to avoid adding already visited states to my queue . I have to do this in C so I cant use any inbuilt data structures like map or set in c++ .
 
8:55 AM
@Xeo now’s probably the perfect time to ask you what happened to that amirite?
 
Xeo
Couldn't find anything, not that I tried for too long :)
 
I guess I’m going to implement a tuples::traverse then
problem being I want a lazy one :(
 
nwp
9:17 AM
I use VS, Qt Creator and Eclipse at the same time. That probably means something, I just don't know what.
 
That you don't know what's good for you
 
Ven
yeah, and that none of those are good for you
 
nwp
maybe that the do-everything-right-tool that I want doesn't actually exist
 
Ven
I only use emacs
 
or maybe that you don't actually want a do-everything tool
eww emacs
shame you don't have an editor then
 
Ven
9:19 AM
yeah, I have much better
I installed evil-mode to get vim inside emacs. Because vim is the best editor.
 
nwp
I saw a stream with someone using emacs, so much typing, so little actually happening
 
Ven
badlets will be bad.
 
nwp
most keystrokes seem to be about where to split which window opening which file and reverting that situation
 
Ven
so your point is that you watched someone who kept juggling windows around instead of actually coding, and that's due to emacs?
 
nwp
not sure if that was the fault of emacs, the guy seemed tired
 
Ell
9:29 AM
@nwp nah that's easy
 
nwp
but it did feel like a challenge run, like playing zelda without the sword but with coding in emacs + cmake
 
Ell
C-x-f is open file
it's quicker than :edit :P
 
Ven
C-x C-f vs :e
as usual, @ell is a badlet
why would you spell out :edit?
 
Ell
hey mayn I don't use vi :P
or vim
or evil-mode
 
Ven
come to the dark side!
 
Ell
9:32 AM
also, C-x-f > C-x C-f
 
Ven
also I use leader keys. So on my emacs, ,f is ido-projectile-find-file
 
Ell
I just do C-c p f for that
I have default projectile bindings
 
Ven
@Ell two spelling for the same thing
 
Ell
though not sure what the ido- is
 
Ven
do you use helm, maybe?
 
Ell
9:34 AM
@Ven I thought you were implying two keydowns of the C key :)
yeah I use helm
 
Ven
ido is like helm, basically
(just a bit more supported)
(I use helm at work, ido on my machine)
 
@Ell ...it's not quicker than a fuzzy searcher like CtrlP.
ctrlp.vim is the best thing
 
Ven
ido/helm+projectile is the same thing
 
Ell
^this
I probably ought to bind a better key thing though
I confess, I'm not very good at configuring emacs
 
no-one is, that's because it's emacs
 
Ven
9:38 AM
I like my emacs config...
whereas my vimrc is only 60lines long
 
My .vimrc is... 1 line.
 
EDITOR=emacs :P
 
My vimrc is 42 lines, though 5 of them actually source a lot of files. :P
@набиячлэвэли runtime vimrc
 
10:02 AM
still waiting for the auto pilot cars that actually works and is safe to be in
 
Ven
/cc @AndreasPapadopoulos @LucDanton :)
 
@Ven wow y’en a des vachement bien
 
Ven
@LucDanton cf ici. ce mec est juste :'))
 
weird corner of youtube (half fish)
reminds me of that video about a live chicken without head
 
@Ven nice
 
nwp
10:13 AM
gtest stuff doesn't work so I looked through the code and google writes some interesting stuff
// C++11 puts its tuple into the ::std namespace rather than
// ::std::tr1.  gtest expects tuple to live in ::std::tr1, so put it there.
// This causes undefined behavior, but supported compilers react in
// the way we intend.
// A secret type that Google Test users don't know about.  It has no
// definition on purpose.  Therefore it's impossible to create a
// Secret object, which is what we want.
class Secret;
 
psh, just put class Secret {}; wherever and then you can create as many objects as you want
 
@nwp why are you using gtest doe
 
nwp
and I really hate that people don't indent their namespaces
@набиячлэвэли because I have to work on a project that requires it
 
Ven
i'm using gtest at work
 
nwp
I also like their implementation of std::move
template <typename T>
const T& move(const T& t) {
  return t;
}
 
10:20 AM
@nwp gtest has more eekness IIRC. Even using namespace AFAIR
 
nwp
(it is only used on systems that don't have move semantics where you cannot do better, but still)
 
This, to me, seems like a more sensible approach to police action on the hijab: https://www.buzzfeed.com/jamieross/police-scotland-has-introduced-a-hijab-as-an-optional-part-o?utm_term=.yyK7gRGm8#.fpLZEr5X7
inb4 they start enforcing the Sharia law
 
yawn
 
@sehe no, really. official non-secular uniform in UK?
 
It's an option-- wait, it's just Abyx. Let's carry on.
> The SNP MP added: “Just as the police acted to ensure fair treatment of Sikh men whose faith requires them to wear turbans, this is a welcome move which will hopefully help create a more diverse and representative police force for all our communities.”
Apparently not the first one (though calling them the way you did is extremely silly).
 
nwp
10:26 AM
I learned in school that the government and the church are supposed to be separate in a proper constitutional state, but we have the christian party in power, so it doesn't mean anything in practice.
maybe they never said we are a proper state even though I thought that was implied
 
are they going to ban diving suits as well :p
those scuba diving suits cover a lot ...
 
@Griwes fuck their faith. secular stuff should be banned in public places.
 
Yep, just Abyx.
As usual.
plonk
 
Xeo
@LucDanton requires ... Nullable booo
wait, find. guess it has to be, eh
 
Ell
@Abyx I don't think this will be very effective really
at recruiting Muslim women
 
Xeo
10:35 AM
@LucDanton What exactly is required of the functor? f :: a -> Maybe a, with Just a if the argument fits?
It feels like there could be a better impl with typical f:: a -> Bool
 
nwp
apparently the reason why gtest doesn't compile is that the cmake I used is too old. Apparently it requires version 3 and it automatically picked a 2.8. Now the fun part is that the CMakeLists.txt has cmake_minimum_required(VERSION 2.6.2) in it -.-
 
Ven
^
 
nwp
muahaha ninjaed
 
Xeo
(true && ... && (!functor(<val>) || (result = <val>, void(), false)))
something like that @LucDanton?
 
@nwp kek
 
10:40 AM
@nwp lol using CMake 2.6 would mean you like to murder kittens
 
@Xeo that splits off the optional nullable API but I’m not sure for what purpose
 
 
Xeo
Well, you usually have f :: a -> Bool available, rather than f :: a -> Maybe a, no? Although one can be (automatically) adapted from the other.
 
lol Ukraine
 
Xeo
Also, familiarity. I'm just used to f :: a -> Bool.
 
10:42 AM
@Xeo I don’t know, I’m mostly rewriting what used to be manual recursion
@Xeo a big problem with that is the return type
 
Xeo
Right, you'd force optional or something
 
the point of using tuples is having heterogeneous elements
 
Xeo
@LucDanton Well, your current API also doesn't really allow that, eh?
Although
I guess it depends on what the functor returns, so the burden is on the user
 
yeah
 
Xeo
optional<cotuple> it :D
 
10:45 AM
that’s not helpful
@Xeo example use case, if you can stomach that. the arguments are very much meant to be of different types, yet the search still makes sense
oh that’s the straightforward one, linear_offset right after is a bit more tedious
 
Xeo
Oh, okay, so it maps at the same time
 
@Xeo yeah it really bothered me to name the functor parameter, well, just functor—I like to think of them as projection functions if that helps
related to things like sort_by etc.
 
Xeo
right.
 
so we zoom in on variant which()-ness, and then that’s used to direct the search
 
Xeo
But not just the search - also the result
Can't quite shake off the "seperation of concerns" feeling, due to that.
 
10:52 AM
yup, but in a range/whatever setting you get a position or range
@Xeo I feel that the appropriateness of the solution is dictated by the types, although I have not ruled out future improvements
 
Xeo
11:10 AM
I guess this is kinda the most generic solution
 
1 message moved to bin
 
Ven
Oo
 
@Xeo Haskell-wise there’s also things like foldMap (First . Just) (or as ekmett would have it, ala First foldMap)
 
@sehe good to see you again
 
Xeo
@LucDanton Yeah, foldMap came to mind.
 
11:13 AM
I mention First because first_which does some of that
@Xeo well, that’s a -> m not a -> Bool :)
 
Xeo
I know. :P
But your function is called search, and not fold(Map)
 
I don’t have monoids either
 
Xeo
iunno. I just feel some kinda disconnect between the name and the functor type, I guess
So it may just be a bikeshed issue
 
sure
I threw that quickly to get on with it
 
Xeo
Also, I think you could require Monoid instead of Nullable and then call it foldMap, I guess? But that means you need monoids, so yeah.
 
11:19 AM
the idea is that the monoid (if any) is encoded in the null value and null check + a (possibly stateful) functor searcher
@Xeo explicitly talking about monoids seems disingenuous in the strict setting of C++ though, I need search to terminate as early as possible
 
Xeo
hrm
 
user1804599
11:36 AM
@sehe the guy I know who works there told me to send the cv to the backend dev:
 
user1804599
user image
4
 
nwp
bad ven
not politically correct
 
@Ven oh look a person trying to work around a question ban
 
user1804599
12:14 PM
@Ven I've done worse
 
user1804599
43
A: Very strange error: '::main' must return 'int'

rightfoldYour main function actually returns long long due to the following line: #define int long long Note that this is evil. Never do this! From §17.4.3.1.1 in the old C++03 standard (emphasis mine): 1 Each name defined as a macro in a header is reserved to the implementation for any use if t...

 
Ven
a question prolapse
 
user1804599
I got reversal for that
 
Ven
@rightfold I know, I even upvoted you. :P
 
Ven
12:36 PM
guise
what happens if I delete the directory I'm currently running my file in? :D
 
what OS
 
Ven
the script needs to run on any platform
it'll just say directory in use right?
 
If you do rm -rf or equivalent, then it will remove all files
 
Ven
it works on os x at least..
 
and you can easily remove executable files that are run
on Linux
 
Ven
12:39 PM
it'll just proceed without a care right?
 
yup
the executable is still run because you're removing the hardlink, and the file exists until all handles are closed
 
Ven
cool; thanks. do you happen to know if it's the same under windows?
 
no
the executables aren't removed because Windows does a lock on the executables
 
Ven
shit.
well, thanks.
 
1:22 PM
People, random question, did N3922 make it into C++17?
 
lol, tried to find the library paper status list, instead found this
15
A: How does the standards committee indicate the status of a paper under consideration?

Shafik YaghmourFor this particular case, we can guess this is an Evolution Working Group(EWG) issue from the Background section of the paper which says: In Issaquah, EWG considered two alternative resolutions; this paper offers wording for one of the two, and mentions the other only as an acceptable alt...

he uses N3922 as the example
 
Ven
I know one thing for sure.
@Borgleader made it into my heart.
3
@rightfold help me i'm writing python for $job
 
user406009
1:40 PM
@Ven Are you sure your $job is not PHP? :P
 
@Borgleader Eh, it's kinda nontrivial to check.
[ Example:
auto x1 = { 1, 2 };         // decltype(x1) is std::initializer_list<int>
auto x2 = { 1, 2.0 };       // error: cannot deduce element type
auto x3{ 1, 2 };            // error: not a single element
auto x4 = { 3 };            // decltype(x4) is std::initializer_list<int>
auto x5{ 3 };               // decltype(x5) is int
 — end example ]
It seems that it generally did, judging by the working paper.
Not sure if it was exactly that one.
 
Xeo
auto x1 = { 1, 2 };         // decltype(x1) is std::initializer_list<int>
auto x3{ 1, 2 };            // error: not a single element
what
 
This is almost sensible.
I mean, the whole deal with initializer_list is completely nuts...
So it's about as sane as it gets. :P
 
Xeo
:/
 
Eh, poor lcov, having to run on 10k gcda files...
This is just 6 out of like 200 testcases for the integration testing suites for this one binary, and it takes like an hour for lcov to do something with it...
That is not nearly as long as it'd take to run all those testcases on our test cloud dedicated for this. :\
 
1:48 PM
@jaggedSpire lol thx. Adopted into the working draft in Urbana, as N3922. T_T
 
Hmm. I could make it run somewhat in parallel...
 
@Xeo Yeah that's the (breaking) change. In general though, I'm with Scott (i just rewatched his talk, which prompted my initial question) ... I dont understand why we have type deduction rules for auto in the case of an initializer list.
 
Ven
don't even aaaask
 
Ell
@Borgleader seems Cray to me
 
Ell
2:14 PM
I mean really stupid
 
Ven
tell me – do you hate us? — Ven just now
I'm going to try a new method: making shit questions' OP feel bad for treating us like shit.
 
user1804599
 
Ven
2:30 PM
yes?
don't forget sealed, to trigger the scala exhaustivity checker.
 
#triggered
Why does Jerry's message have 27 stars? What happened? Another room joined in?
 
fuck knows
Probably all the idlers felt unity with its message.
 
2:45 PM
All united against rightfold
 
I like how jefffrey is shoe now
 
it has been a really long time though
 
3:02 PM
Yeah.
I know.
But still.
 
Ven
i forgot this glorious thing
 
Ell
Cruel :P
 
Ven
not any more than when I call you an idiot.. :P
.oO( admittedly I'm an asshole )
5
It's a whole tutorial on why PHP, Java, Design Patterns and Symfony all majorly suck at the same time.
 
3:19 PM
@Ell He's probably one of the people who knows best that it's all humour. It's well known that much of what he says is not meant seriously ;)
 
3:31 PM
Is bartek still around?
@milleniumbug Yeah, but most of those have a reason. They were linked into other rooms or in the rules page.
 
@Ven The savagery.
@Shoe HEY YOU'RE ALIVE WOOP WOOP
I read the papers about the earthquake
 
I live in Verona for future reference
 
It's in the north east side of Italy
But yeah, I'm alive :)
 
@Shoe Yeah, I know. It's where Romeo and Juliet died.
 
3:42 PM
Something like that, yeah
Now that you make me think about it we often park at the "Giulietta's tombstone" parking lot.
 
So I googled for "verona" and Google helpfully autocompleted to "verona shoes". I'm sure it's not a coincidence.
 
That's disturbing
 
4:06 PM
@Shoe Yet more proof (as if my clearly-undeserved rep score wasn't enough) of the number of sock-puppet accounts I must keep around.
 
he he
 
@Shoe Bartek has never been around. He's always been a square, just like the rest of us.
 
Ven
he does circular thinking often, tho.
 
Xeo
4:26 PM
0
A: How to emulate C array initialization "int arr[] = { e1, e2, e3, ... }" behaviour with std::array?

YakkCreate an array maker type. It overloads operator, to generate an expression template chaining each element to the previous via references. Add a finish free function that takes the array maker and generates an array directly from the chain of references. The syntax should look something like ...

whyyyy
I expected better from Yakk
 
Ven
wtf?
 
Xeo
@R.MartinhoFernandes You should post your thingy here (or in that subreddit in general)
 
@Xeo on another note, looks like a deduction guide spot is still available
 
4:52 PM
@Xeo ASCII silly question, get a silly ANSI.
8
 
00:00 - 17:0017:00 - 00:00

« first day (2140 days earlier)      last day (2799 days later) »