« first day (2436 days earlier)      last day (2521 days later) » 

12:01 AM
I noticed that boost single headers often add multiple second of compile time per translation unit. It pays to measure that.
Also the standard headers are much faster. And it seems they can cheat. For example std::unordered_map delegates to _Hash_map of which no declaration/definition can be found anywhere. I think it might just be built-into the compiler.
 
wait what
can't decide between Ryzen 7 1700X vs i7 7700k
the former has twice as many cores, but the benchmarks say it doesn't seem to actually fare better
 
Oh, it's actually using something called _umap_hashtable
And that must be a compiler built-in.
Boost can't use such tricks. So they have meaty header files. And they often have workarounds for old/bad compilers as well.
 
first time I'm hearing of library types implemented as a built-in
_Hashtable seems to link somewhere else
 
Perhaps, I'm just hypothesizing.
 
still, the part with the workarounds is true
AFAIR they have parts which assume your compiler doesn't support member function templates
and do conditional compilation based on that
 
I like how the duplicate is unrelated to your question
 
Even though it's not a duplicate at all. (If it is then I'd happily up-vote the dupe and delete my question.)
But the "dupe" doesn't answer my question at all.
Such determination.
 
One thing to consider: overloads allow implicit conversions. Template specializations do not. — aschepler 2 hours ago
yeah, another reason to prefer helper class template specializations
 
Actually, I implemented years ago using the overload-based approach. I disabled implicit constructors by adding the following overload std::string serialize(T&&) = delete;
 
12:49 AM
One of my papers is getting a press release and photo-shoot, I need to find the most ridiculous shirt to wear.
 
@StackedCrooked hmmm, that snarky comment about the stream operators reminded me that if you pass in an argument to << which isn't printable, you'll get a list of every potential overload that matches
^ lot of code, just scroll down
but with class template approach, you'll only get a single line
 
1:06 AM
Actually, just tested on my code, and only the catch-all overload is triggered.
Maybe my old code isn't so bad after all.
:P
 
 
1 hour later…
2:14 AM
compiling boost with 1800X: 221s vs 7700k: 289s
I'd assume 1700X would be around 240-250s then
 
O.o
it takes 30 min on my i7-3770
or something around that (MSVC2015)
 
2:39 AM
@Borgleader Would be mighty helpful if they'd show exactly what build they're doing (e.g., build-type=complete ?)
 
probably yah
Mine is:
start /B /wait bjam.exe -a -j2 --build-type=complete --toolset=msvc-14.0 --stagedir=stage/x86 stage >> boost_build_log_x86.txt
start /B /wait bjam.exe -a -j2 --build-type=complete --toolset=msvc-14.0 --stagedir=stage/x64 stage address-model=64 >> boost_build_log_x64.txt
 
Number of cores is probably the determining factor.
 
Oh actually thats usuall -j8
i have 4 cores with HT
 
Got an RGB case, AIO, and PSU in front of me atm.
 
last time i ran it I wanted to be able to do something else at the same time so i changed it to -j2
 
2:52 AM
@Borgleader Probably most of us have 4 cores with HT :)
 
@StackedCrooked I'm just saying so we can compare timings with wtf thos CPUs were doing
 
I just think it's a shame that nothing Intel desktop CPUs haven't changed much over the last 7 years.
 
Yes that is unfortunat, but thats the case for CPUs in general
 
 
2 hours later…
4:36 AM
I would like to nominate android studio the slowest IDE of the year
5
 
 
1 hour later…
5:53 AM
E/Cta5File: Cta5File::isCta5NormalFile false, bad magic:PK
not black magic, just bad magic
 
 
3 hours later…
8:32 AM
> How do I summon Richard? Does it require penta‎grams?
 
Error: Wrong Richard  overload giving compiler error
 
Elon Musk publishes plans for colonizing Mars http://bit.ly/2rE8DSJ https://t.co/DdztkLXydq
 
that's like a plan to teach a toddler to drive in 3 months
 
@Telkitty \o
 
rushed because he only got max 80 years to live
@Code-Apprentice O/
 
8:38 AM
Still working on your apps, eh?
I need to get back to mine soon. I have at least one big to fix and many features to add.
And with that I bid you good night
 
yeah, both working on apps and fixing an old house
@Code-Apprentice g'night
 
 
2 hours later…
10:24 AM
> Č++ has better type czeching.
8
 
Xeo
. . .
 
10:48 AM
@JerryCoffin I guess that if there weren't people to appreciate expensive things, they wouldn't be expensive or even sold in the first place :p
> The architecture could conceivably get 1 million people to Mars within the next 50 to 100 years, he has said.
That sounds overly optimistic.
I love how the whole document basically does not address the problem of human health in space.
AFAIK it's currently the biggest problem if one wants to go to Mars.
Apparently lack of gravity + solar winds tend to ruin our bodies.
 
plans for colonizing Mars (by Cat):
> 1. go to mars
2. colonise it
 
11:04 AM
Colonizing it with robots would be way easier :o
 
@fredoverflow it should be harder, but I've played HRM probably too little to judge
 
11:37 AM
@Morwenn I just discovered this gem by the same band:
love it
 
Yeah, unfortunately it isn't on any album, so I don't get to listen to it in my car :(
 
> Pay £0.99 (or more) and download the track
 
I only have a CD player in my car xD
 
Does it not play CD-Rs?
 
It can, but I like to listen to full albums designed as such. Listening to stand-alone tracks is not the same thing :/
 
11:45 AM
So download all their singles and make your own album... with black jack and hookers?
 
Nah, I listen to them on my computer, that's fine :p
But I still wonder how this specific track would have fit in a full-length album.
 
12:08 PM
Eh, I really am starting to dislike C++11's random API. So much work to setup.
std::default_random_engine random_engine(std::chrono::steady_clock::now().time_since_epoch().count());
auto middle = mPorts.begin() + num_ports / 2;
std::shuffle(mPorts.begin(), middle, random_engine); // Shuffle the first half
std::shuffle(middle, mPorts.end(), random_engine); // Shuffle the second half
And often I'm not even sure if it's 100% correct.
std::random_shuffle was so much nicer.
 
Embrace the future std::shuffle(collection); which will just work.
 
Cool. Does it reuse a static "random endine"? Or does it create one locally?
 
@StackedCrooked Better: it uses a thread_local random engine, so you've even got default thread safety.
There is std::shuffle(it1, it2) in the Library Fundamentals TS v2, which will likely make it into C++20 :p
 
That's a scary year. I'll turn 40 in 2020.
 
o_o
 
12:18 PM
Well, since I was born in 1980 :P
 
I almost feel young now.
 
You are a lot younger than me :p
 
std::random_device can throw. Damn, that's mean.
 
user1804599
12:47 PM
@StackedCrooked You should create the random number generator in main and pass it around.
 
user1804599
Eliminating dependencies is good and makes code easier to maintain.
 
1:47 PM
Seriously? But why...
 
2:05 PM
My gf sleeps, but I want to code and my keyboard is a super noisy Model M
 
-1
Q: HOW TO IMPLEMENT LICENSING IN DNN MODULE

user2156791I have need to implement three different type of Licence in dnn Module. 1)1 DNN portal(standard). 2)20 portals within 1 DNN installation(professional). 3)Unlimited DNN installations and portals(enterprise). Please let us know how to implements this functionality.

yay full caps title
@StackedCrooked I'm throwing when you can't read from /dev/urandom or CryptGenRandom returns an error code
 
2:22 PM
@StackedCrooked Yeah, that's a problem, seeding random engines is more difficult than it needs to be (Boost makes it easier, for example, by allowing boost::random_device to be passed directly into the constructor of an engine)
 
Wow talking about bad APIs
Hm, the image doesn't load in my browser.
 
works for me
 
It works in incognito mode.
weird
 
Xeo
2:39 PM
@StackedCrooked wait, what
how the fuck are you supposed to know
 
let's hope that no one ever names their cipher "no cipher found"
 
@Xeo He goes on to explain you can use strcmp or something.
Compare against the static string.
I suppose.
 
Xeo
ugh
 
2:58 PM
@StackedCrooked It's oneboxed fine but when I click on it, 404
 
For me it's the opposite.
I can click on it. But I don't see it oneboxed.
Chrome has been acting weird lately. The problem does not occur with Firefox.
 
I'm in ff
 
Oh, it works if I use https
 
3:36 PM
tested app on a few more devices ...
must say, other than a few occasional crashes, it's almost perfect
</shameless_self_promotion>
but ... might need new device, coz old one is no longer good for test apps
but that can wait, coz need wallet to recover from recent injuries ...
 
 
2 hours later…
5:55 PM
@milleniumbug I have need to implement three different type
Plz send help
 
6:31 PM
"Trumpery" = worthless nonsense. Perfect! @MerriamWebster: here are some new submissions for consideration. (thread) https://www.merriam-webster.com/dictionary/trumpery
Also reasonably close to the french word "tromperie" (deception)
0
Q: Fast input for bool data type in c++

Nishant sharmaI have read in my text book that we should prefer scanf/printf instead of cin/cout for fast input because cin/cout use function overloading. So why can't i use scanf for bool data type? Is there any other way for fast input in bool?

> I have read in my text book that we should prefer scanf/printf instead of cin/cout for fast input because cin/cout use function overloading.
/cc @Mysticial
 
wot
 
6:51 PM
My mother has said she has deleted the Internet. — Rabbid76 26 secs ago
hahahaha what
 
7:22 PM
@Borgleader Deleted her desktop's shortcut to the web browser, of course.
 
as the ECHR recently ruled, links to a thing and that thing are the same
 
@Puppy A decision that was obviously correct. How could anybody even question such a clearly-correct decision?
 
dunno, I also found myself agreeing with it and thinking that their logic was clear, unassailable, and undeniable
in fact I don't know why anybody bothered contesting it enough to end up in any court in the first place
 
What are you referring to?
 
7:37 PM
This is how you watch sport in the 21 century in #Iran #censorship @Khamenei_ir @realDonaldTrump #MiddleEast https://t.co/1hkwrQuZcB
2
Is this video real? That's pretty fucked up and hilarious at the same time.
 
the lag is hilarious
 
@wilx For now I'll assume it's fake.
Because that strengthens my position if it turns out to be real :P
Hehe
 
8:06 PM
@Borgleader lol wut
aha
 
Of course it doesnt end, you check if your index is smaller than the size of the vector, but in the loop you add stuff to it, so youll never reach the end (you'll run out of memory at some point though). Stepping through the loop for a few iterations using a debugger would have made this very apparent. — Borgleader 25 mins ago
Also this one
 
9:07 PM
The real problem is that GCC's (GDB) debugger is not user friendly. I'd push for using IDEs like CLion or MSVC in an academic setting.
 
I never said to use that one specifically
I just said OP should have stepped through with a debugger.
 
Yeah you're absolutely correct, but the underlying issue of kids not using debuggers is because the one they use in school (or at least our school) fucking sucks
 
Ell
9:30 PM
GDB is cool
 
^ A real man
:P
 
9:43 PM
@Mikhail I'm not sure I'd actually recommend it, but there are things like DDD...
Still far short of VS for being friendly to beginners, but certainly a whole lot closer than raw gdb (at least for a typical beginner).
 
@JerryCoffin For a second I thought you were talking about Domain Driven Design. (But yeah. DDD. Ugh, what a horrible tool.)
 
Yeah, those things were terrible. A year ago I TA-ed a Verilog/Embedded (NIOS II) and the best group debugged all the code in MSVC, and then moved to GCC.
 
@StackedCrooked Like I said--I'm not at all sure I'd recommend it--but I can still see where some beginners might prefer it to raw gdb nonetheless.
 
I memorized just a handful of GDB commands. That in combination with valgrind and printf.
... usually does the job :P
 
I just got this brilliant idea: how about we don't write bugs?
 
9:51 PM
@Mikhail That doesn't surprise me a bit. In fact, given a choice that's how I write most Linux code. I just have a couple of wishes. 1) that developing for Linux in VS was just another target instead of a whole separate type of project, and 2) they could make VS talk to Linux running in a VM on the same machine.
@Mikhail That's certainly what I generally prefer to (at least claim that I) do.
 
@JerryCoffin visualgdb.com was pretty nice for some STM micro-controller I used 4 years ago.
 
I think QtCreator does a pretty good job when it comes to GDB integration.
 
@Mikhail I've seen people mention it before; should probably give it a try one of these days.
 
@JerryCoffin I thought they could make VS talk to a Linux machine now?
or is it randomly restricted so that VMs running on the same machine are not permitted for some insane reason?
 
10:17 PM
@StackedCrooked soooo. Secure httpd server 'getting a dev drunk and daring him he couldn't write one'. Next day: httpd server. Quality process... I'll stick with openssl then, for a bit
@wilx funny.
 
@Puppy It's not really a random restriction, at least on the part of VS. It's mostly a matter of how VirtualBox woks, at least as far as I can tell. I've tried quite a few VirtualBox configurations, and never managed to get VS to work with a virtual machine.
 
aw hell yes
new Primitive Technology
 
10:34 PM
@JerryCoffin I thought that debugging was entirely an OS-level feature at most, and therefore should work transparently for any properly-implemented VM
 
@Puppy The problem is with how VirtualBox sets up its virtual network adapters. You can either set it up to use a NAT server that hands out an address to the client VM, or you can set it up to basically build a "tunnel" where the VM talks (almost) directly to the network adapter. The problem is that I've never found a way do configure a port on its NAT server to let the VM see incoming connections on Port N.A direct hardware connection can listen, but only on the physical hardware.
 
ipv6? if memory serves, they don't need NAT
 
10:50 PM
@Puppy That might work--I haven't tried it. It has you enter the host name, and I believe it normally uses IPv4 to talk to it--but if you just entered an IPv6 address, it might work...
 
11:01 PM
Also, why would you even use NAT. I always setup my VMs in the bridging configuration.
 
@wilx Bridging is how I usually do set them up--but that has the VM talk (relatively) directly to the NIC. That can serve connections coming in via the NIC, but I'm reasonably certain it can't act as a server to a client running under the host OS.
 
@JerryCoffin Why could the VM not be a server for application on the host OS? The VM gets its own IP address, etc. It is literally a virtual machine. :)
@Mikhail Makes more than I do.
 
@wilx Yes, I know. The discussion was of using Visual Studio to develop code for Linux. VS can talk to a Linux box to compile, debug, etc. The question is whether you can do that on a single box, with Linux running in a VM. I think you should be able to, but my attempts at doing it have (thus far) failed.
 
@JerryCoffin If you can SSH into the Linux VM, you should not have issues with anything. IMHO.
Or the problem is elsewhere than the routing of the connection.
 
@wilx So far, I haven't been able to do that either (from the host OS--from a separate machine to a bridged connection is no problem at all).
 
11:13 PM
@JerryCoffin Well, I run some VMs and have it set up in bridged mode and I run ssh and Jenkins agent on those VMs, my host PC being the Jenkins master and all works fine. The VMs get their own IPs from DHCP as if normal PCs.
...with Virtual Box on Linux.
 
@wilx Okay--I have not been able to make this work--but I'll openly admit that my expertise in configuring VirtualBox is minimal, to put it nicely,
 

« first day (2436 days earlier)      last day (2521 days later) »