« first day (1377 days earlier)      last day (3572 days later) » 

8:00 PM
Which is limited to 32GB
 
@StackedCrooked That's pretty terrible.
 
But really your VPS sucks
 
It's just a slicehost I purchased back in 2010 and I didn't bother changing.
I'm not very diligent when it comes to money.
I will die old and poor.
 
Why not get something better?
 
@Chimera wow
 
8:02 PM
hmm
my answer on meta is on +29 now
I'm better at this than puppy that's for sure
 
@BartekBanachewicz dat revision
 
Do you mean answer timestamp? — ChrisF ♦ 4 hours ago
nobody else (including me) noticed
 
Ell
damn I ordered too much chinese :L
 
Sesriously, I didn't even know people did that
I knew adding a basic answer and then expanding, but not just adding absolutely nothing.
 
@Ell how many did you get?
 
8:05 PM
@StackedCrooked Start budgeting :v
 
Ell
@StackedCrooked 3 :(
although small, I could only eat one of them
it was the old woman
 
Old woman give you the least regret afterwards.
 
@Chimera I had an external one crash on me after running 24/7 for a couple months on my Raspberry Pi.
I have one portable that is the best HDD I've bought until now.
So I guess, yeah, sure.
I trust Seagate drives.
Sue me :-p
 
External drives are crappier than internal ones
 
Yeah, it was pure overheating I think.
Anyways, I'm out. C y all
 
8:14 PM
@rubenvb I had two Seagates drives fail on me.
My trust has been reduced.
 
My WD externals/internals haven't failed me yet!
 
I know it's dumb, but are the elements of a new std::array<int, N> effectively allocated in what mortals call the heap (just like an std::vector)?
 
No, they're on the moon
 
@Jefffrey Where otherwise would you expect them to be?
 
Just making sure.
 
8:17 PM
...also, why new
 
They're actually on the free store. :3
 
@milleniumbug what do you mean?
 
Ell
Does the standard call the stack the stack?
 
new std::array<int, N> implies calling new
 
@Ell no
@milleniumbug Yes, and...?
 
8:19 PM
Why not use std::unique_ptr<int[]>?
Or std::vector
 
The standard mentions stack unwinding, but I think that's it.
 
@StackedCrooked lol
 
Ok, here's the whole problem: Assuming a matrix class that has compile time sizes ( eg matrix<Type, M, N>), how should I expose the ability to allocate the elements either on the stack (via a simple std::array) or on the heap (via a std::vector)?
 
I was playing the sims and while I was sleeping this mexican guy decided to enter my home and dance to salsa
wtf
 
Of course I could use a template parameter, but I'm considering other options.
 
8:22 PM
@AlexM. Karma
 
@Jefffrey An allocator.
 
Ell
oh yeah it's "automatic storage duration" right?
 
yup
 
@Rapptz A custom allocator concept then, because the current Allocator concept expects an allocate function that takes the number of elements at runtime. Yes I could have a static_allocator<int, 5> that just ignores it, but that seems... not right.
 
Allocator won't help
 
8:24 PM
With variable templates, template template parameters are usable again with STL.
 
matrix<double, 3, 4, std::vector>
 
The alternative is, for whatever reason you need the heap, to use an std::unique_ptr<matrix<Type, M, N>>.
 
@milleniumbug template <typename...> typename cannot match std::array.
 
8:26 PM
I'm having a hard time keeping my sim's needs balanced because I have to keep on telling people to stop wanting to meet me
fucking game
why can't I disable other sims
 
@milleniumbug Considering that I also need a template argument that describes the type of allocation (row-major / col-major), this is going to be fun. :)
 
Whoops.
 
Are you reinventing Eigen?
 
Probably, it's just experimenting.
 
Don't you have fun things to experiment with
 
8:27 PM
...also, boost::static_vector
 
Compile time shit is fun for me.
It's fascinating.
 
I'm writing a Snake game. Thanks for Lounge project ideas.
 
user1804599
Write a Snake game in CPP with Boost.Preprocessor.
 
If you want something to do then loungecpp dot net needs both non-shitty wiki software and an auth server (OAuth/OpenID <-> LDAP thing)
And also something better for polls maybe
 
@Jefffrey Yet another stupid idea - policies
 
8:31 PM
What issues are you having with mediawiki again?
 
@milleniumbug policies? What are those?
 
You can't just make a template argument that's either std::array or std::vector anyway
 
Policy-based design, also known as policy-based class design or policy-based programming, is a computer programming paradigm based on an idiom for C++ known as policies. It has been described as a compile-time variant of the strategy pattern, and has connections with C++ template metaprogramming. It was first popularized by Andrei Alexandrescu with his 2001 book Modern C++ Design and his column Generic<Programming> in the C/C++ Users Journal. Although the technique could theoretically be applied to other languages, it is currently closely associated with C++, and depends on the particular feature...
 
You need some intermediate type
 
@CatPlusPlus How so?
 
8:32 PM
because
 
@Chimera dirtypcbs.com is super cheap.
 
@Jefffrey They have different template arguments, and also array needs a size there
Unless you want the user to specify the size twice
 
6 mins ago, by R. Martinho Fernandes
@milleniumbug template <typename...> typename cannot match std::array.
 
You need traits
 
8:33 PM
@CatPlusPlus I wouldn't expose the matrix type, just two aliases (such as stack_matrix and heap_matrix), I think.
If that's possible.
 
Not really
 
I mean you can, but that won't solve this problem, you still can't use std::vector/array directly
Argh why did I take content adding/editing to do, it's so boring and tedious
@Rapptz "Dynamic" page elements don't update until page is resaved
Also it's shit in general and also in PHP
 
@CatPlusPlus In the implementation I can create a "generic" interface with a generic Container type (which will always ever be std::vector) and then specialize the constructor of matrix for std::array.
To overcome the fact that std::array is really not a SequenceContainer.
 
Have you read what Robot said
 
8:37 PM
This is a pretty bad year for aviation.
 
template<typename T, std::size_t Ignore>
using vec = std::vector<T>
 
They take different ctor args, too :v
Beh deadline tomorrow and I'm like 20% done on this boring shit
 
@R.MartinhoFernandes That is what's causing this?
 
Ell
that's good
hmm. So UK is switching from doc to odf
 
I don't think you can specialise just one thing
 
8:44 PM
you guys are fucking idiots. I warn you about the insect apocalypse and you don't even flinch. fuck.
 
I already ordered my flamethrowers
 
@CatPlusPlus seems so
 
user2862309
What apocalypse
 
@Jefffrey No, you just can't specialize a template member function without specializing the whole class.
 
user2862309
8:45 PM
Ha, no worries, the chines would eat them.
 
1 min ago, by Jefffrey
@CatPlusPlus seems so
 
@Jefffrey That extension (or possibly fix in C++11/14 that I didn't notice) only seems to cover explicit specializations not partial.
 
Oh, it's an extension.
 
common for compilers to offer extensions because the original rules were an annoyin piece of shit.
 
Then I guess a static allocator is what I need.
 
8:48 PM
as I said, the Committee may have improved the situation in 11 or 14, I know it was proposed, but it clearly has limits
 
Also bleh class keyword in template arguments awful
 
concur.
 
Come on Cat, you taught me this things don't matter.
 
user1804599
O(n^2) multiplication. :(
 
hehe, the purpose of typename in template parameters is to #define private public, #define protected public and #define class struct. That's why they're proposing typename for template template parameters ;P
 
8:52 PM
lol
 
@milleniumbug No, it's because template params don't have to be classes. They proposed it for template templates because typename is valid everywhere class is in template params except there, so it's a consistency thing.
 
@Puppy How would you rate cat's c++?
 
eh, he clearly knows some stuff about the language but seems to have made the sane choice of stopping when he didn't like what he saw.
 
@Puppy is that a perfect 10?
 
8:57 PM
Yes
 
no.
 
I went to a different tab for 2 seconds
And my answer went from 0 to +4
 
I forget obscure C++ stuff from not using it
And I'm totally okay with that
 
indeed.
 
Ell
I don't know what a template template is
 
8:58 PM
Shame I can't give you another +1. Very nice edit. — cv_and_he 5 mins ago
 
@user2485710: "You can't go wrong in understanding what std::move does" Sure, as long as someone taught you that std::move doesn't actually move anything. — Lightness Races in Orbit 5 secs ago
yawn
 
@Ell A template argument that is a template.
 
llonesmiz's incarnation still following everything in the boost tags
 
Template template argument is a thing
Template template not so much
You're parsing it wrong
 
@CatPlusPlus I see, thanks.
 
9:01 PM
also, genius:
0
A: Does this typedef mean what I think it does?

Lightness Races in OrbitYes.​​​​​​​​​​​​​​​​​​​​​​​​​​​

 
> NO SUPPORT OR WARRANTY IS AVAILABLE WHATSOEVER. This project is not recommended for anyone.
 
Sounds like my project, but I don't think I have any usable ones atm
 
hmm.
 
There were some cases where you need something like
template<typename T>
template<typename U>
But I forgot which.
 
9:07 PM
Oh, when implementing a template method of a class template.
I have pepper, but nothing to put it on.
What to do...
 
Hmm.. It seems more command line parsers automatically provide --help
 
> template method
fuck u
 
Except for Boost.PO it seems
 
@LightnessRacesinOrbit method template sounded weird.
 
template member function
 
9:08 PM
Template method of a template class
 
What's wrong with methods?
 
I use member function
because methods isn't what the C++ standard calls them
 
And that is Very Important
 
Yes, yes it is.
 
The Italians would say it's Ferry Important.
 
9:11 PM
it's about as important as the exact colour of the shit I did this morning.
 
I'd say less. Less than a healthy poop
 
@StackedCrooked stfu about "method"s
"method" is what Java/.NET morons call them
 
Why do you guys take it upon yourselves to show how "little you care"?
I don't understand
 
@LightnessRacesinOrbit Thanks. I will from now on always speak of "methods" when you are around. :P
 
No no you misunderstand
 
9:13 PM
it's not how little I care, it's how little anyone should care.
 
We care much about you being standard nerds
 
it is funny
 
Puppy probably talks about football and celebrities more than anyone else, by going out of his way to bitch and moan and whine that they exist... because nobody cares about them, right?
 
Ell
@LightnessRacesinOrbit method is general name for member function I though
python, ruby, java, .net, ... lots of people
say this
 
9:14 PM
That is not even remotely the same thing as 'oh my god i dont care'
 
Ell
@Rapptz I never got that either
 
I mean the 'method' vs 'member function' pedantry
And us making fun of you for that
 
@Ell only out in the wide world of morons
 
Re-read what I said.
 
@Ell it's not a well-defined C++ term
 
9:15 PM
I didn't say "Everyone should use member functions"
 
@Rapptz it has functionality for enumerating all flags I think
 
I said "I use member functions" and gave my reason why
 
@Ell and it sounds childish, which is the main problem
 
Ell
@LightnessRacesinOrbit I can see why in c++ one would use member function
 
But you decided to just shit on everything and say how little importance it is
 
Ell
9:16 PM
I think I do as well actually.
I use method in other contexts
but member func in c++
 
Never not say 'method'
 
how anal can you be..
 
i am the op
 
lol at flag
 
shitty flag
 
9:18 PM
you can methodically use your member
 
user1804599
Dependent typing is pretty fun.
 
Ell
@sehe Should we be anal about it?
 
user1804599
But can be annoying when you can’t tie the knot.
 
@Ell fine by me
 
Ell
What is the thing one might do in rehab that isn't prolapse?
 
9:21 PM
@R.MartinhoFernandes thanks for the tip
 
user1804599
@rightfold That's hardly guaranteed. You or I might, but someone else who's going through a hard day might still have trouble parsing what's going on. In any case, since it's not an exact duplicate it becomes somewhat subjective, and the lack of close votes seems to indicate that most people want the question to stay. — Chris Hayes 1 min ago
 
user1804599
> hardly guaranteed
 
user1804599
Well, you must really be a complete fucking moron then.
 
lol Fred decided to copy this?
 
@rightfold What? He's obviously right and that's obviously not a duplicate. Stop being so wrong and, if you insist upon continuing to be wrong, at least try not to be such a dickwad about it.
 
9:26 PM
@Ell I'm detecting a punny joke here. I'm pretty sure you're looking for "relapse" but I'm not sure *why*
 
It's not even close to being a duplicate.
 
Xeo
Ooops. I think my friend's graphics card is fried.
 
Ooops. I don't give a flying fuck.
 
6 hours ago, by Johan Larsson
already been done I think
 
Xeo
he's getting shifted screens and flickering
aaaand... crashes.
 
9:27 PM
youch
 
Mayve I should have pinged him
 
@Xeo dat pun
 
So do Java lambdas only work with predicates?
they're the only types I see
 
@milleniumbug What pun?
 
Xeo
@Rapptz Don't think so
 
Ell
9:28 PM
@sehe Ahh that's it. And no, it was a genuine question. But I don't know what relapse means. Just that it happens in rehab and sounds like prolapse :L
 
friend-fried
 
@Ell well, happy to be of service :[]
 
@milleniumbug that's hardly a pun
 
fiend-fight
 
...doesn't sound similar, but at least the Levenshtein distance is small enough.
 
9:32 PM
@Ell It means that you fail to stay off whatever thing you went into rehab for.
 
Dependency Injection for Boost? http://krzysztof-jusiak.github.io/di/boost/libs/di/doc/html/ #cpp
That looks solid. I'm still cold on the idea of "automatic DI", but it's good to know something exists in case I would want to repent
 
@Ell I'm surprised you don't know. Seems like a common enough word.
 
Ell
I don't know when the last time I heard relapse was
besides just then :P
 
Oh, Twitch is bought by Google.
 
Ell
I still really don't get what dependency injection is
 
9:37 PM
rip non-G+ Twitch accounts
 
@Ell don't worry about it
 
Ell
I used to think it was passing a variable instead of using a global
 
@Ell lol
Injecting those variables into unsuspecting APIs.
 
Ell
> An injection is the passing of a dependency (a service) to a dependent object (a client). The service is made part of the client's state. Passing the service to the client, rather than allowing a client to build or find the service, is the fundamental requirement of the pattern.
 
Dependency injection is such a hypish term.
"level-of-indirection" doesn't sound as cool I suppose.
 
9:41 PM
It's not really the same term
Also goddammit the library I picked for model versioning is broken
 
@Ell I reckon so much time elapsed that you had a relapse lapse
 
@StackedCrooked using a container is really nice though
 
@StackedCrooked what is Twitch?
 
user1804599
@JohanLarsson Using DI to get rid of globals! Hey let’s introduce a global container!
 
user1804599
(Constructors are globals.)
 
9:46 PM
> More precisely Dependency Injection might be described as "set of software design principles and patterns that enable us to develop loosely coupled code" [See11]
@Ell or constructing them on-site
 
@sehe Streaming service
 
@CatPlusPlus oh. that.
 
@sehe It's a site that I remember because I saw some Starcraft tournaments there.
 
@rightfold Container isn't global dummy
 
user1804599
What is it then?
 
9:48 PM
Global is a container though.
 
user1804599
Do you pass it around?
 
user1804599
Then why not pass around dependencies directly?
 
@rightfold Have you never used one?
 
Container is the boilerplate to pass around dependencies
 
@rightfold I do this.
 
user1804599
9:48 PM
Lounge<Chat> used one.
 
Also passing it around is dumb
 
@JohanLarsson Happy to be enlightened
 
user1804599
@sehe Me too. Works perfectly fine.
 
Of course it works fine
 
@sehe what do you mean?
 
9:49 PM
But it's boilerplate
 
user1804599
It’s even nicer with partial application.
 
@JohanLarsson So add me to the list:
58 secs ago, by Johan Larsson
@rightfold Have you never used one?
 
@sehe ok writing a sample, Cat can flame the dumbs I do :)
 
user1804599
@CatPlusPlus What do you do instead?
 
user1804599
inb4 making it a global
 
9:50 PM
No, I just resolve top-level components from it
The rest is wired up automatically
None of them need or should depend on the container
 
@JohanLarsson make it a motivating example :)
(yay mom! today I'm grown up! Now I will learn about DI)
 
user1804599
What if you need to create objects at runtime?
 
You can tell good DI-enabled code by the fact that you can use it without the container
And pass the dependencies manually
 
@CatPlusPlus ah, part of the mystery resolved. How does this work in non-reflective languages then? (if the container is just sugar for manually passing things)
 
@rightfold Refactor that to another service vOv
 
9:52 PM
so. If you have a site with plain login, and a site with openid login, are they treated differently? In what ways?
 
@sehe Hell if I know, probably badly
 
@Crow the plain login one will become extinct, because it doesn't exist
 
what do you mean? Just like, register ON that site
 
user1804599
In my next project I’ll create way fewer dependencies anyway.
 
Ell
@Crow be more specific. Treated differently by whom?
 
user1804599
9:53 PM
By separating concerns more.
 
@CatPlusPlus I've actually given a whirl to implementing some DI in C++ earlt this year, and thought "screw this, I can use compiletime composition much easier. Stragegy and policy are my friends"
 
@Crow What
 
@Ell okay so a user registers on my site. It then takes the form data and puts it in the db, then loads them with a query. But when someone clicks "login with google", what actions would occur? Would it be saved to the db or some store?
 
Ell
@Crow well the user will be redirected to google's log in page
 
Ell
9:55 PM
google will then redirect the user back to the login page posting a token
 
user1804599
Create your own OpenID provider and use only OpenID for the login.
 
The only place the container exists
 
Ell
the server will then send this token to google again
 
user1804599
Problem solved.
 
Ell
and google will send back a json web token if it is a valid token
the server will decrypt it
 
9:56 PM
okay, I have the response object with the data that I asked for (email, full name, etc). Then what? Save it in the db? That feels wrong
 
Well you can not save the user account and make the logging in effectively useless, yes
 
Anybody have experience with this problem? I have a 30GB memory container that acts like a circular buffer, now I want to change the size of the circular buffer slices so that each index corresponds to a memory bin of a different size. Is there some standard library that has this kind of functionality or should I write it myself...
 
> 30GB memory container
 
Sometimes it like 120gb
 
Word of advice: if you cannot implement OAuth properly, don't.
 
9:58 PM
Word of advice: don't.
 
user1804599
Word of advice: don’t implement OAuth.
 
user1804599
OAuth is the worst abomination since OAuth.
 
Ell
what is wrong with oauth? :3
 
user1804599
How about everything?
 
9:59 PM
I let someone else do that for me. Programming in python is mostly just from OAuth import do_all_my_work_for_me
 
Don't implement crypto/security shit yourself period
 
@Ell it's underestimated; and it fails to be a silver bullet
@CatPlusPlus yeah, well, this is precisely why you should do federated auth. However, it's still not easy
 

« first day (1377 days earlier)      last day (3572 days later) »