« first day (2119 days earlier)      last day (2829 days later) » 

1:07 PM
anyone mind if I approve the five regulars who have asked to be on the Lounge team?
 
nwp
 
Is there any documented boost implementation of pure red black tree ?
 
well then
 
1:25 PM
Great, now un-ship Documentation too and we'll be fine! — ken2k yesterday
 
I found a bag on the train, I tried to give it to a staff at the train station, the staff told me 'I just drive the train, knock on the window of that little house'
 
user365265
I want to access a specific protected (?) variable of class D (an sftp instance) from within the parent class and in all inherited classes. what do you think of this structure
 
user365265
```c++

class Parent : public A,
public B,
public C {}

class A : public D {}

class B : public D {}

class C : public D {}

// This class holds the protected variable
class D : public D {
protected:
SftpInstance *_instance
}
```
 
user365265
markdown seems to unsupported here, whatever
 
user365265
1:29 PM
so my goal is to access the protected variable in all classes
 
@mate64 consider composition rather than inheritance
 
user365265
you mean, I should declare a_ = A(this); in parent, instead of extending the class itself?
 
potentially
I don't know your problem domain, but you should ask yourself if A, B, and C are all D
they probably aren't
 
user365265
the thing is, my parent class is pretty big, it has a lot of functions that work with the sftp_instance, I want to split it up, and my final idea was to create separate classes
 
and so inheritance is inappropriate
sounds like you're trying to bundle too many concepts into the same domain
spawn new language... too many confused concepts
 
1:33 PM
I very much doubt that parent is a A, B and C
 
user365265
?
 
user365265
the thing is, I am calling Parent from another class, which spawns threads in a sandboxed environment, so I can't re-invent the wheel
 
user365265
for example p_ = Parent(); and then a thread can do p->ConnectAndHandshakeSftp(x);
 
yeah... I think you've confused inheritance for something you want
 
user365265
so can I go with this? my only goal is to reduce the functions of Parent, so I do not need to scroll 5000 lines
 
1:36 PM
So parent is a god object for crossing the sandbox edge?
 
user365265
@ratchetfreak yes
 
user365265
Parent holds the sftp_instance
 
RUN, RUN AWAY... FAR FAR AWAY
 
why not make it p->SFTP->ConnectAndHandshake(x);
 
user365265
and the threads can use the sftp_instance - or let's say the sftp tunnel - to perform multiple tasks at once
 
nwp
1:38 PM
I ran out of tickets... what do I do?
my life has lost meaning
 
@nwp find technical debt to fix?
 
user365265
well I can do p->ConnectAndHandshake(x) and play with the sftp_instance within the ConnectAndHandshake function, and to be honest, it works pretty good
 
user365265
the thing is, I am looking for a solution to reduce/split the amount of functions of Parent p
 
nwp
@ratchetfreak I do not want to open that can of worms, trying to make C pretty is beyond my powers
I think going home is a good plan
 
user365265
because a user can spawn multiple Parent p, and each Parent p holds another instance of sftp
 
1:41 PM
@nwp Clang-format?
 
are there other things besides sftp that parent holds?
 
user365265
no
 
user365265
it's all about p, and maybe some booleans
 
user365265
Parent p is like a worker class
 
@mate64 This is a major code smell
 
nwp
1:42 PM
@Mgetz haven't gotten that to work on windows, probably a good investment though
 
user365265
@Mgetz
 
@nwp there is a plugin for VS2015
 
user365265
well that's how we do this in java, I am not fluent with c++ yet pls no bully
 
@mate64 I'm not, it's a code smell in Java too
 
user365265
why do you think so?
 
1:44 PM
using inheritance hacks to reduce the function count in a class...
having a lot of functions in a class is not necessarily a bad thing
 
Because inheritance changes the semantic meaning of something, so using inheritance unnecessarily is confusing isa with hasa
in this case you need hasa
 
nwp
is MSVC 14 CTP basically the same as VS 2015?
 
@nwp mostly... but you should upgrade to the released version.... they're on update 3
they fixed a ton of compiler issues
 
nwp
llvm says they integrate with MSVC 14 CTP, let's hope that is good enough
 
works on my machine...
 
user365265
1:47 PM
Main() receives user actions from UI process -> creates or accesses a Parent p instance -> sperforms the user action (like connect) p->ConnectAndHandshake(x) -> p contains the logic -> sends messages to the sftp_instance, which contains the network stack code -> sftp_instance returns result -> p handles result -> sends message back to Main() -> Main informs the UI process
 
@mate64 TL;DR
 
@sehe ?
 
That reminds me.
Vanilla clang doesn't work on my machine. =/
 
nwp
@mate64 in other words your design is messed up and you are screwed
 
user365265
1:54 PM
no it's not
 
user365265
there is no alternative
 
@mate64 The existence of alternatives doesn't affect the messed-upness.
 
user365265
why?
 
user365265
I can not make any network, file /io etc. calls on the main thread
 
user365265
1:56 PM
the chrome environment for c++ is sandboxed
 
user365265
I have to create threads for each sftp task, there's no other way round
 
it looks like you cannot make blocking calls on the main thread
 
user365265
yes, call it blocking calls
 
@fredoverflow maybe you like this
 
vim fokes, have you come across this code.google.com/archive/p/conque before? /cc @sehe @Luc @Griwes(?)
Also, "fokes" is my new favourite word.
 
2:05 PM
@R.MartinhoFernandes I’ve heard of it but that’s it
 
@R.MartinhoFernandes haven't heard about it before
 
could always give a try to nvim’s :terminal if that’s what you’re after
 
@R.MartinhoFernandes old as hell. Tried it ... sometimes. Not very enthusiastic (though it was before my current vim setup, meaning I did all plugins manually, so there was some friction trying things out)
By all means, neovim
@R.MartinhoFernandes I'd like to speak to your spokesfokes about this
 
Aw man fuck guys I read something about Ezra Levant this morning and now I'm miffed. I need to change my mind, think of something else.
 
Clue me in. What's that?
> He subscribes to the Eurabia conspiracy theory and claims that Canada may be threatened by Muslim immigration.[2]
ok
 
2:16 PM
lolwut
 
He's a Canadian right-wing commentator. He sent an ad truck to roam around the Montreal city hall to protest mayor Denis Coderre's opposition to the Énergie Est pipeline that would send Albertan oil (made from tar sands, by the way) to east coast refineries.
The ad claims that being against Énergie Est is being for "charia oil".
(Regardless of the fact that Quebec doesn't import oil from Saudi Arabia)
 
@EtiennedeMartel Is that Canadian for shari'a oil? Or what?
 
@R.MartinhoFernandes Rough Frenchoid translation.
Also he used the words "ethical canadian oil", as if tar sands were that great of a deal for everyone.
 
IRTA ethnical
 
Reminds me of that time in Sherbrooke, in a grocery store, there was a sign that said "ethnic rice".
 
2:23 PM
Don't get me started on using "ethnic" to mean "foreign".
Well, not quite that. More like "not white".
 
I filed that in "accidental racism". I'm sure the people who wrote that were all well meaning.
 
user365265
he's right, you know
 
user365265
not selling canadian oil to foreign countries is a support for islamic shariah law, because dependent countries are being forced to give their money to this fascistic saudi kings
 
Oooh boy.
 
user365265
 
user365265
2:32 PM
@EtiennedeMartel CAN'T STUMP THE TRUMP
 
Anyawy.
Moving away from oil is probably the best long term plan.
 
user365265
what are the alternatives?
 
For Quebec? Hydroelectricity.
Done. Next problem.
 
user365265
t. a leaf
 
user365265
2:37 PM
hydroelectricity is bad for nature conservation
 
It's bad if you build a new dam and flood a region, but once it's there, the damage is already done.
Might as well make the most of it.
 
user365265
and we don't have enough resources on this planet to produce enough storage batteries for electric cars
 
Also we have way too many cars.
 
user365265
I don't have a car
 
I'm impressed
 
2:38 PM
@EtiennedeMartel Well, at least in theory you could tear down the dam, and eventually most of the damage would be undone.
 
user1804599
Cars are very nice machines for transporting people and goods.
 
@mate64 I don't either, doesn't mean cars don't exist.
 
Hydro is by far the best renewable, but it lacks hype.
 
Have you ever seen a real dam up close? It's super cool.
 
I once read that during rush hour in the UK three out of four cars are parked.
 
2:39 PM
@mate64 Don't need to. You can, for example, use the electricity to separate hydrogen out of water, then have the cars burn the hydrogen. Not the most efficient way to do things, but works and avoids batteries.
 
Parked as in, in parking lots, not merely stopped in traffic.
 
What we need is more adequate means of transportation. Powered by renewables. Leads to less traffic, less noise, less heat, etc.
 
 
If you frame the issue as "let's imagine a system where oil is required, then remove the oil" then of course you're gonna feel like oil is necessary.
 
user365265
my point is, the right-wing politician is right, he has a point. and that the liberals need to pull their heads out of their behinds, being liberal or leftist does not mean being the pinnacle of human evolution.
 
2:41 PM
reducing global energy consumption would help a lot
 
@mate64 Who said that? Nobody said that. Stop strawmaning.
 
And of those 25% stopped in traffic, they average < 1.5 passengers per car.
 
@EtiennedeMartel Several. Hoover dam wasn't cool though--in fact it was dam hot (as you'd expect, given its location). :-)
 
So during rush hour, the average occupancy rate is <1 passenger per car. The average occupancy is never >1.
If that's not a sign we have waaaaaaaaay too many cars, I don't know what is.
 
@JerryCoffin Two years ago I visited that one. It was breathtaking.
 
user1804599
2:43 PM
Increase energy consumption by 200%.
 
user1804599
And feel the BUTTHURT
 
When I found the bag on the train tonight, the first two carriages were empty except me
 
@ratchetfreak Bar catastrophes, not gonna happen.
 
@EtiennedeMartel I think we can do better than that. What we need (and we are the right kind of people to work on it, to at least some degree) is to decrease the demand for transportation, such as by improving tele-commuting.
 
I eventually found a staff to give the bag to
 
2:44 PM
@Telkitty So you'd be safe. Because you don't have to fear the terrorist who's after just you
 
@JerryCoffin That too. Transport goods, not people.
 
@Telkitty Windows work.
 
user365265
@EtiennedeMartel your "sharing car" theory is pretty socialistic and socialism smells fishy, I can tell you
 
Why is is socialistic? I don't think he mentioned state support on this.
 
user1804599
@sehe ish kultur
 
2:46 PM
Oh. Thanks for explaining
 
user1804599
Socialism is very nice.
 
@sehe the first thing I thought was 'is it a bomb'? then I checked, it has 2 stacks of cards, a wallet, another wallet with coins, a pair of glasses and some other stuff
 
You checked?
 
Smart kitty.
 
user1804599
Which is why I vote socialists :3
 
2:47 PM
it wasn't a bomb
 
Protip: if you're gonna check anyway, assume it's not a bomb (and then don't check).
 
Protip: checking someone else's bag is trespassing
1 message moved to bin
Don't see the need to sacrifice that much screen real estate for no clear reason
 
If you really think it's a bomb, just call the police right away.
 
She was a lone in the car. And the next. That would have been a very mindless bomber
 
There was no police, no people at ticket counter
 
2:49 PM
@rightfold Aren't you a libertarian? I swear you change opinions like I change underwears. And I change my underwear often.
 
@EtiennedeMartel I'll bet it was (and still is).
 
And don't think it's a bomb unless you have something more substantial than "it's a bag" to reason about, because, well, it isn't a fucking bomb.
 
@JerryCoffin I don't think most people realize how impressive human feats of engineering are.
 
it's a woman's bag that's open at top
 
Bags are bags
 
2:50 PM
basically you can see what there is from the top
 
glass ceiling again
 
@Telkitty And that's why you thought it was a bomb, and why you checked, right?
 
and the train was empty, I thought about pressing the emergency button but thought might not be appropriate
 
Nah, I bet you just gave it a glance from the top, and that's how you know one of the wallets has coins inside.
Maybe it's a transparent wallet.
 
I thought of calling 000, then it's even more inappropriate
 
2:51 PM
@EtiennedeMartel I think most non-engineers can't really conceive of what they truly represent (but then again, quite a few engineers really can't either).
 
@Telkitty No, it's not. You said you thought it was a bomb.
 
Fine, next I find a bag on a train, I will do absolutely nothing
 
If you think so, there's zero reason not to call the authorities.
@Telkitty You can return it without going through it.
 
I did go through the content because there was a stack of cards, so I thought there must be an ID
there was a drivers license with address on it
 
@JohanLarsson 140 minutes? Holy balls... I'll start watching tonight.
 
2:54 PM
Nice guy, like his presentation style, perhaps on the theoretic side.
 
It bugs me that ⁴ is from a different UNICODE range than ¹²³ https://twitter.com/olafurw/status/761144398654611456
One for robots and lobsters etc.
@Telkitty Nice way to guarantee you'll be stuck in the middle of nowhere with said bag
 
@Telkitty What did she ask her male friends? "Can you clean out my pipes?"? ;)
 
@R.MartinhoFernandes Once when I was flying through Paris, I got delayed a bit while the Police blew up a bag somebody had left. Didn't have a clue what was going on at first--they were simply stopping people from going a particular direction. Then a car drove up, a couple of serious looking guys got a wooden box out of the trunk and carried it inside very carefully. A few minutes later there was a little bang, and shortly after that they let us go to our flights...
 
@Telkitty Not your job prerogative
 
user365265
guys, the ride never ends
 
user365265
thank you, obama
 
@mate64 you wish that?
@mate64 gently get out
Can't even quote a meme right.
 
I found a bag, I left it with train station lost and found, now I am the most shameless one now
how come the people I know who lost things never get it back??
 
Here's the link
 
@mate64 Thank you, Sadiq Obvious.
 
user365265
2:57 PM
@R.MartinhoFernandes t. ahmad mohammed
 
so what will you do if you find a women's bag on an empty train?
 
Probably nothing.
 
and that's better?
 
@Puppy I was wondering if virtual reality could be useful for programmers. Like, you could simulate having lots of screens around you or something.
 
I'll assume that the owner is coming back to get it and if not that the train people will take it to lost&found when the train stops.
 
2:59 PM
...
 
Don't you guys have some kind of "lost and found" place you can drop off stuff?
My brother once forgot his guitar in a train, came back a few hours later and it was at that kiosk.
 
@R.MartinhoFernandes come back to the same train and expect thing to still be there
 
user365265
@Telkitty look it's easy. I will tell you. You can either be like Michael Brown, take the cash and throw the bag into the bushes, or be a sovereign citizen and bring it to the cops. Yes. And if the bag has a suspicious weight, well than call the cops, that's their job.
 
I'd be really pissed off if I went to the bathroom and came back to see someone going through my bag "because they thought it was a bomb"
@mate64 Cut it with the provocative talk.
 
@R.MartinhoFernandes These days we call that "trolling", I think.
 
3:01 PM
@R.MartinhoFernandes you will be glad if you lost your bag, someone found it and give it back
 
@EtiennedeMartel Actually, it's the first message by mate64 that I think I simply agree with
 
@R.MartinhoFernandes That moment when you open the bag and there are no duplicates inside...
@sehe I was afraid people might not get it ;)
 
@Telkitty There's train people that do that.
 
@Telkitty But he's not the sort of person who would ever lose a bag (or a wallet). Or get himself lost either. Nope, definitely not possible with him, so it's irrelevant to him.
 
there is no train people who do that
 
3:03 PM
@R.MartinhoFernandes I'm not sure I see what the reason for your message was
@Telkitty Then they do a lousy job
 
@Telkitty Riiiiight. No one ever cleans the trains or checks whether anyone is in them when they close everything down at night.
 
2 hours ago, by Telkitty
I found a bag on the train, I tried to give it to a staff at the train station, the staff told me 'I just drive the train, knock on the window of that little house'
 
Most likely: at every crew change/end point station
 
Maybe Australia is such a backwater that they don't have people to do that in trains.
 
@Telkitty So you failed at leaving it for the right staff to find
 
3:04 PM
(My guess is that they would clean the train at the end points)
 
@EtiennedeMartel They have truck trains, though
 
@sehe funny thing, the place I took the train is the end point, train terminates there then going back in the opposite direction
usually there are cleaners, but weird, maybe I took the train at 9pm and there WAS ABSOLUTELY no one on the first 2 carriage
 
Ergh.
Why is clang++ broken all the time.
Crapbaskets....
 
@sehe It was a reference to what happened in Ferguson two years ago. Just one more in a long string of incendiary remarks he's been making.
 
Oh. Another cultural reference that whooshed by me
I noticed the other tasteful biased baits
 
3:11 PM
Does cxxabi not come with clang on Windows?
 
@ThePhD Probably because libcxxabi implements the Itanium ia-64 abi and the MS abi is different?
 
Am I supposed to have MinGW with clang++ here...?
@Griwes Well yeah but MinGW still includes it, and clang is supposed to have it too, but I'm looking in the LLVM/bin, LLVM/include dirs, etc, and there's just... nothing.
Maybe clang++ is trying to build in Windows mode and it's just my code that's wrong.
Yep, no cxxabi here...
I guess I need to detect whether or not someone's building clang in VC++ mode or whatever.
 
today I wrote this printf statement
printf("%*.*s\n%*s/,%.*s,\\%s\n",j+n+1,j+j,_,i,"o"+1-i%2,j+j-2,_,"o"+i%2)
@sehe did you listen to my latest music song thingy I linked a while ago?
 
You could enter IOCCC
 
@AndreasPapadopoulos done with LS3 part 1—it’s great! admittedly short, but I’m okay with that
 
3:20 PM
why the "o" + 1 - (i&1)
 
It's i % 2 == 0? "" : "o".
 
@R.MartinhoFernandes correct
5
A: Turtles All the Way Down

orlpC, 131 bytes i,j;f(n){char _[3*n];memset(_,95,3*n);for(i=n;i--;printf("%*.*s\n%*s/,%.*s,\\%s\n",j+n+1,j+j,_,i,"o"+1-i%2,j+j-2,_,"o"+i%2))j=n-i;} Try it online. Defines a function that prints the turtles. Heavily abuses printf's width and precision specifiers to get the spacing and repeating ...

the full program/context
 
oh it's code golf, that explains a lot
 
well obviously, no one in their right mind would ever write that printf normally :)
 
3:22 PM
It's only one character shorter than i%2?"":"o".
Actually, it is legal for the compiler to make "" == "o" + 1
 
@R.MartinhoFernandes but that's still a character
every character counts :)
 
@ThePhD Technically libc++abi is a separate project.
Same way libc++ is technically separate from Clang.
 
So I'm learning.
As it stands, I've been meaning to ditch cxxabi anyways by instead parsing __PRETTY_FUNCTION__ and __FUNCDSIG__.
 
would ~i%2 work (or ~i&1) for the 1-i%2
 
So I guess this error is all the justification I need to go right ahead.
 
user784668
3:26 PM
@ThePhD wat
 
I wonder if I can do a purely compile-time parsing of the two macros.
 
@ratchetfreak Actually, yes.
 
@Fanael Compile-Time way to get function/type names without needing RTTI.
 
@ratchetfreak ~i&1 works
 
It's commonly employed in most reflection frameworks, actually.
 
3:26 PM
the other one doesn't
 
user784668
@ThePhD You can. Tried it, worked.
 
@orlp Why not?
 
@Fanael Good to know. Guess I'd better get started in making a VC++ compatible constexpr parsing thingy for it...
 
~ binds tighter than both % and &.
 
and -1 % 2 is -1 IIRC
 
3:28 PM
C's modulo operation is retarded
it follows the sign of the lhs, not rhs
 
~ Er.
Is ~ defined for signed integers?
 
@R.MartinhoFernandes gcc accepts it, so good enough for me
on codegolf the interpreter/compiler defines the language
including any bugs/glitches/other behavior
 
it works for them
 
user784668
@R.MartinhoFernandes Yes.
 
What's the result?
The standard wording looks wrong to me.
 
user784668
3:30 PM
The result of the ~ operator is the bitwise complement of its (promoted) operand (that is,
each bit in the result is set if and only if the corresponding bit in the converted operand is
not set). The integer promotions are performed on the operand, and the result has the
promoted type. If the promoted type is an unsigned type, the expression ~E is equivalent
to the maximum value representable in that type minus E.
 
oh damnit
 
as you would expect for 2's complement
 
it doesn't work in the end anyway
 
@Fanael Right, so it's not really defined.
 
main.c:1:104: error: invalid operands to binary & (have 'char *' and 'int')
 i,j;f(n){char _[3*n];memset(_,95,3*n);for(i=n;i--;printf("%*.*s\n%*s/,%.*s,\\%s\n",j+n+1,j+j,_,i,"o"+~i&1,j+j-2,_,"o"+i%2))j=n-i;}
                                                                                                  ~~~~~~^
"o"+~i&1 gets parsed as ("o"+~i)&1
 
3:31 PM
@Fanael (the latest draft says "the result is the ones' complement of its operand")
 
because + has higher priority than &
 
@orlp What the hell are you trying to do? lol
 
@Mysticial scroll up a bit, it's a code golf :)
 
ooooooh
 
@ratchetfreak No, two's complement is not the same as "each bit in the result is set if and only if the corresponding bit in the converted operand is not set"
 
nwp
3:33 PM
VS2015 said update 3 is available, I clicked on it, it failed to install something and now it is not available anymore
 
@nwp I installed it through the ISO.
 
@R.MartinhoFernandes TBH I've started ignoring the standard in regards of the behavior of int
 
Two's complement is the complement to 2^N where N is the number of bits in the representation.
 
I compile with -fwrapv and use twos complement
it's 2016 damnit
 
vOv.
I use unsigned integers.
 
3:34 PM
@Morwenn Yeah I wasn't inspired
 
The standard is perfectly fine for me. In 2016.
 
user784668
@ThePhD I think there's already a boost thingy for this.
 
@Fanael Can't take the boost dependency (at least not all the time).
That is, I can optionally alias to boost stuff if I detect it, but otherwise I have to keep a clean build.
(This is for a header-only, mostly standalone library)
 
@R.MartinhoFernandes every system I've worked on in my life is two's complement
 
user784668
@ThePhD So if I understand correctly, something like this? gist.github.com/Fanael/ebc074f7fad23bde923b#file-type-id-hh
 
3:35 PM
@orlp Except C++.
 
@LucDanton I'll take quality over quantity anytime
 
My point is that the functionality you use -fwrapv for already exists in the language.
 
@Fanael Yeah, actually! I'd need to provide both qualified_name and name, but that just about is the right idea.
 
user784668
@ThePhD That's just a bit more string parsing I think
 
Yeah.
I already had my own version but I certainly don't handle things like anonymous namespaces and crap like you do.
 
Meh, docs.
@JohannesSchaub-litb The first paragraph doesn't say what ADL is.
 
@R.MartinhoFernandes i wanted to keep that to a "What is ADL" example
i started with "What functions are found" because i didn't want to write the introduction example
there also needs to be a "When is ADL used" that says that it's inhibited when using (f) or when there's a local non-using decl or if a member decl is found and that when using templates, "f<args>()" needs to have a template 'f' in scope etc..
 
Yeah, I don't get docs.
 
lulz i agree it's confusing
i'm just writing for fun and fame
 
All of that either already exists in Q&A, or there is really no reason for it not to be there.
 
4:11 PM
i guess they wanted to get rid of these "faq" questions
because they are not really organized
 
But my impression is that TPTB just want to keep Q&A for help vampiring.
 
but the doc things are only a set of "examples" aswell, without structure, it seems (??)
wrapping my head around gnuplot now... man that's a nasty thing
 
@JohannesSchaub-litb Why Gnuplot?
There seem to be better things to create plots, like R.
 
anything better? i wanna plot lattices/grids (integer linear combinations of vectors)
i thought gnuplot is good, but its scripting language feels awful
 
All C++ debuggers are garbage Q_Q
 
4:17 PM
@JohannesSchaub-litb I like R with ggplot2.
 
user784668
@R.MartinhoFernandes What the actual fuck do you need a debugger for? Get good!
 
But I plot data series, usually.
 
Also, lol, this program crashed so hard it took the debugger with it.
 
user784668
@R.MartinhoFernandes The real WTF is the message box shadow.
 
user784668
> An unevaluated operand is not evaluated.
 
user784668
4:28 PM
Thanks, C++, I never would've thought.
 
After all, an operand that is never evaluated is not necessarily an unevaluated operand!
 
@R.MartinhoFernandes Is that a mac? Perhaps that's the real problem. :P
 
4:46 PM
@Mysticial Oh, I'm sure lldb works wonders on Windows.
 
@AndreasPapadopoulos imo they really played to their strengths this time, what makes the episode feel short is that there are only so many story instances, two of which are recaps (although they’re still interesting in their own right). but the non-instanced story meshes really well with the new area and I love that
 
5:13 PM
@R.MartinhoFernandes it's broken on Linux too
 
Have you tried to build the latest version from source?
 
0
Q: Cycling UV-coordinates with instanced drawing c++/opengl/glsl

CharlieI'm trying to animate 2d sprites using glDrawArraysInstanced(), and I'm having trouble separating for each "cycle" ran through the pipeline. according to one of the tutorials I'm reading, it says: "Send the age of each particle along with the position, and in the shaders, compute the UVs" But...

 
Yes....?
Why is that tagged "C++"? It's a GLSL question.
Which leads to... why do you dump that here?
 
not your usual floof: i.imgur.com/ZGucMyB.gifv
 
hm, I was hoping someone maybe knew the answer?
an answer which would be in c++, but sure, I guess its glsl
 
5:30 PM
@orlp Haha, the bear looks a bit retarded but it's so cute :D
 
@Morwenn not so cute later (trigger warning: nature): youtu.be/JzwbOZKfrUQ
 
Ell
@orlp jeez just kill it, bear
d
uh oh
 
@orlp lol
 
the deer survived for so long I was wondering if the bear was trying to hump it
 
5:49 PM
I couldn't watch through all it.
 
the last 30 seconds are pretty much the same as the first 7 seconds
 
I stopped after ~2 seconds.
 
We are such bunch of pussies. :D
2
 
could man tame bears, make them eat wheat and berries
maybe plant more berry trees or something, i bet the bear wouldnt mind
 
Someone is trying to use SSE intrinsics without having basic debugging skills.
-1
Q: Execution stopped while storing using intel intrinsic "__m128 _mm_store_ps()"

A.nechii have a c function that compute some calculation using Intel intrinsics like set_ps, add_ps, sub_ps and mul_ps. I followed the execution step by step and it seems that it stops when storing the result vectors in the array (which is the memory of course), this is the fragment of the function that...

^^ Times have changed.
That's almost as crazy as having a presidential candidate who has no political experience.
 
5:57 PM
@Mysticial :D
 

« first day (2119 days earlier)      last day (2829 days later) »