« first day (1383 days earlier)      last day (3564 days later) » 

user3010322
7:04 AM
@Rapptz It turns out, by supporting returning *this, this, and other references/pointers from functions, we also get "binding" for free.
 
user3010322
e.g...
 
user3010322
GameSettings gamesettings = loadsettings( "blah.ini" );
lua.set( "Settings", gamesettings );
lua.script( "settings.LowGravity = true;" );

std::cout << std::boolalpha << gamesettings.LowGravity << std::endl; // true
 
user3010322
Our wrapper is drastically simpler than everyone elses but is ridiculously powerful. o_o
 
@melak47 Hey, me too.
 
@ThePhD idgi
oh wait
I do.
 
7:13 AM
@ThePhD is this from the engine you've mentioned before?
the one that is not publicly released?
 
user3010322
@AlexM. No, this is just sol.
 
user3010322
@Rapptz Yeah. You can manipulate objects created in C++ just by passing an l-value or a pointer.
 
user3010322
It's pretty goddamn nifty.
 
user1804599
> Missing argument 18 for Dealer_model::create_location()
 
user3010322
 
7:17 AM
oh, so the thing above is just an example then?
 
user3010322
Yeah.
 
got it
whoa it looks cool
I'll check the code out later
I kinda wanted to do the same thing but for Prolog and didn't even know where to start
this should provide some pointers as to how stuff works
 
user3010322
Lol.
 
user3010322
Scripting in Prolog.
 
user3010322
u crzy.
 
7:19 AM
I wanted to try out writing a rule based system for my AI in Prolog but it's worthless if I can't call it from C++
I'd definitely not script in Prolog lol
there are some wrappers out there I think but they don't seem to do what I want (?)
 
you won't learn anything from the code base
 
didn't check them out that close but essentially what I need is something like: send prolog engine the thing to try to deduce, and get back the result
 
user3010322
No idea how prolog even looks, so.
 
trust me
there's too much 'magic' in it
 
user1804599
@AlexM. fork/exec!
 
7:21 AM
@Fanael no it isn't. Unicode defines "character" as a synonym for "abstract character", and an abstract character is a "unit of information". The letter 'a' (not the glyph, but the letter itself) is an abstract character. A code point is defined as an integer that falls within the range of the Unicode code space. It also just so happens that the letter 'a' maps to a single code point, but that is not necessarily always the case (see combining characters etc).
 
@rightfold well I thought of something like starting prolog itself and getting the result from where it outputs it but that seemed to be too obvious lol
thought there had to be a more clever way of doing it
 
user1804599
Implement a logic programming library with template metaprogramming!
 
then again
@rightfold lol
it's not like I have anything to lose trying it
 
user1804599
Sanity.
 
I'll just compile the prolog program, and pass the thing that needs checking as a command line arg
 
user3010322
7:24 AM
@Rapptz The magic isn't even that bad!
 
then read the output from wherever I tell it to write it
 
it is
 
@ThePhD are you a wizard?
 
user3010322
I think the 'dirtiest' thing done is the std::array<void*, sizeof(thing)>
 
django is magic, not prolog
 
user1804599
7:26 AM
Django is worthless shit.
 
worse
it's python's RoR
 
user1804599
Except better than RoR.
 
user1804599
But that doesn't really say anything.
 
I've heard legends of C++03 compilers (mainly microsoft's) mistaking the last two >s in <<>> (templates) as the >> operator
any way around this other than << > >?
because that's goddamn ugly
 
Microsoft had that fixed since VC6
 
7:27 AM
@AlexM. IIRC every "major" compiler had that problem
 
Not really
 
that was the grammar's fault
 
user1804599
@AlexM. didn't the standard say so?
 
@Jefffrey I thought that was friendship?
 
Only the shitty ones.
Most allowed you to bypass it as an extension
 
7:27 AM
@rightfold dunno
 
user1804599
C++11 fixed it.
 
@Jefffrey the "problem" of doing what the language spec says you have to do, yeah
 
I'm pretty sure VC was amongst the first to fix it.
 
most compilers suffered from that
 
@Rapptz weird, I'll have to try it myself; heard from someone in the company about it
 
7:28 AM
To be honest, most compilers have only gotten worse about that. If you consider standards compliance a bug, compilers are buggier than ever
 
@jalf if what the language spec says you have to do is a problem, then yes, it's a problem :)
 
when building for iOS and Android I won't be able to C++11 so I'll have to use a previous compiler
and the template thing was the first thing mentioned as a difference, IIRC
 
@Jefffrey it's only a problem if you expect it to work otherwise
 
The differences between C++11 and C++03 are pretty massive
 
and then I'd argue that the problem is in your understanding of the language you're coding in
 
7:29 AM
what I expect is totally irrelevant
 
@Rapptz the difference is 8.
 
There's a huge Wiki page with just an overview.
 
user1804599
@AlexM. don't build for Android, problem solved. :P
 
@Jefffrey yes, it is. What you expect >> to mean is irrelevant, because the standard says what it actually means
 
@Rapptz yeah I knew some of them, others were listed to me; I think the template thing was mentioned first because my current C++11 code wouldn't even compile when downgraded
 
7:30 AM
oh wait
why am I discussing with jalf again
 
Well. Visual Studio doesn't have this issue.
 
@Jefffrey you tell me
 
I'll have to see what compilers I'll have to use
my guess is something GCC
 
@jalf lol
 
hmmm, need music to listen to
 
7:36 AM
sunny day today
I'm sure it will rain until the evening
but at least it's sunny now
 
7:47 AM
0
A: Why are VB.NET and C++ giving different results for same expression?

FredOverflowThis answer was intended as a comment, but its length quickly exceeded the limit. Sorry :) You are confusing operator precedence with evaluation order. (This is a very common phenomenon, so don't feel bad). Let me try to explain with a simpler example involving more familiar operators: If you h...

Somehow I feel like I've written this answer before.
 
y = x + (x=y)*0;
 
y = x + (x=y)*0; What is with this line today, you're like the 3rd person. — user657267 32 mins ago
 
why would one write this
 
Probably a homework :P
 
user1804599
@FredOverflow In Haskell they aren't evaluated at all. :D
 
user1804599
7:54 AM
inb4 xkcd
 
user1804599
@AlexM. In Scala that's a type error, since x = y is of type Unit. :D
 
user1804599
Assignment returning a result is a terrible idea and violates command–query separation.
 
yay, I used a tag
 
user1804599
In functional programming you have no assignments at all.
 
7:56 AM
@rightfold the guy behind Websharper was chatting in F# yesterday.
 
@rightfold I kinda agree with that
 
user1804599
@JohanLarsson oh cool.
 
in my view, it's illogical for assignments to return
 
user1804599
lol
 
7:56 AM
in F#, 9 hours ago, by toyvo
mm, probably way overkill :) will think about this more. thx!
^ random message so you know who he is.
 
user1804599
@FredOverflow Students' strictness analyzers are not yet fully developed.
 
user1804599
Oh that guy.
 
user1804599
I talked to him.
 
@rightfold One of those reasons you just gotta love Scala!
 
@rightfold Check his profile
 
user1804599
7:58 AM
> An opinionated functional programmer who has never written a line of C, C++, and hopes to never have to do so.
 
user1804599
Nice.
 
@FredOverflow lol
I don't understand what's so difficult to understand about passing the request object to the route handler. Seriously.
80% of python frameworks use some kind of global request/context. Why.
 
user1804599
@Jefffrey It's too difficult for people who have no idea what they are doing.
 
user1804599
And that's exactly the audience of such libraries.
 
Request -> Response is probably the simplest way of understanding web serving.
 
user1804599
8:02 AM
IMO, this talk describes such libraries quite accurately.
 
user1804599
@Jefffrey Well, I prefer (Request, ConnectionInformation) -> Response.
 
user1804599
Remote IP, for example, isn't part of the HTTP request.
 
user1804599
@Jefffrey the tutorial would have to say that a request handler is defined as def f(request) = ... and then it would have to explain what requests are.
 
user1804599
That's too difficult for morons.
 
You keep linking that talk.
I guess I might as well watch it
 
user1804599
8:13 AM
People keep asking for it. vOv
 
got nothing else to do
 
I'm dum
2
I keep setting fullscreen, forgetting that slides on the page, not the video.
 
> return new JacksonSafeRepresentation<HashMap<String, HashMap<String, HashMap<String, List<String>>>>>(map);
 
sbi
@jalf And here I thought the sound of people disagreeing with your opinion is music to your ears. :)
 
8:20 AM
talk is too boring
meh
 
YABT (yet another Bjarne talk)
4
 
sbi
@Rapptz: You could go back arguing with the penguin.
 
another problem with C++, sbi? :P
 
sbi
No. I have a problem with the weather. :)
 
oisee
 
8:27 AM
it's damn hot here =(
 
@rightfold Is he really saying testing is useless?
 
@sbi Have you tried turning it off and on again?
 
@ParkYoung-Bae Use Java 7 instead?
 
user1804599
@Jefffrey I don't know, probably not.
 
sbi
I am sitting in a tent in some French place with an unutterable (for me) name and wait for the raining to stop in order for us to be able to pack or stuff, mount our bikes, and proceed.
 
user1804599
8:28 AM
I forgot that part.
 
@sbi It's meltingly hot and sunny here, again.
 
jesus again
 
@sbi What's the unutterable (for you) name?
 
clicked fullscreen again
 
sbi
@Park I keep turning on my phone to check the rain radar -- so far too no avail, though.
 
8:29 AM
I should flush my brain cache
 
sbi
@Park Gondrexange.
 
Ooh, Lorraine
 
user1804599
WTF DYMO
 
sbi
Typing on the phone is a nuisance.
 
user1804599
> Click here to visit the DYMO download section and download the Windows SDK.
 
user1804599
8:31 AM
So I click the button and it goes to the homepage. :|
 
user1804599
Bunch of morons.
 
sbi
It took me an arm and a leg to get at this link.
@Park:
2 hours ago, by sbi
@melak I didn't do nothing to your computer. I spent yesterday cycling though Lorraine, and the evening pitching a tent and having a good meal at a local restaurant.
 
Xeo
Hm, I should get a new phone
 
@sbi That's a region I've not visited much - how's the food?
 
sbi
Anyway, my son finally woke up (those teens cab sleep forever!) and so it's time for breakfast!
 
user1804599
8:35 AM
> DYMO_Label_v.8_SDK_Installer.exe is an executable file. For security reasons, Gmail does not allow you to send this type of file.
 
user1804599
WHAT THE FUCK GOOGLE I SEND IT TO MYSELF
 
put it in a .rar
 
sbi
@Park It's all French to me.
 
user1804599
argaghrgraghragh
 
don't put it in a .zip
 
user1804599
8:36 AM
Cannot create RARs without WinRAR.
 
sbi
See you!
 
it will just find out the zip contains an .exe
 
user1804599
I'll try tar.gz.
 
might work, no idea
 
@sbi See you! Hope the rain will end soon :) enjoy your trip
 
8:36 AM
otherwise, just use dropbox
 
I think we need some more post-mortem comments on this nonsense:
The assertions of LRIO above is contradicted by numerous uses of "reference to" in the C++11 standard, uses where it does not refer to reference type. These cases include §20.7.2.3/1, §20.8.3/1, §20.8.3.1/1, §20.8.3.1/2, §20.8.3.2/1, §30.4.2/1, §30.6.4/5 and possibly even §5.17/6 about the assignment operator (although that's less clear). It is so because the people writing the standard are ordinary intelligent folks, able to understand the concept of context. It's a shame that the mods have removed most of this commentary thread on the assumption that LRIO's nonsense and flagging was valid. — Cheers and hth. - Alf May 25 at 22:41
 
@LightnessRacesinOrbit Dude it's morning pls stop
 
how do you read §?
 
user1804599
> sdk.tar.gz contains an executable file. For security reasons, Gmail does not allow you to send this type of file.
 
8:37 AM
section
 
user1804599
google y u no get cancer
 
oh ok
 
section 5.17 paragraph 6
 
is it part of some alphabet?
 
haha
auto int f(int, int) -> int; shudders. Why the trailing return type? — rubenvb Jul 25 at 15:13
red rag to a bull
@ParkYoung-Bae :D
 
8:38 AM
@ParkYoung-Bae oh, a link
 
@AlexM. "section"
 
I googled for the character but couldn't find shit
 
@ParkYoung-Bae ¶ means paragraph
 
Ooooh
Looks like it differs from french where § is paragraph
Sorry! Edited my post
 
user1804599
Changed the file extension to JPG and now it worked.
 
8:39 AM
no, not really, since ¶ (paragraph) comes from French
> According to the Oxford English Dictionary, the word pilcrow "apparently" originated in English from an unattested version of the French pelagraphe, a corruption of paragraph; the earliest reference is c.1440. The Oxford Universal Dictionary says it may be from "pulled [plucked] crow," based on its appearance.
 
§ est un symbole typographique qui sert à désigner un paragraphe dans un renvoi (par exemple, « voir ouvrage de G., chap.6, § 7. »). Il est suivi d'une espace insécable et des caractères désignant le paragraphe auquel il renvoie. Il est parfois doublé pour indiquer plusieurs paragraphes (par exemple, « voir ouvrage de G., chap.6, §§ 7 à 10. »). Cependant le Lexique des règles typographiques en usage à l'Imprimerie nationale (article « Abréviations ») indique que le redoublement d'un signe ou d'une abréviation pour indiquer le pluriel est à proscrire. Dans le même ouvrage, le signe « § » est précédé...
@LightnessRacesinOrbit yes, yes really
 
also how much time does Alf spend with the standard, he always seems to have a reference ready whenever contradicting someone
 
user1804599
Ugh French.
 
user1804599
What a horrible language.
 
@AlexM. He married the standard years ago
 
8:41 AM
@AlexM. we all do
 
@AlexM. that's not unusual here
 
I must be the weird one then lol
 
> autrefois
 
8:42 AM
> i'm so glad you're wrong
 
... fly foot?
(pied-de-mouche)
 
@AlexM. yes
 
@AlexM. so it seems
 
@LightnessRacesinOrbit Don't force me to find a reference by the French Academy you islander
 
@sbi what gave you that idea? People disagreeing with me is an aberration that must be corrected at any cost. :P
 
@ParkYoung-Bae you might as well find a reference by the Khan Academy
 
@LightnessRacesinOrbit The one by Gengis you mean?
 
@jalf yeah by correcting your opinion ;p
@ParkYoung-Bae sure
 
8:52 AM
@rightfold May I suggest you use Dropbox instead?
 
ahaha lol this @Jefffrey yt video
I am so sending this to my soon-to-be boss.
 
Btw ¶ marks the end of a paragraph in French
 
so backwards
 
Why? It's its original function
Looks like English modified it
 
@ParkYoung-Bae here too I think
 
8:55 AM
who cares about the end of a paragraph? :v
 
user1804599
@FredOverflow No.
 
@Rapptz many, many people
@ParkYoung-Bae Not really no
 
@LightnessRacesinOrbit How about yes
 
why don't you just stick to Korean eh
 
@ParkYoung-Bae as does Word
 
8:57 AM
@ParkYoung-Bae Oh ok you're an expert on English didn't realise sorry
@FredOverflow can we not mention Word please
s/Word/Notepad++/
 
@LightnessRacesinOrbit Nice try
 
@ParkYoung-Bae thanks
 
I give it a solid 2/10
 
@ParkYoung-Bae Your last poo was a solid 2/10
 
And it seems it gained life because here you are
 
8:58 AM
Actually. The scale for poo is out of 7.
hth
 
@Rapptz y
@ParkYoung-Bae haha touché
at least you recognise that I am alive
 
The Hubble Space Telescope (HST) is a space telescope that was launched into low Earth orbit in 1990 and remains in operation. With a 2.4-meter (7.9 ft) mirror, Hubble's four main instruments observe in the near ultraviolet, visible, and near infrared spectra. The telescope is named after the astronomer Edwin Hubble. Hubble's orbit outside the distortion of Earth's atmosphere allows it to take extremely high-resolution images with almost no background light. Hubble's Deep Field has recorded some of the most detailed visible-light images ever, allowing a deep view into space and time. Many Hubble...
> The Allen Commission found that the main null corrector, a testing device used to achieve a properly shaped non-spherical mirror, had been incorrectly assembled—one lens was out of position by 1.3 mm.[59] During the initial grinding and polishing of the mirror, Perkin-Elmer analyzed its surface with two conventional null correctors. However, for the final manufacturing step (figuring), they switched to a custom-built null corrector, designed explicitly to meet very strict tolerances.
> Ironically, this device was assembled incorrectly, resulting in an extremely precise (but wrong) shape for the mirror. There was one final opportunity to catch the error, since a few of the final tests needed to use conventional null correctors for various technical reasons. These tests correctly indicated spherical aberration. However, the company ignored these results, as it believed they were less accurate than the primary device which reported that the mirror was perfectly figured.
lol null strikes again, in space :)
 
> entire article
 
Google's getting better at this
 
@LightnessRacesinOrbit There are only 7 types of shit.
 
8:59 AM
jesus christ
@BartekBanachewicz yeah it's good at context and synonyms lately
 
lol
 
kinda scary when you think about it
 
@FredOverflow TLDR, they got it wrong in a very consistent fashion. I hope all bugs are like this.
 
I've just realised how much I take Aero for granted nowadays
 
It's just when Win 8 was released that Aero's been very much thought of.
 
Xeo
9:03 AM
I don't care much about aero
 
@LightnessRacesinOrbit Hm, maybe you installed Windows 8...
 
@rightfold tl;dw: state sucks, complexity sucks, tests won't help you, use clojure or haskell
 
@MarkGarcia yeah
 
@Jefffrey thanks man.
Saved me an hour
 
user1804599
@Jefffrey he doesn't say tests don't help you.
 
@rightfold 15:31
 
user1804599
No Flash here.
 
user1804599
Nor audio.
 
Xeo
... coliru still down? :(
 
@Rapptz you should've figured out that "use haskell" is a solution to most of the software problems nowadays :P
 
9:07 AM
@Xeo Works for me
Except everything compiles to Internal Server Error
 
Xeo
yeah
 
PROBABLY UB
 
C++ is pretty hard. Even "Hello World" prints "Internal Server Error".
 
@ParkYoung-Bae I wish today's April 1.
 
the only day coliru won't be down will be april 1
 
Xeo
9:10 AM
oh FFS GCC
or C++03
or whoever made it so that is an error
 
@Xeo enum class?
> language: C++ 4.8.1
lolwat
 
compiles fine in C++11
@Jefffrey GCC version nub
 
Xeo
@Rapptz ye
 
I know :/
 
Xeo
I didn't even know that was not allowed in C++03
like... Whyyy
 
9:13 AM
I thought you couldn't say enum T { X }; T::X;
 
you can
 
I see
 
in C++11 you can anyway
 
I thought it was MS extension TBH
 
apparently you couldn't in C++03
 
9:15 AM
yep.
VS will compile it.
See it had C++11 in 2008
 
Very Sophisticated
 
@MarkGarcia I did not
@MarkGarcia nevah
 
@BartekBanachewicz Control.Monad.Ref are like variables?
 
I've seen screenshots of Metro and I want no part of it
(the 1990s called)
 
(they want lightness the old guy back)
 
ok, that's ugly
 
the borders aren't "metro"..
 
years of improving Windows's interface and then this that
 
@LightnessRacesinOrbit WTF. That isn't Win 8 at all...
 
the flat borders look fine
 
9:19 AM
@MarkGarcia sure?
 
though imo they should have made the colour consistent
kinda weird to have different border colours for every window
 
@LightnessRacesinOrbit Using it right now.
 
@LightnessRacesinOrbit it's just an app
 
9:21 AM
I find it sexy TBH.
 
Live tiles are nice.
 
Then I remember it's Windows and my dick just can't get hard.
 
Though that article's app screenshots have a different typography style.
 
@Jefffrey not that. I compare the desktop theme
 
@LightnessRacesinOrbit it is the desktop theme
 
Ell
9:23 AM
Anyone can make ugly programmes
 
@Jefffrey No. No, it isn't.
 
@LightnessRacesinOrbit It's aero (transparency and stuff) without the glassy feel.
 
@MarkGarcia and everything is rectangular. It's awful
 
it looks terrible yes
 
yes, they are doing that "desktop just like mobile" stuff everybody is going for
 
9:24 AM
there are no highlights or shadows or anything. just big blocks of unbordered colour
@Jefffrey which is retarded
@Jefffrey and you're confusing the touch start menu oojimaflip for a "desktop"; there is still a "desktop" in Windows 8, complete with visual styles for individual windows
 
@LightnessRacesinOrbit Yeah, but, really, I haven't really cared.
 
@LightnessRacesinOrbit That's not how it looks now
 
@Rapptz plz2fix :D
 
@LightnessRacesinOrbit w/e nerd
 
9:25 AM
yep
 
@LightnessRacesinOrbit That.
 
right, and it's fugly
 
my eyes
 
the orange is pretty bad yes
 
also, backtracking to 1992 or whatever, those random icons in the topleft of the window that Ribbon UI introduced are superderpy
 
9:26 AM
what the fuck is going on with that topbar
 
the ribbon UI is pretty bad, yes
 
awful
 
@Rapptz I disagree to that when it comes to Office. I actually find it easier to navigate.
 
Ribbon UI is terrible
 
Ribbon buttons need some familiarization of their positions though, as their not really that hierarchically organized.
 
9:29 AM
it's the reason I stopped using Office
 
9:42 AM
It's the reason I cannot work on non-MS office packages anymore.
 
I cannot work in office packages. I don't care who makes them, they're all terrible and painful and not something I want to spend any time with :/
 
Xeo
...
MSVC doesn't warn on void f(int*); f(false); :(
 
Isn't that equivalent of passing NULL or a nullptr?
 
9:57 AM
@JoshuaWaring It should warn.
If a compiler let's this compile without any diagnostic, the compiler is shitty.
 

« first day (1383 days earlier)      last day (3564 days later) »