« first day (1497 days earlier)      last day (3455 days later) » 

8:00 AM
float f = 1.2f;
if(f == 1.3)
printf("true");
else
printf("false"); //this is executed since 1.3 is double?

Is their no type coersion / conversion happening?
 
No it's executed because 1.2 is not equal to 1.3
 
ohkay thats stupid mistake
its both 1.3
 
13
Q: strange output in comparison of float with float literal

Ashishfloat f = 0.7; if( f == 0.7 ) printf("equal"); else printf("not equal"); Why is the output not equal ? Why does this happen?

 
8:18 AM
@Mysticial Oh, not seen 'I don't understand computers and/or f' for a while. I guess a new generation of clueless coders has risen:(
 
it has never stopped - always new clueless coders, always ...
but seems to be an exponential expansion of them lately ...
 
user1804599
I still don't understand how floating point numbers work.
 
@rightføld Magic!
 
@Mahesha999 I mistrust operator== for floating points.
@rightføld met vlottende kommas
 
8:22 AM
@TonyTheLion More like the bear thought the dog was not worth exerting his energy. I doubt the dog could have done anything to the bear...
 
@rightføld lol
 
trolls be trollin'
 
oh, deleted the instant I posted
 
@VáclavZeman yea, well one paw claw from the bear, and the dog would have been history
 
8:27 AM
So, have you tried Intel INDE?
I think that means free ICC for Windows, no?
 
@BartekBanachewicz What is that?
 
@VáclavZeman Integrated Native Developer Experience
> means performance and fast development time, allowing you to create cross-platform C++ and Java* applications targeting Android* and Microsoft Windows* devices. Intel INDE tools enable easy development of professional-grade media and context capabilities with support for compiling, OpenCL™, and graphics development, plus analysis and native debugging.
oh wait nope
> **Starter Edition:** A free edition including Media SDK and plug-ins, system and graphics frame analysis, the OpenCL™ Code Builder and access to GCC compilers from Android NDK.
**Professional Edition:** Everything in Starter Edition, plus audio, platform analysis, and debugger tools.
**Ultimate Edition:** Everything in Professional Edition, plus leading C++ compilers, libraries, and threading tools.
uh shitt murkdown. I'm not editing that
also lol
> "-2 Do not like"
 
8:51 AM
Ok, here is a rather retarded question: if I want to restart a VPS, do I just do:
service apache2 restart
 
why is the room dead
 
No that restarts Apache
 
how do I restart a VPS then?
 
user1804599
@Mysticial yummy waffle
 
user1804599
@chmod711telkitty # reboot
 
user1804599
8:57 AM
Or go to control panel and click "reboot"
 
@rightføld I always mix win and lin command :p
 
user1804599
I don't, since I never use Windows.
 
It's shutdown on Linux too
 
Oh, I forgot the time :)
 
shutting down is taking forever ...
 
9:02 AM
that moment when your dedicated server doesn't start :P
Luckily some companies have a web interface to get it up again :P
 
it is not responding at all
even when I try to log out ... it's still hanging
well, hosting company has live chat that's on most of the times
 
@jfischoff yeah, this one is hugely important IMO. Haskell needs to start stealing ideas that work elsewhere instead of only looking inward…
@darinmorrison @jfischoff And a good place to start is by shaking off the idea that Haskell is “state of the art”, which was never true.
 
@LucDanton indeed I also thought that zip_iterator zipped "by value". If it does "by ref" and affords mutation through the effective proxy, that is great.
 
9:19 AM
Folks!
 
Xeo
@sehe You can do "by ref" trivially by wrapping with std::ref if it's "by value" (which I think it is?)
 
FASDFAS$QWRVSDF#@!R$!FASD
> i tried to do texture mapping it was working fine with linux but in windows i am getting white screen. can you please help me to sort out this issue
> Any OpenGL errors? – Bartek Banachewicz 27 mins ago

@BartekBanachewicz yes, i am getting 1282 error – Nithin 33 secs ago
for fucks sake.
OpenGL isn't magic, people
 
lol
 
@thecosh it's complicated. Short answer is "certainly not now; maybe when closer to the Sun" (the mission ends only after perihelion). The batteries can't charge in the cold, and the light Philae is getting is not enough to reach the threshold temperature for that. The whole thing has been deliberately tilted to be better facing the Sun at perihelion hoping that might work. We'll see.
 
@Xeo that will - however - trivially not afford writable iterators. So all the standard library algorithms are off then
 
9:30 AM
Perihelion is complicated because the comet heats up and starts shedding stuff (the tail grows!) but it's its best shot now.
 
@BartekBanachewicz Of course Haskell isn't state of the art. It's stateless!
 
Xeo
9:48 AM
@FredOverflow You should post that as a reply :P
 
user1804599
Is it possible to change the bytecode of a Python function at runtime?
 
10:04 AM
well, I sure hope philae has some thermo charging system builtin as well
so even if it doesn't get enough sunshine, the temperature is enough to charge the batteries up so the solar panel can be mobilized
 
gods how has it been eight hours already -.-
 
@LightnessRacesinOrbit eight hours since when
 
Eight hours ago.
 
user1804599
wooooo
 
user1804599
I've always wanted something like this: gist.github.com/rightfold/b3a7c2b0fea2b2b283b0
 
user1804599
10:17 AM
Fuck types not being documented in code and checked.
 
@rightføld "documented in code"?
 
@chmod711telkitty Shoulda had an RTG.
 
should ... & mostly has one consider how much time & effort has been put into this mission :D
 
user1804599
@BartekBanachewicz instead of in separate documentation or docstrings or some crap like that.
 
@BartekBanachewicz since I said goodbye
 
10:25 AM
@chmod711telkitty Solar array on a lander destined for a lumpy rock. Sounds risky to me.
 
@rightføld do I want another coffee
 
user1804599
Other + is that my editor recognizes annotations and completes accordingly.
 
@MartinJames probably folded up when landing, I discussed that aspect with someone else before
 
@MartinJames because something that generates quite a bit of heat is a great thing to land on a comet that, for all you know, might be little more than ice ;)
 
10:29 AM
@Xeo FredOverflow don't tweet!
 
plus, you'd have to find something that has a slow enough half-life to survive the 10 years it's been traveling to get there, and still have enough fuel left to power everything on Philae, which is tricky :)
 
The Cassini RTGs are about as big as Philae itself.
@jalf No, it's not :/
 
@R.MartinhoFernandes under the size/weight constraints of Philae, I mean
 
Ah, ok.
Yeah.
 
@jalf Pu 240, hl 80 years.
 
10:30 AM
Cassini was in flight for 8 years, and has been operating for 17 now.
But yeah, its RTGs are Philae-sized.
 
..or is it 8 years?
 
RTGs are cool
 
They also weight about half-Philae.
It's just not practical at all.
And then it's not economically feasible either.
 
rely solely on solar gets tricky
 
10:33 AM
ESA doesn't make RTGs, and it's such a short-lived mission that it would be a huge waste to buy an RTG.
 
also, a radiation source on the lander would likely affect the scientific instruments too
 
It sure would. Heat too.
 
The Pioneers were veering slightly off course because of thermal imbalance caused by the RTGs. (It still amazes me every time I mention this)
 
but as secondary power source?
 
10:34 AM
is std::hash defined for std::string, but not for basic_string?
 
@chmod711telkitty Great, now the thing needs to pack two power sources instead of one? :p
and being secondary wouldn't magically stop radiation/heat
 
I was wrong anyway. Pu 238 is the hot RTG power, HL 87.7 years.
 
@jalf I just assumed because every important system on earth seems to have one? :p
 
You can't turn RTGs on or off.
 
ITT Robot and jalf debate space missions with telkitty
what could go wrong
 
10:36 AM
FWIW, I'm pretty sure they considered RTGs.
ESA took part in Cassini-Huygens, and those packed an RTG.
 
template<> struct hash<std::string>;
template<> struct hash<std::wstring>;
template<> struct hash<std::u16string>;
template<> struct hash<std::u32string>;
well shit
 
(Did I ever mention I really like Cassini)
 
user1804599
Now I only have to implement conjunction and disjunction.
 
@R.MartinhoFernandes I vaguely remember something about space boats. Does that count? :p
 
10:37 AM
@jalf Same moon :)
@LightnessRacesinOrbit lol "Bath"
 
> During the reign of Edward the Elder coins were minted in based on a design from the Winchester mint but with 'BAD' on the obverse relating to the Anglo-Saxons name for the town, Baðum, Baðan or Baðon, meaning "at the baths," and this was the source of the present name.
 
@LightnessRacesinOrbit Oh, I just found it funny that the poo bus runs from/to Bath.
 
@R.MartinhoFernandes it's a quite beautiful town
everything is beige
 
Yea Bath is very nice, used to live quite close to it
 
10:44 AM
I have been to bath ... nice yellow sand stone houses
 
And now it has a poo bus!
 
40 seated
 
I'd like to start a style discussion
 
oh noe
 
@BartekBanachewicz spaces
 
10:44 AM
please go start it in Lounge<Style>
 
int a;
std::vector<int> b;

// vs
int              a;
std::vector<int> b;
 
ewww the second one
 
@BartekBanachewicz first, because of smaller diff
 
dat gap
 
I know that people dislike the second one and I'm wondering about the reasons
 
10:45 AM
just not very pleasing to the eye
 
@TonyTheLion but it's more like a table. People's minds work well with tabelarized data
 
also pellets of 238PuO2 look awfully like fruit flavoured hard candy
 
@BartekBanachewicz I see what you're saying, but it just looks like that int is lost by itself at first glance
which makes it a bit off putting
 
auto a = 0;
auto b = std::vector<int>();
FTFY
2
 
user1804599
@BartekBanachewicz former.
 
user1804599
10:48 AM
@FredOverflow NO NOT THE 0 INITIALISATION DAT PERFORMANCE DEGREDATION (RHYME NOT INTENDED)
5
 
@FredOverflow :)
 
requires in-class initializers though
aren't they c++14?
 
user1804599
NSDAPs (or whatever they were called) are C++11.
 
10:50 AM
@rightføld NSDAP means something different in German...
 
user1804599
Ah, NSDMI.
 
@BartekBanachewicz the first one because the second one is horrible and evil and stupid argh
@chmod711telkitty but do they taste like that as well?
 
can't afford 238PuO2
 
10:51 AM
You building a nuclear reactor?
 
no, I am building a spaceship ... thinking of ...
day dreaming is a more appropriate phrase :p
 
@jalf "horrible, evil and stupid"? that sounds like feminism. why?
 
Xeo
@BartekBanachewicz I'm allergic to whitespace.
 
@Xeo you don't indent your code?
 
Xeo
yes, it's all a single line too
 
10:54 AM
@TonyTheLion pfft Bath is horrid
 
user1804599
I don't like NSDMIs.
 
user1804599
I want all my construction to be in one place.
 
cpx
Is it normal for GCC not to warn for reference return of temporary? int &f() { int i; return i; } Compiled with: -Wmain -pedantic-errors -pedantic -std=c++11 -w -Wextra -Wall on version 4.7.1
 
also multiplayer factorio needs trade
 
That's not a temporary, it's a local variable. But yeah, it should warn...
homer@marge ~ $ g++ lol.cpp
lol.cpp: In function ‘int& f()’:
lol.cpp:1:16: warning: reference to local variable ‘i’ returned [-Wreturn-local-addr]
 int &f() { int i; return i; }
                ^
Mine warns even without any additional flags.
 
Xeo
10:58 AM
what's your g++ alias? :P
 
user1804599
This stupid bug makes IntelliJ warn on every call to len.
 
Xeo
alias g++="g++ -Wreturn-local-addr"? :D
 
cpx
Maybe I should add -Wreturn-local-addr?
 
homer@marge ~ $ which g++
/usr/bin/g++
 
@BartekBanachewicz well, perhaps just stupid. But it's a pain in the ass to maintain. When the type changes, you suddenly have to add or remove spaces for the variable name to be indented properly. It's tedious to maintain, and usually gets out of sync with surrounding lines anyway, and it's just unnecessary. You know how to read a variable declaration already.
 
10:59 AM
@FredOverflow $ alias g++
 
user1804599
Did GCC get sane?
 
cpx
How can I return a temporary?
 
homer@marge ~ $ alias g++
bash: alias: g++: Nicht gefunden.
@cpx by value
 
user1804599
int f() { return 0; }
 
cpx
Oh, I was thinking const reference.
 
11:00 AM
@FredOverflow lol german bash
 
You can't return references to objects that cease to exist.
 
user1804599
You can.
 
German Bash sounds like WW2 reference
 
user1804599
You cannot dereference said references.
 
user1804599
Without UB.
 
11:00 AM
You can dereference references in C++?
 
@R.MartinhoFernandes ah, shame. Maybe they should have put some blankets on it :P
 
user1804599
@FredOverflow It's implicit.
 
cpx
A temporary bound to const reference lives as long as reference lives.
 
@cpx That is only true for local references initialized with prvalues.
It doesn't work with returned objects. Think about it: where would the object live? The stack frame is already gone.
(insert yadda yadda about stack frames not being mentioned in the holy C++ standard)
 
cpx
So, any reference gets destroyed upon return.
 
11:03 AM
All automatic objects ("local variables") get destroyed upon return.
 
@jalf so if editors only displayed it that way, it would be ok?
 
@rightføld So is the following code snippet well-defined?
int& f()
{
    int i;
    return i;
}

int main()
{
    std::cout << &f() << '\n';   // well-defined?
}
 
user1804599
@FredOverflow If you add = 0 then pretty sure it is until the third int. No idea about the rest. :D
 
Should I ask on SO? :)
 
user1804599
It's more interesting than N-tons, so I guess you should.
 
11:07 AM
pluritons
 
If only I weren't too lazy to ask...
 
I bet 1 of my SO points that it is.
 
cpx
All cases are ill-formed.
 
You are not taking the address, dummy.
Also compilers not behaving as the standard say is not a news.
So the fact that one compiler does something means absolutely nothing.
@CatPlusPlus Can I have your home address?
 
@FredOverflow That looks like a dangling reference to me.
 
11:11 AM
I would like to send you a present for no reason.
 
@Jefffrey is this your naked body at his doorstep
 
cpx
On GCC, it outputs:1 2 3
 
I just saw something and immediately thought that it's you I should give it to.
 
@Jefffrey No
2
 
11:12 AM
Oh
It was this btw.
 
aahahhahaahhaha
 
You want to give money to jeff
 
Yup. :)
 
dont
it will make him stronger
 
11:13 AM
> Atwood considers himself a reasonably experienced web software developer with a particular interest in the human side of software development. As he avers, computers are fascinating machines, but they're mostly a reflection of the people using them. In the art of software development, studying code isn't enough; you have to study the people behind the software, too.
 
Giving money to Jeffs is always a good idea.
 
I have never seen so little spoken in so many words
 
I love your attitude cat: never make anyone else stronger
 
> a particular interest in the human side of software development
 
IOW how to fuck with people
 
11:14 AM
A.k.a. how to (not) solve social problems with broken technical features
 
cpx
@Jefffrey Like this ideone.com/zVYemz?
 
@cpx yeah, I guess
 
> Who needs talent when you have intensity?
 
the world can't handle me being intense
 
cpx
Now, it outputs the addresses.
 
11:16 AM
> Building Social Software for the Anti-Social
> Life is the world’s biggest MMORPG
llol
hahaha I KNEW IT I KNEW THERE IS A WHOLE THING ABOUT GAMIFICATION
> All modern website design is game design.
 
we socialize by having arguments with everyone else
this is awesome!
 
> Everything I Needed to Know About Programming I Learned from BASIC
 
I knew you would love it this much.
 
Also oh god he does that random bolding in a fucking book too
 
meh, I didn't even hear of atwood before coming here lol
 
11:19 AM
see @Cat you should stop sucking and be awesome (like Jeff) instead
maybe Jefff likes him because of the name
 
It only needs self-quotes and it'll hit the atwood trifecta
 
There's some intensity between Jeffs
 
maybe jeffatwood has a fan base like apple does ... or a bunch of henchmen ... or both
 
he doesn't look that bad to me, just another average dev writing random stuff about programming
but I wouldn't know, I never read his stuff and I never used his software
well except for SO
 
I don't know what this book is really about but I know it's not worth 4$
I wouldn't be surprised if it's just his goddamn blog posts pulled together into an incoherent whole
 
11:21 AM
book or pizza, cat says pizza
 
I have a Xerox copy of my high school teacher's Xerox copy of Cormen
that's how far I go into not paying for books
 
cat like edible things it seems
 
@AlexM. You paid for a crappy copy instead good job
 
Joffrey Atwood
 
@CatPlusPlus hey, it was just $1.5
the book is some $80+
 
11:23 AM
maybe send the book with mayonnaise
 
I can read the text fine so I'm ok with the less than perfect quality
 
@CatPlusPlus whistles
@AlexM. I have a physical one my friend lent me 5 years ago
he never wanted it back
I think he got physically scarred for life by it
anyway I'd rather have Okasaki than Cormen :F
 
> trifffecta
 
jeff
 
cpx
11:26 AM
@FredOverflow: I turned off all the warning flags as said [here](http://chat.stackoverflow.com/transcript/message/20066651#20066651) and now it suddenly warned me.

"warning: returning reference to temporary [enabled by default]"
 
> Building, Managing and Benefiting From a Community
 
Ligatures really don't work in this font
 
:(
 
They work nicely in my chrome
 
11:27 AM
@CatPlusPlus they do for me
 
I use my own font remember
 
oh right you have monospaced chat
@CatPlusPlus sure I do
 
 
It's not Courier New this time
Probably
 
Hopefully
 
11:28 AM
@BartekBanachewicz I found Cormen to be very well written and understandable even as a high school student
 
wtb a good forum platform to extend
 
there was this other similar book written by some professors from Romania
 
It is fairly clear to me now that there's no point counting on good OOB experience
 
@AlexM. half of my class was psycho crazy about competitions back then; you had to read it
 
I found it very very hard to read and understand in HS
but the more I learned to more I started to understand it
 
11:29 AM
but then again people in my high school were pretty fucking good even then
 
and due to the nature of the things it discusses and how algorithms are presented
now I kinda like it more than Cormen
 
and then went and won IOI or something
 
it's shorter and more to the point
 
I never really liked those comps anyway, participated more to be not a social outcast that much
lol the irony
 
it doesn't waste time with explanations, and if you know the background (it assumes you do), it's a faster way to learn things
I participated at competitions in my first year of HS
I went to the national olympiad for both informatics and applied programming (some C# contest)
didn't do that well there and at home everyone decided it was a great opportunity to tell me how much of a failure I am
so I didn't feel like doing better next year
in the end I gave up on comps
the price I'd have to pay for failure was not worth it anyway
 
11:31 AM
I'm so lost in what's happening on Nomic
 
lounge game jams were best comps
WHEN THEY WERE
@Jefffrey when is the next game jam coming
 
Xeo
Unconference > game jam
 
@CatPlusPlus We're shaping it into what we have sorta kinda agreed we wanted it to be over the past turns.
Now we can do that faster than ever. :|
 
@BartekBanachewicz I hate making games.
 
Figure out ordering of events there I don't know if #318 passed before or after #317 was rejected (i.e. how many points)
 
11:34 AM
I have a nice idea for a game.
@CatPlusPlus There's no dependency, though.
If #317 passed, yes.
Oh.
Wait.
WAIT
 
It matters for how many points he loses
Because the scoring base changed
And now the great point recalc
 
@Xeo it wasn't a competition
unless you mean our dice game~
 
Bookkeeping is a nightmare atm
 
@CatPlusPlus No.
§206 was not changed.
Oh, wait, you're right.
 
@Jefffrey lol really?
 
11:36 AM
Shit.
@CatPlusPlus Fuck.
 
Guys.
 
@CatPlusPlus Jefff's profile lists the rejection first.
 
Also strategic voting is now possible so I'm gonna go ahead and propose that votes are secret until voting ends
We need to figure out how to do that best though
Or maybe you're already doing that I can't tell
 
@R.MartinhoFernandes ?
What changed?
 
@Jefffrey Does he get 15*1/4 or (317-291)*1/4?
(Latter)
 
11:40 AM
 
lol
@R.MartinhoFernandes Oh
right
 
Data races, yay.
 
it's friday, fuck yeah
now I'm not sure if I should order my weekend pizza today or tomorrow
 
> 0/10 wording not gender-neutral tsk tsk tsk
 
11:47 AM
@BartekBanachewicz shrug I guess your editor can do whatever it likes. I'd find it confusing, but if you prefer it, go for it :)
 
@Jefffrey what did you vote on first, 318 or 317?
 
Aligning things automatically isn't that hard
 
@thecoshman You're always on about solved problems, aren't you?
10 mins ago, by R. Martinho Fernandes
@CatPlusPlus Jefff's profile lists the rejection first.
 
@R.MartinhoFernandes vOv I don't have this feeding directly into my brain like you
 
Oh hey the menu list of categories is fucked up again
I don't even
Also 'uncategorized' is disabled
 
11:51 AM
lol
 
So good job team
 
I have no idea if I can post #322
 
I don't think I'm able to keep up with this stuff
 
1
Q: Defining Categories and Category Laws in Haskell

mbrodersenI am having fun learning Category Theory by directly translating the definitions and laws to Haskell. Haskell is not Coq of course but it helps me getting an intuition for Category Theory. My question is: is the following a reasonable "translation" of a definition of a category into Haskell? {- ...

some people are just bored
 
11:58 AM
@thecoshman I don't remember.
@BartekBanachewicz Never completed one and every time I try I become anxious and medical issues come up.
 
cpx
@FredOverflow: Okay, I figured. It was the -w in -Wmain -pedantic-errors -pedantic -std=c++11 -w -Wextra -Wall. It means "inhibit all warning messages". Maybe I turned it on because I thought the meaning of "inhibit" was to "enable something".
 

« first day (1497 days earlier)      last day (3455 days later) »