« first day (2091 days earlier)      last day (2872 days later) » 
00:00 - 19:0019:00 - 00:00

12:02 AM
@Borgleader Considering that the installer thinks it's gone, I'd probably reinstall from the beginning, not just try to re-install the update. A new download of the installation should include the latest update already.
 
Okay, so I have 2 undergraduate students, both of whom don't know anything and aren't putting enough hours 50+ hours a week to be productive in research. What should I do?
 
Hire me!
 
Maybe next summer
 
are you serious?!
 
Are you authorized to work in the USA?
 
12:11 AM
of course not
 
I don't know who the fuck you are, some people in this chat room are from America
 
@Mikhail Nope. Not true--not even one.
 
Well i am not from america, but i can work on your research
 
@JerryCoffin Man Diego, CA, United States
 
@Mikhail Diego's not a man--he's just a boy.
 
12:14 AM
It's your call
 
Although frankly, anybody from SO would be better then what I have, I can only take students who go to UIUC. I doubt my PI would pay for somebody remote, not the mention out of the country.
 
you don't have to pay
between what is that you are working on?
 
I build microscopes and do image analysis to justify the stuff I build.
 
@Mikhail Optical microscopes or more on the AFM/SEM/STEM order?
 
@JerryCoffin Optical
 
12:21 AM
@Mikhail So kind of not-so-micro microscopes. :-)
 
so you need an image processor which will recognize some pattern to verify your finding?
 
In short, you need to say that this new microscope solves some sort of, preferably, medical problem (else why the heck did you spend $300k building it). For example, I have a paper under review where we used my system to detect cancer in the same way a pathologists would detect cancer. So, you compute a bunch of features and collapse the dimension with ML.
 
I am not sure how pathologists detect cancer but does it work if we have pre defined data(image/video/some other formatted data to represent the same) with the new incoming?
 
@JerryCoffin Yes, thats why I'm getting the .iso that includes update 3
the download is going very slowly :(
user image
5
 
12:35 AM
@Borgleader Obviously can't allow her to participate in any open-source projects.
 
>>Buildbot: $15,000. Buildbot is a continuous build and integration system which has been immensely valuable to Mozilla over the past few years. Their award will be used to remove the term “slave” from all documentation, APIs and tests, and also to make improvements so Buildbot works better in the Amazon EC2 cloud.
fact, the word "slave" is still everywhere
 
@Mikhail Is it me or thats a big waste of money
 
They also failed
 
@Borgleader It's just you. Anybody trying to be accurate has thought up much more explicit (and expletive laden) descriptions than just "big".
 
You scared me for a second there :P
 
12:42 AM
@Borgleader I did my best.
 
:q
woops!
 
Hey does anyone know an online compiler that supports older versions of gcc/c++<11?
In a code review, I was told that the following would not work for c++ <11: pastebin.com/fLba7m4B
Being skeptical, I checked the online documentation and found nothing wrong(Or at least that I see). So therefore I want to try it on c++ <11.
 
you can start with -std=c++03, that should catch most things
 
Thanks, but I'm using Visual Studio on the company computer, and I can't downgrade to std=c++03. I don't have a VM image of linux distro on my company computer either, so can't compile with that. Any other way to compile?
 
12:53 AM
why on earth did you ask for an online compiler with GCC then?
 
So I can compile online and not locally since I can't compile anything gcc local on my computer?
 
righto, so use -std=c++03
 
(gcc has a different, frequently better implementation of the standard, so compiling on gcc won't mean it compiles on vc++)
 
http://www.comeaucomputing.com/tryitout/


Bursting With So Much Language Support It Hurts!
 
thanks @Mikhail, and Luc I didn't see any that were c++03 online. For example, cpp.sh has c++98 which is very old and we're not required to make it that backwards compatible.
 
12:56 AM
btw there is no std::unique_ptr in C++03
@OneRaynyDay same thing
 
You're right, I replaced my macro with std::unique_ptr so there would be no confusions (might be a bad use of macro tbh)
I set it to std::auto_ptr for earlier versions
 
off the top of my head GCC backported the C++03 'fixes' even for -std=c++98
 
 
2 hours later…
2:52 AM
user image
3
 
no come on
 
3:32 AM
has anyone ever encountered undefined reference to dgemv_'`. It seems like a linking problem with lapack but I added the flag in the compiler. Ah and yeah I have asked that question already stackoverflow.com/questions/38228607/…
 
3:54 AM
@DUWUDA You need to link to a BLAS, for example MKL
 
4:14 AM
Morning!!
Is using namespace std; at the top of every file bad practice?
In other words, is it better to use namespace std, or to just do std:: inside the source?
 
I like using std:: everywhere because a I deal with a lot of libraries and frequently get name collisions
 
@Mikhail Cool thanks!
 
4:31 AM
1
Q: How do a initialize a new moon from my Urbit planet?

Jeremy BanksI have my Urbit planet running on a server which is accessible from the internet, allowing other peers to connect directly without hole-punching or proxying through a star or galaxy. I'd like to launch separate Urbit moon instances, one for each of my personal computers. These are always behind ...

wat?
Its like the 90s, but instead of multi threaded apartments we have planets
 
@Mikhail ?
 
In a multithreaded apartment model, all the threads in the process that have been initialized as free-threaded reside in a single apartment. Therefore, there is no need to marshal between threads. The threads need not retrieve and dispatch messages because COM does not use window messages in this model.
Bill Gates was smoking some Unix crack pipe
One day I will find a software developer who can explain wtf people we're thinking when they choose COM
 
4:48 AM
COM is awesome.
Damn.
 
@Mikhail well also linked with blas
@Mikhail I tried set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${ARMADILLO_LINKER_FLAGS}") and target_compile_options(personalLib PRIVATE -O1 -llapack -lblas )
 
@DUWUDA I'm too lazy to read what you wrote, but you are probably doing something non-paradigmatic. If you're writing a program using cmake, add BLAS using cmake, ie find_package(BLAS REQUIRED)
@wilx Had to deal with some crap from Nikon Instruments, they set my program to single-threaded apartment mode - breaking drag and drop in Qt
 
5:07 AM
@Mikhail no, problem understand
 
5:19 AM
@Mikhail That sucks but that is solvable. You just need to run that from another thread so that that other thread is in the one single threaded apartment of the process. AFAIK. IIRC.
 
@JerryCoffin I'm getting really concerned lately. Especially with my ears. Also, I'm really grumpy in general compared to my usual demeanor.
 
@wilx Yeah, I did something like that but I could never figure out why we needed that COM layer in the first place!
 
I've noticed how often I'm asking people to repeat what they said. I'm pretty sure it's just an observation bias, but I feel like I'm doing it way more often than before. I should go get another hearing test soon to see if it's deteriorating, but I'm too scared to know.
Or maybe it's really just some kind of nocebo. I know I don't hear well so I trick myself into thinking I didn't hear properly.
 
That's why I don't like to go to the doctors - after all those painful tests, if the result is good, I will be told that things will heal themselves. If it's bad, I would probably be really screwed. Worse still, the results could be inconclusive.
 
@Telkitty In the US you will be given more tests
 
5:33 AM
@Telkitty I don't go to doctors because I'm stupid. That's all.
 
More tests don't mean it will definitely be any result, let alone right conclusion.
 
Who cares? Insurance will cover it.
 
@Telkitty But less tests will!
 
But I will get hurt - those needles, ultra sounds & x-rays
 
Funny how irrational people can get when trying to rationalise things.
 
5:35 AM
I had nearly 100 x-rays in the past 3 years, thanks to my dental surgeries & knee/breast/foot pains. If I get cancer ...
 
... you can get even more?
 
f*ck exercise injuries
most of those pains were the results of me being active
 
Ell
@R.MartinhoFernandes I do this a lot
Often I'll ask somebody to repeat themselves
Only for it to click in my head while I'm asking them to
I'm just so used to actuallu not hearing people that I don't give myself enough time to understand what somebody said when I do in fact hear them
It can be quite embarrassing asking "pardon?" All time
@Telkitty how are breast pains caused by activity? O.o
 
bra too small - worsens by exercise because movement
foot pain: lace too tight
 
6:00 AM
Got an std::bitset<38> local[38];. Profiler said it took 17% time. The default initialization is unneeded, what can I do?
Disassembler shown it is not optimized out: rep stos QWORD PTR es:[rdi], rax
 
Ven
6:32 AM
@Morwenn je vais psalmodier des verses du standard jusqu'à avoir une réponse à l'Appel!
 
user1804599
@johnchen902 use a struct with 38 bit fields instead of bitset
 
@Bassie It is a in fact template std::bitset<(w+2)*h-2> local[w*(h-2)+h*(w-2)] where w=6, h=5 for now.
s/a in fact/in fact a/
 
To be fair, when I said I had nearly 100 x-rays, it's partly because every time I get some bone to be examined, they take 3-5 x-ray shots from different angles.
 
user1804599
Then use std::array<char, (n + n % CHAR_BIT) / CHAR_BIT> and bitwise operators
 
user1804599
And bitwise operators
 
6:49 AM
@johnchen902 Avoid instantiating it until you actually need it and can initialize it with some meaningful value? How is it even possible that you do not need a meaningful value at the point of initialization?
 
@wilx Their value will be computed by some magic later. Like
while(somthing)
    if(something)
        masks[count++] = something;
(**** formatting)
 
@johnchen902 What about the bits that you do not set? They will be randomly set?
 
@wilx They are simply untouched. Like for(i = 0; i < count; i++) do-something-with(masks[0...i])
 
@johnchen902 IDGI. So you are not even using all of the bits of the bitset?
 
@wilx Wait a second I messed up my variable name. masks and local are the same array. I don't always use all the bitsets, but if a bitset is used all of its bits are used.
 
7:40 AM
@Ven L'appel ? Aux dernières nouvelles tu n'avais pas mon numéro :p
 
user1804599
You have to set the entire byte before you can set only a single bit of it.
 
user1804599
Otherwise UB.
 
Ven
@Morwenn certes. Je viens d'y arriver btw
Pas de PMs sur stackchat
inb4 encrypted in a github PR commit
 
Sinon j'ai mon adresse mail sur mon profil GitHub.
 
Ven
7:56 AM
And so do I. Ou en tout cas dans mes commits :p
 
Couldn't find it on your profile :o
 
Ven
Cette adresse email rofl
 
2006-style.
 
Ven
Sent it.
Are you here today?
 
I'm working today and tomorrow. I'll be there Saturday and Sunday.
Mmmh, still not received.
 
Ven
8:08 AM
I'll use another email address...
 
Got it. Best email address ever.
 
hello world
 
user1804599
if true then
    builtin apenkots;
else
    false;
end
 
user1804599
:D :D :D
 
Ven
8:38 AM
@Morwenn 2009 was a tough year...
I was 14, no meanies
 
wtf?
 
Xeo
> Please find below your ticket for "Meeting C++ 2016" from 18 November 2016 until 19 November 2016, which you ordered on 7 July 2016.
kekeke /cc @sbi
 
@Ell many women wear wrongly sized bras.
 
8:54 AM
hello everybody
 
user1804599
hello bob
 
@Ven I got my baccalauréat in 2009.
 
i am a noob, and i wanted to simply compare a byte for color of a bmp, so i i tried : if (triple.rgbtRed=="ff")
 
Have you received my shiny SMS?
 
also tried it without the quotation marks
 
nwp
8:56 AM
@hmmmbob try 0xff
 
Oh, yes you have.
 
hmh but when i print it out..i only get ff
so if that works, i am even more confused :)
 
Xeo
@Morwenn Are you attending Japan Expo together or sth?
 
nwp
it worked...
first of all, thank you very much of course !
just so confusing that it does not print it out :)
 
user1804599
@hmmmbob learn the difference between value and representation
 
8:58 AM
i just learned that there is one :)
 
user1804599
ff, 0xff, two hundred fifty five, and 255 are all different representations of the same number
 
i was aware of that i was just under the impression when i print " i get to see whats there"
 
user1804599
What's there is a number, and you can't print a number, only text.
 
nwp
@hmmmbob you do, in a certain representation
 
I tried to compile a program with armadillo/lapack/blas, despite having all the flags (that is -O1 -lplack -lblas) I still get a missing reference error (that is undefined reference to `dgemv_') Has anyone an idea, this drive me nuts
 
user1804599
9:00 AM
So you first have to convert the number into text in some way.
 
@Xeo We both happen to go.
 
Xeo
get me some swag
 
@johnchen902 Maybe you could try Boost's Dynamic Bitset?
@DUWUDA -lfoo switches go after all the bar.o files.
 
9:17 AM
Have you guys heard of spider-goats?
I missed this, somehow.
 
the answer to this seems obvious to me but I don't have the legalese to properly answer it.
 
obligatory "obscure feature" comment by me
 
time to go to work now
 
@R.MartinhoFernandes had not. NOw have
 
9:24 AM
@wilx thanks for the tip. I wrote the whole thing in cmake how do I force the flags to be at the end? I asked the question already here: stackoverflow.com/questions/38228607/…
 
@Borgleader Hm, I can't standardese anymore but the old draft of the standard I had seems to say that lifetime should be prolonged anyway
"The second context is when a reference is bound to a temporary.116 The temporary to which the reference is bound or the temporary that is the complete object of a subobject to which the reference is bound persists for the lifetime of the reference except: [...]"
now I wonder if data member is subobject
should be rite?
 
You shouldn't specify the linker flags that way. Check out how CMake works, especially target_link_libraries. — usr1234567 15 hours ago
 
@AndyProwl yeah
 
in that case lifetime of Foo{} should be prolonged when you bind a const& to Foo{}.a
 
@Xeo We'll send you food the slow way.
 
9:26 AM
I appreciate the comment, I just do not understand what I did wrong
 
quality of your CMakeLists.txt is inversely proportional to the count of variables used directly
 
Xeo
@Morwenn Not food. Swag.
 
9:44 AM
@wilx I appreciate the comment, I just do not understand what I did wrong
 
@DUWUDA The comment clearly says that you should not be adding libraries to flags but you should be using target_link_libraries instead.
 
@Borgleader That argument feels facetious. With great power comes great responsibility: you may have the right to offend, but you have to exercise that right carefully, otherwise you're just being a jerk (you also have the right to be a jerk!). "Having the right" to do something isn't carte blanche to do it without considering its effects.
 
8
A: About binding a const reference to a sub-object of a temporary

ColumboThis is covered by CWG 1651: The resolution of issues 616 and 1213, making the result of a member access or subscript expression applied to a prvalue an xvalue, means that binding a reference to such a subobject of a temporary does not extend the temporary's lifetime. 12.2 [class.tempor...

(Literally found when googling for that piece of wording. lol)
 
it's been closed as dupe of that one
 
Ah yes, correct.
> CWG1651. Lifetime extension of temporary via reference to subobject. Submitter: **Richard Smith**
> This issue is resolved by the resolution of issue 1299.
> CWG1299. “Temporary objects” vs “temporary expressions”. Submitter: **Johannes Schaub**
...why doesn't this work fully
Either way, I'm somehow not surprised by who are the submitters of those issues.
 
9:59 AM
@wilx Thanks got it now, and it works
 
I forgot a semicolon. https://t.co/mAguvZujZL
lol
 
@DUWUDA \o/
 
10:23 AM
@Griwes worst part is that it took 3+ minutes to get the feedback on that...
 
.@JamesMcNellis You can forget a semicolon, but the semicolon will never forget you.
hahahahahh
 
so romantic
 
a programmer & a semicolon ...
 
@Xeo Food is swag.
 
user5058091
XD
 
user5058091
10:33 AM
Windows XD
 
Ven
11:05 AM
@Xeo apparently. Though "together" is a bit of a stretch
 
11:17 AM
@R.MartinhoFernandes Yes sure, but OTOH if you're the only one offended can/should you really ask for X thing to be changed (i.e. "ruining it for everybody else")? I mean, lets not forget this is a funny comic, but I think what it's trying to illustrate is that theres a balance, at least thats the way I saw it.
 
 
2 hours later…
1:12 PM
#dead
 
1:23 PM
>tfw u dead but she keep posting
 
@набиячлэвэлиь ...lol I have a song that's a perfect comment for that
the only problem for others is that it's in Polish
 
Post it, nobody's in here anyway
 
It is strangely fitting
 
yes
yes it is
Fuck, I thought I was clever with this attempt at lock-free stuff and turns out... I wasn't. :x
 
1:37 PM
woop woop dead room alert
RIP
et cetera et cetera
 
that's what the song is about
yes
 
excellent
 
404 Love Not Found
 
well actually it's about a dead guy not a dead room
but that sounds like the same thing so
 
@Morwenn did something happen
@Griwes I wouldn't know the difference
as I am a dirty pleb
 
1:41 PM
@набиячлэвэлиь lies
 
at any rate it's past time for work, so I'm going to have to abandon you all in what is probably not your darkest hour
 
@jaggedSpire Nope.
 
@sehe well, you should've learned Polish already so no difference
 
True. I find reverse Polish more intuitive though
 
2:11 PM
@jaggedSpire R I P
 
2:24 PM
I am making a video for the construction process of the small house I have owner built
But it's harder than I thought, I have already made selection of 500+ pictures from the few thousand pictures & videos that I had taken over the period. Second round was made to remove even more pictures and video clips.
 
user1804599
oh bingle bangle bungle I'm so happy in the jungle oh no no no no no
 
user1804599
 
@Borgleader Reverse Intuitive Polish? /cc @sehe
 
user1804599
2:40 PM
now I want a hotdog :(
 
user1804599
haha, that xkcd page has "Comic today's you confuses here click if." in its header
 
3:12 PM
Any idea how to mimic asm volatile("" : : : "memory"); in MSVC?
 
@R.MartinhoFernandes Is there no barrier function in std::atomic or something?
 
@Mysticial Won't that generate code?
asm volatile("" : : : "memory"); doesn't. It just acts as a barrier for the optimizer, not the CPU.
 
I meant that something like a compiler barrier (if it exists) would probably be in and around std::atomic.
 
Ah, no, I don't think there's anything standard.
 
Or perhaps C++ really wants you to be using acquire/release semantecs on the stuff around the barrier rather than having a barrier itself.
At least that's the case I run into a lot. I've never had the need to use a compiler barrier since I always end up using acquire/release.
 
3:17 PM
I need this only for the optimizer inhibition. It's for nonius.
 
ooooh
Is this for profiling? Or are you trying to work around something?
 
asm volatile("" : : : "memory"); touches all memory, is opaque to the optimizer, and generates no code.
@Mysticial Yeah, benchmarking.
 
ahhh...
My favorite way to suppress global optimizations in profiling is to disable inlining of the function I'm measuring. But that adds overhead which isn't great for smaller stuff (which are supposed to be inlined).
 
Yeah, this asm trick doesn't inhibit inlining.
 
volatile on specific variables seems to work ok for everything that isn't ICC.
 
3:21 PM
It just gives you fine-grained control of what memory operations must be kept (say, initializing a vector that later gets summed: drop this between the initialization and the sum, and the vector isn't discarded)
@Mysticial Oh, what issues come up with volatile in ICC?
 
It sometimes ignores it. I'm not sure exactly on when it ignores it. My guess is that if the variable is on the stack and its address is never taken, it can't be accessed outside the scope and therefore volatile is useless. (from a semantec POV)
 
Folly also has a variation of the theme: github.com/facebook/folly/blob/…
Google's has an implementation for MSVC, but it seems extremely fragile as it depends on the optimizer not being able to see across TUs. (i.e. is likely to fail with LTO)
 
IOW, you're screwed?
 
Facebook's uses #pragma optimize ("", off) for MSVC, but the function they have does self-assignment, which isn't something I want since I support non-primitive types.
@Mysticial That has been my starting point, but when I realized how that asm trick works very reliably in GCC and clang, I got hopeful maybe I can craft some monster for MSVC.
 
That asm trick isn't entirely free.
I believe it also prevents caching of variables in non-local scope in a register.
 
3:29 PM
Yeah, but my benchmarks must be repeatable anyway, so non-local data is out.
 
So if you're load something that may be seen elsewhere, and then you use it again after the barrier. I believe the asm block forces the compiler to write it back (if it's modified) and load it again after the barrier.
 
Because the runner might decide to run the user code a thousand times in order to collect a single sample anyway, you can't have code that modifies non-local state.
 
Note that if you pass a local variable into a function call, it also becomes non-local if the compiler can't inline that function and trace where it goes.
*pass-by-reference/pointer
 
@Mysticial Not sure I understand.
Oh, that negative makes all the difference.
 
Sorry, I typoed.
 
3:34 PM
@Mysticial True. But how would this differ in real code, though? Wouldn't the compiler have the same hindrance?
 
@R.MartinhoFernandes In real code without the barrier, the compiler doesn't need to reload the variable.
Actually wait...
 
@Mysticial But wouldn't whatever it is that prevents inlining have the same effect as the barrier?
If you call code you don't know, anything can happen.
 
When I think about this a bit more... In the case of passing it into a function by address, it will be forced to reload it after the function call anyway.
After that load, assuming there are no more function calls and the variable isn't volatile, the compiler expects the variable to "not change unexpected" and can keep it in register the whole way.
If we throw a barrier into that...
I actually don't know.
IOW, I don't know what happens if you do this:
int x;
func(&x);
int y = x;
asm volatile("" : : : "memory");
int z = x;
Does z = x cause x to be reloaded? I don't know.
 
hello :)
 
3:41 PM
@Mysticial Yes. asm volatile("" : : : "memory") is a write to x (and to y as well).
The optimizer doesn't look into asm and the "memory" clobber means "it can read and write anywhere in memory".
 
y doesn't (shouldn't) count since it's a local and can't be seen outside of scope.
 
@Mysticial It depends.
Since y isn't an explicit input, if the compiler enregisters it, then the asm block cannot touch it, but if the compiler leaves it in the stack, then the asm block can touch it.
 
@R.MartinhoFernandes So the definition of memory is "physical" memory rather than "semantic"?
 
There's a variant where you mark the addresses of specific variables as inputs or outputs of the asm block and that prevents the compiler from enregistering them.
@Mysticial Yes. It means "memory the asm block can access".
 
@R.MartinhoFernandes That I'm aware of. I've used those before, but only for registers.
 
3:45 PM
asm volatile("" : : "g"(&x) : "memory");
 
Do you need something like the proposed std::timing_fence?
 
The forces x to be in memory (so that the asm block can see it), and at the same times "reads" and "writes" (in the optimizer's POV only; no actual code is generated) to it.
 
wanted to write a very simple, sort algorith.. iam a beginner and maybe someone can spot my quick mistakes if you were so kind
 
@R.MartinhoFernandes The inverse of that implies that locals won't be flushed back to the stack and reloaded.
 
@hmmmbob don't post large code blocks in the chat
 
3:47 PM
Seems to be only about reordering.
 
Yes.
Oh.
 
Also you need to specify what sort you're using in this case it looks like bubble sort or something
 
It cannot be used to, e.g., force the compiler to actually allocate a vector.
 
oh iam sorry for that, did not know
 
vector<int> v;
fill(v);
return sum(v);
 
3:49 PM
no problem (click on the left side of your chatbox to edit and remove the code), use pastebin.com for any code you want to show
 
This can (potentially) be optimized to simply perform the sum without the vector.
 
@R.MartinhoFernandes Ok, I see. I remember that a paper proposed something that acted « as if it accessed every memory location at once » but I can't remember the paper.
Some kind of barrier.
 
vector<int> v;
fill(v);
asm("" : : "g"(v.data()) : "memory");
return sum(v);
 
But that still sounds too weak for an optimization barrier.
 
This forces the compiler to actually fill the vector and not discard it.
It also forces the sum to use the data from the vector and not just have it precomputed or whatever (because the asm block could have changed it)
 
I would have one of these barriers right at the boundary between nonius framework code and user code, and also possibly expose them for the use to have fine-control within the benchmark (though that requires careful documentation).
That would prevent the compiler from doing optimizations that merge framework code with user code.
@Morwenn What else would you want from it?
Or do you mean weak in the sense of "not good enough for standardization"?
 
4:30 PM
isn't there something in std:: that does this? Like atomic signal fence?
 
0
Q: How to read and write to all memory with MSVC?

R. Martinho FernandesChandler Carruth introduced two functions in his CppCon2015 talk that can be used to do some fine-grained inhibition of the optimizer. They are useful to write micro-benchmarks that the optimizer won't simply nuke into meaninglessness. void clobber() { asm volatile("" : : : "memory"); } void...

@Mikhail I don't think that prevents discarding things.
(And unlike the empty asm blocks, it generates code)
Also, is there anything preventing the compiler from discarding/reordering anything local in those?
 
-39
Q: Feature no copyable code blocks

ViolaNo copyable code blocks should be good feature, because it forces the questioner to write for yourself, and therefore promotes learning.

4
^^ lol
 
Ell
4:52 PM
I wonder what the scum that forms on top of tea is
 
5:18 PM
How to reduce XML/XHTML? I want to reduce the HTML into only nodes selected by some XPath expressions.
 
@R.MartinhoFernandes Not sure what I was thinking when I said that :p
 
Hm....Using Perl, use XPath to find the leaf nodes, traverse towards document root and add all nodes on the path to some set. Then traverse the document and check against the set to see if it is one of the nodes to keep. Otherwise delete node?
 
@R.MartinhoFernandes Found it: N4534 proposed to introduce std::barrier() with the following effect:
> This function is assumed to access and modify every memory location in the program, without inducing data races (1.10 [intro.multithread]). [ Note: The implementation may not speculatively move evaluations across the barrier. ]
But the overall data-invariant proposal was rejected anyway, so we ain't getting std::barrier().
It could probably stand alone as a proposal though.
 
5:55 PM
@Morwenn That's a nice addition.
@Morwenn Oh. There goes my hope.
 
Approximately three seconds.
 
Is how long ThePhD lasts...
2
at being hopeful
 
6:09 PM
@Morwenn the std::barrier() just got 3 cycles longer!
 
@Morwenn You were thinking like most of us: "My mind is focused. My deadline is close. What I'm doing is importa....oooohhhh shiny!"
 
TIL std::function<int()> is trivially convertible to int(*)(), like a lambda.
 
> >like a lambda
false
Most lambdas aren't convertible to function pointards
 
@набиячлэвэлиь Like some lambdas...specifically, stateless ones.
 
@JerryCoffin more specifically no-capture ones
 
user1804599
6:16 PM
@ThePhD lolno
 
All of my sorters are convertible to function pointers /o/
 
@набиячлэвэлиь That my be a more explicit way of saying it, but I don't think it's any more specific.
 
Ven
@набиячлэвэлиь 5.1.1.2 iirc
 
I wish there was a simple way to = default function pointer conversions for stateless classes that implement operator().
 
@Ven jesus christ how do you remember this kind of shit
 
user1804599
6:19 PM
@Morwenn Do it the other way around: define just the conversion to function pointer. You will get the call operator for free when you do that.
 
I have 150k operator() overloads and the syntax to define conversion to function pointer is too ugly. Smart idea though.
 
This sounds Trumpy
> I started out with just a small load of a thousand operator() overloads
 
user1804599
@Morwenn #define FUNCTOR(r, ...) operator alias<r(__VA_ARGS__)> { return ...; } r operator()(__VA_ARGS__)
 
Ven
@набиячлэвэлиь i'm at page 107 of the standard!
 
> I WILL BUILD A GREAT CONVERSION FUNCTION
2
 
6:40 PM
@Morwenn 150k?!
U WAT
 
@orlp Sorting is srs business
 
lol, that's the point where I'd consider making a small sorting language so that you don't have C++ syntax in your way
btw, I've noticed that a lot of questions can be boiled down to the same set of foundation principles being misunderstood. Do any of you ever just type a short article about each one, then copy-paste-edit to answer new questions?
 
6:55 PM
no
 
@Morwenn y u no lambda
 
half an hour until tetris on gamesdonequick guys...
 
00:00 - 19:0019:00 - 00:00

« first day (2091 days earlier)      last day (2872 days later) »