« first day (2057 days earlier)      last day (2906 days later) » 

12:00 AM
@sehe I think @JerryCoffin was the first one to drop that in here, or something?
 
Could be
As I remember this was the one that started it off:
 
Also @rightfold I saw the design for a urinal in the Netherlands somewhere that added a little engraving of a Fly inside of it. And that in doing that, splash on the seats went from like 50% to nearly 0%. Have you seen any such urinals? /cc @sehe
 
Yes
 
Neat!
 
user3790646
Dunno why my boost::shared_ptr keeps making the program crash @_@
 
user3790646
12:08 AM
Fatal program exit requested, ucrtbase.dll, utility_desktop.cpp
 
user3790646
That's a pain in the ass
 
It doesn't.
Your use of it is.
 
user3790646
Yes, it's my fault
 
user3790646
I know that .__.'
 
user3790646
What can make a boost::shared_ptr crash the program?
 
12:10 AM
@ThePhD I don't think it was me.
 
Hrm...
 
@AndreyErick integers
and other things
 
@AndreyErick Abuse. Is that really your question? If you know it's your code, of course you need to post your code. Minimized. And on Stack Overflow
 
@JerryCoffin It seems @sehe was the first one
 
@ThePhD That was literally in reply to orlp
 
Oh wow
The same conversation, played out.
Neato.
 
@StackedCrooked Testing the waters/
 
user3790646
@sehe Well... It's probably related to iterating through a vector of boost::shared_ptr
 
So. That's obviously not enough context. As vectors can be iterated.
 
user3790646
Yes
 
user3790646
12:16 AM
I'll try to provide an example on SO
 
Good idea
@AndreyErick I don't often quote LRIO for truth, but this article is spot on for your situation kera.name/articles/2013/10/nobody-writes-testcases-any-more
 
user3790646
I'm reading it. Good article.
 
12:39 AM
tfw no goddamn constexpr argument so I can't just fucking for (constexpr int i = 0; i < 3; ++i) { test_value &= std::get(i, my_tuple); }
M Y T E A R S
I'm so sick of apply.
 
I haven't found an interesting use for constexpr yet.
 
I've seen some people use it smartly to do things like a compile-time sqrt to avoid having a lookup table in their embedded code for that math function.
It's really mostly for optimization purposes and the fact I can't apply it to regular stuff drives me M A D .
 
The optimizer doesn't need the constexpr tag in order to know if a value is known at compile time.
I'm certain that one day I'll find an awesome way to use constexpr.
 
Right, but when you're dealing with something that requires you to transport your runtime values through a system or a framework, you end up paying the copy penalty when instead it could just be shoved into a compile-time constant somewhere.
Problem is, if you want that then you need to deal with the horror that is Template Arguments, and buahahhahaha shitty usability.
 
12:58 AM
@StackedCrooked Imitate languages like BASIC that allow strings as values for switch statements. coliru.stacked-crooked.com/a/ab66ccca3b9695ef
 
I smelled some BBQed meat when I went to bed around 1am this morning, bizarre
 
Of course, it's a hash function, so it's open to collisions (but if you used something like SHA-256 instead, chances of a collision could be so low you'd no longer care about it).
@Telkitty That was actually your cat encountering a high-voltage line.
 
high-voltage lines are all far far away, must be one big cat to generate so much smell for so long
 
@StackedCrooked Oh, I almost forgot to mention: if the cases you allowed for include a collision, the compiler will warn you because they'll result in duplicate case labels.
 
1:15 AM
@JerryCoffin Ok, that actually is cool.
 
There might be something to this new kid youtube.com/watch?v=CzL7G0jItzU
 
Compile time manipulation of string literals didn't work very well in C++03.
So yeah, constexpr definitely has value there.
 
@CaptainGiraffe Could be--if he lives long enough to fully develop his talent.
 
unsigned constexpr const_hash(char const *input) { return input[1]; } // no collisions for abc, def, daf
@JerryCoffin lol
 
@StackedCrooked 'twas downright painful. Of course, we can also make this even a tiny bit less painful (at least to type): coliru.stacked-crooked.com/a/b37738b6f6ed159e
 
1:24 AM
Nice.
 
Also note this was written as a C++11 constexpr. For C++14, it could be written more normally (e.g., using a loop instead of recursion).
 
When he was a kid he had lots of talent. Behold youtube.com/watch?v=NdHHsoW6mMg
 
1:48 AM
There might be a contender youtu.be/xPL3O7NmgpI?t=110
 
@CaptainGiraffe One of the most underappreciated/overlooked guitaritsts, IMO. Some of his solos are as good as they get, but in most cases they just "fit" so well with the rest of the music that people primarily notice the mood/feeling of the music, and kind of overlook how well he's playing. In other words, to an extent he's overlooked exactly because he does it so well.
On a different note (fitting segue, eh?) is it time for a renewed discussion of the tags related to C++? Right now, there are , and , but not a . Given the current tempo of standards releases, would it (perhaps) make more sense to just turn it into for modern C++, and (or something similar) for questions specific to C++98 and pre-standard "stuff" like Turbo C++ that comes up far too often?
Note: I'm not really advocating a change right now, just starting to wonder whether we can come up with a better scheme than we're using right now.
 
2:16 AM
I like the idea of defining "classic-c++".
 
PSA: teamviewer is hacked, uninstall that shit
 
But I'm just a < 300 point scrub, so. :v
 
2:27 AM
local universe is expanding even faster than we thought ... I have planned a trip to the observatory some 5-6 hours drive away next weekend - must take pictures before stars become invisible in some million years time :p
 
I am interviewing at Amazon Robotics tomorrow, and there is going to be lots of C++. Wish me luck!
 
2:48 AM
Good luck!
@JerryCoffin c-with-classes
 
good luck
 
3:09 AM
@Nican let me know how it goes!
 
@Cubbi Sure! :D
 
 
2 hours later…
5:03 AM
When using clang-format.. can I somehow tell clang-format to not format a specific set of lines through comments in code?
 
@orlp welp
Any idea if this only affected users with TeamViewer accounts? Because I've never made an account
 
5:18 AM
@BoltClock I don't know details
I just saw it on reddit
and deinstalled it
 
@orlp Pff just don't run the daemon when not using it and watch iftop while using..?
 
I've been skeptical of TeamViewer, never made an account for that reason. Only used it over LAN
 
I have an account there since I remote into a ton of computers. So having everything in one place is convenient. I just turned it all off.
 
@noob People actually leave it on?
I guess I've been using it wrong all along then
(/s but you know)
 
@BoltClock Well by default teamviewer always runs a background daemon. So I guess some people just don't disable it?
 
5:37 AM
I also had to call my parents up to uninstall it on their machines as well. Since I no longer live at home, that's my method of tech support for them.
 
@Mysticial "Can't you just connect to my computer and uninstall it for me?"
 
I'm not turning that back on. lol
Fortunately, I sleep my main computer when I'm not using it. My laptop on the other hand stand on 24/7. But I see no evidence of a remote log in.
 
5:57 AM
Just went through the logs on all my boxes. I don't see anything that isn't myself.
 
Obviously, you are not special enough for someone to target you
When I was some 2800km+ away 2 weeks ago, someone tried to hack into my iCloud account again
 
What do you mean hacked, clearly according to their official statement there has been no breach! ;)
 
@Telkitty seems legit
 
I checked details, secure.me.com is linked to icloud
in fact, there was, on average one hack on one of my accounts every month for the past half a year
even after I took my PC offline
 
6:11 AM
me.com is definitely iCloud. But the rest of the email seems so dodgy
 
I am only using my macbook to surf the internet
@BoltClock I have a private mail server that I didn't bother to tune up
Nov 19 '15 at 0:24, by chmod 666 telkitty
How do I know the anonymous is not a hoax ... I mean I know most probably it isn't. But I would assume there would be members of anonymous frequent this chat, being one of the largest chats dedicated to the software developer/engineers.
probably not related but I am still an idiot
when a pig plays with fire, you probably end up with a roasted piglet :')
Dearest anonymous, if you ever hacked into my dev box, could you please fix bugs in my code while at it? Thanks.
maybe my private mail server is compromised because it's hosted on a shared machine
 
user1804599
6:45 AM
hi boltcock
 
6:55 AM
what would be an elegant way to store a partial ip address?
 
user1804599
@noob what is a partial IP address? One where not all bytes are known?
 
user1804599
using partial_ipv4 = std::array<boost::optional<char>, 4>;
 
a wooden box encrusted with jewels
 
@rightfold 127.0.0.0/24 I think a subnet?
 
user1804599
@ThePhD in toilets in elementary schools it's common to have stickers that light up when they get wet
 
user1804599
7:01 AM
It teaches children to pee like they are sober
 
Ven
7:29 AM
Hi.
 
you can always unsubscribe with one click.
can I?
I have almost never succeeded in unsubscribing
 
Ven
How Can Clicks Be Real If Our Eyes Aren't Real?
 
one click or multiple clicks
spams are real
spams are really annoying
 
7:43 AM
> As was foretold, Content Update 2.3.0 and the Prophecy Challenge Leagues launch tomorrow!
heh
my own prophecy is that I won’t have the physical space to download the update
 
My prophecy is that I will be having dinner in 10 minutes time if not sooner
... and it's going to be fulfilled
so easy to become an oracle!
 
Ven
what does SOreadytohelp mean in profile? Why do so many people have that?
 
meaning that you can win a t-shirt from SO or something
 
it’s sarcasm, like #SOWantToGetUpEarlyInTheMorning
 
Ven
oh, huh
109
Q: Who are the winners in the #SOreadytohelp t-shirt drawing?

hairboatStack Overflow recently surpassed 10 million questions, and we're giving away a bunch of t-shirts to celebrate: Because it's coming up, here's some brief info about the t-shirt contest: Twitter applicants must re-enter to be considered for each week's drawing. 1 week = 00:00:01 UTC Thursday ...

thanks @Telkitty :).
 
7:57 AM
I find that things are easier to get when you are more proactive.
I got a shirt by begging
got meta Q ban lifted by the same technique
begging really works!
then I got Q banned again ... coz ... yeah ...
dinner!
prophecy fulfilled!
 
user1804599
I should add an AutoHotkey back-end to iron.
 
Ven
omg
AutoIt3!
 
user1804599
AutoHotkey gives me tab bar scrolling in Chrome on Windows.
 
user1804599
Why this isn't built-in to Chrome on Windows is beyond me.
 
user1804599
It works on Linux.
 
8:09 AM
@rightfold Your next project should called "ship". Later, when you shut it down, you can say "abandon ship!"
10
 
Ven
Or shark. Then you can jump the shark.
Ship's a project that'll never ship. :)
 
user1804599
If it compiles, ship it.
 
user1804599
I want to learn differential calculus.
 
Ven
If it compiles, rewrite it in Agda.
 
user1804599
@Ven But what if it simulates a Turing machine?
 
Ven
8:12 AM
That doesn't matter, you can write coprograms in Agda just fine.
 
user1804599
Your mother is a coprogram
 
Ven
You're a cohuman, because you never finish.
 
user1804599
A positron is like a coelectron.
 
Ven
8:18 AM
Just another day at Stack Overflow - improving a query for the 99.9999% case breaks @jonskeet. https://t.co/w2i0jz91y4
 
Fun fact: @jonskeet rep caps so much that excluding RepChange = 0 events removes approximately 75% of the data.
lol
 
8:36 AM
I am trying to compile on a Ubuntu system where I have two different versions of boost instaled: 1.46.1 in /usr/lib/ and 1.61.0 in /usr/local/lib/.

I have stated that 1.61.0 is giving me some compilation issues, but I prefer not removing it to study the problem when I have more time. I supposed I could refer at the makefile to 1.46.1, using -I"/usr/include/boost" for 1.46.1 source, and then -L /usr/lib for the libraries. But still not working.

My suspicion is that the usage of -lboost_filesystem -lboost_system -lboost_date_time are somehow referencing to 1.61.0, even when used together wi
 
Ven
otool -L?
 
what?
 
@Griwes I didn't follow the logic. Perhaps they meant "he gets so many residual upvotes"?
@rightfold Optimize it, like a true C programmer! struct { uint8_t octets[4]; uint32_t bits_specified { 0 }; };
 
user1804599
more like a fucking cancer moron
 
@sehe welcome to the octet groupies
 
Ven
8:45 AM
toi tu aimes les bits, DANTON Luc.
 
@Ven stp on a dit qu’on arrêtait
Feb 17 at 3:21, by Luc Danton
> Suite aux réformes orthographiques et à une recrudescence de la francisation des mots anglais courants, je propose qu'on réfléchisse à une nouvelle façon d'écrire bit. Pour ceux qui ne le savent pas, bit vient de la contraction de binary et digit en anglais, ce qui se traduit par chiffre binaire. Je propose donc la francisation suivante : chiffre binaire -> chibre
je suis féru de chibres
4
 
Ven
je vois, je vois.
 
user1804599
> “Dat plebs weet niet hoe ze fatsoenlijk een frikandel moeten opdienen,” foetert Beau de Coq d’Armandville.
 
Ven
dat plebs.
 
lekker
 
user1804599
8:47 AM
> “Vroeger werd een frikandel louter geserveerd met ambachtelijke saus op basis van eidooiers, gecombineerd met gepasteuriseerde tomaat en mononatriumglutamaat en uiensnippers. Maar als je ziet wat de mensen er nu opgooien: slagroom, taartdeeg, discospikkels… Als het zo doorgaat liggen ze binnenkort in pakken van twaalf voor een euro in het vriesvak van de Lidl.”
 
@sehe Maybe - doesn't change the fact he probably rep caps everyday (too lazy to actually check :D).
 
Ven
I should write some VB.Net
 
user1804599
What for?
 
user1804599
VB.NET is a delight.
 
Ven
@rightfold I don't know yet :c
 
user1804599
8:57 AM
VB.NET had local type inference before Java did.
 
Ven
And its algorithm is superior (infers more) to Scala's :).
 
user1804599
It still sucks for lacking the ultimate in abstraction technology though.
 
Ven
modans?
 
user1804599
HIGHER KINDED TYPES
 
Ven
modans.
 
user1804599
8:58 AM
HKT has other useful applications too.
 
 
user1804599
FOLDABLE
 
user1804599
@sehe link?????
 
@Griwes Doesn't make sense with the "repchange=0" observation
@rightfold NO
 
Ven
@rightfold There's a FR here
 
user1804599
8:59 AM
@Ven HOLY GUACAMOLE
 
@sehe Well, if he rep caps, then every next vote on his stuff changes his rep by 0...
 
Ven
@rightfold back it up!
 
user1804599
I want kind polymorphism too!
 
user1804599
lol HKT with reified generics and variance
 
Ven
insanity
 
9:01 AM
@Griwes ah. perhaps they mean that
 
user1804599
in Sanity
 
Ven
:D
 
user1804599
iron will have HKT and variance :[
 
Ven
I (won't) bet 20$ it'll never happen :P.
 
@Ven That's pretty funny
 
Ven
9:02 AM
@sehe you think bacon is a game?!
 
I think that github issue is pretty funny.
 
Ven
BACON
@rightfold why don't you have a project named bacon!?
 
user1804599
Why would I?
 
Ven
@rightfold cuz bacon is awesome. And also it'd trigger the muslims you hate
Public Class thisClass(Of t As {IComparable, IDisposable, Class, New})
End Class
 
Bacon ball gag.
 
Ven
9:05 AM
VB.Net is amaze
@Morwenn I'd <s>tap</s> eat that.
oh fuck you
 
bacon vs ham
the ultimate fight
 
> Monads are like bacon
lol
 
user1804599
It would also trigger the muslims I don't hate, and why would I want to trigger them?
 
Ven
@rightfold The muslims you don't hate shouldn't care about what you eat
 
user1804599
(function(ImmVector<ActionTime>, ImmVector<ActionTime>, string): IO<mixed>) $setWorkerData
 
user1804599
9:07 AM
aahhhh this syntax
 
Not creepy at all!
 
user1804599
@Ven nice
 
4
Q: how to color a vertex graph using boost

angelI was trying to read a graph using boost and print it.I want to change the color of the node.I tried the following code and get so many compilation error.I'm using ubuntu. I tried boost today only. So kindly help me to correct the property writer #include <boost/graph/adjacency_list.hpp> ...

 
Ven
where's your "hack lisp" already? dead, right? that was snek?
 
Also, what appears to be 5 hour stream of yesterday's Critical Role episode has appeared.
I am not sure if I will be able to do anything at $JOB today.
 
user1804599
9:08 AM
@Ven It's dead, SNEK superseded it by having its own type checker and directly targeting PHP.
 
@rightfold Java has local type inference?
 
Ven
@rightfold oh, it wasn't SNEK?
 
user1804599
@fredoverflow No, therefore everything that has it has it before Java has it.
 
user1804599
@Ven I abandoned it because Hack lacked HKT and SNEK didn't.
 
Ven
@rightfold what was it called?
 
user1804599
9:09 AM
I don't know anymore.
 
Ven
so SNEK isn't abandoned, it just targets iron?
I'm sure you abandoned SNEK
 
SNEK overflow
 
user1804599
I abandoned SNEK too.
 
Ven
SNEKchat
 
user1804599
dual (fn [t *]
       (fn (sg {append (-> t (-> t t))})
         {append ([(.flip function) t t t] (.append sg))}))
 
user1804599
9:10 AM
But this works!
 
user1804599
It's great!
 
user1804599
 
Ven
it worked until you abandoned it :P
 
user1804599
lol TeamViewer
 
user1804599
you can see from its web design alone that it's shit why do people even use it
 
user1804599
9:13 AM
oh hey they actually redid the web design
 
user1804599
no more cringeworthy stock photos
 
this totally blew me away when I was about the same age. probably the root of my fascination with undefined behavior.
@Ven not confirmed.
 
Ven
@sehe suuuuuure.
@sehe division by zero, 10/0.
7
 
:D
 
user1804599
9:25 AM
If 2 = 1, the Eiffel Tower is in Moscow.
 
If it isn't, the Eiffel Tower may not exist
 
user1804599
If web development is fun, the Statue of Liberty is orange.
 
user1804599
I wonder if someone every attempted to steal the Eiffel Tower.
 
I would totally hijack a plane and sell it to some African royalty than to steal Eiffel Tower if I was a criminal
 
user1804599
9:32 AM
> One of Lustig's trademark cons involved a "money-printing machine". He would demonstrate the capability of the small box to clients, all the while lamenting that it took the device six hours to copy a $100 bill. The client, sensing huge profits, would buy the machines for a high price, usually over $30,000. Over the next twelve hours, the machine would produce two more $100 bills. After that, it produced only blank paper, as its supply of $100 bills became exhausted.
 
user1804599
LOL
 
Ven
nice
 
user1804599
The nicest thing is that they can't sue you because contracts involving crime are void.
 
user1804599
It's like suing a hitman for not killing the target.
 
Ven
9:36 AM
@Morwenn here's the star you just deleted :star:
Is there a cute trick to go from a vector<> containing "key, value, key2, value2, key3, value3..." to a map<> "key => value, key2 =>value2"?
 
@Ven use Clojure ;)
 
Ven
@fredoverflow convince my boss
 
Wait, are key and value even of the same type?
 
user1804599
@Ven easy:
 
Ven
@rightfold cute
 
user1804599
9:48 AM
@Ven Use std::adjacent_difference with std::inserter and std::make_pair.
 
@Ven there’s the zip with tail thing
 
user1804599
I wonder if the Rust iterator library can be ported to C++.
 
user1804599
It's much easier to implement such iterators.
 
Ven
@LucDanton mh.
 
well, I assume. I guess it’s worth digging.
 
Ven
9:55 AM
:P
We might need to get our sheds ready..
At least the bike ones.
 
> note: no known conversion for argument 1 from 'boost::tuples::cons<int&, boost::tuples::cons<int&, boost::tuples::null_type> >' to 'std::pair<const int, int>&'
that looks like a good culprit to me
 
10:10 AM
> error: no match for call to '(std::_Select1st<std::pair<const int, int> >) (std::tuple<int&, int&>&)'
interesting
oh, I didn’t notice but the _Select1st business takes ref to non-const, which prevents most conversions to begin with nvm it’s overloaded
IIRC that’s a DR or something
 
Did I miss anything // can we do this easier? stackoverflow.com/a/37611596/85371
 
@sehe that wrap deserves to be static, doesn’t it?
 
IDGI. I don't have a wrap function
 
lol actually I have no idea what’s happening in there
 
:) Now you know how I feel when I read code from you guys
 
10:18 AM
I thought you were piggy-backing on std::reference_wrapper support for old-style result_type etc., yet you define your own
 
I didn't know it had the typedef. I was piggy backing on it for the reference+call operator delegation
Nope. Doesn't seem to compile without the typedef.
 
@sehe oh, I thought it would be present as long as operator() made sense but it’s more restrictive than that
 
Does it define result_type in any circumstances at all (surprised)
 
ow, the function input iterator documentation is less than helpful
@sehe yes, but all that stuff is deprecated for C++1z anyhoo
 
> result_type(deprecated in C++17)
I just found it :(
 
10:25 AM
and as you can see, it’s barely useful
 
@LucDanton Yes
 
user1804599
χ_χ
 
The same answer? What was the "answer"? Btw. questions go here (PS. That's a syntax error. You're not writing javascript here :)) — sehe 55 secs ago
 
@LucDanton lunchtime snack: blog.regehr.org/archives/…
 
user1804599
10:29 AM
How to learn differential calculus?
 
Stop being indifferent
 
user1804599
I don't know where to start
 
@angel that really doesn't make any sense. Please consider posting a new question if you have other problems. None of this is related to your question here. — sehe 8 secs ago
 
@nwp ahahahahah that alt text
 
indifferential calculus
 
10:32 AM
@rightfold do you need to know where to start?
@Telkitty Good joke. Awesome spelling.
 
> [ 88%] Building CXX object tools/clang/tools/extra/modularize/CMakeFiles/modularize.dir/PreprocessorTracker.cpp.o
In file included from /home/arcoth/Packages/llvm/include/llvm/ADT/SetVector.h:24:0,
from /home/arcoth/Packages/llvm/tools/clang/include/clang/Basic/Module.h:24,
from /home/arcoth/Packages/llvm/tools/clang/include/clang/Lex/ModuleMap.h:20,
from /home/arcoth/Packages/llvm/tools/clang/include/clang/Lex/Preprocessor.h:24,
from /home/arcoth/Packages/llvm/tools/clang/tools/extra/modularize/PreprocessorTracker.h:18,
Am I too retarded to correctly build CLang
 
looks that way
 
/looks the other way
 
Or was someone too retarded to check before they committed to the repo
 
@Columbo I would be suspicious already as a result of the attempt to build clang
 
10:35 AM
@sehe it’s misleading to credit the reductions to Hello, World when it’s really system headers, but other than that nice post
proof that headers are useful
 
Erm. Yeah. Never really though of it that way
 
I had the 3rd edition
textbook too
 
@sehe do you know any good piano teachers around Leiden?
I'm considering taking lessons again
 
@sehe looks good, not too sure about easier without peeking under the covers of function input iterator and I cba
 
> In the Principia Mathematica, Bertrand Russell and Alfred Whitehead attempted to give a rigorous foundation to mathematics using formal logic as their basis. They began with what they considered to be axioms, and used those to derive theorems of increasing complexity. By page 362, they had established enough to prove “1 + 1 = 2.”
@orlp sadly, no. If you find one, you can drop a name and maybe I'll recognize or ask others for opinions :)
@LucDanton Thanks for looking at it. Appreciated
 
10:48 AM
> note: no known conversion for argument 1 from 'std::tuple<int, int>' to 'const std::pair<const int, int>&'
really
@Ven I can safely say 'no'
 
Ven
@LucDanton thank you!
I'd be interested in the ways you've pushed this :).
 
I was having fun fmapping all over the place and I did think that would interest you, but right now it’s transformed(boost_to_std) | transformed(transform_tuple(decay)) and that’s not enough so I’m changing tack
 
user1804599
@sehe yes
 
user1804599
otherwise I can't start
 

« first day (2057 days earlier)      last day (2906 days later) »