« first day (887 days earlier)      last day (4070 days later) » 

10:00 AM
oh, you mean possible combinations
 
Also, OpenGL version is a property determinable at runtime.
 
hmmm....
@R.MartinhoFernandes but you can request specific one
yeah, possible combinations of values might suck
can't it be TMP-ed, though?
 
@BartekBanachewicz No, it's not that. enum class A {} has 2^32 values as well.
 
(I will regret this)
@R.MartinhoFernandes what?
 
user142019
@KonradRudolph that deleted answer is even worse.
 
user142019
10:01 AM
How the fuck do people get those things in their heads.
 
user142019
Also hi.
 
Hi also
 
@BartekBanachewicz Yes, enums give no guarantee that those are the only values that can come up.
 
@Zoidberg Hey, that deleted answer is hilarious
 
@R.MartinhoFernandes what?
enum classes too?
 
10:02 AM
And more importantly this kind of mistakes is a mistake that will be always trigger an error, every single time it executes.
There is very little gain in messing up your code for this.
 
@BartekBanachewicz Er, of course. How else are you going to use them in bit masks?
 
@BartekBanachewicz Yes, all of them.
 
NNNOOOOOooOOoooOOooOO......
fucking things suck.
 
user142019
@BartekBanachewicz static_cast<my_enum_class>(42)
 
Yup
Use variant
 
10:04 AM
yeah, I think it's the only option
 
Xeo
An enum is the same as the underlying type, with some predefined values.
It is not a restriction to just those values
 
Sum types beat C-style enums any day
 
I thought enum classes were supposed to fix that
 
No, they fix scoping
 
Xeo
What Cat says
 
10:04 AM
And conversions.
 
But in the wrong direction :v:
 
@CatPlusPlus In all directions...
 
Xeo
He wants a new direction, obviously
 
I'd use the enums anyway. The kind of mistake you are preventing is not worth the trouble.
 
Xeo
Conversions of the Third Kind
 
10:06 AM
@R.MartinhoFernandes I am getting to get it
 
Well except that angle where you can insert any value you want there
 
Xeo
@CatPlusPlus explicitly
 
I think it's not worth the trouble
the possibility of GL_INVALID_ENUM vs the effort
 
I like my code 100% correct thank you very much
 
10:07 AM
As soon as you do glTexImage2D(... GL_BYTE ...) or whatever and GL_BYTE is not valid, BAM error.
 
well enum classes help a bit
 
Yeah it's also a pain in the ass to debug
 
Texture<TextureType::Texture_2D> mainTexture;
mainTexture.bind(0);
mainTexture.setFiltering(FilteringDirection::Minification, FilteringMode::Nearest);
mainTexture.setFiltering(FilteringDirection::Magnification, FilteringMode::Nearest);
mainTexture.imageData(ScreenXSize, ScreenYSize, TextureFormat::RGBA, TextureFormat::RGBA, TextureDataType::UnsignedByte, nullptr);
 
(I'd use variant but w/e)
 
I have to think about it
sum up pros and cons of both
and really understand what both give me
 
10:08 AM
Why are you wrapping the API if you're not really improving on it
 
@CatPlusPlus That would mean a different version of every API.
 
@R.MartinhoFernandes that's what I wanted to do in the first place.
 
Wait really?
 
well not now
 
And you did those #includes?
 
10:09 AM
not yet
I was just exploring the possibility
I am not @ThePhD :P
 
enum class Type3 { ... }; enum class Type4 { ... };
 
I'd rather think before reimplementing GL API back to 1992
 
Different types, different APIs, fixed.
 
Xeo
namespace stuff{ inline namespace _api1{
enum class Type { ... };
} }
:D
 
10:11 AM
namespace Three { enum class Type {}; }
exactly.
 
user1357851
Cat plus plus == plus plus sized cat? Just wondering ...
 
now you can just using::Three::Type or whatever version you like.
brilliant.
i am going to work, will sit back to it on the evening
and prolly merge the texture class into the engine from Minicraft
 
@Xeo He wants the client to pick explicitly, so inline namespaces are not that good a fit.
 
Xeo
Oh, I see
 
wait, fuck
how the texture class will now be able to use it :/
it has to make using clauses too
 
10:13 AM
5 mins ago, by R. Martinho Fernandes
@CatPlusPlus That would mean a different version of every API.
 
Er why
 
can I pass a namespace as template parameter? ^^ (jk)
 
user142019
Yes.
 
Really though
 
10:14 AM
@CatPlusPlus hm?
 
user142019
But it would be an error.
 
I think I'd make one variant type and just throw if thing is not supported
 
Yeah, I think that making this separation at compile-time is silly.
 
Because realistically you want to be able to fallback between versions anyway
 
There is no way such a mistake can go undetected.
Unless you don't test your code at all.
 
10:16 AM
My code doesn't need testing :smugdog:
 
user142019
QuickCheck!
 
Any sniff in the direction of the code exposes the error.
 
the point is how hard is to fix INVALID_ENUM, or infamous 1281
 
user1357851
@CatPlusPlus we love 'magical' crashes
 
I have to think about it
As for now, my knowledge is insufficient to choose a solution.
 
10:17 AM
@BartekBanachewicz It's dead obvious, I think.
 
@R.MartinhoFernandes that really needs definition of how high-level the API will be at this point
 
And if you want your API can throw something meaningful if needed.
 
user142019
Throw an exception on INVALID_ENUM.
 
@Zoidberg Meh, that gives the same information.
 
You're making a wrapper
It doesn't have to be 1:1 with the original API, don't just pass the arguments through
 
10:19 AM
ohai Cat!!!
how is my fellow feline?
 
user142019
Hello other cat.
 
user142019
Cats everywhere.
 
Its the Internet, did you expect anything else?
 
user1357851
someone change the subtitle for C++ lounge to: we love cats
 
user142019
10:22 AM
New here? Read the rules NOW.
 
user142019
It's 14 days since the last one. :v
 
but it's still on the list
you suck
 
user142019
What if nobody notices!
 
I could unpin the other and pin yours
 
user142019
(Not that anybody ever reads it anyway.)
 
10:23 AM
because noobs
 
user142019
lol
 
user1357851
I don't think newbs would notice any pin ups at the right
 
Ugh, why I always pick crap tags to watch.
Time to fix sbi's bug.
 
Xeo
What is the bug anyways?
 
@Xeo Missing partial specialization causes ambiguity (foo<a, T>, foo<T, a>, but no foo<a, a>).
 
Xeo
10:29 AM
ah
Atleast it's a hard compile-time error. :)
 
@R.MartinhoFernandes @sbi wrote a bug?
 
user1357851
@R.MartinhoFernandes and no foo<T, T>;?
 
@Telkitty That's not a partial specialization.
 
user1357851
Oo, true
 
Something went terribly wrong...
 
user1357851
10:31 AM
but neither is foo<a, a> is it?
 
horrid
 
forall a
 
user1357851
stack over flow or more general memory corruption
 
@Telkitty True, I should have said s/partial//.
Crap, now there's a file named `<AE><E6><CB><F0><FC><F9>7<B2>r<AA><D9>8V\D<C2><FC><FE><B8><F0><EA>2#<EF>0oB<A3>UѢ<CA>]<CB>.1$C<B0><EC>OJ<BE><C0><BC><F4>0rBM<FC><D7>%$@<AF>0xB+<F5>0{BO<E8><D7><U+FE25>Ǿ0zB0nB(<AD>ͨ<BF><A5><FA>B3<E3>.<E8>_<CD><FC><B8>>q<C5>hЭ<CC><DC>Ժd
<AE>v<F2><A8><E9>C$<B7><D4>` (not valid UTF-8).
How the fuck do I delete that.
 
Xeo
ahaha
 
10:34 AM
WHAT THE FUCK HAPPENED HERE
 
Xeo
right-click, delete? :P
Oh, wait, Linux
Try to grep -v from ls until only that one remains
 
user1357851
kill -9 (process)
 
@R.MartinhoFernandes oh pish posh, that happens to me all the time... some sort of messed up file outputting to the console
 
Screw it. mv .config .. && cd .. && rm -r linux && emerge gentoo-sources again.
@thecoshman No, that wasn't it (see the reds and blues? That's supposed to be the prompt)
 
@R.MartinhoFernandes yeah, it outputs to the console and screws with formatting stuff. Not sure how I've fixed it before... but I've had it a few times
 
10:37 AM
Anyway, that screen was not Unicode-enabled which is a mistake I won't commit again.
screen -U it is.
 
@DavidWohlferd What seems to be the problem? (just reply to this message even if I'm not here, I check SO regularly enough to get the message that I got a message ;-)
anyways, back to work.
 
@R.MartinhoFernandes alias that my good sir!
 
@thecoshman Does ssh know about bash aliases?
Wait, ssh has aliases?
 
@R.MartinhoFernandes ooooh, your connecting via ssh directly into the screen?
yeah, I tend to ssh to server, then run my command, such as screen
 
@thecoshman Yeah, screen is my shell.
 
10:43 AM
My dream has finally come true : we now have a "Cloud Computing" themed Trivial Pursuit
 
@R.MartinhoFernandes you sure? you sure you are not just automatically having screen started? what command are you using for the ssh connection?
 
@thecoshman ssh rmf@host screen -UR default
Sometimes needs -t.
 
> // If the (Native)Activity is overridden these class names must match the new activities.
 
@R.MartinhoFernandes yeah, AFAIK that is not just useing screen as your shell, it is logging into your normal shell and telling it run screen right away, and closing the connection once screen exits
 
Thanks for letting me do that easily by making this a local variable, Unity
Very thoughtful
 
10:46 AM
@thecoshman No.
 
@R.MartinhoFernandes fairly sure it is
if you want to edit your shell for your user, you have to edit a config file some where... /etc/pword perhaps
 
> If command is specified, it is executed on the remote host instead of a login shell.
Look, no bash.
 
well I'll be
seems I misunderstood that all along
 
It wouldn't be as useful if it worked as you say.
 
well, you could run your command as something like bash -c screen (or what ever the switch is to tell bash to run a command)
 
10:51 AM
It's pronounced "gif" and I'm right and that's the end of it
 
@LightnessRacesinOrbit shut your stupid face. The people who invented it said it is pronounced "jif" wtf else do you need?
 
@thecoshman lol, run bash inside a screen inside another bash.
 
@R.MartinhoFernandes no...
 
ssh rmf@host bash -c screen -UR default
 
10:53 AM
@thecoshman Note that these were the same people who invented GIFs. Also, where are they now, huh? CompuServe died. Those people were wrong.
 
@thecoshman Right, and screen starts a new shell by itself.
 
@LightnessRacesinOrbit note, they made the format, the decide how it is pronounced, and they decided with a 'j'
 
@thecoshman What use is a screen without a shell, exactly?
 
(And just like ssh only if you don't tell it otherwise)
 
@thecoshman They do not decide how it is pronounced. I do.
 
10:54 AM
@R.MartinhoFernandes oh I see what you mean, but I wouldn't count that one
@LightnessRacesinOrbit then you are a bigger fucktar then I thought
 
@thecoshman lol
@thecoshman That's not very nice. You should be nicer to people. You may find it stands you in good stead for a more enjoyable life.
 
Anyway the important bit is that, with this mess I lost my .config. FUCK
 
user1357851
Does anyone know whether the new Visual C++ has followed C++11 standard closely or has deviated as usual
 
@LightnessRacesinOrbit and you should be less of a fucktard :P
 
@thecoshman What the fuck is a "fucktar", exactly?
 
10:54 AM
@Telkitty It's still catching up.
 
@Telkitty I think you mean "deviated".
 
@LightnessRacesinOrbit Companion to "fuckfeather".
2
 
user1357851
but is getting closer than the pre C++11 era?
 
Are they actually doing move-semantics right, yet?
 
Is it closer to C++11 than before C++11 existed? Yes, probably..
 
user1357851
10:57 AM
@LightnessRacesinOrbit you know what I mean ... microsoft used to implement its own libraries for string, maths etc
 
> // don't change the name of this variable; referenced from native code
:haw:
 
@Telkitty orly?
 
user142019
Rivella bottles have terrible bottle caps.
 
@CatPlusPlus best do as you are told
 
user142019
@CatPlusPlus why do you read comments.
 
user1357851
10:59 AM
 
@bamboon v2.1 instead of v3.0 IIRC
 
@Telkitty give @cat back his eye piece and 'tash
 
I think what's missing is generated ctors.
 
@R.MartinhoFernandes or fuckuntar
Ahoy
 
user142019
@sehe Ziggo Dome
 
11:01 AM
@R.MartinhoFernandes ah yeah, I think that was it
 
@R.MartinhoFernandes It would be more awesome if you could make your username rmrf or rm-f (with some kind of UNICODE tweak to suggest a space?)
@Zoidberg RAI
 
user142019
@sehe Garbage collecto
 
@sehe lol
That reminds me, I'll need a name for that machine.
 
@Zoidberg Collecto Detritus!
 
user142019
My teacher said that SELECT * FROM A, B and SELECT * FROM A JOIN B are the same, but the former should be preferred because it's faster. But wouldn't any decent DBMS optimize the latter into the former?
 
11:07 AM
Unless he cites a source, I call BS.
 
@Zoidberg the reverse, actually. Also, The former is just more portable
 
user142019
Portable SQL is a joke. :v
 
Well, it's also very very relevant
 
Hi Polar Bear!
 
Oh, I see we're up to 11 dicks this morning. Strangely, there are 11 highlighted avatars on the right.
 
11:11 AM
Fuck you too :)
 
@MartinJames ಠ_ಠ
 
Yeah, I know - I'm now fourth on the list.
 
user142019
@MartinJames first, noob.
 
@Zoidberg That is a problem with unsychronized access from multiple threads.
 
user142019
:)
 
11:14 AM
¬_¬ there are unicode chess characters...
 
@thecoshman You are the unicode king.
 
@MartinJames huh? oh no no no, I barley understand the concept of unicode :P
 
user142019
And @CatPlusPlus is his queen.
 
user142019
@thecoshman y u no get the pun.
 
@Zoidberg Heh - where is pawnguy when you want him?
 
user142019
11:16 AM
@MartinJames on my plonklist.
 
@Zoidberg yeah... I got it a when you responded
@Zoidberg you need to out of your castle
 
user142019
I have no castle.
 
@Zoidberg then to you, I say good knight (that's a malapropism)
 
'cos you're a rookie at this
 
@thecoshman That's for writing chess notation.
 
user142019
11:18 AM
malapropism |ˈmaləprɒˌpɪz(ə)m| (US also malaprop)
noun
the mistaken use of a word in place of a similar-sounding one, often with an amusing effect (e.g. ‘dance a flamingo ’ instead of flamenco).
ORIGIN mid 19th cent.: from the name of the character Mrs Malaprop in Sheridan's play The Rivals (1775) + -ism.
 
user142019
TIL
 
yeah, I know shit
 
Is is just chess? Are there unicode chars for soccer balls, hockey pucks, cricket bats?
 
@MartinJames there is unicode for all sorts of stupid shit, they are clearly working hard
 
@MartinJames Theres a pile of poo unicoce char I'm sure theres those too
 
user142019
11:20 AM
// 4. If anything other than configuration, indentation or comments have been
//    altered in the code, the original author(s) must receive a copy of the
//    modified code.
 
user142019
What if the original authors are dead? Do you have to wait 70 years for the copyright to expire? :P
 
@Zoidberg You have to read the code out loud in a prayer
 
Before long, unicode will extend to being an actual language in itself.
 
People will speak in "hieroglyphs" like in ancient egypt
 
@Zoidberg Check their will.
 
11:22 AM
@Zoidberg where does copyright come into that?
 
@Borgleader Yup - I'm expecting the 'unicode grammar extensions' soon.
 
OMG
how do you add two NSNumbers in Obj-C?
NSNumber *sum = [NSNumber numberWithInteger:([one integerValue] + [two integerValue])];
 
2023 SO post 'Why are you using utf-128 for unicode?'
 
user142019
@kbok @(a.integerValue + b.integerValue)
 
user142019
@kbok Use @() notation you scrub.
 
11:25 AM
okay
 
Obj-C looks like a blast.
 
That's less horrible but still.
 
OpenGL 4.4!!!
@Zoidberg wtf is @?
 
@MartinJames So that each codepoint can have it's own IPv6 address!
 
It's called "at"
 
11:29 AM
@sehe lol again?
 
user142019
@BartekBanachewicz boxing.
 
@CatPlusPlus in that context you scrub
 
It's a character
 
Jan 28 at 13:07, by Cat Plus Plus
Let's make it UTF-128 so that every code unit can have it's own IPv6 address
 
user142019
@(expr) boxes expr in either an NSString, NSNumber or (maybe) NSValue depending on the type of expr.
 
11:29 AM
@sehe If you post that as an answer in 2023, I'll upboat it.
 
@sehe I can't English
 
@MartinJames Making a reminder right now
 
lol
> Today, the chef recommends fresh, fragrant and stuffed buns to all employees. You can take a possibility to buy buns to home and enjoy eating them with your family
 
@CatPlusPlus missing the typo
 
You gotta love Corporate Services
 
11:31 AM
@BartekBanachewicz that's so ... funny on so many levels. Is the Engrish original or editorial?
 
@CatPlusPlus is your chrome still crashing a lot?
 
@sehe original copypaste from email
 
Xeo
FFFFFF, Hyper mode together with transition to square. Fuckers
 
@thecoshman Only when he executes it.
 
It was written by someone in Poland though
 
11:32 AM
@Xeo Are you playing researching Super Hexagon at work?
 
ARB_clear_texture !!!
@R.MartinhoFernandes I am.
omg omg omg ARB_multi_bind
I said
my API is gonna get fucked.
 
Xeo
@R.MartinhoFernandes Yes
 
@Bartek Keep it in your pants, k.
 
oh welp
and bindless_texture is officially ARB_ now
 
not sure how... but TIL
(), also known as Japanese chess, is a two-player strategy board game in the same family as Western chess, chaturanga, makruk, shatranj and xiangqi, and is the most popular of a family of chess variants native to Japan. Shōgi means general's (shō 将) board game (gi 棋). The earliest predecessor of the game, chaturanga, originated in India in the 6th century, and sometime in the 10th to 12th centuries Chinese chess, xiangqi, was brought to Japan where it spawned a number of variants. Shogi in its present form was played as early as the 16th century, while a direct ancestor without the ...
 
Xeo
11:45 AM
@thecoshman Shogi, also known as chess - level asian.
 
@Xeo played it?
 
what's the difference?
 
@bamboon a lot :P read the article if you really want to know
 
Meh, Go > Chess
 
Go is deceptive
don't really like it though
 
11:54 AM
Go is awesome, too bad not many people play it
And playing offline is much funnier than online
 
is 'Othello' the same as Go, or subtly different?
 
Nothing like it.
 
yeah, seems Go is not the game I thought it was :P
 
Xeo
I want someone to play Japanese Mahjong with :<
 
@Xeo huh... how is that a multilayer game?
I was once tempted to buy a physical set of peices
 
Xeo
12:00 PM
Mahjong was originally a 4-player game
What you're thinking of is probably Solitair Mahjong
 
@Xeo apparently so :P
 
user1357851
itune sucks
 
user1357851
xcode upgrade sux
 
@thecoshman I stopped using it
 
user1357851
I tried 2 broken links from my Mac to upgrade my xcode
 
user1357851
12:07 PM
How could anyone be a mac fan, seriously it suck so much
2
 
user1357851
and it's expensive
 
user1357851
I <3 linux
 
> error: cannot access NativeActivity
 
user1357851
If I have time one day, I would build myself a cloud computing centre using discarded old PCs (& linux)
 
Why are you doing this to me
> class file for android.app.NativeActivity not found
 
12:12 PM
android, mwahahaha
 
user142019
java, mwahahaha
 
user1357851
Android > iphone
 
user1357851
I freaking hate iOS/xcode upgrades
 
user1357851
there is no backward compatibility
 
user142019
@BartekBanachewicz Erlang > Checkers.
 
12:16 PM
I'm slow today
@CatPlusPlus using IE now? :P
 
user142019
@TonyTheLion Your mother should have enabled optimizations.
 
@Zoidberg heheh
 
Uh, I really have to enable C++11 for this
but effort :/
 
ah man, the :effort: that I'm contemplating is too painful to contemplate
I'm going to sleep all weekend
and it's going to be good
no effort
 
I am going to make LuaVM at weekend
Will prepare food for two days
lock myself
 
12:24 PM
that's effort
 
and teach template metaprograming over weekend
meh, I want to do it
but reconfiguring build targets at work...
Nobody else gives a fuck
besides me :P
 
user142019
Didn't Gmail have a feature to automatically route emails to labels based on the address?
 
user142019
Something like foo+label@gmail.com?
 
user142019
It doesn't work.
 
user142019
Time to RTFM.
 
user142019
12:30 PM
Oh I have to explicitly create a filter for that.
 
Thanks for that, @Zoidberg.
(removed)
 
12:49 PM
0
Q: Why do we need BOOTLOADER in embedded device?

chainzI'm working with ELinux kernel on ARM cortex-A8. I know how the bootloader working and what job it's doing. But i've question that is why do we need bootloader, why the bootloader born ? Why we cant directly load the kernel into RAM from flash memory without bootloader ? if we load what will h...

does this sound like a rhetorical question?
 
"Why we cant directly load the kernel into RAM from flash memory" - that is exactly what bootloader is doing. — Bartek Banachewicz 12 secs ago
 
I mean, OP asks why does it need a bootloader, and then answers it by saying, "what if we just loaded kernel into RAM", what do you think a bootloader is for?
 
It's more of a stupid question, born of ignorance.
 
I didn't want to say it that bluntly
but yea
 
Well, time to have some dual quaternion fun.
 
12:53 PM
octanion?
 
for (btree_multimap<unsigned int, unsigned int>::iterator it = range.first; it != range.second; ++it) does this look wrong?
I mean who iterates a map from first to second?
 
@TonyTheLion isn't he iterating a range where first is probably the beginning and second the end?
 
^ that
 
@TonyTheLion it's pair<begin, end>
so first is begin, second is end
 
eh
what the hell
that's just designed to confuse the reader
 
12:59 PM
@TonyTheLion that's even in std, see equal_range
 
@TonyTheLion Not really
 

« first day (887 days earlier)      last day (4070 days later) »