« first day (526 days earlier)      last day (4648 days later) » 

Ell
Ell
19:00
well I cant undo a save-as
Ell
Ell
:L mehhhh oh well. now I have no implementation of FSMs or PDAs XD
There's so much repeated and yet I don't know how to reduce it.
Haha, someone added lazy enumeration to Ruby, and it turns out to be 4 times slower than strict enumeration.
@Pubby Erm, what's __VA_ARGS__ doing in there?
Too lazy to remove it
I think I'll try some inheritance
19:02
template<unsigned D>
class gl_texture = delete;
Is this valid?
What do you mean? I'm pretty sure it is.
(Haven't compiled obviously)
@Pubby What is it supposed to do?
The class? It's just a stupid RAII wrapper around OpenGL textures.
@Pubby I'm pretty sure it isn't.
template<unsigned D>
class gl_texture;
This does what you want.
@Pubby No, the = delete in the declaration (?)
19:05
@KonradRudolph It's instead of not providing definition
Yeah, that’s not valid C++
Hm, guess I'm confusing it with functions.
// friendly error alternative
template<unsigned D>
class gl_texture {
    static_assert(dependent_false_type<D>::value, "invalid template argument");
}
Too much work for no gain
Anyway, what are you trying to simplify?
It looks pretty straightforward to me.
19:09
Its too many lines
Make base classes.
A texture_dimensions class with the three specializations, and then you can put the common stuff in gl_texture and inherit from texture_dimensions the specific parts.
Yeah, that's what I'm doing
0
Q: A user with 1 reputation in chat

Mayank swamihow is it possible that a user with only one reputation can chat in chat room where the minimum reputation required is 20

@Mayankswami Chat room owners have an option to give explicit access regardless of reputation or other settings.
check out the reputation of the uer rai he has got only one reputation
19:12
@Mayankswami They're not talking though.
Everyone can read the chat. Since you can read it even if you're not logged in, it would be incredibly silly to forbid it if you were logged in but low rep.
@RMartinhoFernandes hmm
Aww screw it. I'll just take the verbose way.
I code with both hands.
Ell
Ell
I code with my feet.
I code with my metapenis
Ell
Ell
19:27
I code with my metavulva
Gosh. Chat today is crazy.
-er than usual.
Crazyer?
Yeah, except not misspelled.
I don't know how to achieve the effect I wanted and make it clear I'm not misspelling it.
Sometimes spoken speech is more powerful.
Surely you know of the edit button!
@RMartinhoFernandes You could use group specific jargon: “s/(craz)y/\1ier/”
19:32
How could I forget that.
… man, five thousand edits later, maybe my comment will be syntactically correct :D
@KonradRudolph I think with standard magic setttings you need to escape the ( )s.
(assuming vim, not sure about sed)
@RMartinhoFernandes Already noticed that … hence my previous comment
Has anyone worked with 128bit floats?
GCC seems to ship with libquadmath, and a <quadmath.h> header.
Never really needed that much precision, or range.
19:34
Then there's a special snprintf and a %Qf length modifier, as well as a q literal modifier.
@RMartinhoFernandes I think the range is the same. The exponent is still 15 bits wide.
Oh, so it's just precision?
Nope, I don't think I'll need that anytime soon.
Hm, maybe its for them Windows users who never had 80 bit long doubles.
You mean long double == double on Windows?
Ow.
Do all C++ UDLs have to start with an underscore?
@RMartinhoFernandes Sizewise yes.
19:35
Of course they're different types.
What's this fetish with having different types that are the same but not giving users the same ability?
(int/long, I'm looking at you)
@RMartinhoFernandes I see. So there's no way a UDL could conflict with some compiler extension like that.
That's the point.
@RMartinhoFernandes Ability to do what?
@RMartinhoFernandes Well... they do give you the same ability. It just depends on what you mean by "ability"
19:36
In this case, they reserved the non-underscore ones.
@LucDanton Make new types that are the same as others.
Oh I see!
It's like saying "what's it with having the same architecture (x86) but giving people different frame rates in Counterstrike"
Strong typedefs.
Hola!
@KerrekSB No, they don't. How do you make a mylong that is the same as a long but lets you overload?
(i.e., typedef long mylong isn't enough)
19:38
@RMartinhoFernandes Oh, I see.
explicit typedef mylong long; :-)
explicitly using mylong = long;
How can I make a base class virtual, but still implement all methods in it?
Hm, maybe something with GCC attributes?
@eisbaw Add a virtual destructor.
Make the destructor pure virtual?
@eisbaw A class can't be virtual. Only functions can.
19:39
ok
:)
@eisbaw (10 min later: "I have an undefined reference.")
nah, I am good.
I find it interesting that GCC lets you make quad (or whatever the name is) literals, but not __int128 ones.
The word you were looking for was 'abstract'.
Just wanted the Illuminati's opinion.
19:40
... or 'polymorphic'.
My answer applies to 'polymorphic'.
Classes are quite real, when it comes to code.
@RMartinhoFernandes How do you define __int128_t? There's some __attribute__ trick, isn't it?
@KerrekSB GCC has a __int128 type.
Just create __int128 variables: __int128 x;
Tough luck if you need a literal greater or equal to 2^64.
Arrrrgh, my linker links to the wrong libstdc++. Grrr.
I'm getting better at C++: I no longer write tempalte all over the place. I even removed the abbreviation from my vimrc.
19:47
That spelling mistake is funny
@RMartinhoFernandes not on Windows I think.
But here's some way you can define it yourself
Ah, then I don't know.
Here:
typedef int int64 __attribute__ ((mode(TI));
typedef int int128 __attribute__ ((mode(DI));
Ell
Ell
@RMartinhoFernandes in all seriousness, when do you need literals other than 0 or 1?
@Ell Zigamorphs.
19:48
@Ell Well, when doubling the size of an array in a resize strategy, for instance
@Ell You might need 199711L.
… or when making it 3 / 2 times larger (a better factor)
@KerrekSB Only in preprocessor though ;)
Ell
Ell
I was just thinking, sizes and whatnot would be in a data/config file surely?
@KonradRudolph Or as a constant in your hash function. It's a nice prime.
@Ell Size of what?
Ell
Ell
19:50
@RMartinhoFernandes just in general, I didn't mean sizes, I meant numbers in general, for example sizes of controls
Ell
Ell
haha hadn't thought of that :L
@RMartinhoFernandes Saw that!
@RMartinhoFernandes Well, mine wouldn’t fit in any built-in integral type anyway …
I knew it.
Someone had to say that.
19:51
that’s why I obliged ;)
Yeah, better not damage the Universe.
now all we need is some smart-ass who suggest that I stop using yoctometres as a unit :p
Ell
Ell
@KonradRudolph stop using yoctometres as a unit
@Ell Damn it you beat me to it
hi all
Ell
Ell
hi :)
19:54
Dick in a boxed int
4
@Pubby FLAGGED! This is offensive! We’re not in the Java chat.
Java's not the only language with boxes!
true, .NET is decidedly nicer than Java (regardless of language), and also provides boxing
.NET has VB
@Pubby That's a whole lot easier to ignore than that Java has broken generics
19:56
I think thecoshman does it too, wait, thought you were talking about J**a
@ScottW I've used VB.NET too.
I like VB.NET
Can't say I hate it. It's pretty much C# in a verbose dress.
Plus some goodies.
Ah, VB6. Different trauma entirely ;)
Ell
Ell
I like vb.net too
19:57
I've only used GW Basic :)
although I used VB6 for years, and liked it then. Poor deluded me :D
It’s a fundamentally crippled language
(VB6, that is)
VB6 must be super powerful. What other reason would justify four different null values?
Its worst problem is probably the complete lack of a proper standard library
@ScottW I've used VB6 extensively. It's a rotten tool, but so were most competing tools. Just happy to be using better tools now, but I'm still quite convinced I used to build software about as well in VB6 as many would have using Java C#
Ell
Ell
I don't see why java is so bad?
20:00
@Ell Because this is the Lounge<C++>. You will say Java is bad, or you will shut up :P
Ell
Ell
It seems like .net but non-microsoft. With "broken" generics.
@Ell It's neither good nor bad, and therefore it sucks.
Ell
Ell
@RMartinhoFernandes Yes sir.
@RMartinhoFernandes Quite so.
Ah, I was gonna ask you what made it so rotten. True enough, but I built my self an STL-inspired "library". Go figure.
Envision an abstraction.
Envision a leaky abstraction.
Envision a basket full of leaky abstractions.
Envision a leaky basket full of abstractions.
Now, just envision a leaky basket.
You got the picture
20:01
@Ell We also tend to get snarky and say "No doubt." or something like that.
@Ell Because it encourages you to create a AbstractHelloWorldSingletonProviderFactoryFactory and appropriate mock object for a simple “hello world” application
Needs more Abstract.
happy to oblige
@KonradRudolph Isn't that missing a wrapper?
Have you seen Enterprise Fizzbuzz?
20:02
@Ell Confession number two: I built 2 applications using Java (on was on linux using Java + php, the other was using 90% Java and 10 % C# on Linux and Windows. That rocked)
damn! The wrapper! Forgot it
@ScottW On Error Goto X?
@ScottW Error handling in VB6 was actually pretty advanced
On Error Resume Next was so much better.
no match for structured error handling but pretty damn close
20:03
As god's act of punishment, I recently actually had to write some Java. I literally felt dirty the whole day.
(Disclaimer: I'm totally sarcastic in that previous message)
@RMartinhoFernandes eh
@KerrekSB A single day? By definition, that is not Enterprisey Java
It struck me that everyone gets really lazy and just leisurely lets exceptions propagate anywhere as a matter of course.
@sehe I was someone else's code I had to extend.
@KerrekSB extends :) Good thing, it was quite extensible if it only took you a day. Huzzah for that Java developer then
@ScottW Well, I stopped using it when I found myself writing IDL code … luckily that more or less coincided with the release of the first beta of .NET
20:04
@sehe If only -- though indeed I extendsded three classes!
The code was a mess to begin with, but I muddled through. Anyway, whoever defended Java's module system needs to get their head sorted out.
@KerrekSB I'm ★ing just for the use of the word extendsded.
@KonradRudolph You 'found yourself writing IDL'? I had been writing/generating corba IDL for years so writing a bit of IDL for VB6/C++ interop and versioning wasn't a big deal.
@RMartinhoFernandes Thanks :-) It's to be read with an audible break.
@sehe Well, I didn’t (need to) use VB6/C++ interop. I still needed IDL!
wait
upon reflection, that’s not true
It’s been a long time
hey, but you can download enterprisey PDF too. Will look a whole lot more impressive on your boss's desk.
O, wait
20:06
Is ★ a character now? Nice.
but I think I actually write quite a lot of IDL before dropping VB6
@KerrekSB What a stupid question. POO, PILE OF is a character.
@KerrekSB Well, we have Unicode PILE OF POO … why not also a torn asshole?
@KonradRudolph I preferred explicit typelibraries in IDL to I could track my binary compatibilities in source control, instead of relying on fuzzy wizards in the IDE
@KonradRudolph Wut.
20:07
@RMartinhoFernandes Damn, beat me to it
     ★     ★    ★
   ★★★ ★★★  ★
     ★    ★     ★
@RMartinhoFernandes I admit, that might have crossed a line. Repeatedly. Jumping back and forth merrily.
Damnit, I was trying to write ++i.
I've never failed that hard in my life.
@KerrekSB Man, total fail.
20:08
@KerrekSB lucky bastard
Nothing is fixed width?!?!
^^ one in the middle and two on the side?
@RMartinhoFernandes You too shall taste the bitter taste of... the taste of failure
20:10
++i
@Pubby Did you cheat and use one of them websites??
No, I just typed it in
Newfag can’t triforce

▲ ▲
 ▲
▲ ▲
20:11
;)
Triforce got flattened :(
Ell
Ell
:(
Damn, forgot to change the colors.
@RMartinhoFernandes Radical.
Ell
Ell
20:12
Is there any language where a char is dependent on encoding as opposed to being synonymous to byte? Or is it synonymous most of the time?
You mean C/C++? Actually I guess it is dependent on byte.
I think one more line is in order, though. And it should really say Lounge<++>
@Ell char is not synonymous to byte in many languages.
@Ell There's no such thing as "encoding" relating to what most people think.
         *
 *   *
*** ***  *
 *   *   *
works for me …
20:13
@KonradRudolph Yay! But no stars for you :-)
You cheated the stars.
@KonradRudolph You still have the victory as coming across straighter than both RMF and myself.
         ★
 ★   ★
★★★ ★★★  ★
 ★   ★   ★
oops :D
@KonradRudolph What are those pyramids you are using?
20:14
They are from 4chan …
E2,96,B2 in UTF-8.
Work it out from there, I'm lazy.
Now happy, everybody?
@RMartinhoFernandes ??? How weird! Why would you say it in UTF8?
Why not give us the codepoint?
Awkward.
I'm off, I will now play the latest Dr Who adventure game. Yay.
The wife always gets excited by the sonic screwdriver, so it's not an entirely selfish act.
20:16
@KerrekSB Uh …
Sonic screwdriver?
@KonradRudolph It's like an ordinary screwdriver, but sonic.
2
(after googling … ah … never watched Dr Who)
Like a camera lens, I suppose.
ok, I’m off too, watching a movie film
blogs.msdn.com/b/vcblog/archive/2012/03/25/10287354.aspx - it seems we can use VC++11 from MSVS10
20:26
@KerrekSB 25b2 then
well. I'm sure you can use Mingw or Borland C++ too. Why?
Because you like the way it messes up the relation between intelli(*cough*)sense and compilation ?
@sehe I don't think that VC++11 differs from VC++10 so dramatically.
@Abyx Doubly so: why?
why what?
Range-based for!
@RMartinhoFernandes Run VS2011?
20:31
Maybe it's not supported on XP or something? (Guessing very wildly)
heya
the biggest problem is that I can't use VC++11 where I have users who use XP, but I hope it's possible to implement a helper library which will implement Vista+ API required by VC++11 runtime
Could someone weigh in some reopen votes for this question? The OP allegedly has made "an effort" to tidy up her question.
@RMartinhoFernandes Oh I should be finding out soon, since I prefer WinXP
@KerrekSB done
20:40
@sehe Thanks.
Ell
Ell
is encoding on the file system level, or file?
@Ell when? where? of what? IOW: context?
You mean character encoding? You mean of filenames? Or of contents?
Ell
Ell
@sehe say I have a plain-text file encoded with UTF-8
contents
can I tell if it is UTF-8 without looking inside the file? is it some value of the file?
File level, obviously. Filesystem is about metadata, contents-agnostic
@Ell No.
There are tools to look into the file for you though:
Ell
Ell
if i was making a new filesystem, each file would have an encoding value
20:50
file mytext.txt -> mytext.txt: ASCII English text, with CRLF line terminators
@Ell reinventing object FS es? Microsoft made that flop, I think they promised it with WinFS in Vista
Ell
Ell
@sehe object FS? o.O
and i had a weird idea last night. An operating system where everything is an object!
Though, of course, as always the question is: "What for"? What would be helped? What would become easier? What doesn't work now?
@Ell Ah, the one writtin in Java
Ell
Ell
@sehe no its written in Cobalt
The language which I will design and write just for this purpose :L
Don't forget, POSIX filesystems already have optional (extended) file attributes, or in Windows NTFS, alternative data streams. You can get oodles of metadata in there
Or use it to hide porn.
20:54
@sehe WinFS was supposed to be a database, AFAIR.
So, jump in, write that fuse lowlevel VFS implementation for it and experiment
@CatPlusPlus Yup. That's the one I meant
Ell
Ell
@sehe I would have no idea where to start :L
From the beginning.
@Ell Great. So, you think that's overwhelming? Well, sure, write you own programming language before starting work on your OS. Good luck :)
Ell
Ell
I just have this idea of a perfect everything (os/language/etc.)
20:56
@Ell Stop smoking :)
Ell
Ell
@sehe I know its obviously not possible for me, it doesnt mean its not nice to dream about though :P
I dont smoke!
Who the hell is flagging again.
Who's flagging that
Would they remove this 'feature' already.
Ell
Ell
flagging? o.O
How can you tell?
20:57
Magic.
@Ell, seriously, do you have enemies? Crossed someone? You are attracting an enormous amount of flags.
You need 10k rep to be annoyed see them.
@Ell Reputation.
Thankfully I only see rectangles.
So no global flags for me!
@CatPlusPlus css hacker. Or some weird kind of brain condition?
Ell
Ell
20:58
Oh kk
@CatPlusPlus Those are the funnest!
@sehe Magic.
@CatPlusPlus Brain condition :)
Ell
Ell
What features would your perfect programming language have?
20:59
It'd be Haskell.
Ell
Ell
would it be staticly typed/dynamically?
Oh :L

« first day (526 days earlier)      last day (4648 days later) »