« first day (1371 days earlier)      last day (3595 days later) » 

Xeo
7:00 AM
very
 
probably the only reason people still use C++ :v
 
user3010322
てむぷらて ^。^
 
@Xeo I sort of included it for readability
 
Xeo
@Rapptz The one thing I'm missing the most in AS3 is genericity
@ThePhD テンプレート
 
user3010322
@Xeo Even generics aren't as great.
 
7:01 AM
I wouldn't work on a C++ compiler
 
user3010322
@Xeo Fuck your Katakana.
 
No one would.
 
Xeo
@ThePhD genericity, not generics
 
user3010322
SOFT WOMAN'S HAND IS BEST.
 
C++ compilers aren't written by mere mortals. They're written by Gods.
2
 
user3010322
7:01 AM
@AlexM. I would!
 
Xeo
The only parametrically polymorphic class in AS3 is Vector.<T> - and it's hacked in, i.e. there's no way to write such a class yourself.
Which is increadibly fucking annoying
especially when it comes to dictionaries n shit
 
yeah you've ranted about that before
pretty funny
 
@Rapptz lol
 
Xeo
@Rapptz It's not if you have to work with it :(
 
I was thinking about magic in the standard library today.
What are things implemented with magic in the stdlib?
std::is_pod?
 
7:04 AM
I think I've got a good way to about this
given the pater "this is a %{0} pattern blah"
I can break it up from the spaces as delims into a vector

check each index in the vector to see if it starts with %{ and ends in }, if so it processes what's in it.
Does that sound feasible?
Or rather, reasonable.
 
user3010322
 
given these patterns will never be long so it's not a big deal
 
Xeo
@Rapptz is_trivially_???
 
user3010322
My shake at doing "templates" in C#.
 
@Xeo Last I checked, GCC doesn't implement these lol
Unless it got added in GCC 4.9.0
 
7:05 AM
ori can just go bag to programming weenie dogs to sit like people
back
 
Xeo
I think GCC has them as has_trivial_??? still (their old names)
 
@Rapptz And standard library implementations are written by demigods. Don't know if @ThePhD would fully agree though. :P
 
user3010322
I would totes write a standard library.
 
But that's it?
 
user3010322
I wrote a compliant std::optional that was Approved™ by STL himself!
 
7:05 AM
Just type_traits?
 
Xeo
The rest can be implemented without
 
@ThePhD I wrote a compliant std::optional too :v
nothing special
 
user3010322
Plenty special.
 
Xeo
I think @R.MartinhoFernandes ranted about compilers not having magic headers before.
 
Well I was thinking about magic cause
 
user3010322
7:06 AM
template <auto X>
 
std::dynarray was the first non-type traits "magic" in the stdlib
 
user3010322
is all the magic I need.
 
and it got shit on
 
Xeo
There are two things that are not inherently magical, but are required to make some language stuff work
 
so I thought maybe the committee doesn't like magic much to accept it
 
user3010322
7:07 AM
Well, to be honest, dynarray was an incredibly stupid idea.
 
Eh, don't you two get your hopes up for your std::optional implementations to be any compliant.
 
Xeo
type_info and initializer_list
 
yet
 
oh yeah
 
user3010322
I mean, seriously, why would you want an array that could be maybe sort of placed in a certain part of the heap... stack.Ish. Kinda.
 
Xeo
7:08 AM
Fuck std::dynarray to hell and back
 
user3010322
Doesn't make sense to have compiler magic just for that.
 
@ThePhD This isn't in the stdlib
 
@ThePhD allocation pools
 
It's a language feature
 
user3010322
@Rapptz not-yet-a-language-feature-but-should-really-be-one.
 
7:09 AM
yeah yeah
 
user3010322
func<&my_class::my_member> // 2 gud
 
never had a single use case for it
 
user3010322
I have lots of use cases for it.
 
you have weird code though
 
user3010322
My code isn't that weird. :c
 
7:11 AM
@Rapptz Necessary when working with DBs.
 
DBs?
Databases?
 
@Rapptz If you meant optional, yeah.
 
Xeo
err
he didn't
 
what
 
Xeo
and optional has looooots of use-cases
 
7:12 AM
Oh. Sorry.
 
I'm talking about func<&stuff::test> and template<auto X>
 
Xeo
Welp, time for work
 
user3010322
ITT Mark Garcia has checked out of the conversation.
 
user1804599
pfff dat temperature.
 
user3010322
I also can't wait for template <auto X> so I can make deleters that are just functions, e.g. unique_ptr<int, &my_func_deleter> <--- so good.
 
user1804599
7:12 AM
/me takes off shirt
 
char sep = ' ';
std::string s="This is an example of a string";

for(size_t p=0, q=0; p!=s.npos; p=q)
std::cout << s.substr(p+(p!=0), (q=s.find(sep, p+1))-p-(p!=0)) << std::endl;
I found this thing, this seems ike it will ahndle my needs as long as i tweak it to store in a vector
 
user1804599
@sehe lal
 
@Rapptz I'm guessing I can't avoid std::function when I want to return a function
 
Well. Depends.
 
user1804599
You can create your own functor class.
 
user1804599
7:15 AM
Or use auto.
 
TIL the old STL gave us better templates
thanks Stepanov I guess
 
@Rapptz in this case the function that I was passing to that method is returned by another function
 
user1804599
// sets the cookie cookie1
document.cookie =
 'cookie1=test; expires=Fri, 3 Aug 2001 20:47:11 UTC; path=/'

// sets the cookie cookie2 (cookie1 is *not* overwritten)
document.cookie =
 'cookie2=test; expires=Fri, 3 Aug 2001 20:47:11 UTC; path=/'
 
user1804599
Ugh what a terrible, terrible API.
 
@AlexM. Oh. Could write a functor (if it's reusable)
and return a functor object
functors are the closest thing C++ has to first class citizen functions
 
7:19 AM
yeah that's probably too much work for something so simple
I'll just leave std::function for now
 
user1804599
Just return std::function who cares.
 
Yeah it doesn't matter
Just don't pass it as a parameter.
Otherwise it's good.
 
yup, got that fixed :D
 
user1804599
@Rapptz but... but... NVI :v
 
user3010322
NVI?
 
user3010322
7:21 AM
Norwegian Venom Injector?
 
user1804599
Yes, NVI.
 
Non-Virtual Interface I think
 
user1804599
Non-virtual interface noob.
 
:p
 
user3010322
Oh.
 
7:22 AM
@ThePhD I'll call vipers viperidae venom injectors from now on
thanks
 
user1804599
 
user3010322
Hm.
 
user3010322
I think I need to separate the View of my classes and the actual data.
 
user3010322
At the moment every Texture1/2/3D, etc. all are forced to have a View member that allows you to access the texture by a shader.
 
I am under the impression that CSS is so archaic just because everyone thinks we don't yet have the technology to implement better stuff.
 
7:26 AM
afaik there are some neat CSS extensions that add nice features to it
 
user1804599
> neat
 
user1804599
> CSS
 
I took a glance at OOCSS once but didn't understand anything though
sure, it was just a glance
 
user1804599
Buzzword-oriented CSS.
 
I like BOCSS.
 
user1804599
7:28 AM
Lounge<CSS>
 
tortoisesvn makes my paranoia go crazy
 
¬_¬
 
I'm always under the impression that I forgot to add a new file
anything git used to add new files unless ignored automatically
 
Less looks like a nice way of working with CSS
 
Or how a simple question attracts a lot of crap:
0
Q: What is linking in c++? How do I link source files?

GoldI'm new to C++ and have been using visual studio 2013. I can't seem to find a good answer to explain what linking is, but I'm assuming it implements the elements of one file into another. Also, how would I link files in visual studio 2013? Thanks a ton, Gold

 
Xeo
7:34 AM
@rubenvb oh gawd, the "prince" answer...
WTF man
 
> put on hold as too broad by Hinata
hinata is pretty fucking assertive today
 
user3010322
Well, this sucks.
 
@Xeo I like how he goes first from theory-toned to specifying how to use VS.
 
Xeo
I like how he goes to "enable CLR"
 
user3010322
WOw.
 
Xeo
7:37 AM
The OP apparently asked about C++, considering the [c++] tag. Your steps are for CLR programs, and there is no reason to enable CLR for a C++ project just for the heck of it. — Xeo 55 secs ago
 
user3010322
Those answers go pretty fuckin' downhill fast.
 
@Xeo Yeah, that's just awful.
 
Unless CLR stands for Coliru.
7
 
user3010322
Also, C# y u no ArraySegment<T, 2>
 
user3010322
:c
 
7:37 AM
lol. He probably thinks of it as C++ LinkeR.
 
Xeo
@StackedCrooked haha
 
user3010322
@StackedCrooked y i no can donate to u
 
@ThePhD What's the problem?
 
@ThePhD The donate button is in the upper left corner. (hint, hint)
 
Xeo
7:38 AM
... Paypal is stupid.
For doesn't accept x.00 instead of x,00 for me
 
I'll unfriend Paypal.
 
Maybe some people think only euro is accepted due to the euro sign.
 
user3010322
Paypal won't let me select a state because it keeps assuming I'm from belgium.
 
user3010322
And thus don't need to specify a state, only a city.
 
user3010322
But Paypal then errors, telling me to select a state for US.
 
user3010322
7:39 AM
Which doesn't work.
 
lol
 
@ThePhD Hm.. Up until now I've only received donations from europeans I think.
 
user3010322
PAYPAL IS CONTINENTALIST.
 
huh... if I look at the raw version of a gist, then go back, the CSS is lost
 
guys
Linux and static linking
 
user3010322
7:41 AM
litbartek
 
Xeo
libartek.so
 
@BartekBanachewicz what about it?
 
It seems it's impossible
 
Xeo
wat
 
not kidding
20
Q: Linux static linking is dead?

ShchekleinIn fact, -static gcc flag on Linux doesn't work now. Let me cite from the GNU libc FAQ: 2.22. Even statically linked programs need some shared libraries which is not acceptable for me. What can I do? {AJ} NSS (for details just type `info libc "Name Service Switch"') won't work pr...

 
user3010322
 
@ThePhD It assumes you are from Belgium?
 
user3010322
@StackedCrooked Yeh, even when I change the country.
 
user3010322
paypal.com/be/....
 
user3010322
And when I manually change the URL, it still doesn't show a state dropdown.
 
so it's essentially impossible to make standalone binaries on linux now?
that sounds fucked up
 
Xeo
7:44 AM
@ThePhD err, I don't think that has anything to do with the country? Shows 'be' for me too.
 
how do they do it for freestanding then
 
Xeo
Or maybe that's the link because @Stacked is from Belgium
 
user3010322
Maybe. I still can't get it to show me a State input, though.
 
@StackedCrooked You wouldn't know, I don't think. Paypal automatically converts currency.
 
user3010322
This thing is going to drive me up the wall.
 
user3010322
7:44 AM
Let me try it in Chrome.
 
@BartekBanachewicz You can link everything statically except glibc.
Or you can just not use glibc.
And use some other libc.
 
It goes to https://www.paypal.com/cgi-bin/webscr
 
Xeo
I had no trouble donating just now
 
Linking with an old glibc gets you pretty much the "standalone" binary effect.
 
@Xeo Please try again. I want to verify :)
 
user3010322
7:46 AM
Paypal seriously thinks I'm from fucking belgium.
 
@Xeo jk. thanks :)
@ThePhD what if you try with another browser?
 
std::vector<std::string> lines;
std::vector<std::string> words;
std::vector<std::vector<std::string> > v2(lines,words);
Why won't this work?
I wanted a 2d vector
 
user3010322
Pay, Transfer Money and Accept Card Payments online - - Paypal Belgium
 
for my lines and words in each ines
line
 
user3010322
7:47 AM
FFFFFFFFF
 
user3010322
God damnit.
 
@user2372903 Also:
Jul 10 at 0:19, by Cat Plus Plus
Hi. Rules. Read 'em. Obey 'em.
 
Xeo
@StackedCrooked :D
 
I need daily testers.
 
...
 
7:48 AM
God, I can't link the history.
 
user3010322
@Xeo Oh, oh yeah?
 
user3010322
How much did you donate?
 
Xeo
@ThePhD: Btw, as soon as I log in, it changes to /de/
 
Xeo
@user2372903 how did you think it would work?
 
7:49 AM
@BartekBanachewicz Also, I'm quite sure using the Linux Base System specification craptools you can in theory produce a portable Linux application, if the LSB stuff is installed on the target system (which it isn't by default for most distributions)
 
user3010322
I'm gonna fucking lose my mind. <_>
 
user3010322
y u no let me be /us/, paypal
 
Thought I'd have a normal 2d array under v2
 
user3010322
y u un-patriotic
 
like v2[lines][words]
 
Xeo
7:50 AM
@user2372903 I asked how, not what the result is supposed to be
@user2372903 lines and words are vectors. That makes no sense.
think again
 
std::vector<int> v(5);
std::vector<std::vector<int> > v2(8,v);
well that work
works
 
Xeo
Yes
Can you see the difference to your example above?
 
@MarkGarcia damn you
 
The second one is passing integers
 
Xeo
@StackedCrooked Done!
@user2372903 No.
 
7:51 AM
I mean vectors of ints
 
user3010322
whdwadhawjkdw
 
Xeo
The second one has 8, a number, as the first argument to v2
 
and has a fixed size first index
 
Xeo
Your first snippet passes a vector in that place
 
oh .
 
7:52 AM
@Xeo Fuck you.
 
Xeo
:D
 
@user2372903 don't do that
 
Xeo
@user2372903 The first argument is the size. The second the default value of every element
 
Ohhh, Ok so that's useless
 
you're useless
 
7:53 AM
Suck a dick
 
he doesn't take critique very well does he
 
Xeo
What you presumably want is an NxM 2D vector. You could do that with a vector-of-vectors.
 
LOL
 
Xeo
But I personally like a single 1D vector of NxM size better
 
Xeo
7:53 AM
and calculate the 1D index from 2D coords
y * width + x
 
Thanks XEO makes sense.
 
why would you want to allocate n times instead of 1.
 
Xeo
shush. Maybe he just doesn't know better
 
Maybe
 
I forgot to take my pill yesterday
you have to excuse me until the one I've taken this morning kicks in
 
Xeo
7:54 AM
Are you taking Puppy's pills?
@StackedCrooked ♥
I find it a bit annoying that you have to supply an address when donating.
 
user3010322
Paypal is the most fucking braindead system ever.
 
@Xeo Nah, the allergy pills.
 
Xeo
Got a newb-allergy?
 
lol
the guy went away and I stopped sneezing so that might be the case
 
His number isn't even prime
 
Xeo
7:57 AM
That would actually fit, I think. The symptoms are unprovoked lashing out at random newbs, as well as general irritatedness
:)
 
Why did we help him/her again?
 
Xeo
Because I felt like it
Sue me
 
I will. Traitor.
Why invoke the death penalty when you can sue a man into poverty?
 
<drop mic> boom
 

« first day (1371 days earlier)      last day (3595 days later) »