« first day (1788 days earlier)      last day (3162 days later) » 

2:03 AM
Is there any reason why a 32-bit .lib may have 64-bit pointers in its interface?
 
user406009
What do you mean by that? What's the type of the pointers?
 
uptr64_t, from <cstdptr>
 
Annotated with char const* __ptr64
this whole library is shit anyway
 
user406009
Why would anyone ever do that? My personal guess is that perhaps they use the extra space inside the pointer for some purpose? (I believe 64 bit pointers have something like 10 bits free)
 
user406009
Just checked. 16 bits are available per 64 bit pointer.
 
user406009
2:09 AM
@LucDanton I don't think that exists.
 
jesus and that thing linked before and now it doesn't and I didn't change anything
 
@AnastasiyaAsadullayeva Haha before that edit.
Also probably environment changed.
 
@Lalaland It’s conditionally-existing.
 
Yeah someone had updationed the library good job
Still doesn't explain why someone would interface with 64b pointars on a 32b lib
 
A misguided notion of forward compatibility?
 
user406009
2:18 AM
Has to deal with another library that has 64-bit pointers?
 
Well it's the same library that does delete on a new[] and has various double-free issues so I wouldn't go on the ~~clever thinking~~ explanation
Interestingly someone asked the very same question on SO
0
Q: LINK2019 still keeps going

user3913071I'm trying to resolve an unresolved external (link2019 error).There were already some posts on this issue and i try them, but I still could not figure it out. The error is caused by my CreateFtdcMdApi function ( right?) but my understanding is that this is "resolved". // testTraderApi.cpp...

 
spooky
 
user406009
@AnastasiyaAsadullayeva What does the library do? Are there any alternatives?
 
user406009
Cause I would bolt from that POS ASAP.
 
The library is a 3rd party POS for accessing the Shanghai Exchange that has no alternatives and the developers don't care
If engineers built bridges the same way financial platforms are built there would be dead people every day
 
2:29 AM
I found a chrome plugin that inverts a webpage's colors
pretty neat
 
HipChat is neat
I'll suggest we use that at work and get my suggestion declined
Exciting!
Let's try regardless
@Prismatic Trippy?
 
Dark Reader
Doesn't invert the colors, just changes them
 
1/10 not showing ridiculous amount of tabs
 
user406009
I don't understand how people get like 30 tabs open.
 
Me neither, I can never get below 50
 
user406009
At a certain point, you can't efficiently switch between them.
 
@Lalaland I have a +-shaped button that I can just click on over and over again.
 
oh god this makes stackoverflow look good too
 
I lied, I have exactly 42 tabs now
 
I just use good old ctrl-t
 
2:37 AM
baby steps
 
user406009
@AnastasiyaAsadullayeva But why! Think of the poor RAM?
 
this is amaaaaaazing
my eyes
 
@Lalaland about 24 GB left
 
user406009
That's a lot of RAM. That's actually more RAM than I have hard drive space. Lol.
 
user406009
I need to get a bigger SSD.
 
user406009
2:42 AM
At 24 GB I would just go full on RAM disk.
 
Wow Qt Creator actually deduces the auto type.
Impressive.
Qt Creator has actually gotten better.
 
user406009
Last I heard, Qt Creator moved over to libclang.
 
user406009
For all parsing needs.
 
There's no such thing as too much ram.
 
user406009
@Mysticial What's the maximum you have gotten on one machine?
 
2:46 AM
@AnastasiyaAsadullayeva Such a casual.
 
What's rightfold's favourite POSIX constant? D_REENTRANT
 
you can't do this anymore with the new FFs though
they eat RAM like mad
thanks javascript
 
> $215.50
 
2:47 AM
That's my box right now. While compiling stuff.
 
It fucking begins.
 
user406009
I still remember the time I filled up like 3 GB of RAM on FireFox on one tab.
 
The textbooks and the goddamn fees.
 
error: cannot bind 'std::ostream {aka std::basic_ostream<char>}' lvalue to 'std::basic_ostream<char>&&'
 
user406009
It turns out when you use those autoloader plugins for manga, Firefox still keeps all the images in memory.
 
2:47 AM
literally wot
 
@Mysticial I kind of pains me to see such a powerful beast running Windows
 
I don't C++ for a few weeks and the errors become unreadable.
 
user406009
So when you have like a scroll bar a mile long full of manga, it adds up.
 
IIRC that’s from missing the declaration of the appropriate operator<</operator>>.
 
2:49 AM
what happened to good ol' `operator<< not found?
 
I liked when it would just keep rambling about candidates found for a year
 
Well, there’s almost always one for std::ostream&& :/ Ya know, the one that binds the rvalue and forwards to the lvalue one. I guess they could SFINAE it for better diags. File an enhancement?
 
Is that error from gcc or clang
clang prints scrub-friendly error messages
 
this meme is still a thing eh
 
2:50 AM
what meme
 
DAE clang better error messages?
 
It has squiggles
What more do you need
 
user406009
@AnastasiyaAsadullayeva I want clang to fix the code for me.
 
user406009
And make me a sandwich while it's at it.
 
All I know is that a lot of the times, clang will tell me explicitly what's wrong when gcc will go on about some shit that I don't understand at all
clang: 'missing template specifier'
 
2:51 AM
@AnastasiyaAsadullayeva lol
 
gcc: 'blah blah blah <<< >>>> whatever line error something standardese'
 
How about 1.5 TB of ram in this thing?
http://www.newegg.com/Product/Product.aspx?Item=N82E16813182940
 
Trying to bind an lvalue to an rvalue ref is the exact error at hand :v
 
user406009
@Rapptz Well, clang used to have better compiler errors.
 
@Prismatic nope
 
user406009
2:54 AM
Of course, things change.
 
Compiler errors do not typically use standardese.
 
what should I work on in C++
been doing too much python
I miss see pee pee
 
@LucDanton I might have mixed up typename and template. Either way, clang's error messages are often more readable in my opinion. I made clang my default compiler because of it
 
user406009
@Rapptz Join us on the dark side. Use Rust instead.
 
I forgot Rust was a thing
 
2:55 AM
Poor Rust.
 
it was like post-1.0 all the hype died off
good times
 
user406009
@Rapptz Anyways, you could join the crowd and write YetAnotherGameEngine.
 
@Prismatic my favourite example of bad errors with Clang is std::vector.
 
Jun 19 at 5:19, by Prismatic
gcc error message:
error: expected primary-expression before '>' token
SharedCount<SceneInstance>::getNext<T>());
clang error message:
Jun 19 at 5:20, by Prismatic
error: use 'template' keyword to treat 'getNext' as a dependent template name
SharedCount<SceneInstance>::getNext<T>());
                                ^
                               template
 
If you take a look at the full report for either compiler it amounts to the same information, although not in the same order :v
 
2:58 AM
Im sure that gcc does a better job in some cases. When I have an error I dont understand at all I compile it with both to get both error messages :p
 
A while ago
 
I prefer GCC’s order for SFINAE/overload resolution shenanigans.
 
Typing std::vector lol;
Would make Clang say "Did you mean std::hector?"
 
lol what
 
but GCC would say "missing template after std::vector"
good times
 
2:59 AM
that's amazing
why std::hector?
 
It does sound helpful.
 
Clang would say avoid std::vectors, use a condom and then exit with EXIT_SUCCESS
 
I wonder if clang / gcc error message are translated into different languages for international users
 
s/hector/hecto
 
3:00 AM
@Prismatic Look at more than just the first error. This is advice for any compiler for any language. Has to do with compiler theory and how implementers are lazy bastards.
 
@Prismatic oui, they are
 
@Prismatic ofc
 
Cest une erreur
 
@Rapptz now I remember
 
good times
I think they fixed it right?
 
user406009
3:01 AM
One of these days, we should compile a list of side-by-side clang vs gcc vs MSVC error messages to end the debate once and for all.
 
it depends
 
haven’t used Clang in a while, couldn’t say. plus it has to do with what it finds in the std lib, no?
 
@Lalaland There's no point since some errors will be better reported by some compilers
 
The only thing I know GCC is for sure worse with is the foo.template bar<T> errors
 
@Lalaland Then I submit my code, which segfaults and/or is wrongfully rejected by Clang
 
3:02 AM
but the rest GCC does a decent job at
 
user406009
@Prismatic Thus the point of getting a list of multiple errors. So we don't have really too much on single messages.
 
@LucDanton What is?
I haven't crashed clang/gcc in a while.
 
awwwwwwwww yis, dark theme on coliru
 
@AnastasiyaAsadullayeva They improve very fast so I actually have no clue if the claim is up-to-date.
 
user406009
@Rapptz Rust is still a good language though. Hype or no hype be darned.
 
3:05 AM
I'm sure.
 
user406009
People seem to find MSVC ICEs a lot more often.
 
@LucDanton Yes it is true, they move much faster now than couple years ago
 
who works on gcc? is it backed by any companies or is it mostly just volunteers?
 
bahaha not even MS support technician could partition this drive lol
 
@Prismatic Off the top of my head there’s a lot of Red Hat backing.
 
3:10 AM
A few MS guys to introduce an ICE here and there
 
Rainmeter is nice.
Look at my pretty desktop.
 
user406009
I don't know why people spend so much time customizing their desktops.
 
@Lalaland Your avatar looks like my desktop.
Hahahahaha.
 
user406009
I mean, you have all this valuable screen real estate, that you probably want to dedicate to your, like, useful applications.
 
i.e. porn
 
user406009
3:14 AM
I only see my desktop for like 10 seconds every time I start on my computer.
 
Hm.
I forgot Qt had i18n stuff.
 
user406009
Qt has everything.
 
@Nooble so minimal
I never understood why people cared about having a widget displaying CPU and RAM usage though
Much less network I/O
Or the list of components in your PC
 
I have network IO because I need to track my usage
 
user406009
I guess the RAM one could be sorta useful.
 
user406009
3:21 AM
Tell you when to close your tab city.
 
qt pls
what's this QCharRef shit
I just want a char
 
inb4 cow
 
> QString("A").at(0).toAscii();
qt pls
I just want a char
not write an essay
 
@AnastasiyaAsadullayeva Yes I was going for that.
@AnastasiyaAsadullayeva Opening task manager is too much work.
 
> QString("myTextHere").toStdString.c_str()[0];
lmao
this gets better
>this is an SO answer
 
user406009
3:24 AM
@LucDanton Good guess
 
user406009
> Behind the scenes, QString uses {implicit sharing} (copy-on-write) ...
 
to_qt(QString("blah").toStdString.c_str()).… /* it goes on */
 
I don't think he guessed
 
All Qt containers
 
isn't this common knowledge?
 
3:24 AM
@Rapptz If you want a char use a char. For example char a = 'A'...
 
thank you detective Mikhail
 
My pleasure
 
@Mikhail Looks like chariadics to me.
 
Ça me rappelle, j’ai découvert « Sans déc’ Poirot » comme expression sur Internet.
 
Underfoule ?
 
3:26 AM
god no
 
En tout cas c'est excellent
 
sans dé jveux dire ouais
 
Oui, je sais française.
Koalas sont de langue maternelle française.
 
asv ?
 
Google translate works magic.
 
3:30 AM
@LucDanton 24, épais long et dur, La Tremblade-en-Gentilly
 
@AnastasiyaAsadullayeva Thick, long and hard?
 
@Mikhail :P
 
@AnastasiyaAsadullayeva this doesn’t look like a real place
Comme disait le poète : si seulement j’avais demandé ton adresse, afin que je susse où t’habites.
 
I just realized that no-one man today can make a website due to the hours required to type all the CSS.
 
3:33 AM
Je suppute un jeu de mots.
Feature request: upvote github issues
Tired of all the hipsters commenting +1 or :handup:
 
@AnastasiyaAsadullayeva au fait tu voyages comment jusqu’à HK
 
@AnastasiyaAsadullayeva "Like"
"Add this user to your circles"
:who does this:
 
alright done with Qt
time to play video games
 
@LucDanton Je prends le train depuis La Tremblade-en-Gentilly jusqu'à Charles-de-Gaulle où j'embarque dans un carrosse ailé fendant les cieux jusqu'à Onche Onche, avec une escale à Daubaï.
 
Lol.
 
3:42 AM
@AnastasiyaAsadullayeva ah, alors t’arrives pas à pied par la Chine du tout
 
user406009
What? That makes no sense.
 
user406009
CoD and Minecraft are almost opposite genres.
 
@Nooble They really are running out of ideas
 
You know that capitalized "Baby" really does bother me.
@AnastasiyaAsadullayeva Yeah :P
 
user406009
Hmm, oddly enough StarGazer is still online. Perhaps the mods decided to leave it alive. Odd.
 
3:43 AM
@LucDanton Encore heureux
@Lalaland It's probably accidental and they don't know about it
(They had a rollback earlier)
 
Steam reviewers are fickle.
 
user406009
The idea of an FPS with a decent in-game map builder is sorta lame though.
 
user406009
Building good maps is hard.
 
> I'd rather drag my testicles through 5 miles of broken glass and sandpaper than to play this game for another 15 minutes
 
3:47 AM
Steam Reviews are okay.
 
@Rapptz Yeah but I like saying 'fickle'.
 
@LucDanton fickle matter?
 
user406009
Seems like the main complaint about the game is that it's heavily PayToWin.
 
@Borgleader :l
The pun gods frown upon your shenanigans.
 
user406009
 
3:52 AM
@Lalaland Haha I was going to post that but it was too long to copy pasta.
 
user406009
It was a great build up for the punch line. I'll have to steal that joke.
 
crepy pasta
 
For GTAV.
 
user406009
@AnastasiyaAsadullayeva You are correct. It's a standard, old copy pasta reddit.com/r/copypasta/comments/2mh8gu/…
 
3:56 AM
@Lalaland pls no, unless you’re in Twitch chat in which case that’s just normal.
Kappa
 
@Lalaland I've been on the internets before
>It is still unclear if the malware infestation is government-sponsored intelligence tactic or a mistake the manufacturers have overlooked during production.
 
well what else could it be
 
4:12 AM
@Nooble Is that Sailor Moon in the bg
 
I have a struct with a bunch of fields, one of them is a std::unique_ptr how do I make the struct movable without writing an explicit move constructor?
 
don’t have to do anything
if that doesn’t work out for you, specify compiler then we’ll have a laugh
 
Somehow, auto data= std::move( queue_io.back() ); complains that the function is deleted where queue holds the struct with the unique_pointer..
 
@Mikhail If you declared a copy contructor (or worse, a destructor) you can force a default move constructor via the usual way.
 
4:31 AM
MSVC?
Should a JSON object that maps 1-1 to a C++ object (serialized from it) use snake_case convention? What if I distribute this JSON object over the web? Won't people shout at me in disgust?
 
not really
when I use APIs the JSON I get is snake_case
seems rather common tbh
 
Can you tell jsonpp is a core component of our app btw
 
ikr
 
return &*it;
did someone mention sigils
 
at least it’s not &mut *it.mut_borrow()
 
4:46 AM
pfft obviously &*it->*borrow is where it's at.
 
not even a little
 
Fuck MSVC and its long=int policy
I need to stop putting gender to things in English
 
That's why I don't use long at all.
Heck, I don't use any of the built-in integer types except occasionally int.
 
long long is ugly and int64_t requires an additional include
 
Mai Intdong just isn’t the same though.
 
4:52 AM
good one
 
@Prismatic Looks like it.
 
> I just got into my first job (spanglish interpreter)
 
time for breakfast
 
@StackedCrooked I wouldn't mind a fry-up if you're offering :p
 
@JonClements I'm gonna eat a huge breakfast. Maybe french toast.
 
5:22 AM
morning :-)
 
morning
 
5:48 AM
so std::tm month is from 0 to 11 but day is 1 to 31?
good job C
 
@AnastasiyaAsadullayeva eww
 
Also ADL doubt:
namespace flowers { using alias = std::whatever; auto func(alias) { ... } } doesn't find func outside of flowers, does it?
Because MSVC says it doesn't.
 
naw, unless of course std::whatever cleverly turns out to refer to a type that happens to live in that flowers namespace.
 
no does not find it
 
well that sucks cock
wtb strong aliases
or something
 
5:53 AM
flowers::func :-}
 
you can separate the ADL extension hook from the sane defaults
well, that’s a heavy-handed approach
 
@AnastasiyaAsadullayeva maybe boost'S strong typedef?
 
I'm just trying to provide a to_string for time_point in a specific case
oh well
I'll just rename it to something else
 
strong typedef creates its own type, convertible to and from the other type.
 
All my ADL extension hooks have unwieldy names such as foo_implementation. Then foo itself can do behind-the-scenes work; e.g. the actual ADL call can have using sane_defaults::foo_implementation; in scope.
If you are a disciple of Niebler you make foo itself a non-function so there can be no accidental ADL, too :v
There are crazier ways to go about it by (ab)using SFINAE but it feels too brittle for my tastes. Plus separating the names like that reflects an actual separation of concerns.
 
5:59 AM
A Niesciple
@LucDanton Do you have an example?
 
std::swap is actually an example of that, save for the fact that the ADL function (if any) and the non-ADL overloads have the same name.
 
llvm repo has a branch named "cremebrulee"
 
@StackedCrooked yummy
 
@LucDanton Oh, ok, got it.
 
E.g. if you have std::swap in scope and you call swap unqualified on an array then the sane default of std::swap for arrays is called, which in turn will call swap on its elements. Which swap is called depends on the type of those elements—it might be another sane default (default swap, or array again, etc.) or the result of ADL.
 
6:15 AM
Maybe I should pick a namespace for those sane_defaults.
@AnastasiyaAsadullayeva Thanks for the food for thought.
 
Thanks for the explanations! And speaking of food...
 
@Anastasiya yeah... I'm still waiting for my fry-up to turn up... waggles tail impatiently :p
 
No, I’ve got it: a tag type per ADL hook. Then you can add sane defaults after the fact. (Or rather: give sane defaults and ADL extensions the same standing.)
 

« first day (1788 days earlier)      last day (3162 days later) »