« first day (1803 days earlier)      last day (3144 days later) » 

2:00 PM
The idea to partly fix the whole mess was to make std::iter_swap a customization point and I think that it solved some issues with algorithms and std::vector<bool>.
 
@Lalaland No
 
@R.MartinhoFernandes You find all old usage of vector<bool>. Replace it with a dynamic_bitset or whatever. Done.
 
The basic idea anyway is that std::vector<bool> won't go away until there is a dedicated class to replace it.
 
@user673679 Yeah, nope. There are at least two different use cases for vector<bool>.
Also, vector<T>.
 
@Morwenn It doesn't have to go away. It just have to become a container.
 
2:01 PM
That means that std::dynamic_bitset has to be standardized prior to any deprecation or removal of std::vector<bool>.
 
@Morwenn papering over it...
 
Anyway, I have to go. See you later :p
 
@R.MartinhoFernandes Recompilation should yield a warning for every std::vector<bool> instanciation.
 
@Morwenn packed_bool_vector
 
But yeah, recompiling everything is going to be a pain in the ass
 
2:03 PM
@ʎǝɹɟɟɟǝſ Yes, but then you have to analyse each one and decide what to do.
 
How are you using vector<bool>? Do you "view" it as a bitset? (use one!) or do you "view" it as a container of bools? Anyways, vector<bool> is not a container... stackoverflow.com/a/16569085/85371sehe 5 mins ago
 
user1804599
introduce std2::vector
 
How many different times do you use std::vector<bool> in a huge codebase?
 
@ʎǝɹɟɟɟǝſ how so? lots of software is recompiled with new compiler and library versions all the time...
 
2:04 PM
While say, register, you can really just nuke it from orbit, since it already has no value whatsoever.
 
I would expect something like 30-40 times for a very very huge codebase.
And for that you can put 3 programmers for a week, fixing all those cases.
Or two weeks.
For something you have to do only once every 4 years (changing of C++ version).
 
@user673679 Also typedef bool That_Bool_Type;. Essentially, you can't do this without the compiler's help, and you can't do this with just the compiler; you need a human.
 
Doesn't sound too bad of a trade off to me.
 
@ʎǝɹɟɟɟǝſ I use it absolutely zero times.
The only thing that could happen is /accidentally/ using the specialization in a generic code scenario
 
Yeah, it's probably much lower than that, but still.
 
2:05 PM
@ʎǝɹɟɟɟǝſ Yes, that's exactly the opposite of simple migration path.
 
@R.MartinhoFernandes I'm sure Lightness would love to help with bits done from orbit :)
 
@R.MartinhoFernandes I know
Never claimed it would be simple
I think that having a little bit of work to make C++(previous version) code compile with C++(current version) is a good tradeoff.
At least you can very slowly deprecate stuff.
 
@ʎǝɹɟɟɟǝſ you may think that, and its not a wrong view, but companies don't necessarily view it that way. Cause its costs money and all that.
 
I know, that's why it's a tradeoff. Company lose a little bit of money every 4 years or so, and C++ becomes better.
 
everyone who wants it can keep using std::oldandbusted::vector<bool> :)
 
2:08 PM
Also their codebase is probably better in the long run and it might even save money.
It's the same argument TDD-fanboys use really: do small work to avoid huge issues in the long run. And you see that it will save work.
 
-8
A: User keeps coming back with new accounts, asking dishonest non-questions

Ji ChaLet's start with the facts: Gnu-Make was written more than 20 years ago. 20 years ago, MadScientist took "ownership" of said project, and maintained control over its features and its documentation, since. I documented hundreds of Makefile examples, where GNU-Make clearly does not follow the doc...

 
@ʎǝɹɟɟɟǝſ I have yet to see a manager that would make such a tradeoff. One that was a programmer once would definitely be more inclined to, but then not all managers were once programmers.
 
@TonyTheLion That's why he doesn't have to. The C++ standard committee does.
And yes, I know it can be composed by managers.
 
Would you like me to repeat what I said? If that's not good enough, you should file a request at the developer list, maybe. (Re.: "Usually" - I qualifed precisely what conditions apply and why you can rely on it for rtree.) — sehe 1 min ago
Grrrr.
 
Just give them sleeping pills before the decision and let the others decide.
 
2:11 PM
@Mr.kbok Popcorn
 
Isn't that democracy?
 
While looking for an old quote of mine, I found this:
Nov 27 '12 at 22:19, by R. Martinho Fernandes
@JerryCoffin As I understand it, the story goes like this: they fucked up (ISO 8859-1). Then they "fixed" it and to "distinguish" added a dash to the name. But it was still fucked up, so they "fixed" it, but it was a breaking change, so they named it ISO 8859-15. But it was still fucked up, so Microsoft came and "fixed" it again, and that is Windows-1252. However, some people started to mislabel Windows-1252 as ISO-8859-1, so software authors "fixed" it by interpreting ISO-8859-1 as Windows-1252.
 
why would it be a management decision to maintain the codebase?
 
@R.MartinhoFernandes oh my
 
@ʎǝɹɟɟɟǝſ That's why it won't happen. I don't want the C++ standard committee to decide to give me extra work.
 
2:12 PM
I know. I'm just dreaming.
 
@melak47 cause they have some say in who they pay to do what
 
@R.MartinhoFernandes not you, future you :p
 
@ʎǝɹɟɟɟǝſ In Lounge<C++>, we are firmly rooted in reality, dreaming has no place here. :) :P
10
 
@TonyTheLion I find it funny.
 
its funny perhaps because Microsoft
you what is funny? Donald Trump
 
2:20 PM
someone in the mood to check if i really found an optimizer bug in ms visual c++ 2015? connect.microsoft.com/VisualStudio/Feedback/Details/1823129
 
I'm actually trying to stay off the VS...
 
user1804599
VS is Dutch for United States.
 
@TonyTheLion Dunno. Microsoft seems to be the one who messed up the least
 
user1804599
And it's plural like it should be.
 
@R.MartinhoFernandes hahaha
> Room dedicated to the Java programming language. And no, Android is NOT Java (does not use the Java VM, runtime environment and base SDKs differ, etc). And no, Javascript is NOT Java either. -_-
behind every sign there's a story
 
user1804599
2:24 PM
:p
 
user1804599
Android help vampires are the worst help vampires.
 
@ʎǝɹɟɟɟǝſ TDD is so 2010
unfortunately "Types Driven Development" has the same acronym
 
user1804599
TDD is nice.
 
I'd rather not have to write tests than write tests
 
Oh boy.
 
user1804599
2:29 PM
Then write software in a language that requires you to prove they are correct, and never have them interact with anything else.
 
I think I don't understand the difference between Redis clustering and partitioning
 
user1804599
lol picture
 
@ElimGarak Malicious JavaScript code lol.
 
@Nooble every javascript code is malicious
 
2:33 PM
lol @Nooble, that is why they invented TypeScript : )
 
Malicious.JS
Delicious.Tears
 
user1804599
TypeScript is awful.
 
ahahaha, Bjarne U SO FUNNY; "Next year all the compilers will support concepts"
 
user1804599
The designer of TypeScript is literally Breivik.
 
that was sarcasm btw
 
user1804599
2:34 PM
Poo's law.
 
@BartekBanachewicz :P
 
so guys have we found the perfect programming language yet?
 
define "perfect" in that context
 
@ʞɔᴉN Are you summoned with *.js?
 
yes; everybody knows Henk 2000 is perfect
 
user1804599
2:35 PM
@ʞɔᴉN perfect for what job
 
@ʞɔᴉN 16-bit real-mode Assembly
of course
 
@elyse dunno, it was sort of a jab at your typescript comment
 
user1804599
@jetbrains if there r any opps @least to join the marketing team ?? - will work for a free license ;-)
 
user1804599
lol
 
user1804599
Demonstrating your lack of typing skills isn't a very good idea when you want to join a marketing team.
 
2:37 PM
@ʞɔᴉN The answer is C+=1.
I invented it.
 
well I once put together a DSL called DWIM
and it did what I meant...
and I paid for it
 
user1804599
@C.Trauma That already exists and it's called Perl.
 
HAHA.. well played sir
 
'I've been a very bad girl,' she said, biting her lip. 'I need to be punished.' 'Very well,' he said and installed Windows 10 on her laptop.
@Nooble alright how do I programming it?
do i use eclipse??
 
@ʞɔᴉN That's like the third time this has been linked here.
 
2:41 PM
@EtiennedeMartel my bad, I don't even twitter. just saw it on Laksitha's feed
 
@ElimGarak JUSTICE has been served.
 
@BartekBanachewicz what do you mean by P2P distributed database infrastructure?
the P2P part specifically
 
@ʞɔᴉN it's the opposite of client-server
this is p fucking complicated
 
user1804599
@sehe geenstijl poll :P
 
user1804599
@BartekBanachewicz Implement Paxos in Haskell. See you in a year.
 
2:46 PM
@elyse oh cool
 
@BartekBanachewicz interesting. how is that different from sharding?
 
@ʞɔᴉN those are different sharding "strategies"
 
user1804599
P2P isn't web-scale whereas sharding is.
 
so what's your goal then, if the tools already exist?
 
2:50 PM
eyyy bby u wanna c my sharding strategy
 
o pls
 
oops I sharded
 
@TheForestAndTheTrees was waiting for that
 
@ʞɔᴉN actually using them
 
HELP I HAVE AN QUESTION how do you test code with callbacks
 
2:54 PM
use redis its pretty simple
 
@AnastasiyaAsadullayeva with a mock?
 
but I'm sure you thought of that already
 
What does that look like
 
@ʞɔᴉN reading redis docs as we speak, ye
@AnastasiyaAsadullayeva just like any other code?
 
@ʞɔᴉN okay so I can use redis to test callbacks neat
 
2:55 PM
> The lscm command (lscm.bat on Microsoft Windows systems) is in the same directory as the scm command described previously. The difference between the two is that lscm caches the process daemon, so it operates faster.
operates faster as in 39.8 seconds per request instead of 40
 
gmock?
 
@BartekBanachewicz But I don't know how to structure the requires, ie, do I create a mock that sets a flag "callback was called as expected" and require on that or what?
 
@ʞɔᴉN I was also thinking about cassandra
 
gmock is terrorible
 
@AnastasiyaAsadullayeva yes you're very welcome if this answer helped you please do not forget to click the check mark on the left to indicate that it helped you so other people can be helped and also so i can get my 15 points dammit
 
2:56 PM
@AnastasiyaAsadullayeva yes
 
@Mr.kbok thanks kbok but I will use redis
 
@AnastasiyaAsadullayeva you could use named functions as callback, test their logic separately, and for testing the callers you can wrap them into testing fns.
so like
 
@AnastasiyaAsadullayeva do both
 
@BartekBanachewicz I haven't looked in to that at all yet. if you do let me know what you think
 
@BartekBanachewicz use scylla
 
2:58 PM
function caller(a, cb) { cb(a); }

function myCb(a) { b; }

// test myCb
assert(myCb(A) == B)
// test caller
caller(A, function(a) { assert(a == A); cb(a)});
 
@Mr.kbok never had the unfortunate opportunity to use it
 
user406009
@AnastasiyaAsadullayeva for interests sake, did you find the default cause?
 
the 2nd one is more tricky because it wraps the callback before passing it into caller
@AnastasiyaAsadullayeva Oooooooooooh
<3
 
@Lalaland Not yet, but I have reduced the program to 2 files of about 20 of code. And it makes even less sense.
Removing an include that isn't used in the code fixes the issue. But so does removing an member that isn't used either. help.
 
user406009
Can you post a gist of the two files?
 
user1804599
3:03 PM
to implement call/cc or not to implement call/cc
 
@Lalaland Tomorrow when I get back to work :)
But really it doesn't make sense
 
@ʞɔᴉN REPOST
 
@AnastasiyaAsadullayeva it's great, but too big for me. No Windows support either.
 
@AnastasiyaAsadullayeva So in tomorrowland?
 
I wish I had a backlit keyboard now.
 
3:12 PM
@ʎǝɹɟɟɟǝſ I'M SORRY
 
maybe I'll just go with client-server
 
@TonyTheLion This is from a movie.
 
user406009
Lol, this article in the student newspaper. "Faculty complain that students show no interest in required humanity classes".
 
How is pi calculated?
 
3:14 PM
It's probably googlable
 
user406009
Direct quote "Students who are being lectured fall asleep -- literally"
 
@ʎǝɹɟɟɟǝſ Ask @Mysticial :P
 
That kid's a future robot.
Harem wizard
 
@Lalaland that's what lectures are for though
 
@ʎǝɹɟɟɟǝſ Take a circle, divide by 2, add a few random decimals and take the square root of all that
 
3:17 PM
lol
 
@BartekBanachewicz The engineering team is sick
 
user406009
@TheForestAndTheTrees not according to the interviewed professors. "The role of arts and literature and philosophy and religion need to be more appreciated"
 
user406009
I am going to need to save this article and frame it.
 
user406009
So I have something to laugh about during dark times.
 
user1804599
Why is unique_ptr::operator* callable on rvalues?
 
user1804599
3:22 PM
Oh wait, that can be useful.
 
user1804599
f(*g()).
 
user406009
When does that temporary die? After the call to f()?
 
This doesn't help with fear of flight at all
 
Just click frantically on banner ads
 
3:30 PM
And you'll be virtually guaranteed to survive.
 
I'm more likely to survive a plane crash than clicking a banner ad? good thing I never click those things...
they sound dangerous.
 
Xeo
@ʎǝɹɟɟɟǝſ well crap, 475.28 times 0 is still... 0 :<
 
Improve your plane crash survivability with adblock
 
^ Best banner ad ever.
 
Xeo
@Mr.kbok without
 
3:33 PM
with
 
Xeo
if I have no chance to click on an ad, then I have no chance to survive a plane crash
 
within
 
Xeo
according to that statistic
2 mins ago, by Xeo
@ʎǝɹɟɟɟǝſ well crap, 475.28 times 0 is still... 0 :<
 
user406009
The solution is to simply click all the banner ads.
 
So.
 
3:34 PM
If you clicked on an ad once in your life, and then install adblock, then your click rate stays super high forever.
 
My Music Humanities class says we can do a "Critical Listening Report" on anything we want to.
I think I'm going to make some of my own music and then do a Critical Listening Report on the music I just made. :D
 
"it's crap"
 
@Mr.kbok For 700 words!
 
ouch
 
"It's the shittiest shit, the crappiest crap, the worst of the worst."
 
3:35 PM
Can I make music for you?
 
"Now, let me tell you why..."
 
DJ kbok
 
@Mr.kbok If I can write 700 words on it and it Sonic Properties™, sure!
 
Sonic Properties? Is that a chaos emerald powerup?
 
I should fill my paper with Sonic puns.
 
user406009
3:37 PM
@ThePhD "Let me present my Critical Listening Report on your lectures. These lectures are a masterpiece in producing boredom and sleepiness. For instance .... "
 
@Lalaland Damn. That's meta and harsh.
... I'm going to do it.
 
music is slow poom poom tss for 12 minutes
 
Now I just need to record the lecture.
 
Good night little shrimps
 
@AnastasiyaAsadullayeva Good morning night.
 
3:38 PM
@AnastasiyaAsadullayeva Good night sweet whale.
 
<generic mom joke>
 
Ell
lol
I just failed to log in to the computer for 1.5hr and then left the lecture
how even :/
I wrote down my password incorrectly >.<
it was okay though because I saw someone write:
> $ echo "bash is actually pretty dank" > foo.css
 
What's a good short namespace name ([2, 6) characters) for a matrix library nobody is going to use?
 
mx, mtx, mtrx, libmtx, ???
 
Not hipster enough :P
 
3:47 PM
@ʎǝɹɟɟɟǝſ mom
"matrix" is derived from it :p
 
user3790646
Hello
 
@bluefog ?
@bluefog I love it
 
https://en.wiktionary.org/wiki/matrix
see Latin :D
 
I love you, thanks.
 
@ʎǝɹɟɟɟǝſ I usually use a really long namespace name, than use a short alias (though there are situations where a namespace alias is problematic).
@bluefog Only for giant matrices, of course.
 
3:53 PM
15 mins ago, by Anastasiya Asadullayeva
<generic mom joke>
 
@ScarletAmaranth lol, MSVC
 
@JerryCoffin You're quite active on Quora lately, Almost every other post I see is yours :)
 
user3790646
MSVC for the win
 
@R.MartinhoFernandes :(
 
@bluefog I was for a couple weeks, but the number of utterly idiotic questions is just too high to tolerate for very long at all. Makes even SO questions seem intelligent by comparison.
 
3:57 PM
@AnastasiyaAsadullayeva how did it end up with that bug?
 
I'm already prepared to vandalize truthify MSVC's new roadmap that claims concept support.
 
@JerryCoffin What made you go to Quora in the first place? Did you see an interesting C++ question there? Was it linked on reddit or something?
 

« first day (1803 days earlier)      last day (3144 days later) »