« first day (2593 days earlier)      last day (2348 days later) » 

12:30 AM
As a bonus added a c++17 version based on std::quoted (much underrated feature) — sehe 12 secs ago
 
 
1 hour later…
1:36 AM
@JohannesSchaub-litb x86 didn't originally have SSE. So unless you specify a suitable architecture, it probably defaults to some really old x86.
 
@Mysticial hmm i specified -march=slm and -mtune=slm
 
@JohannesSchaub-litb oh nvm
 
silvermont for intel atom
also used -funsafe-math-optimizations (to have it autovectorize.. which it did)
so it autovectorized with sse instructions, but didn't use sse instructions for scalar operations.
 
There isn't much benefit to using SSE vs. x87 for scalar operations on x86. Both only have 8 registers. Mostly the same instruction latencies.
There would be fewer instructions with SSE than x87. That doesn't matter much on the desktop chips. Not sure about the low power ones.
 
@Mysticial hm but silvermont has two SSE execution units
 
1:42 AM
Then my guess is that the GCC folks simply didn't care or haven't gotten to setting up a proper profile for Silvermont.
 
it seems to me that with its two pipelines (one for add, and another for multiply, convert, etc) it could exploit more ILP
 
It's not a high performance chip anyway.
 
i switched on SSE and will try tomorrow whether it will result in better performance
hm, perhaps I should just have left it at its default. but x87 feels weird and old.
i guess that because i had done "doubleVar += floatVar * floatVar;", it might have preferred x87 because x87 are better at conversions
 
I've seen the Intel compiler use x87 in the SSE modes. But only for very sparse amounts of scalar FP in otherwise integer code.
 
ah i see
it really susprised me that intel compiler was 3 times faster though.
not sure whether this can be explained only by sse vs x87 fp ?
perhaps it was some clever scheduling. i read that silvermont can't do OOR for floating point ops
 
1:48 AM
Room rules fell off
 
Intel compiler is definitely better at the scheduling stuff.
 
ah i see, thanks!
 
2:01 AM
@sehe In case it wasn't mentioned, the tail seems still fragmented.
 
@LoïcFaure-Lacroix it contains the page file and hibernation files
 
It all makes sense now
 
2:27 AM
Not sure I'd like to meet with it
 
2:42 AM
Distance is the soul of beauty
too close will only induce fear ...
 
 
1 hour later…
3:58 AM
How to be dumb humans - install speed cameras on already congested roads because of school zone instead of building cross overs and foot bridges, let's fine the hell out of people who drive 60km/h on a 60km/h road because they forgot it's school hours.
Stuck in the traffic for hours every week - because you deserve it!
 
 
2 hours later…
5:52 AM
people that write unit tests have too much times on their hands
unless its for an interpreted language, in which case what they needed instead was a spellchecker
:-)
 
@Mikhail Automate unit test writing. :)
 
Yeah, cause god forbid I run them. If they pass its a waste of cycles, if they fail ain't no way I'm working on something without a "business case".
 
I think my pi program has around 250k - 300k unit tests for each binary. There's 13 binaries, so it's about 3 million tests. Takes about 24 hours to run using 3 machines. (Ryzen + Bulldozer + Skylake X)
 
ASSERT_EQ(pi,atanf(1)*4)
Actually this kind of bullshit got me an interview at goldman sachs, although the first question was "what do you think of banks"
Then I fucked up the last part of the interview when I started talking about Karl Marx
 
@Mikhail lol
 
6:07 AM
I'm also sad that Immortal Technique is retarded, despite being able to string together words
Remember when claiming somebody else did 911 was edgy?
 
the beauty of unit testing is that after run it many times, it gives your consistent results, the very next time, something goes out of whack ...
 
6:21 AM
The beauty of unit testing is the that the universe is infinitely sub-divisible so its possible to write an infinite number of unit tests, indeed Zermelo had his reservations that it was even possible to choose a useful unit test from such a set of infinite tests.
 
 
2 hours later…
user5500750
8:51 AM
Is this the official C++ chat room?
 
As "official" as we can get, yes. C++ Questions should go here if you have any
 
 
2 hours later…
10:25 AM
My probably with Catch2 was finally fixed, I'm happy :D
 
Ven
probably about time
 
They said they would think about which functions they would expose everywhere to have a proper API
The commit only exposes the function I needed, that's ok with me v0v
 
nwp
11:27 AM
One Link to rule them all, One Link to find them, One Link to bring them all and in the darkness bind them In the Land of C++Q&A where the Answerers lurk.
9
It gets cut off at the end :(
 
11:43 AM
I'm eating French fries, it's tasty :3
 
have not had fries for ages ... yum
 
how come? there are basically fries served everywhere :o
 
11:59 AM
@Morwenn because it's more of a pain to make them than just boiling the potatoes
 
@ratchetfreak bought them, I don't cook ^^'
 
@Morwenn You should.
 
12:21 PM
@wilx There are so many things I should do...
But I don't enjoy eating alone to start with, so I've got next to no reason to cook
 
@Morwenn Eat with your imaginary friend! :)
Or TV, that works too.
 
I don't watch TV x)
Seriously, food mostly feels bland if there isn't someone to enjoy it with :(
 
Ven
i'm always here in your heart
Joke's on you, though: i always have my computer with me.
 
@Ven Come to my house instead dammit x3
 
Ven
@Morwenn ETOOFARAWAY
 
12:25 PM
@Ven just go West until you almost hit the sea, can't go wrong x)
 
then you collect a few logs and build a boat
 
nah, you go back 20km to the East and I should be in a 5km radius
 
but which continent?
 
the nly one that matters: Brittany :D
I want to use [[nodiscard]] in my libraries, but I fear I might be a bit aggressive when applying it
 
nwp
1:38 PM
My DFA needs about 256^16 states to read raw string literals correctly. That doesn't seem right.
 
Ven
@nwp say it with a regex
 
nwp
I think when I was told regexs and DFAs are equivalent they had a different definition for regex than ECMA script.
Specifically no backreferences.
 
so just 16 bytes suffices for the identifier
 
Ven
that's because "regexps" aren't "regular expressions"
 
though personally I would cheat with the delimiter (make it a backref)
as long as the size of the backref is limited it's technically a DFA just not implemented in the traditional way.
remember that DFA is defined by the transition function Q' = f(Q, c). There is nothing that defines how each Q is represented or how Q' is divined, or that each possible Q needs to be stored anywhere
 
nwp
1:45 PM
I wonder if modifying the DFA while parsing is a good implementation or a terrible hack.
Adding the delimiter reading states while reading the delimiter might be viable.
 
I would just add the extra memory to the so each Q is really $Q \times \Sigma^n$ (if you are good enough at latex to parse that)
then when in the read delimiter state you have a local loop with an index that increments the index and goes back iff the next char matches and goes to the next state iff at end of delimiter
 
nwp
@ratchetfreak Local loop sounds incompatible to saving and restoring state.
 
and because you will only ever have a single possible delimiter this won't get into the np-complete trap
 
Ven
 
@nwp the local loop's extra state is just an index and the delimiter itself. there is only ever 1 delimiter at play at a time and the delimiter will never have a newline embedded in it
 
2:09 PM
how about using a class instead of a struct — Detonar 5 mins ago
Let's play find the cargocultist. I win.
 
nwp
0
Q: Want to remove warnings ,by the way code is perfect

Sabiqa RaniHere is my code, I want to display the following message Desired result and my code is running perfectly but there are some warnings in my code which I want to remove but I can't understand how.Here are the warnings Warnings Somebody point out my mistake? Or give me the edited solution with 0 w...

That title
 
cc @Borgleader @Mysticial
 
lolwut
 
> by the way the code is perfect
genius
 
2:26 PM
You can pick up the ball in a game of basketball and run with it. Wouldn't call it perfect game play myself, but YMMV. — StoryTeller 1 min ago
 
3:03 PM
@sehe @ArkadiuszKoćma
 
nwp
3:19 PM
Wasted another 10 minutes trying to debug ASan stopping the program due to undefined behavior when dereferencing a nullptr which had the root cause of make or qmake failing to rebuild something.
Thankfully I'm used to it by now and only wasted 10 minutes and not an hour like many times before.
 
4:06 PM
@набиячлэвэли where what
 
4:21 PM
@набиячлэвэли the voice of reason
 
4:54 PM
voisy raisins
 
 
2 hours later…
6:43 PM
@Telkitty it's not completely true, I used unit test to test a way to crack rsa encryption. Since it's based on random numbers, it would sometime work and sometime not.
With big enough "ranges" it could give consistant results but some tests would fail at because it was guessing too fast
To get consistent results we could use statistics to test how effective are the least effective methods... As in expect it to crack correctly 50% of the time.
 
nwp
7:05 PM
@LoïcFaure-Lacroix You are supposed to use a fixed seed to make the numbers deterministic.
 
@nwp if we'd use a seed that crack the encryption we're not actually proving that the code work.
 
nwp
Why not?
You can still check if the cracked password is the same as the actual password.
 
rsa isn't about passwords
secret key could be seen as a password
RFC 1149.5 specifies 4 as the standard IEEE-vetted random number.
3
anyway
the cracking method should be able to find the right seed and not the unit test that provide the seed that make the cracking method work
 
8:05 PM
using namespace std; // We CAN do this in cpp files! lol
 
8:26 PM
0
Q: How may I resolve a file containing 65k lines of code causing a [bss32 Fatal Error] F1008 Out of memory error?

HappyCodingI'm using Embarcadero C++ Builder 10.1 Berlin Update 2. I added one file to a project. I tried to build said project and the build failed and reported the following error: [bcc32 Fatal Error] FileName.cpp(44329): F1008 Out of memory I have been reading up on errors that can be found via Google ...

/cc @Mysticial
 
> I'm using Embarcadero C++ Builder 10.1 Berlin Update 2.
good luck
 
@milleniumbug Whooooooo
lol
I can't decide which is the bigger problem... you have a single function that is over 65k LoC, or you're using Builder.
Probably the latter, since the former could probably be refactored.
 
I'd say probably the former since you could switch compilers and just download a decent one x)
 
@Mysticial just finished the interviews
Do you know whether the last interviewer "not being able to make it" is a sign of failure?
 
@Morwenn If you're using Builder, you're probably also using the VCL. shudders
 
8:40 PM
I've got no idea what VCL is ^^'
 
@Morwenn Embarcadero's wiki isn't loading right now for some reason, but you can read about it here: en.wikipedia.org/wiki/Visual_Component_Library
 
Oooooh, Delphi
 
-6
Q: Trying to understand why there are 6 classes in this Assignment

FaizanPage 2 So, we have 3 classes for the collection, what are the other 3 classes for? is it their entities? Also, if someone can explain it briefly how they are related to each other. thank you!

uh... what
 
lol this assignment
 
8:59 PM
@Borgleader LOL
 
9:26 PM
@sehe Robert is Cacadi's go-to placeholder/strawman name
 
9:42 PM
@набиячлэвэли oh well. I consider myself lucky that, though context-impaired, I'm not context-impaired enough to get that one :)
> (Click on Page 1 to see the first page)
Woof woof
 
are you becoming?
 
@Faizan there seems to be exactly 1 (one) person having such difficulty. Meanwhile, have a gawk over at stackoverflow.com/help/dont-asksehe 45 secs ago
@JohanLarsson In about 75 minutes
 
it was an honor getting to know you
 
nwp
Debian is pushing for qt creator to use clang 4 or 5 (previously 3.9). If that goes through there is a chance that it actually starts working properly with current standards.
 
> it
What starts working properly?
Are you implying that the chief change is that the Qt dependencies will be getting built in c++11 mode?
 
nwp
9:53 PM
Code completion, indention, warnings, squigglies and so on.
 
Ah. That way.
 
10:04 PM
@vreshetnikov No why? If we wanted to write confusing code, we'd be in C++.
 
10:35 PM
@sehe The C++ jab seems unnecessary. Perl is there for this.
 
11:01 PM
or C
machine code does the job too
 

« first day (2593 days earlier)      last day (2348 days later) »