« first day (1743 days earlier)      last day (3219 days later) » 

Tom
3:03 AM
So this tutorial uses Glew
But I can compile I guess. I was trying to download GLEW 1.12, but sourceforge apparently failed big time at something and their server is all messed up. So I checked it out via GIT and spent the last while trying to build it manually.
 
glew is kinda old
 
@Tom It's been down for days and days.
 
@Tom Sourceforge is dying and thats good
 
Tom
@jaggedSpire That's pretty awesome... I briefly skimmed the news thing about it. Doing an update?
 
that site became shady of late
 
3:08 AM
@Tom I actually don't know. I was looking for online docs for TCLAP
 
Tom
Oh... It says a "storage fault"
 
Jun 18 at 22:11, by sehe
Google Is Now Listing SourceForge as a Malicious Site http://i.imgur.com/FAv6VdV.png (http://bit.ly/1d3UBSV)
> It appears that +SourceForge took over the control of the 'GIMP for Windows' account and is now distributing an ads-enabled installer of GIMP. They also locked out original owner of the account, Jernej Simončič, who has been building the Windows versions of GIMP for our project for years. Source
 
I would do the "Somebody's in trouble!" oooooooh, but it doesn't translate well.
 
Tom
@Borgleader So should I be looking for tutorials using sdl/sfml + glLoadGen + glm?
 
Jul 14 at 0:25, by Borgleader
Jul 6 '14 at 18:58, by Borgleader
@AaronKyleKilleen Public service announcement
Yes
well, look for tutorials on sfml or sdl + opengl really
the doc for glloadgen and glm is pretty good
 
3:10 AM
Qt isn't a bad starting point...
 
its not that hard to figure stuff out
 
Tom
I've never touched any of it and the getting started searches are all coming up with the GLEW and what not so... I just want to make sure I learn the appropriate tech for the times
And now I have to take immediate action to prevent the dumb WIndows 8 from force restarting for updates...
 
mot important thing is using the right version of GLSL
 
Hi. In C++, int has an implementation-defined size, right? So, isn't the value of i in auto i = 1000; implementation defined? Isn't the value of 1000 in C++ implementation defined?
 
@Tom Part of the fun
 
3:14 AM
@Nooble @nabijaczleweli we got a live code review by @sehe and I missed it :/
 
@villageidiot things have a minimum size
 
admittedly I didn't write any of the code but still
 
@jaggedSpire
 
@jaggedSpire
 
@villageidiot ...yes?
@nick ...yes?
 
3:15 AM
@jaggedSpire so the size of char is 1. I think that's all we know. No?
 
@villageidiot No.
 
And the size of an int is of a word.
 
is it?
 
but there is number in "word". and even if there were, it's as meaningful as "1" in char. isn't it?
 
@villageidiot here you might want to google things.
 
3:16 AM
sizeof(char)==1 says little about what values a char can hold, doesn't it?
 
@villageidiot Read the link.
 
I sense much confusion in this one
 
@Borgleader The confusion is strong in him?
What does confusion lead to? The chaos side of the Force?
 
it leads to one questioning one's sexuality
 
Tom
I swear at my computer too much...
 
3:20 AM
why? your code doesn't compile?
 
@jaggedSpire No, the derp side of the force
 
@Borgleader nods gravely A most terrible thing.
 
Tom
@nick Because I disabled the automatic restart update, but 2 minutes later it did it anyway
 
@nick Heh.
 
@jaggedSpire got it
 
3:22 AM
@villageidiot That cleared things up for you?
 
so, auto i = 32768; is implementation defined as to the value of i.
 
no
the value of i is 32768
 
@villageidiot You're probably looking for the type of i.
 
@Tom i hate updates and i hate auto-restarts even more
 
@Borgleader but I see the minimum range for an int is -32767 to 32767.
@jaggedSpire the type of i is an int.
 
3:24 AM
one time me and a friend were playing competitive CS and a couple rounds into the game, his computer decided to auto-restart
perfect timing right
 
@villageidiot What absolutely not
> type lowest highest
int -2147483648 2147483647
 
@villageidiot i'm pretty sure even a word is bigger than that
someone pls verify
 
Tom
I thought most languages ints were around 2 billion as borgleader said
 
@villageidiot thats the range for short
not int
2^16 = 65536 -> -32768, 32767
 
@Borgleader I don't know, I'm seeing on the link @jaggedSpire posted that signed int is -32767 to 32767.
 
Tom
3:26 AM
Speaking of which I just told someone at work that we were going to have to do something about the database that is approaching index 2billion. They didn't believe me though..
 
@Borgleader oh so word is just an unsigned short?
@Tom bigint
 
@Borgleader what are you trying to say
 
@villageidiot Thats a copy paste error, notice how the values for short and int are identical
 
@Borgleader this conversation tracks perfectly
 
3:28 AM
@nick sod off
 
@Borgleader @jaggedSpire these are minutiae. The point I'm getting at is, take that range, specify an integer outside of it, and you have an implementation-defined behaviour. Am I right?
In a literal.
 
No, Im pretty sure you get undefined behavior
 
wanker
 
@villageidiot not with auto
 
Reknaw.
 
3:29 AM
 
@jaggedSpire ?
 
@villageidiot 4a, bullet point 2
No narrowing conversions
The type deduced is big enough to hold the number
 
@jaggedSpire Gonna read, but I'm just trying to ask... whether a naive-looking literal integer in code can yield implementation-defined behaviour
@Borgleader is it really undefined behaviour? I mean, implementations must provide their integral types limits. so with that, behaviour is very well defined ...
 
@villageidiot is it int i = 768676454356789;or auto i = 765678909876; ?
 
@jaggedSpire int...
 
3:33 AM
@villageidiot Yes, initializing variables with numbers they cannot hold is implementation defined.
Or is it UB?
Hmm
Avoid it
 
Of course avoid it. I'm asking because, this occured to me that it's not even an error. this is something the compiler doesn't even have to warn me about, let alone reject.
 
@villageidiot use -pedantic -wall and it'll probably yell at you for narrowing conversions.
 
I'm not sure there's narrowing in there...
void f(short) {}
f(100000);
this is narrowing
 
@villageidiot ...it's trying to store a value too big for it.
 
`void f(int) {}`
`f(1e65)`;
this, i'm not sure is narrowing
that, yeah.
 
3:40 AM
> A narrowing conversion is an implicit conversion

(7.4) — from an integer type or unscoped enumeration type to an integer type that cannot represent all the values of the original type, except where the source is a constant expression whose value after integral promotions will fit into the target type.
 
kk
 
kkk
 
ಠ_ಠ
 
Well, darn.
 
3:42 AM
so, but, it's not ill-defined, right? the compiler doens't have to reject the code, or even warn me about it, right?
 
In some circumstances the program is ill-formed.
 
it's incorrect, can cause babies to die of malaria or whatnot, but the compiler doesn't isn't required to say anything, right?
 
E.g. no narrowing conversions in braces as in short { 100000000000000 }
 
@Nooble dang it all to heck
 
all we need are some sporks for a proper darning to heck.
 
3:45 AM
Without the braces (copy-init/direct-non-brace init I guess?) it’s anything goes, save for some constant contexts IIRC. As you said, the program should probably still be considered buggy.
 
@LucDanton really?
Man I hate brace init
hate it
hate hate hate it
 
Those are my working assumptions, if you really want the rules I’d have to dig around.
 
JS developers like me have solved this problem by not worrying about it at all
 
who the EFF brought this shit in
 
@villageidiot It’s a feature. A good one.
 
3:46 AM
what a mess
uniform my ass
 
@villageidiot I like braced-init. Except with string and initializer list problems.
It's shiny and tells you when you've done fucked up.
 
@jaggedSpire yeah. except.
 
@villageidiot It's ugly? I used to think so too.
 
I love things too. except when wtf.
 
And then I converted.
 
3:48 AM
anyway sorry had to let the steam out. i'm good now.
 
Without narrowing!
:D
 
@nick :P
 
std::vector<int> const v{100}; // yay i have 100 elements
ok i'm done now
 
you failed by not using boost
 
3:51 AM
It’s hilarious in generic contexts. std::vector<T> v { 1, 3 }; // what do I have now??
 
@jaggedSpire What is that...
 
@LucDanton ><
 
@Nooble The epic story of Phil, Prince of Insufficient Light. What does it look like?
 
I want to be just like Phil when I grow up.
@jaggedSpire I couldn't see, there was insufficient light.
 
3:53 AM
someone thought, "oh those nasty vexed parse compiler errors. i know, i'll fix them with braces". and now we have issues without compiler errors. Great.
 
Tom
@Borgleader Sigh... GLM is hosted at sourceforge as well
 
@Tom GLM is fine.
 
to be honest, if a project is still hosted on sourceforge it's probably not really active anymore
 
@villageidiot I'd just write a make_vector template function that assumes the first argument is size_t and the second is to be deduced.
I would, but I mostly use std::arrays because I know my stuff at compile time. :D
 
Tom
@Nooble I can't download anything from sourceforge. Is it the site or me then? I was assuming based on their blog entry that the site is broke
 
3:56 AM
@Tom There are mirrors of some things on github
@Nooble slow clap
 
Tom
@jaggedSpire I'm working on that, but now I have to do a lot more digging to get things set up correctly... I know GLM is safe...
 
@jaggedSpire I demand faster clapping!
 
@Nooble slows clapping even more
 
:(
 
Tom
In other news, I haven't used a chat room since probably 16 years ago...
/slap Nooble
Needs the "Tom slaps Nooble around a bit with a large trout"
 
4:04 AM
@Nooble goes faster
@Tom the \me command was pretty great
 
Tom
I started programming with MIRC / chat bots
 
@Nooble claps to a song
 
@jaggedSpire I am now content.
 
@Nooble So long as you're pleased
 
4:22 AM
@Tom Chatting like it's 1999!
 
4:34 AM
Hi guys I have a question about memory allocation
 
................................................................................‌​.................................................................................‌​.................................................................................‌​.................................................................................‌​.................................................................................‌​......................................
 
do you know your stuff?
 
no
 
darn
 
me neither :)
 
4:36 AM
Yeah, my PhD will be in optics :-/
 
i never passed high school
 
Well maybe someone knows. I have a function pointer and need to change a data member to a new value but keep crashing when using new.
 
try rewriting your code with std::function
 
I have 2 hours till it's due and I am almost done though
that and I cant change my templates
 
4:50 AM
How to be ~~delicately~~ woken up my roommate who slams the door with the power of a thousand suns
@Griwes exactly
Griwes you speaketh the truth
 
Tom
5:03 AM
@Mikhail Funny you should mention PhD... Anyone here have anything above a Bachelors?
I'm getting my Bachelors this spring and debating whether I should go for a PhD or a Masters after. Also, whether it should be a different college.
 
Lots of people in here have MS / PhD
@Tom PhD is after masters no?
 
Tom
Yeah, but I can go straight for a PhD and supposedly it'll be less time overall. At least that's what I was reading
 
I don't think you can
 
Tom
Once I graduate I have a little bit of time left with the GI Bill, so it'll be free. So i'll definitely use it for something
 
In the case of Europe at least I'm certain you can't
And it's similar in most other countries
There may be exceptions I'm not aware of
 
Tom
5:07 AM
I think the school I'm at requires the step up, but I'm just now reading about it
I was also reading that you can do it mostly free for PhD? But that sounds like a lie
IE by working for the school
 
You are paid when you are in a PhD yes
 
Tom
I think I can get at least half way to a masters with the GI Bill. So if I do that, then I should be able to get a PhD for practically free then.
But would you switch schools for your graduate degree generally?
 
From BS to MS or MS to PhD yes
Within a PhD it's not advised
 
Tom
So more schools is viewed as better?
 
No I don't think it has any impact
 
Tom
5:10 AM
Or is it for some other reason
I see
 
What matters for your PhD is that you have a good director in a good lab
 
Tom
That's kind of a good reason for me to switch too though. The college I'm at seems lacking
 
Switch based on your interests (ie courses)
But then again I'm not aware of the specifics of the US system maybe ask @Rapptz
 
Tom
Debating getting something that involves electrical as well so I can mess with robots more
Meh... Well It's 1am and I've got bunches of work tomorrow. Have a good night.
 
1pm here
Good night!
 
5:50 AM
lol
r/programming defending PHP
others hating it
this is a fun thread
 
6:15 AM
Look at the Rust thread by sutibukurabunikku
 
6:33 AM
> Why Visual Studio 2015 has changed my life (developerhandbook.com)
lmao
 
7:09 AM
Morning.
 
user1804599
Hello, world!
 
7:26 AM
Whoah whoah whoah when did Qt start to cost 350$/month for non-GPL development?
That's insane
 
user1804599
-2
Q: i am a gues Do I need an ID for a hotel room

wah k paw luv koreaI've never been to a hotel room before my long distance boyfriend is coming to visit me soon. He will be booking the hotel and I am his guest. I am 17 and he is 19. Will they ask me for an ID?

 
What compiler are you using? — buttiful buttefly 39 secs ago
 
@rightfold
That question is a follow-up to "How is pointar formed and how are babbies formed?"
 
I wanted to comment "au guis are gonna hav sum fuk" but then no
Or tag std-vector
 
boyfriend + boyfriend -> how is babbies formed The user clearly lacks the basics. I suggest him reading a porn tutorial first
 
7:33 AM
oh well
 
@buttifulbuttefly really?
 
does this include all platforms or what?
 
I think so
So basically one cannot make closed source apps anymore
And for anyone in a developing country 350$/mo is a massive amount of money
 
then they’ll be in a non-developing country
 
7:42 AM
Well played
Next message in 6h
 
@nick I was there for the whole thing
 
8:02 AM
@buttifulbuttefly I hope it will be spam
 
@ScottW You on mumble?
 
Oh actually LGPL doesn't require distributing the source code it seems, nevermind my messages above.
 
It's nice like that.
 
Oo new monitor is new ... after weeks of complaining I finally got myself a new monitor
 
@chmod711telkitty Which one did you get?
 
8:13 AM
don't you no-lifes ever sleep
 
@nick no
 
jk i love you all
 
@nick We always sleep
 
@buttifulbuttefly if you dynamic link against LGPL stuff, you're fine.
 
Sometimes the sleep intensity rises
 
8:14 AM
@ScottW groan
 
@ScottW deep sigh
 
and you can of course sell your open-source app if you want
doesn't make a lot of sense but nobody's stopping you
support makes more sense
 
Hello all...I just want to see banking transfer, deposit and withdraw examples of real banking system
4
 
LEMME STAR THAT
 
Is there any such code available ? I want to see real time multi threading
 
user1804599
8:23 AM
No.
 
user1804599
It's all proprietary.
 
user1804599
And probably written as incomprehensible COBOL or Java code, so you won't be able to understand it anyway.
 
@rightfold Hmm..Any best example we can follow for perfect synchronization ?
 
user1804599
No, because that depends entirely on what you want to achieve.
 
user1804599
Avoiding the need for synchronisation by eliminating shared state is a good start if possible.
 
8:26 AM
@rightfold Hmm..But I wanted to see how actual things work..like amount transfer case..where you need to lock both from and to accounts in specific order
 
user1804599
do
    balanceA <- newTVarIO (400 :: Int)
    balanceB <- newTVarIO (900 :: Int)
    replicateM_ 100 . forkIO $ do
        atomically $ do
            modifyTVar balanceA (\x -> x + 2)
            modifyTVar balanceB (\x -> x - 2)
    readTVarIO balanceA >>= print
    readTVarIO balanceB >>= print
 
user1804599
:P :P :P
 
Xeo
@CatPlusPlus I did indeed know that. Right-click equips. :P Shift-click has always been "delete", but they changed that in the latest update when you have a chest open.
 
user1804599
@CreativeMind look up transactions.
 
Xeo
My problem is that I rebound the grappling hook to Shift, since I find that easier to use while moving around - unfortunately, there's no way to rebind the shift-click functionality. :<
 
8:36 AM
@rightfold Thanks..got to go..will check after sometime
 
user1804599
In database systems, atomicity (or atomicness; from Greek a-tomos, undividable) is one of the ACID transaction properties. In an atomic transaction, a series of database operations either all occur, or nothing occurs. The series of operations cannot be divided apart and executed partially from each other, which makes the series of operations "indivisible", hence the name. A guarantee of atomicity prevents updates to the database occurring only partially, which can cause greater problems than rejecting the whole series outright. In other words, atomicity means indivisibility and irreducibility....
 
user1804599
lol
 
9:02 AM
@fredoverflow acer 27" ... I am a cheapskate ~_~
 
9:16 AM
@nabijaczleweli on the scale of nonkek to topkek, how kek :)
 
@sehe about three fiddy
 
@CreativeMind perfect synchronization has been Olympic for decades, I think.
@nabijaczleweli :D
Good morning
 
Good moroning
 
maaawnin
 
@ScottW een zeer goede morgen, weledelgestrenge
 
9:24 AM
morning
 
@ScottW up to you ... I usually run after I have eaten given an hour rest - that way I run longer because I would be full of energy
but then there is always the risk of not feeling like running after having a hearty meal
 
user1804599
whoo my first hackage package :v
 
user1804599
 
@ScottW don't run right after the meal
 
10:03 AM
morning
 
user1804599
Goedemorgen.
 
Ell
Good Morgen
Guten morning
Welcomen
 
it's wilkommen peasant
 
@Puppy richtig
sehr schön Hund
:*
 
10:19 AM
certainly not woofmachine here
 
Jul 25 '14 at 22:59, by rightfold
And have gay sex.
 
all sex is gay
 
hello gay ones.
how are thee on this fine Saturday morning?
 
Why, we're all in most splendid form and condition, surely.
 
how amazing
 
10:30 AM
I am, as always, amazing.
 
You are like the volatile atomic<mutex>.
 
I have no doubt about your amazing-ness puppy
 
good.
speaking of which, I'm off.
 
see you all this evening, if I decide to grace you with my amazingness
 
10:32 AM
lol
 
Ell
it's quiet in here
weekend I guess
 
most people have lives outside the Lounge I suppose
 
user1804599
most people don't ever visit the Lounge
 
Ell
Yah
I just went to squash
but that's all I have on my agenda
 
lol funny you should say that, I just received a message from someone who said he thought of me when he went to play squash in a place nearby
 
Ell
10:41 AM
squash is great
 
too confined ... I prefer badminton or tennis
I love sports where I get to running/jumping around
 
@rightfold spot on
 
also I am terrible at squash
I <3 badminton
 
Ell
@chmod711telkitty me too :D
 
@rightfold I should have said "most Loungers..."
 
10:46 AM
> What does this secret constructor do for us? It allows us to construct a new shared_ptr instance that shares ownership with another shared_ptr, but which has a different pointer value. I'm not talking about a pointer value that's just been cast from one type to another, I'm talking about a completely different value
wut
 
damnit
 
user1804599
How do I tag a specific commit instead of HEAD using Git?
 
shared_ptr's aliasing constructor?
 
user1804599
ah, git tag v0.1.0.0 ceb9c7a64626f9963d31ea0550cf9cf32841ebef
 
@StackedCrooked Indeed
shared_ptr<>'s aliasing constructor https://www.justsoftwaresolutions.co.uk/cplusplus/shared-ptr-secret-constructor.html @a_williams
TIL
@rightfold that's a lot of obsolete currency
 
10:48 AM
@Ell :D
 
user1804599
???
 
shared_ptr is totally defeats the single-responsibility principle :P
implicit conversion to shared_ptr<void> is also handy sometimes
 
user1804599
Is Bartek still a thing?
 
No he decomposed.
 
Ell
@StackedCrooked why?
 
10:55 AM
well, it does a lot of stuff
 
Ell
I have never used it
well, a couple of times for asio
 
@nabijaczleweli I've just deleted the stream with the special guest appearance :)
Was really hard to find it, because the sight has major streaming issues a.t.m. /cc @Nooble
 
@sehe hehehe
Can't you remove a part of the VOD?
 
Nope
 
That's... silly, to say the least
 
10:58 AM
@nick glm was updated recently, its still maintained and worth using
 
Can you view the streams at all? e.g. livecoding.tv/video/reviewing-gaem-3
@nabijaczleweli Yeah. Livecoding is a pretty crappy site
 
@sehe I can
 
Mar 26 at 8:20, by Luc Danton
@Rapptz I find the aliasing constructors deliciously decadent.
 

« first day (1743 days earlier)      last day (3219 days later) »