« first day (990 days earlier)      last day (3967 days later) » 

1:00 PM
@ScottW I immediately downvoted
 
So far my comment is winning with eight votes and six bananas.
 
@not-sehe Why?
 
JBL
@ScottW What's more interesting is who are the two who upvoted the question.
 
@R.MartinhoFernandes Not bad. I still can't see the bananas in Chrome, though.
 
-4
A: In C++ What is meant by char* t and char *t

luk32There is no difference at all. You just need to be carfeul when defining more than one variable. char* var1, var2; - both are pointers char *var1, var2; - var1 is a pointer but var 2 is not.

ahahhaa
 
JBL
1:00 PM
@R.MartinhoFernandes Meh, I see boxes. :(
 
I am amazed how dumb people are really.
 
@BartekBanachewicz What? It's true.
 
@LightnessRacesinOrbit Because I think it doesn't further SO when people litter the place with platitudes as answers, even though the question is clearly labeled as both poor, subjective and duplicate by the community.
@BartekBanachewicz Rethink that?
 
@BartekBanachewicz Oh wait.
 
user142019
I'm going to host a LAN party with a friend. The only food served will be brie topped with chocolate. Who's in?
 
1:02 PM
I implicitly assumed he was explaining the right thing.
WTF
@ScottW I don't want one.
 
@not-sehe I am amazed how people assume something and post that without any verification.
 
@rightfold oh god. Do provide puke buckets
 
@R.MartinhoFernandes :D
 
user142019
@not-sehe Toilet.
 
@not-sehe I wouldn't answer it. I don't think the answers warrant downvotes, though.
 
1:02 PM
@rightfold cute. Where?
 
@rightfold Resource Contention.
 
user142019
We even have a clean-it-yourself service.
 
@not-sehe Wait, yes I do. Never mind.
 
user142019
@BartekBanachewicz Not sure yet.
 
hah
helps if I read it
 
1:03 PM
:)
 
@LightnessRacesinOrbit ahaha another victim
I love you both.
 
Is sched_yield() evil?
 
btw, we closed that as a dupe of C question
 
user142019
@BartekBanachewicz Somewhere in The Netherlands.
 
2 mins ago, by R. Martinho Fernandes
I implicitly assumed he was explaining the right thing.
IOW, the insanity was too great to contemplate.
 
I will end up with negative rep
 
I saw the words "pointer" and "not" and figured "okay he's explaining this edge case bullshit again. probably doing it correctly."
 
@Mikhail likely relatively useless
Proper evil isn't useless
 
Like strtok.
 
More like pesticide
 
user142019
1:07 PM
Haha strtok.
 
like str[a-z]+
 
strtok is my go-to distilled-evil-from-the-C-library.
 
@R.MartinhoFernandes +1 :)
 
@R.MartinhoFernandes inb4 glShaderSource
 
@BartekBanachewicz Why is that evil?
 
1:08 PM
@R.MartinhoFernandes maybe let's back up a bit and state why strtok is evil then
 
It operates a global state machine.
 
does anybody here has any tool to recommend for detecting race conditions... problem is that Im on Win and i have this pile of cra code in VS and The Man wants me to find race conditions in solution. :)
 
@ScottW Thread local.
 
@R.MartinhoFernandes oh fuck me
> This function is designed to be called multiples times to obtain successive tokens from the same string.
 
And strtok operates on strings. You rarely need more than one, but OpenGL contexts you need them by the dozen.
@BartekBanachewicz What part of "distilled evil" did you not understand :P
 
1:10 PM
@R.MartinhoFernandes okay, okay
 
@NoSenseEtAl MSR had some tool called CHESS some time ago. Not sure if it ever graduated.
And IME strtok is hard to grok for neophytes.
 
user142019
strtok is hard to grok for experts.
 
Xeo
strtok might aswell be taken straight from the Asylum.
 
strgrok
Speaking of the Asylum, it's been rather quiet since I started that Twitter thing.
 
Xeo
lol
 
1:17 PM
hum hum
 
Xeo
> Vladimir Putin Just Made It Illegal To Tell Kids Gay People Exist
Wait, what?!
 
hahaha is it April already?
 
that dumb phone overheated again
well strange, mine doesn't have those problems
template<class T> using Invoke = typename T::type;
hm that's nice
 
@ScottW hehe good idea
 
Xeo
Hm, I could probably make those log N indices even more efficient, now that I think about it.
 
1:24 PM
@BartekBanachewicz I call that Type.
But everyone else calls it Invoke.
 
@stdasylum, Outside the Asylum
Pearls of wisdom from the C++ standard proposals forum
20 tweets, 7 followers, following 0 users
@Rapptz Don't look at me.
 
@R.MartinhoFernandes Insta-follow!
 
@R.MartinhoFernandes Well, it certainly feels like I'm the sole person calling it Type and not Invoke. :(
 
well invoke makes sense if that type is computed in some way, no?
 
Apr 10 '12 at 19:56, by R. Martinho Fernandes
template <typename T>
using Invoke = typename T::type;
 
Xeo
1:26 PM
I called it Apply at first, but switched to Invoke later on.
 
That's what I called it when I noticed it.
 
@R.MartinhoFernandes Yeah I know.
I remember reading it on your blog.
 
FWIW
Apr 10 '12 at 20:00, by R. Martinho Fernandes
@LucDanton I though of Type first too (just like ValueType!), but I think Invoke is better.
 
I am a unique butterfly.
 
Delusions
 
1:28 PM
Type only looks dumb now because I'm the only one using it. :(
 
let's all hug @Rapptz
 
<-- will never hug a garbage collector
 
<-- will never hug garbage
 
Anyone else using vim-fugitive?
 
1:38 PM
but garbage collectors hug garbage :'(
if you hug a garbage collect who hugged garbage it is as good as you hugged garbage :'(
 
@R.MartinhoFernandes my vim never ran away from me
 
angry pink unicorn ... sweet
 
GitHub is still fucked up.
 
Xeo
Ahaha, today's what-if.xkcd
 
1:41 PM
@R.MartinhoFernandes How so?
 
is GitHub trying to attract trolls? I see unicorn
 
Try typing /ponystream in any google+ chat window.
 
it's because of the load balancer they use
 
user142019
@Nican /pony also works.
 
@Nican Getting unicorns.
 
user142019
1:43 PM
Also: /bikeshed and /pitchforks.
 
@BartekBanachewicz Anyway, if you use vim and don't know tpope and his magnificent plugins you are missing out.
0
Q: Generic macro code to pass regular and r-value ref arguments

Borislav StanimirovA very simplified version of my code is this: #define proxy(name, type, arg) \ void name(type arg) \ { \ foo(arg); \ } \ void foo(int); proxy(fi, int, i); Which works perfectly fine. However with C++11: void foo(std::string&&); proxy(fs, std::string&&, rvrs); ... expec...

What.
 
Xeo
...
 
user142019
lolmacros
 
@R.MartinhoFernandes he's kinda famous
@Nican doesn't seem to work for me
 
@BartekBanachewicz It doesn't result in "/ponystream" appearing on screen? :P
 
1:49 PM
what the hell, a review from Jun 4th just showed up for me. with comments from you guys
 
@R.MartinhoFernandes Reminds me of those In<T>, Out<T> templates in that presentation by Sumanth
 
@Rapptz Don't worry. If I had using, I would be there with you. :D
 
@BartekBanachewicz Hm, still works for me: i.imgur.com/K8t0WRs.png
 
@Nican What the hell …!
 
So I have two hours before I actually have to be at work.
 
user142019
2:00 PM
@KonradRudolph You do not like ponies? :(
 
Aw. This is almost too deep a bow:
Argh. Now that you point out compiler-writing methodology, I must admit that the AST you mentioned looks like a good idea... that I should have had a few months ago. And it seems to solve other boring peripheral problems I've had in the past. So, I won't bother you any further nor take much of your time. Thanks to you and cv_and_he. Even if I doubt it, I hope to be able to help you in the future. — Sylv 37 mins ago
 
@Aboutblank URLplz
 
No problem! I like a challenge. We all learn on SO, no worries. I do so all the time. Thanks for sharing your experience with me. — not-sehe 4 secs ago
 
-2
Q: How to convert string of any language into its unicode decimal or hex value?

Vijay13I have a file written in Spanish with some erroneous char into it and I want to check whether each char falls in range of unicode decimal or hex range of Spanish chars, how can I go about it using python ?

 
@LightnessRacesinOrbit STL is an amazing person. I want to be on his team one day. :D:D:D
Even if I just end up on the compiler team, that'd be okay too.
 
2:04 PM
@Aboutblank Hmm, it appears I've been there before.
@Aboutblank Close votes maybe?
 
Wouldn't you all love it if I'm working on your compiler? <3
 
@R.MartinhoFernandes it showed up on First posts. I wasn't aware that close votes would kick a first post review
 
WTF
That's not a dupe.
 
@ThePhD we would love to hate you indeed >_<
 
uh ok it fucking rebooted
 
2:06 PM
Did you guys vote for dupe? @rightfold @LightnessRacesinOrbit
I'm voting reopen.
 
@R.MartinhoFernandes to which question, of the 5.3 million on SO, do you refer?
 
The one linked above.
 
user142019
@R.MartinhoFernandes No.
 
user142019
I misclicked on "too broad" and didn't notice early enough.
 
@R.MartinhoFernandes not dupe, no
the close banner still doesn't adequately reflect the views of closevoters
pisses me off
 
2:08 PM
Oh, ok. That dupe is totally wrong.
The question is still crap, though.
 
@Telkitty猫咪咪 =[ But I'd do a good job...
 
user142019
What was that horrible prison on that island called?
 
@ThePhD I am sure one day you would be able to :) ... but as for now: no :p you don't have enough experience >_<
 
@rightfold shutter island?
 
@Telkitty猫咪咪 for once the kitty speaks the lounge voice
 
2:12 PM
@R.MartinhoFernandes What's the lowest level that you do validation on encoding and other algorithms in ogonek?
 
user142019
@Aboutblank No.
 
@not-sehe Heeey. :c
 
user142019
Maybe it was Alcatraz.
 
@rightfold Alcatraz?
 
@Telkitty猫咪咪 I can still do a good job now!
 
user142019
2:13 PM
No wait, it started with "Gua" or something.
 
user142019
Guantanamo Bay.
 
JBL
Is Guantanamo on an island ?
Oh well.
 
Zing
 
user142019
I don't know, I thought it was.
 
Melba
 
user142019
2:13 PM
 
user142019
I call this an island. :)
 
You would.
Maybe you just mean Australia
 
5 tests more
 
user142019
Maybe I just mean Texel.
 
Or the UK.
 
2:14 PM
OH YES
 
@ThePhD What do you mean by "level" here?
 
I am done with this overheating crap.
 
@rightfold That's not prison! There are sheep. Lots of sex to be had. On the beach.
 
user142019
I went to Texel and all there was was lots of wind, grass and water.
 
If that answers your question, you could say "I have no use for invalid data" is a design motivation of ogonek.
 
2:15 PM
@rightfold How did you not fall? evil edits
 
user142019
@not-sehe :3
 
@ThePhD I mean, what would be possible answers to "what's the lowest level?"? I really don't understand the question :S
 
@R.MartinhoFernandes Well, yeah. I was just wondering where you'd stick something like a validation_policy -- for something like an encoder, would it be taken in encode_one and invoke that validation policy when it encodes? Or would it try something else at a higher level than encode_one ?
 
@not-sehe a lot of sex on the beach with sheep ... you pervert!
 
@ThePhD Since there's no ubiquitous terminology for this (i.e. not sure if "validation policy" means the same to both of us), to be clear, the encoding itself defines what is valid or invalid, and that happens in encode_one. The user can provide a policy for dealing with the invalid data, and that is also used in encode_one: the policy gets passed an exception with all info about the invalid data so it can either pick something else to encode, or just throw it directly.
Ideas stolen from Python.
 
2:20 PM
@Telkitty猫咪咪 you slowpoke!
 
user142019
Powsloke.
 
Do you guys think it's rude to randomly start dropping code review comments on someone's code on GitHub?
 
user142019
I don't think.
 
@R.MartinhoFernandes If they get offended, feign ignorance and shed a tear and say you were just trying to help.
 
I did that before and I got positive feedback, but not sure if fluke or norm.
 
Xeo
2:22 PM
@R.MartinhoFernandes As long as you don't drop pull-requests with space->tab changes on random people...
 
@rightfold convincing argument. You win
@R.MartinhoFernandes Me too.
 
@Xeo Spaces AND tabs. <3
 
@Xeo Or LF -> CRLF cough
 
Xeo
That happened too?
 
2:25 PM
@R.MartinhoFernandes whose code is that?
 
user142019
Ewwwwwwwwwwww CRLF
 
user142019
> convincing
 
user142019
Nou bedankt.
 
"Gij zegt het"
@Nican so... do you like rock climbing?
 
"Give that here"?
 
2:26 PM
@not-sehe Ok?
 
@Xeo Not en masse like those crazies did. Just someone from the Lounge that tried to get my code to compile on VS; unsurprisingly, VS went bananas on it and changed every single line ending.
 
user142019
@LightnessRacesinOrbit "You say so"
 
@R.MartinhoFernandes use one account or use several?
 
Xeo
@R.MartinhoFernandes lol
 
@rightfold whatever
 
user142019
2:26 PM
Whatnever.
 
Xeo
SomePhDone, eh
 
> bananas on it
 
@not-sehe Oh- Derp.
 
@R.MartinhoFernandes Idunnowhatyou'retalkin'boutwasn'tme >__>
 
2:27 PM
@Nican And robotics :| Quite a lot, probably
 
Xeo
Oh, was it Puppy then?
 
@BartekBanachewicz Some guy that forked ogonek last week. I checked his profile and saw something to suggest improvement on.
 
HAHAAAA
 
@not-sehe Explain to me: How was I chatting to myself?
 
Something wasn't my fault!
 
I know he didn't intend that, but it effectively rendered all diffs worthless with pre-processing.
 
@Nican Ah. Lol, that was a google screen cap :)
 
@BartekBanachewicz Isn't updated yet, I guess.
 
user142019
@BartekBanachewicz That shows only forks that have new commits, AFAIK.
 
@R.MartinhoFernandes ah that one
 
@rightfold well you can click "members"
 
user142019
Ah yes. Never noticed that feature.
 
2:30 PM
@R.MartinhoFernandes "saw something to suggest improvement on" ?
Are you giving code reviews now? :3
 
@Nican I can't help myself but look at irrelevant details that appear on screenshots. Good thing you noticed. However, explain to me this:
 
user142019
8 mins ago, by R. Martinho Fernandes
Do you guys think it's rude to randomly start dropping code review comments on someone's code on GitHub?
 
I still think it's your real name :/
 
Whut?
 
2:32 PM
@BartekBanachewicz What's wrong with it?
 
At least there is somebody on the internet that cares about my stuff.
 
@R.MartinhoFernandes zomg nothing is wrong! Where do I sign up? :D
 
People reviewing your code is the best thing that can happen to it :P
 
Wow.
My encoding is now super clean.
Thanks to CRTP and other cool things. :O
THESE DIFFS ARE GONNA BE FANTASTIC~~~
 
2:35 PM
How does your validation work?
 
JBL
Oops.
 
user142019
Validation of data.
 
Ghosts and shit.
 
user142019
💩👻👻👻
 
user142019
2:36 PM
Ghosts and shit.
 
@BartekBanachewicz I just do it randomly.
 
I'm failing so badly its hilarious
 
user142019
Me too.
 
@R.MartinhoFernandes well you might randomly look at what we've decided with coshman WRT the GLId
 
2:38 PM
@BartekBanachewicz handle <3
 
user142019
I'm laughing your ass off.
 
Kinky.
 
user142019
LYAO
 
src/*.hpp? Ugh.
Wait, that's it?
Thirty lines of code?
 
I suck at software. I should go home.
 
Xeo
2:43 PM
@R.MartinhoFernandes What, you don't put your headers in src/?
 
@R.MartinhoFernandes that's thirty lines of 2 weeks discussion
@R.MartinhoFernandes it's header-only
 
@Xeo No, I put them in include/
 
Xeo
@BartekBanachewicz That code is broken as fuck.
> glid<T>& operator=(gldr<T>&& other){
 
Ow.
lolwut
Did you guys even test it?
 
that's pirate's pullrequest
 
2:44 PM
@R.MartinhoFernandes Why is it better to have h and c in different folders?
 
You could have at least fed it to one compiler.
 
I might have missed someshit about it
anyway, the question is about the design
 
@NikiC Makes it easier to ship binaries because binaries of libraries still need the .h along.
 
@NikiC By convention .h/.hpp/.h++/... go into /include, and the rest goees into /src
 
So you just pack the build/ directory and the include/ directories directly.
 
2:45 PM
@R.MartinhoFernandes Ah, that makes sense, thanks
 
user142019
I put internal headers in src/ and public headers in include/<project name>/.
 
user142019
For libraries, that is.
 
user142019
For non-libraries I just put everything in src/.
 
@R.MartinhoFernandes The main Q is, is that form of static code "injection" ok
 
Everything I have is in <ProjectName> right now... no include or src.
I guess I should re-org at some point.
 
2:46 PM
@BartekBanachewicz Hmm, what?
 
user142019
Sometimes I don't use src/ at all.
 
user142019
Just ./.
 
Oh you mean T::create() and so on?
 
@R.MartinhoFernandes T::create().
Or, so I'm guessing.
 
@R.MartinhoFernandes the proposed usage pattern is class Texture { GLid<Texture> id; static int create()...}
@R.MartinhoFernandes mhm
 
2:47 PM
I think it's a horrible idea, but what do I know? c:
 
What's ptr() for btw? Do you realize it sort of makes the member public, ruining your invariants (which I will guess are "id is 0 or a valid OpenGL name").
 
@R.MartinhoFernandes ah fuck it was for old style id, without deletion
gotta kill the pirate
 
@BartekBanachewicz That's a bit like CRTP.
 
@R.MartinhoFernandes meh, compilers
 
@R.MartinhoFernandes mhm, that's what I said. Thing is, @Ell wasn't convinced to that approach (he used SFINAE to automatically choose between two gl function styles)
 
2:52 PM
@R.MartinhoFernandes I call it MIRT (Mildly Interesting Recursive Template)
2
 
@BartekBanachewicz hey! you didn't see it either :P
 
@thecoshman i know
 
You're all making a very simple problem really complicated. :c
 
fuck it I'm going home
@ThePhD what?
@ThePhD any arguments instead of shitty emoticons you spam all over?
 
2:55 PM
@ThePhD go on
 
@thecoshman He's rambling as usual
 
@R.MartinhoFernandes on-line editor :D
 
You're only keeping a single ID on GLid, so why not just take a deleter and follow the unique_ptr pattern of creation with glid<deleter> myid( glCreateStuff( /* Blah */ ) ); // will be deleted when it goes out of scope
 
@ThePhD because it introduces runtime costs.
 
Runtime costs?
glDeleteStuff is always a runtime call. You can't make it compile-time.
 
2:58 PM
@ThePhD our delete/create functions are well known at compile time
 
@ThePhD every id has to be initialized with deleter. That takes time and memory
@ThePhD also the constructor of enclosing class has to initialize it.
 
@R.MartinhoFernandes o_0
 
EBCO?
 
Xeo
Empty Base Class Optimization
 
2:59 PM
@R.MartinhoFernandes what? ah.
 
Xeo
Learn2C++
 
Empty base class optimization?
 
@Xeo this class is not empty
@wilx that's googlable
 
@R.MartinhoFernandes Except it may or may not apply to MSVC~~~~~~~~
 
user142019
My stomach is empty.
 
2:59 PM
But the deleter is.
 
Teee heeeeeeeeeeeeeeeee.
 
user142019
Empty Stomach Optimization
 

« first day (990 days earlier)      last day (3967 days later) »