« first day (1488 days earlier)      last day (3686 days later) » 

user1804599
20:00
lol BCPL had coroutines?
user1804599
Lua coroutines best coroutines.
@StackedCrooked Smalltalk is still used. At least some Airlines have whole distributed systems for selling tickets, etc. based on Smalltalk.
user1804599
If only Lua supported fucking multithreading.
user1804599
Shit, ConcurrentLinkedQueue is unbounded.
20:03
definitely seems to be interest and work on it
user1804599
Oh woo LinkedBlockingQueue.
the piadinas broke, so I had to eat everything separately :(
firstworldproblems.jpg
@R.MartinhoFernandes Am I being dense, or is there no documentation on how to change the number of iterations for a benchmark with nonius? -- I've been looking at this for 1.5hrs now :)
Learning lots of course
-1
Q: id3 install in Visual Studio

Sandu MihaiCan you please help me with a short tutorial step by step of how to add id3 library to a C++ project in Visual Studio ? Nothing from the internet seems to clear me out and i searched a lot. Thanks

really... nothing on the internet
20:21
@Mgetz I can't even be bothered to Google titles for fun anymore.
@MartinJames it's a duplicate anyway
@Mgetz lol, 'About 2,630,000 results'
@rubenvb yikes
user1804599
20:25
Now I should be able to implement map on them.
user1804599
Well, not for Sender. Hmm.
user1804599
That would need def map[U](f: U => T): Sender[U], which is weird.
20:39
Oh lol!!! @BartekBanachewicz
> The book isn't the only thing that's backwards: did you know the Head First girl pictured on the front of the book leads a shocking double life? That's right, student by day, stripper by night. Ok, maybe not ... the horror
user image
7
@sehe stock image most likely
pfft. party pooper. it's funny because it's Bratek!
user1804599
> the message received, as an array of bytes; null on error.
user1804599
WTF this is Java not C.
user1804599
Y U NO EXCEPTION
20:45
Why are you doing Java?
user1804599
> true if send was successful, false otherwise.
user1804599
oh god
user1804599
@TonyTheLion I'm doing Scala but using a Java library.
oh I see
Wait weren't you doing some other language just last night?
welp Microsoft just emailed me about VS 2015.
20:48
They are asking you to use it?
Puppy, their staunchest supporter
user1804599
@TonyTheLion That's for the server, this is the client.
yeah like I didn't already just download it and install it :D
I haven't opened VS on my home machine in like a year or something
Me neither
20:50
Bad title of the day:
-2
Q: Please find the error in my code

Priyansh GangwarI am just learning C++ and I wrote a code to print factors of any number. This code is working fine with all inputs i tested except 8. When I enter 8 it gives the factors 2 and 2. While factors should be 2, 2 and 2. This is the code: #include <iostream> using namespace std; int factors(int n);...

That said, I do appreciate VS2013 at work (although it's unbearably slow for c++ work)
@JerryCoffin you mentioned that it's important that if you keep pushing on one end and popping on the other you don't end up with infinite memory requirements
@orlp Yeah, I remember that.
@JerryCoffin the solution I'm currently looking at requires 8/3 n memory if your queue contains n elements and you constantly push and pop at the opposing ends
@sehe yes, it is
I also have the lack of luck to work on a slow HDD
I ended up using Sublime Text for everything and only using VS to do the actual build
Android also became my platform of choice for testing because of that
20:55
@JerryCoffin it's a tradeoff, if you tried making it n + c memory you'd end up having to move all elements every c pop/push pairs
@orlp Hmm...a tad under 3N. The relative success of languages that depend on GC suggests many (most?) find that acceptable.
first android, then W8 and WP
huh
IntelliSense really is faster.
a lot faster.
oh yeah I should try the new VS
it really looks like some cool shit :)
Oh boy- :D
20:56
hello
huh
I still have NullCodeGenerator?
@JerryCoffin but this is a direct result of the requirement of being contiguous
I also got a bunch of totally accurate (holy shit) variable shadowing warnings.
@JerryCoffin you have to move all elements after c push/pop pairs if you only have c spare memory
and yay no more ICE.
wait a second, this isn't my code.
20:59
@JerryCoffin however if you make the extra memory a linear factor of n it remains amortized constant
@orlp Right--I'm just saying that as a general rule of thumb, increasing memory usage by 3X is probably acceptable for quite a few people, as long as they get something useful in return (and I think contiguity qualifies).
Many people already put up with (in many cases) a 5x-7x increase to get garbage collection, which (IMO) is a much smaller benefit.
@Puppy The VS 2015?
@JerryCoffin I'd argue that the effective amount of increased memory is even smaller
yes.
and holy shit, the autocomplete window moves now as you type.
it's freaky.
@JerryCoffin unless you're really really good with estimating circular buffer maximum sizes / use a dynamically resize_to_fit implementation
21:02
and they finally handle referencing deleted functions properly.
@orlp Smaller is obviously better--but even if it were 3x, it would probably still be acceptable for many purposes.
@JerryCoffin But closures :(
[=]!
That’s one kind of closures.
@LucDanton Fair point. Yes, there are cases where GC provides a substantial benefit--but Java (for one example) has classically had most of the weaknesses with few of the benefits, but it's been pretty successful anyway.
21:04
@AlexM. oh that's not my issue
@AlexM. s/ST/vim/
@JerryCoffin It's because it had few of the benefits that it was successful.
accurate error messages!
yay.
@Puppy Oh? How does it look like?
@Puppy Could be--I don't spend a lot of time thinking about it, so maybe I'm missing something obvious, but I've never quite understood exactly how Java succeeded to the degree it did. It's easy to talk about things like marketing, and they're probably true to at least some degree, but they still fall short (IMO) of explaining it.
it looks like when you reference a deleted function, the compiler actually correctly tells you where it was referenced from.
wow they actually approach the gcc level of friendliness
21:08
@JerryCoffin It's pretty simple. Everybody was shit scared of C++, so they wanted an environment where they felt that you couldn't make mistakes. Cue Java, who promises that you can't abuse templates/operator overloading/whatever.
@Puppy Simple explanation, but clearly wrong, or at least clearly insufficient. Eiffel (for only one obvious example) both promised and delivered quite a bit more, but never caught on to any significant degree.
hmm
@JerryCoffin Eiffel's failure is easily explained: no curly braces.
@john Mathematicians: The proof is correct. I am done here.
@john Obviously objectionable--you've failed to provide an acceptable definition of "here".
21:13
someone kick john, he's been trolling the JS and C# rooms
@john yes @LightnessRacesinOrbit
@KendallFrey +1. Retweet. Like. Or whatever it is popular nowadays.
@john I am merely observant
holy fuck
they finally don't stop at the first template instantiation error.
21:19
Some people just have so much time to waste "I'm going to go bother chat rooms bc whatevs"
I barely have time to eat dinner D:
I absolutely wouldn't make that assumption, the last thing you want as a developer is to find out later that your code isn't thread safe. — Mgetz 17 secs ago
user1804599
lol strtok
honestly I'm surprised that vlad even answered with it, it's been de-facto deprecated for ages on pretty much every platform
@Mgetz But why? Nobody will ever have more than one core...
just like they'll never have more than 1 screen, 1 GPU, or 1 printer.
21:26
@JerryCoffin or more than 640k of ram?
user1804599
Hey.
user1804599
I think I know what API I want.
@Puppy Precisely!
why has microsoft decided to open source all this stuff
@JerryCoffin The gist of it is that we always make sure that the end we want extra capacity on gets 1/3 * size() space, stealing half of the free capacity of the other end. If we can satisfy 1/3 * size() space with just half of the free capacity of the other end we do not allocate extra memory.
21:27
I like it but I'm not sure why they did it
user1804599
Something like receiver.map(parse).forward(historyWriter, webSocketForwarder) would be great.
because
they finally realized that everybody is buying Windows so they have nothing to gain by trying to force you to buy Windows to use their dev tools.
the thing is
@orlp Yeah, I glanced through it. I'm just left thinking I'd probably just cheat and do it by allocating extra address space, and mapping pages of virtual memory as needed.
they're porting more than just their tools no?
@JerryCoffin std::allocator can do all that? ;)
21:30
lol @sehe
I cant wait to uncover other lives of faces of "head first"
@orlp I'm pretty sure I could write an allocator that did that (given platform support, such as Windows provides).
user1804599
Also I think I want push-based receive, not pull-based.
@JerryCoffin perhaps using the hint argument?
user1804599
Pull-based is inconvenient.
@orlp Not sure I even need that. The allocator would just allocate a big chunk of address space (and mark it all as "not present"). Then you allocate real memory as faults happen.
21:33
I always find address space tricks cool
but I don't like using them because it can end up pretty badly for the OS
@user476918 I gave you a ready to use solution. Do not take into account that some idiots downvoted my answer.:) — Vlad from Moscow 4 mins ago
cocky bastard
@JerryCoffin the only place where I'd consider using them is if I'd be writing a custom programming language runtime to create a resizable stack
@Rapptz you had an idea for a vector with a static size, no? was your idea to raise exceptions when you overflow or switch to dynamic allocation?
former
boost::static_vector
yeah I know it exists
21:37
well.
Puppy is definitely a fan of the new VS.
they actually seem to have fixed bugs.
yeah, the boost is the library to look up ideas, and then reimplement them by yourself because of all the "No Boost" requirements
@Puppy I blame the competitive pressure from clang and STL bitching at Herb
one thing you gotta say about Clang
everybody else has been made to up their game.
@Puppy competition is good
@Puppy now we just need competition with LLVM to improve that piece of shit =/
21:40
LLVM is the only codegen library in town.
that's exactly my point
honestly LLVM isn't that bad.
it needs competition
honestly I don't see any potential LLVM replacements being drastically different from LLVM.
I do, their IR is just meh
21:42
LLVM IR is mostly fine.
and the API to generate IR is even worse
sure, it could use a few tweaks, but what can't.
I'm not talking about the actual codegen/optimization, that worked ok
but the IR is too much C-centric
what on earth do you mean.
the entire package feels like C
fixed choice of calling conventions
21:45
you can't define your own calling conventions portably, so there's no other choice.
fixed choices of exception handling
same problem there.
no LLVM replacement could offer define-your-own-EH or define-your-own-CC.
of course they can
er, no, they can't.
there's no way to define a CC portably.
of course not
21:46
well then.
who needs it to be portable?
the codegen needs to be portable
er, the whole point of LLVM IR is that it's more-or-less portable.
you should be able to tell it your CC
that's what makes it a useful IR.
if you don't want portability then why are you expecting the mostly portable IR to offer the features you want?
go modify their codegen classes instead.
user1804599
> If the callback returns a Future, the future returned by then will be completed with the same result as the future returned by the callback.
user1804599
21:49
So that doesn't implicitly call then on the future returned by the callback right?
user1804599
It would be moronic if it did, but you never know with APIs designed by web developers (I'm looking at you, ECMAScript 6).
well, any function call will result in a future value
even if it would only take 5ns, that's 5 nano seconds into the future
@chmod711telkitty Not on the TimeStation 9000. It has functions that return values before they're called.
ok, let's see the new VS in action, it finally installed
inb4 crash
21:57
@JerryCoffin but what if the values are returned but you are too lazy to call it?
works well so far, I logged in
maybe in VS 2016 we'll be able to ~Like~ other people's code
logged in?
VS requires logging in?
with the microsoft account
it's not required
you mean registering?
no, you log in
21:58
@chmod711telkitty It can also be about as lazy as Haskell.
every time?
I do, you don't have to
@orlp Mostly it happens automatically.
I don't like that =/
user1804599
@AlexM. wat
21:59
I don't mind it
user1804599
@AlexM. good
it also makes other things easy
like getting a W8/WP dev license
I never cared to see what other features it brings
let me see
it's a slippery slope
maybe it's optional now
next version it might not be
in 10 years only state-approved developers get access to compilers to prevent hacking
etc..
I'm sure someone will provide an open source alternative to anything that comes along
they always do
pretty sure it's not optional
or well something about it isn't
22:03
there is something that requires you to log in
but I can't tell what that is, I forgot
NuGet perhaps? probably not
@Rapptz There may be some things that require logging in, but you can certainly use VS in general without logging in.
It does have some handy points, such as keeping track of settings, so (assuming you log into the same account from them) changing settings on one computer can automatically propagate to other computers (assuming you have VS installed on all of them).
Ooh... Wadworths 6X:)
@TonyTheLion Time for you to go have a drink. It may not make you forget, but at least it'll help numb the pain.
template <class T>
struct is_nothrow_move_constructible_imp{
    BOOST_STATIC_CONSTANT(bool, value =(
        ::boost::type_traits::ice_and<
            ::boost::type_traits::ice_or<
                ::boost::has_trivial_move_constructor<T>::value,
                ::boost::has_nothrow_copy<T>::value
            >::value,
            ::boost::type_traits::ice_not< ::boost::is_array<T>::value >::value
        >::value));
};
wat dafuq, what about non-trivial noexcept moves?
22:14
@JerryCoffin good memories, I was talking good memories
@TonyTheLion Oh. In that case, you need to drink the celebrate. Alcohol is the solution to every problem.
Actually, that's not true: alcohol is not the answer. Alcohol is the question (and "Yes!" is the answer).
@JerryCoffin that didn't help here :(
I had to manually change the theme
manually bring back line numbers
manually bring back whitespace representation
22:23
@AlexM. hmm...sounds strange. Or maybe I'm hallucinating. Hard to be sure.
huh
apparently "boost::is_nothrow_move_constructible" in as of itself is not a valid question title.
its not a question
what about it?
@JerryCoffin hmm, I'm thinking of changing the semantics of erase so that it will invalidate iterators on the end that is closest, rather than always to end(), thoughts?
it does make cdeque not a drop-in replacement for vector
makes it pretty clear what the question is about
its not a question phrase though
22:33
@orlp In theory it reduces the average complexity from N/2 to N/4. The theorists wouldn't care, but in practice I think it's useful. Of course, iterators between the erasure point and the end remain valid, but now refer to a different element than previously, so they're kind of destroyed too.
@JerryCoffin I think I should just do it
@sehe The number of iterations is determined by the clock characteristics.
char class[10];
kek
@R.MartinhoFernandes in conjunction with the "payload"?
so if we want to iterate through a certain range, we just code it inside the lambda body, and trust that nonius won't bless us with 100 iterations of /that/? :)
I admit that the benchmark I'm porting is probably not an ideal fit
Here's what I have in progress: gist.github.com/sehe/c14c3411288d73f63f5e (based on something I received)
user1804599
Every note in this song is correct.
user1804599
This is a great song.
I'd call it a "great singing" then.
@sehe ewe, what's the m_ prefix all about?
22:42
you figure it out, friend. Are you interested in the cruft it was before/
you have a problem writing code that is clear?
user457812
I have a problem with writing code that isn't giant ASCII penises.
@thecoshman what are you on about
@sehe foo.bar clear, no? What does foo.m_bar do to help you read the code? you have to be doing some serious bastardy to require this silly clarification that 'bar' is a member variable.
6 mins ago, by sehe
Here's what I have in progress: https://gist.github.com/sehe/c14c3411288d73f63f5e (based on something I received)
Get a life, maybe
22:46
I still hold you accountable
user1804599
/b/ is broken.
On slightly less anally retentive notes, was at an 'agile tech day thing' for work, one of our 'managers' was doing a talk.
woot. sounds like 'fun'
He basically spent an hour saying "We thought we were special, so didn't do what everyone said, it didn't work; then we tried what everyone said, and it worked great". I helped out by asking a question (more or less) "So, do you have any examples of where doing it differently actually worked out?"
Is anyone here good at iOS?
22:49
all of us
but we're assholes and won't answer your question
ha!
@user3591323 bin it, problem solved.
also, did @jalf actually get banned then? What you do baby cakes?
22:50
@user3591323 No.
@CatPlusPlus isn't this needing to be there?
#meta
user1804599
Yum.
user1804599
Bitter lemon.
@sehe Yes, you get as many as needed to make the results useful (assuming some kind of stability in execution times)
oh, nonius :P
22:55
@R.MartinhoFernandes So, that's never a problem then. I wonder how many samples are really useful then, seeing that the underlying test function does 10 mio iterations
It will probably only do one run per sample. Sample number you can set with -s.
May a std::vector::value_type have a throwing destructor?
cppreference says the type must be Destructible, but the C++14 standard only says it has to be Erasable from what I can see
> Ajoutez votre nom Tienne
Wait what.
They're called me "Tienne" in an email.
user1804599
@EtiennedeMartel nom nom nom etienne
user1804599
Tienne e Artel
user1804599
22:58
Iemand bij de verkeerde naam noemen is een echte martelpraktijk.
My guess is that they remove anything that isn't an ASCII letter ("É") then uppercase the first letter after that.

« first day (1488 days earlier)      last day (3686 days later) »