« first day (603 days earlier)      last day (4571 days later) » 

18:02
I used my first delegating constructor today! But then I had to remove it because my Linux machine is still on GCC 4.6 :(
You're on Linux, you have no excuse in not upgrading to 4.7.
Now my code has duplication as if written by some Java noob.
I don't know. If I can easily fetch it with synaptic then that's fine. I don't want to pull of any crazy stuff in order to make it work though.
you can get it easily from ppa if you are under ubuntu
My iPhone screen is a little too small to use as an e-reader. However, I could try picking a very small font and then compensate with reading glasses. I wonder if that would work.
in fedora 17 it's standard now
18:24
oh man
I have an exam tomorrow
in "Did you memorize the theorems".
had you forgotten?
trying
what are they theorems of?
various 3D transformations
You need to train yourself in mnemonics then.
18:27
@DeadMG i HAD to downvote it!
I need to train myself to plant a fist in the face of lecturers who think that it's necessary
I'm currently using Japanese characters (kanji) using a system of mnemonics. I'm currently at 700. Need to know 2100+ in order to be considered literate.
@DeadMG Violence won't solve anything @DeadMG. Now sit in the corner and think about what you just said.
I'm already sitting in a corner
my PC is in the corner of the room
How convenient.
why does sitting in the corner have different implications to sitting in the middle, anyway?
I mean, logically, my brain functions identically regardless of it's relative position in the room
18:31
It's a more pitiful sight if one is sitting in a corner.
there's nobody to see me
Is this about the tree in the forest? You know, the riddle.
well, if you want someone to be a pitiful sight, then there has to be someone to see them
That's a bummer.
in any case
the point is that it's a complete waste of time for all involved
18:35
sooo. I heard you were all talking about wasting time
This is my area of expertise :)
yes
<grin/>
describing my upcoming examinations on such essential topic matter as "Did you memorize the theorem which proves the formula for the rotation matrix around x,y,z axis?"
I now 'played' braid, bastion and whatitcalled. Biiii gwast of time
Bastion is nice to see. The narrative is very convincing. The music, well I guess it had been recommend just a little too much, which made it a tiny disappointment (nice music, too boring too soon)
I'm gonna go to bed
been awake nearly 22 hours
18:38
Alright then.
@sehe I should still check it out.
The soundtrack I mean.
Lol, searching for a video I once posted here I end up finding this.
That's pretty slick searchin' there
Why are you finding gifs any way? Just look for youtube.com?
You mean use youtube as a search term? Hey that seems to work..
yeah, the search is in the 'raw' text entries, not oneboxed or marked-down
Wow, apparently I post a lot of them. This search is cool!
Very handy indeed
18:52
In fact this whole chat is a quite crafty piece of software imo.
I don't know enough about web development to know if this hard to create or not.
I used IRC in the past. This is so many times better.
0
Q: Size of function in MSVC

ErikI need to determine the byte size of a c function at runtime. I am working with MSVC and I can use any technique that this compiler offers. I know this question has been asked a lot, but I could only find people saying "no, its not possible". Still, maybe I have overseen a solution. If this is t...

Erm.
Damn... Oli beat me to finding that dupe to my own answer...
or not...
The size of a function? Does he mean the amount of space it occupies on the stack?
@StackedCrooked In the binary.
In that case it's a zero or a one!
Meh, silly joke.
18:59
lol
@EtiennedeMartel I wonder what they are doing.
Don't ask me how, but I got GMP working on Windows
And now I can't use it properly haha
"I finally got my car to work. But how do I use it?"
0
Q: Converting a C++ program to use GMP

AgainstASicilianAll variables in my program use the following datatype typedef long long ll; I installed GMP and tried to do this: typedef mpz_class ll; and I tried typedef mpz_t ll; But it won't compile, usually with tons of "invalid operator" errors. Is there any easier way to translate things over?

19:14
we don't know how our brain works and what software it runs
@RMartinhoFernandes Yeah!
there is an U in T!
There's a "I" in "squid" or "Bismark".
and a V and M in M lol
19:18
I don't know how that's relevant.
so you can read "VIM" in "TEAM"
It's very relevant for a currently not yet discovered thing.
@RMartinhoFernandes lol the pics taker uses Imac xD
It's an English International keyboard.
With keypad I think.
When I was little I called "ctrl" "crult".
19:23
I ordered a US English keyboard just so that the ~ would be at the same location as on the keyboard I'm using at work.
@EtiennedeMartel I think everybody did this somehow in his native language
I always called it control.
God, I was a boring kid.
it as "Strg" on my keyboard
I call it "String"
Strangle
@JohannesSchaublitb haha I called it strong
19:25
then my keyboard would say "strong windows". I don'T want that
I like my Windows to be strong.
Replacing a broken Window is not fun.
lemme say it this way, i like my windows to be strong, but not my Windows.
breaking a replacement window is though
lol
breaking an already broken window is fun tho
Breaking the other windows is also fun.
19:28
it makes the same kinda sound when you break a contractor
I wish I had brick windows.
But then they wouldn't be windows, right?
Unless they were transparent bricks.
You could put a camera on one side and a screen on the other side and it will function as a window.
transparent bricks
ugh I'm forrest gump today
@Mysticial I don't know if I mentioned this before, but you might find this useful when looking for anime. It's something I created primarily for my own use and it turned out to attract a small userbase.
@StackedCrooked Interesting. I just use MyAnimeList. I follow random news websites to find new Anime.
19:35
Alright.
Tokyo Tosho's submissions lists are also very comprehensive.
@Mysticial I'm not familiar with that.
What's the policy for linking torrent sites on chat?
Is it true that the higher the base, the shorter the string representation of a number is? For example in base 10 a number would be 60 digits long and in base >10 it would be <60 digits long?
Lol, I just found a VN on Chrome Web Store.
19:37
hell... just google it
@Mysticial Ok, I get it :D
@Mysticial Is there even a policy?
@RadekSlupik beats me...
@RadekSlupik There is none. But the message is likely to be flagged by multiple persons. You'd just need to delete the message a short while after you posted it. Before you get a 30 min ban :D
I have see a number of links get flagged in chat before. (mostly in the iPhone room)
19:39
Hmm.
But we also talk about sex here. And I don't see how a torrent can be worse. But one is legal and other is... debated.
Aaaalright, beer time.
anyone else here use GMP/
I used it once
Do you know how to properly set variables?
19:41
Hmm. If I want to represent a 96-bit integer in 6 digits I need to use base 100,000.
mpz_t count;
count = (x*x-1);
where x is a long long
@EtiennedeMartel I'm one 50cl beer ahead of you!
this won't work
@StackedCrooked Good for you. But this is not about speed.
@AgainstASicilian I recommend you to check this out gmplib.org/devel
especially the docs
19:45
@EtiennedeMartel Yeah you're right. It's about quantity.
Hmm, my mom dislikes IPAs. I wonder why.
@StackedCrooked Quality first. Then quantity.
@EtiennedeMartel Quantity multiplied by quality.
@bamboon I already looked there
@Mysticial Nothing wrong with posting urban dictionary. Right?
Ooooh check out the sofas in this lounge ^^
19:48
@StackedCrooked :)
@RadekSlupik Yes, that's correct.
@Mysticial Is it rooted? When the bases are small (2~16) is see a huge difference in string length, but when I use higher bases such as 100 or 200 the difference isn't that big anymore.
@Timmy Those are not sofas, those are piles of dead Java programmers.
4
@RadekSlupik It's logarithmic. # of digits = log(number)/log(base)
Ah.
That sucks. :P
even so, very nice xD
Its my first time here, just joined stack yesterday so checking out this splendid lounge :)
19:52
Welcome!
If you really want to have fun here, I suggest you check out the newbie hints (first link in the side bar).
Thanks ^^
@EtiennedeMartel LOL
@Timmy Also, bring your sense of humor, because things can get a bit... hectic here. We're quite an abrasive bunch.
Anyone here have experience with GMP?
@Mysticial I need to represent a 12-octet number as shortly as possible. I'm using base 110 now (0-9, a-z, A-Z, α-ω and Α-Ω) but the strings won't get any shorter than 12 characters.
19:54
@AgainstASicilian I think your problem is that sqrt returns a double and you have mpz. beside that won't you gain any advantage if you still use the std sqrt. you have to use the gmp stuff for that
I have various humour outfits, i shall change immediately !
@bamboon I am changing the structure around a bit; is there a way to just convert from one datatype to mpz_t?
12-octet number?
mpz_t count;
count = (x*x-1); //x is a long long, can i just convert all this into mpz_t?
@AgainstASicilian I am sure, but it's been a while since I used gmp
19:56
@Mysticial A binary number that's 12 octets long, such as 0x4fd4defdb10b959812805e24.
A 96-bits integer.
It's not possible to do less than 12 characters.
Impossibru.
a 96-bit integer has 79228162514264337593543950336 different combinations.
Not even with Unicode characters?
assuming a char has 8 bits, it can store 256 different values
19:58
Multibyte characters are also possible.
256^12 = 79228162514264337593543950336 which is exactly your range
yes, unicode or multi-byte characters are possible
unsigned char can store at least 256 values
No. unsigned char can store exactly one value. We're not talking about quantum computing. :)
Which one? :D
Any one of 0~255.
20:00
@RadekSlupik OK. then you can only say one word
Why do big ints have to be such a pain in the ass to get working?
Because the language you use sucks.
@AgainstASicilian Because of the satisfaction you feel afterwards.
@AgainstASicilian It's only C and C++ where bigints suck.
20:00
All other languages support them out of the box. xD
Python has zero trouble with this crap
C++ throws fits every single line
It's like a cranky toddler
Is there no good bigint library for c++ then?
I spent the last few hours getting GMP installed on Windows
20:01
@StackedCrooked None that's universal.
and user-friendly
and now it doesn't even want to work properly
what is it with people pimping python in the C++ room today?
easily, I should say
Write your own bigint library!
user457812
Death upon the pythons
20:02
megaint!
giaint?
uberint
My life for Aiur!
user457812
Collosint
@StackedCrooked My wife for hire!
20:02
When did we ever bash Python in this room. We only bash Java, PHP, C, etc...
mechagodint
Ah I'll just go with these 12 digit numbers.
Issue #καxHΝpΞRwΩtρΣε
@EtiennedeMartel Lol :D
maybe I should start using Java instead of C++
this is ridiculous
@AgainstASicilian Erm.
20:03
@RadekSlupik Well unicode has at least 16 bits. So you can do it in as few as 6 characters that way.
@Mysticial We like to bash on the little ones.
user457812
You must be a true masochist to think you should use Java over C++.
You could use C#.
user457812
You should clearly use Perl.
@nil Big number support is impossible in C++. It's like trolls developed the libraries
20:04
You should use Ruby.
@Mysticial Hmm. It must still be readable by a human. I can use different alphabets maybe. Cyrillic. :P
You should use befunge
user457812
Actually, no, you should use Intercal.
@StackedCrooked +1
user457812
20:04
A language that makes you beg is a good language.
@RadekSlupik You can whatever subset of unicode you want. If there are 32768 characters, then you get 15 bits each - which will fit into 7 characters.
Don't forget that Chinese has more characters than even want to know.
@nil then lolcode is the best language of them all. Importing a library is can has [library]
user457812
Lolcode it is
@Mysticial How do you calculate that number?
2^15 = 32768
20:06
Ah k.
But if the committee wants C++ to be used in any math-related stuff, C++ absolutely need a standard C++ big integer.
Thanks man.
2^15 is either 32768 or 13 depending on whether you are a mathematician or a programmer.
@Mysticial It looks a little like a house to me.
@RadekSlupik I'm not even sure if there are 32768 readable characters in UTF-16...
20:08
This looks so stupid: ['ア', 'イ', 'ウ', 'エ', 'オ', 'カ', 'キ', 'ク', 'ケ', 'コ']. :P
@Mysticial I'm pretty sure there are.
@RadekSlupik Katakana, what's stupid about it?
is there a human who knows all unicode characters in head?
@StackedCrooked Nothing, but it looks so strange in code.
Some languages you have to be careful with. For example: Arabic. Depending on how it's rendered, adjacent arabic characters may "fuse" together the way that cursive does in English.
20:11
@JohannesSchaublitb Is there a human who knows all languages?
@EtiennedeMartel I think there isn'
@EtiennedeMartel Adam from Adam and Eve.
@StackedCrooked Nah, those two spoke a single language. That's why the christians had to patch in multiple languages with that whole Tower of Babel thing.
user457812
I thought they just kind of grunted and didn't actually have language.
Your mom speaks so many languages that she needs to be the size of Jupiter to store all those bits.
20:12
@StackedCrooked This shit is strong.
You mom sucks so much donkey cock that she makes @DeadMG cower in fear.
user457812
Your mom's so fat she flooded the valles marineris.
@Mysticial Especially funny considering "bite" (pronounced exactly like "bit") is French slang for "penis".
@EtiennedeMartel Are you serious? holy shit...
@Mysticial I am serious.
20:14
I think I had a Chouffe two years ago when I visited the Ardennes. It's not something that I'm very familiar with.
user457812
All discussions of bits must be horribly childish in France
@StackedCrooked It's one of the few kinds of Belgian beer you can easily find in Quebec. And boy it tastes great.
bite means "cock" like the animal it seems
Me and Java, have got somethin' goin onnnnn ....i threw it out the window and watched python consume it
@JohannesSchaublitb Actually, from what I've heard, it comes from the Old French verb "abiter", which means "to touch".
20:17
@Timmy So the python drank a cup of coffee?
I have no idea how it become another word for "dick".
@StackedCrooked That's a fair assumption, reasonably accurate. I concur
google translates it into the german word for "fat"
weird. perhaps too many germans say "dick" when they mean "penis" so that google thinks it's a german word lol
I remember a German song. It was about a schnappy crocodile or something.
20:20
"dick" in german means thick, so im told...by google translator, in the flesh
Where I was at the Anime convention a couple months ago we had conversation about your mom, black holes, relativity....
anyways, off to lunch...
which is of course synonymous with fat
In Dutch it's "dik".
Means fat.
I wonder how many WPM you can hit if you drop all C's from words ending in CK and all G's from words ending in ing etc ...
In Quebec we use "membre" a lot. I'll let you guess what it means. Hint: swap two letters.
20:22
private member ? :O
@StackedCrooked Marry me.
Assuming your mom has the density of water. (humans are 80% water anyways), how big must your Mom be in order to become a black hole. (assuming no gravitational collapse)
off to lunch for real... lol
@EtiennedeMartel Sorry, I regret to inform you that I am heterosexually oriented.
Proximity with the US and the ROC means we also enjoy saying "cock" a lot.
@StackedCrooked Me too. So what? Could be a great tax dodging scheme.
20:25
@EtiennedeMartel Let's not make this any more awkward than it already is.
so guys, if i wanted to utilise the awesomeness of cpp(see pee pee, too many urinals ) for directX, what sort of stuff would I have to be fluent in before moving on to the directX API?
Yeah, that beer really is hitting hard.
@Timmy "Sea Plus Plus".
DirectX is essentially a "C with Classes" API (i.e. it inherits from COM).
So, you could basically just do C and be fine.
But!
If you got any kind of self respect, you should try to do modern C++ style things.
You should try pinging @DeadMG for more details, I heard he's done quite a bit of DirectX stuff.
I do believe i have a little bit of self respect somewhere :) tyvm
Anyway, the style of C++ we try to enforce here is: stay as high level as possible, and go to low level only if you absolutely need to. That means: don't manage raw memory by yourself, use standard containers and standard smart pointers instead.
Use references and smart pointers instead of raw pointers. Think object oriented, but not too much (you don't need a class for everything).
20:29
Yeah, and don't suck.
2
Templates are great, use them.
Before using inheritance, check if composition is a better solution.
And, most importantly: don't be afraid to learn. C++ is a very complex language, don't expect to discover everything in one go.
I see, im still around the amateur/intermediate level of C++ atm. Ive played around with it for a couple of years now on and off but just starting to get back into the swing of things again now exams are almost over. Been looking at win32 API lately ^^ of course i dont want to dive in at the deep end and end up missing the small children (important topics)
Win32 is a predominantly C-style API.
So you won't be learning good C++ design that way.
My theory is that good C++ programming is founded on thinking in terms of ownership and object lifetime.
5
And a few other things..
My latter remark totally undermines my point.
Dammit.
That's especially true if you want to stay away from leaks.
C++ does not have a garbage collector, so you must never forget about who owns what. Smart pointers somewhat reduce that problem, but they don't remove it completely.
20:33
sh*t son, this is the stuff my mother should have told me...if i mention win32 or c++ to her though she thinks im on about winning £32 on the lottery or talking about algebra
python = automatic memory management :D
Garbage collection is awesome.
@AgainstASicilian CPython uses ref counting.
@EtiennedeMartel How does it deal with cycles?
@RadekSlupik I recall seeing something about an algorithm to detect cycles. But I honestly don't know.
@Timmy Oh, and I forgot: do not reinvent the wheel. Boost is great, use it.
20:44
Someone really ought to write a good C++ tutorial. Or really, just a "what you need to know if you've already learned C-with-classes" guide
Wish I could zoom out in D3. It's frustrating when you shrink the window and it merely crops
also lag
I guess it should basically just explain RAII and ownership semantics, thoroughly and in a newbie-friendly way
@AgainstASicilian Hmm, what's that got to do with anything? :) Also, did you get the bignum stuff working?
I wrote a bignum class. Gave up on division though. That's hard
@jalf bignum stuff works, but not the way I want it to at all
20:46
@MooingDuck The lag/always-online/servers-crashing stuff is completely ridiculous...
@jalf wound up installing GMP
apparently to translate your program over to work with GMP you need to rewrite practically everything, so it's like starting from scratch all over again
@AgainstASicilian or just write a C++ wrapper?
@MooingDuck I'm not advanced enough to do that. Besides, what I am doing isn't crazy; stuff fails and I have no idea why
sbi
sbi
@CheersandhthAlf I noticed that, too.
why did you need your solution to be faster than Python again?
sbi
sbi
20:49
@RMartinhoFernandes To the Germans winning against Portugal. :)
@jalf Efficiency
@AgainstASicilian that's what I'm asking. Why did you need that degree of efficiency?
@jalf Because inefficiency is bad?
Python is extremely slow
@AgainstASicilian oh, writing a C++ wrapper around GMP shouldn't be hard, there's gotta be a thing for that somewhere. It should be easy.
20:51
@AgainstASicilian War is bad too. Are you going to end all war too? ;)
My point is, why are you struggling against a complex language which you don't know very well, just to speed up a program which was only written as an exercise?
@AgainstASicilian nevermind, GMP has C++ stuff, gmplib.org/manual/C_002b_002b-Interface-General.html Just use that instead
@jalf if there is a better alternative, sure
@MooingDuck I've already gone through that; my issue is unrelated
@AgainstASicilian And there are many forms of inefficiency. Wasting hours or days of your life just to speed up a program which is already fast enough is also very, very inefficient
@AgainstASicilian it's very related to the question you linked. If you're past that, then I can't imagine what the problem is
@jalf It's not "already fast enough." Sufficiently slow to warrant a C++ implementation
sbi
sbi
20:53
@MooingDuck How so? I've tried those solutions already and I still get either compile errors or runtime crashes. Granted, my use is a bit more advanced (arrays and such)
@AgainstASicilian In your question you use mpz_t, which is a C struct. If you use mpz_class, everything should just magically work (except maybe iostreams)
@AgainstASicilian That's what I've been trying to ask you for the past 10 minutes, and you keep dodging the question: Why does it need to be faster than it is?
omg a mosquito, guess i'll eat a chocolate bar then
(By the way, write it in C# or Java. Both are waaaaay faster than Python, and much easier to learn (and I believe both have decent bignum classes already)
20:56
@Timmy What?
@jalf Because I like having fast programs as opposed to slower ones. Arithmetic operations tend to be multiple times faster in C++ when performed many times. A 10^8 length for loop is nothing to C++ but takes eons on Python for instance
Write in C#. Fuck Java unless you're targeting mainframes.
Yeah, if you really need speed for calculations, FORTRAN is the way to go.
Arithmetic operations tend to be faster in FORTRAN.
20:56
@EtiennedeMartel there is a mosquito lurking in my room, every time i attempt to 'dispose of it' it evades me. :(
Yup. If you want fast numerical programs, there is NOTHING faster than fortran
By the way, to anyone who can answer, is Blitz++ abandonned or what?
you are wasting your time struggling against a language you do not understand, to achieve an ill-defined goal that could be better achieved in a dozen other languages.
@jalf is that still the case? I'd heard that, but all of the reasons they give no longer apply to the latest versions of FORTRAN.
20:58
If the goal is to learn C++ then that's great, and I applaud it. But if the problem you are trying to solve is simply "I want to make my Python program go faster", then you've picked the most painful and inefficient possible way to achieve it :)
@jalf Thanks for the condescension but I know what I am aiming for here
@AgainstASicilian No you don't. You don't know if your program will be faster once you've rewritten it in C++. You don't know how much faster it'll be
@AgainstASicilian Hey, welcome to the Lounge, where we don't give a shit about your ego.
Go solve a few of the harder PE prolems first, Jalf, then come back and make that argument.
It will be significantly faster.
20:59
You've heard that "C++ is fast", and you've decided that you want your program to be fast. And now people who know C++ better than you are telling you that C++ might not be the best way to achieve your goal
I already know how to use C++, just not GMP.

« first day (603 days earlier)      last day (4571 days later) »