« first day (856 days earlier)      last day (4317 days later) » 

11:00
@R.MartinhoFernandes It's in cctype IIRC
so my solution with transform for lowercasing a std::string is invalid?
@Zoidberg Oh, by -1 he meant (unsigned)-1.
@TonyTheLion Don't listen to @R.MartinhoFernandes, he is crazy about strings.
-1 is not representable as an unsigned char.
109
Q: STL String to lower case

KonradI want to convert an STL String to lowercase. I am aware of the function tolower() however in the past I have had issues with this function and it is hardly ideal anyway as use with a string would require iterating through each character. Is there an alternative which works 100% of the time?

11:01
It may be the value of EOF, but what about -2?
I got it from here
@TonyTheLion You can replace tolower with [](char c) { return tolower(santized(c)); }
@FredOverflow do you know how wrong that sounds :P
user142019
stringToLower :: String -> String
stringToLower = map toLower
user142019
How wonderful.
11:02
7 mins ago, by FredOverflow
std::string foo(std::string s)
{
    std::transform(s.begin(), s.end(), s.begin(), ::tolower);
    return s;
}
Just use this and tell the pizza delivery boy we say hi.
You didn't get the innuendo
:(
user142019
I need more sex.
@TonyTheLion I didn't get the Nintendo?
@Zoidberg How much do you have now?
@FredOverflow -1
user142019
11:03
@FredOverflow I don't really give a fuck.
user142019
@TonyTheLion indeed it overflowed! :(
@StackedCrooked wtf is sanitized?
@FredOverflow this resource requires non trivial initialization, so I can't properly initialize it til a constructor of the class has been supplied with the necessary things. So I can't make the static member const, so I can't initialize it in the class body (to null or something)...so where do I initialize it? :/
> The REAL REAL WTF is all the ToLower() fanboys here, when ToUpper() is obviously superior. There's nothing a totally lowercase string can do, that a totally uppercase string can't do louder.
user142019
@TonyTheLion made sane.
11:04
@Zoidberg You should give a fuck to receive a fuck!
@TonyTheLion signed or unsigned?
@R.MartinhoFernandes ahahahahah
user142019
@FredOverflow ahahahahah
@TonyTheLion You decide.
@melak47 Make it a static factory function that returns a reference to a static local.
meh
that's entirely unhelpful
11:05
@melak47 Wait, the first object initializes the static? That sounds weird.
unsigned char sanitized(unsigned char c)
{
    return c;
}
user142019
Stupid Visual Studio.
@Zoidberg and they do exactly that too. Last time I checked, you weren't on the java fan club mailing list lol
user142019
Solution file y u corrupt.
@doug65536 github
11:06
@Zoidberg Someone must have bribed it.
user142019
I shut down my computer without closing VS.
@BartekBanachewicz hi, what's the project name?
user142019
VS Y U NO ATOMIC WRITES YOU FUCKING PIECE OF JUNK.
user142019
It ain't rocket science.
@Zoidberg What do you mean "shut down"?
11:06
I'm really confused now
@doug65536 Minicraft. But it requires Engine as a dep.
Pull the plug?
user142019
Yes.
user142019
But it ain't rocket science: write to temp file then move temp file to right location.
user142019
11:07
That's the way you save files.
You pull the plug and then "Solution file y u corrupt."?
@FredOverflow well, my object needs a ID3D10Device, but only these objects need them, the rest of my program uses a D3D11 device...so keeping the D3D10 device somewhere else but this class doesn't seem too great. But I can't create this device until the D3D11 device has been created.
user142019
Other ways are bad.
user142019
How is that related? xD
11:07
should I use std::transform(s.begin(), s.end(), s.begin(), ::tolower) or not?
@Zoidberg Oh, shut up. You only have yourself to blame here.
user142019
Nope.
user142019
VS is poorly written.
@TonyTheLion Better not.
user142019
And bugged.
11:08
You shut down your computer by pulling the plug.
in fact, it's generally better to never, ever, use tolower.
@Zoidberg It's about ACID and stuff.
That's what noobs do.
user142019
@FredOverflow oh. :P
user142019
I always do that and never anything went wrong.
11:08
@BartekBanachewicz any reason you're not using VAO?
user142019
And now I use Windows for once and boom everything is borked.
@DeadMG so what do I use instead then
@doug65536 I am using VAO -.-
Xeo
Xeo
That's the same argument noobs give when invoking UB.
@TonyTheLion You should use Haskell.
user142019
11:09
> MongoDB will run circles about MySQL, because MongoDB is webscale.
user142019
lol
My surprisingly popular “Don’t use f*cking pointers” presentation now available as HTML: http://klmr.me/slides/modern-cpp and PDF (just append “.pdf”)
@Zoidberg "Is /dev/null webscale?" lol
user142019
:P
@BartekBanachewicz yes, I see it. sorry, the class wrapper hid it
11:10
so
@R.MartinhoFernandes was already posted
@TonyTheLion Better to find a real Unicode support library.
time to find out how badly the Wide prototype barfs on multiple files
@DeadMG ffs
no
what?
I'm not going to add an entire library just to make some strings lowercase
11:11
::tolower won't handle any kind of non-English characters.
Hmm, that reminds me. I only have single character tolower.
Question: why do you want to lowercase the strings?
@TonyTheLion You're going to have to unless you can guarantee in advance that the strings only contain ASCII content.
@Zoidberg I like how he's talking about his work on the farm :)
or you might be able to dig out some Windows API function for it or whatever
user142019
@FredOverflow me too. :P
11:12
And adapting that single-character tolower into a string tolower doesn't quite work without bind.
@R.MartinhoFernandes cool
char to_lower(char x)
{
    return 'a';
}
@FredOverflow ?
@R.MartinhoFernandes because I don't want it to matter whether there is upper or lowercase versions of the string in my input
@doug65536 wrap all the objects
11:14
@BartekBanachewicz Also works with ümläüte!
I have an idea how to fix my algortihm btw
@TonyTheLion Unless you have a very limited range of possible inputs, tolower(x) == tolower(y) is not a case-insensitive comparison.
I had another one in the middle of the night, but I forgot it
If you only have ASCII characters, then go ahead.
Xeo
Xeo
@R.MartinhoFernandes Why?
11:15
Fuck C++, seriously
Ell
Ell
hi guys
silly linux doesn't work
@Ell uninstall
It's not about C++.
right
time to implement ... Return Type Deduction!
@FredOverflow could I make like a.. static ID3D10Device* gimme(ID3D11Device *d11devptr) { static ComPtr<ID3D10Device> d10device( CreateD10D11InteropDevice(d11devptr)); /* ComPtr is a uniqe_ptr */ return d10device.get();} ? is that what you meant by factory function?
11:16
@Xeo because its signature is text<...>(code_point)
@TonyTheLion It's about strings and Unicode and stuff, you have that problem in every language.
Ell
Ell
@BartekBanachewicz I'll just use vbox from now on
user142019
I think I got about half of the AST classes done. gist.github.com/daknok/4976684
@Ell thank god
@TonyTheLion The only thing specific to C++ is that the Standard does not ship with Unicode tools and most other more modern languages do.
Xeo
Xeo
11:16
@R.MartinhoFernandes Oh, right, since lowering the case might produce more chars, eh?
Ell
Ell
now I will need to recompile libraries >.<
Right. So I need bind to flatten the result.
Fuck computers, let's go back to pen and paper
Xeo
Xeo
Aka Luc's concat_map.
user142019
11:17
@TonyTheLion good idea.
Xeo
Xeo
Heh, I see now.
we didn't need to worry about Unicode with that
Ell
Ell
@BartekBanachewicz what is your github name again?
@TonyTheLion Are you saying people never used ß before the advent of computers and Unicode?
11:17
4
A: Can I return a reference to a static class (singleton) instance within that class in C++?

celtschkIt is possible to have a static instance, but it is not desirable to have it at class level because it may then happen that it is not yet initialized on access (due to the not completely defined static initialization order). Instead you should use a function-local static: class Foo { private: ...

Or Arabs never wrote anything?
the diversity of human writing systems came well before Unicode existed, or computers for that matter.
@R.MartinhoFernandes no, I'm saying that when writing it, you didn't have the problems you have when dealing with on a computer
ie, you just write it and be done with it
You didn't need to worry about Unicode because computers had not brought so much diversity together easily.
@R.MartinhoFernandes We didn't have encodings back then.
11:18
@TonyTheLion Because they didn't deal with text in unknown languages.
you just wrote German (or whatever) and that was that.
if you write your program to only ever deal with German, then you can still do something similar.
I know, that destroys Robot's entire purpose of existence, but hey.
user142019
> [When I implement a singleton, kittens die.]
@FredOverflow I guess that's a yes? :)
@TonyTheLion I just told you that if you only have ASCII characters, there is no issue.
user142019
Well that may actually be true and that wouldn't surprise me at all.
user142019
11:20
There are so many kittens sure some die every now and then.
@R.MartinhoFernandes I know, and I've concluded that I'm going to stick with it
@melak47 If you use a reference instead of a pointer, then yes. But it's highly unusual to pass arguments to a factory function that are ignored every time except the first call. Any fellow coder will give you a serious WTF about that.
If you're just doing that for personal fun, you might get away with it. But our eyes are on you!
user142019
Factories are bad.
user142019
Give me polymorphic ctors already.
user142019
Smalltalk-style OOP ftw.
11:21
@FredOverflow ...? the factory function will just be called once, when the static variable is instanced?
@Zoidberg Example of usage?
@melak47 No, you call the function every time you need the object. How else will you access it later?
user142019
@FredOverflow [[NSString alloc] init] :v
wit
wet
11:22
@BartekBanachewicz did you put glew.h in your compiler's include/gl directory?
user142019
@FredOverflow you allocate an instance of a class and then initialize it.
@doug65536 i did it for all my projects, so possibly I forgot to add it, yes
Also
I FIXED DAMNED 0 ROUNDINGS
x += t * nx;
y += t * ny;
z = static_cast<double>(current_z);
@Zoidberg How is that polymorphic? What do you even mean by polymorphic constructor?
@FredOverflow hm, well, yes I suppose nothing is done with the argument after the first call to the function
Not pretty, but ensures that z passes 0 (changes sign)
user142019
11:23
@FredOverflow well, consider this:
@Zoidberg "Relational data bases have impotence mismatch" xD
user142019
NSObject* foo = [NSString alloc];
[foo init]; // polymorphic ctor! :D
@FredOverflow but the only other option I see is creating a new device for each instance of the class, and that doesn't seem desirable either :/
I'm not deep enough in your system to prescribe further actions.
Xeo
Xeo
11:25
@Zoidberg Aka... Foo* foo = new Foo(); foo->init();? If yes, wat.
that's a highly epic fail
public two-phase initialization?
@R.MartinhoFernandes WUT?
That's how we roll.
hmmmmm
Case insensitive comparisons have nothing to do with touppers and tolowers. .NET gets it right, if you use the right tools.
11:27
@doug65536 Just pushed fixed raycasts
I think that I have written the analyzer so that decltype is implicit.
oh well
user142019
@Xeo :D
The Turkish alphabet, which is a variant of the Latin alphabet, includes two distinct versions of the letter I, one dotted and the other dotless. The undotted I, I ı, denotes the close back unrounded vowel sound (). Neither the upper nor the lower case version has a dot. The dotted I, İ i, denotes the close front unrounded vowel sound (). Both the upper and lower case versions have a dot. Examples: *İstanbul (starts with an i sound, not an ı). *Diyarbakır (the first and last vowels are spelled and pronounced differently) In contrast, since there is no second sound in Turkish which i...
user142019
[NSString new] is also possibru!
11:28
@R.MartinhoFernandes Oh. Damn, I read the Compare test with the wrong way. Yes this makes perect sense. I forgot that Compare == 0 means equal :) I took it to mean 'false'
user142019
This is also allowed. :P
@R.MartinhoFernandes I know that. The hint is kinda obvious what with "TR-tr"
@FredOverflow I'm making a Text rendering class. for D2D/DirectWrite <-> D3D interop, a D3D10 device is needed. nothing else in my program needs a D3D10 device, and it would be desirable to create all text instances with the same device. so where do I keep the device pointer? I have a GraphicsDevice which owns my D3D11 device, but sticking it there seems ugly, since it has no other use except for the Text class
user142019
- (id)init {
    return [[OtherClass alloc] init]; // ctor returns completely different object with different type and different address!
}
@melak47 Environment monad!
11:29
@Zoidberg dude.
fucking freezing my tits of
Xeo
Xeo
@R.MartinhoFernandes Wait, then why are they considered to be the same when being case-insensitive?
@thecoshman about time
@BartekBanachewicz do you have a license for those textures? :D
@sehe huh?
11:30
@Xeo Added another print statement ideone.com/ngeC50. Does it help?
@thecoshman you should say?
@melak47 the mojang licence, we don't give a fuck
Xeo
Xeo
@R.MartinhoFernandes Ah, yes.
Hi all!
@melak47 How about no?
11:30
@sehe ¬_¬
@Zoidberg lol just noticed the feedback sound @ 0:06
@thecoshman lol idgaf either :p
user142019
@FredOverflow ?
@BartekBanachewicz is that red thing a ray being cast?
user142019
11:31
Oh yeah. xD
user142019
That annoying sound.
@melak47 ?
@Xeo The last one is the default comparison mode.
Hiya folks! :D
Xeo
Xeo
That sounds better.
11:32
Glad to see some familiar faces here! :D
@melak47 Yup, all the cubes were made by a succesive voxel traversions along the ray.
Can't understand, why my simple example doesnt' work:

std::map <string, char> testmap;
testmap["John"] = 'B';

include <map> is done.
If I hover testmap in first line, VS2010 shows tooltips, that it's std::map.
But in second line - it doesn't show as std::map. It thinks it is declaration of array int[] and error is that instead "John" should be a integer constant
@BartekBanachewicz Whats up?
@thecoshman idgaf = I don't give a fuck
@Innuendo doesn't compile? Also std::string
11:33
@Innuendo have you #include<string>?
@melak47 ah
@GamesBrainiac The sky.
Also std::string.
Also IntelliSense is not trustworthy.
user142019
I dislike std::string.
@Innuendo broken intellisense? meh. If it compiles, you're probably good. But have insurance, it is MSVC after all
11:33
If I download from YouTube, should I pick flv or mp4? Is flv just a wrapper around mp4? Will the mp4 be generated on the fly, or is it native YouTube?
@Zoidberg : How come? Its pretty useful
@FredOverflow mp4
yeap, doesn't compile.
include <string> is there too.
using std; is there too
@FredOverflow I think flv is just a container.
@GamesBrainiac He sucks
11:34
@FredOverflow what is native depends on upload, I guess. flv is flash IIRC. mp4 is mpeg...
using std; is invalid
@BartekBanachewicz : Hey, come on...
user142019
@GamesBrainiac Yes PHP C is also useful and I dislike it too.
Lets all be friends here
user142019
No. Not with Tomalak.
11:34
@Zoidberg : lol
Oh, we all like zoidberg
First of all it was in VS2008. I've decided it's time to come to 2010... and in 2010 the same thing
he is like our pet or something
lol again...
@Innuendo give compile error
user142019
11:35
I may be a pet but I bite and attack without mercy.
@FredOverflow I think the flash files will be h.264 (or maybe h.263 idk), but the mp4 is usually larger, and I think if the user uploaded an mp4, should be (close to?) that original
@Innuendo makes sense. intellisense
@Zoidberg roawr
user142019
woop woop woop woop woop woop woop woop woop woop woop woop woop woop woop woop
@sehe dat pun.
11:35
it doesn't compiles with 4 errors.
I'll by mistake installed russian version, i'll try to translate them as they are in original =)
@Innuendo oh god dammit
@BartekBanachewicz engine.h is missing
user142019
@sehe DumbSense?
user142019
I should write something in Objective-C again. It's been a long time.
guys, how do you make a greater than function for a class in c++? I mean, I made these in python, and I know c++ supprorts it, so anyone made 'em?
user142019
11:36
Objective-C is like C++++.
@doug65536 sorrry
Feb 14 at 17:21, by Bartek Banachewicz
#pragma once
#include "VertexAttributeArray.h"
#include "VertexBuffer.h"
#include "Shader.h"
#include "Camera.h"
#include "ModelData.h"
You like it that much?
@Zoidberg don't get all sentimental now
11:36
@BartekBanachewicz git status will tell you what's missing
oh just skip it ok
user142019
@GamesBrainiac bool operator>(myclass const& a, myclass const& b) { ... }.
1) expected constant expression
2) cannot allocate an array of constant size 0
i see
@Zoidberg thanks
330
Q: Operator overloading

sbiWhat are the basic rules and idioms for operator overloading in C++? Note: The answers were given in a specific order, but since many users sort answers according to votes, rather than the time they were give, here's an index of the answers in the order in which they make most sense: The Gener...

All you ever wanted to know.
user142019
Similar to how you do it in C#.
11:37
that was a lot better than the stupid documentation
@FredOverflow pls respond? ._.
user142019
And probably in Zoidlang too.
19
Q: Implementing comparision operators via 'tuple' and 'tie', a good idea?

Xeo(Note: tuple and tie can be taken from Boost or C++11.) When writing small structs with only two elements, I sometimes tend to choose a std::pair, as all important stuff is already done for that datatype, like operator< for strict-weak-ordering. The downsides though are the pretty much useless...

@melak47 Ask on SO.
@GamesBrainiac pardon me. The document isn't stupid because you failed to understand the error messages
@FredOverflow thanks for that too
11:37
3) missing type specifier - int assumed
4) testmap: "int []" differs from std::map<_Kty,_Ty>"
@GamesBrainiac This was very googlable. And you'd have found a gazillion similar questions/answers on Stack Overflow
@sehe : Its just that zoid is a lot better @ explaining things
user142019
lolwat.
@GamesBrainiac he didn't. Explain. Anything
@Innuendo What line of code causes that error?
11:38
@FredOverflow are "where should I put this" / "what pattern should I use" questions welcome?
user142019
@sehe I gave an example, which is worth a thousand explanations!
@sehe : he did, showed me everything i wanted
@Innuendo Full test case, please.
@Zoidberg : Pardon me, but thanks a lot man
I appreciate it
@GamesBrainiac that's not explaining
11:39
@melak47 As long as you provide some code and tag it appropriately, why not?
user142019
I appreciate your appreciation.
@sehe : an example is all i need
@GamesBrainiac On the first encounter? What a slut.
user142019
@FredOverflow Why not @Zoidberg?
@GamesBrainiac I know. That's what you think you need. See you next time you fail to parse an error message...
user142019
11:39
Hey I didn't get plinked.
user142019
Can you plonk yourself? :)
user142019
Using AJAX calls.
@Zoidberg Nope.
@Zoidberg I'm not that desperate...
@sehe : Why all the hate man?
11:40
@FredOverflow, line testmap["John"] = 'B'; causes error
user142019
Don't use C++.
user142019
All C++-related problems solved.
@GamesBrainiac Hate? I don't see any hate. Why the eye blinders, man?
There's no hate involved.
user142019
Except for the not enough Boost one.
11:40
@Innuendo How was the testmap declared?
@Zoidberg lol
user142019
@FredOverflow Not, hence the error.
whats with boost?
@R.MartinhoFernandes, full test case - I'll try to simplify all code.
I've added it to project that works fine... so, other code should be fine.
I'll delete all the rest, and give you some lines
user142019
11:40
However, you can use Boost in C.
everyone seems to be ranting about boost.range
@FredOverflow
std::map <string, char> testmap;
testmap["John"] = 'B';
user142019
So that problem is solved too if you use C.
@BartekBanachewicz I got glut, glew, whipped up a cmakelists.txt to allow me to use gcc and an IDE, so I'm nearly able to build. seems several files are missing from your #pragma once comment above. should I wait until another time to reattempt building?
user142019
Or Haskell!!!!
user142019
11:41
Haha Boost.Preprocessor in Haskell.
Compiler thinkks that testmap in the second line is declaring again.. as int[]
@Zoidberg : C++ or Obj-C?
@Innuendo Please tell me that code is inside some function and not at global scope.
@GamesBrainiac FTR I think I did mix up your question and the context of Innuendo's errors a bit. In that case, a straight example is probably fine. Allthough explanation is what you'd find in a good C++ book.
@GamesBrainiac you do know what boost is right?
11:41
Because there is no such thing as global statements :)
2129
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

user142019
> You can perform this action again in 11 seconds.
user142019
@FredOverflow in Zoidlang there is!
@Zoidberg You can't fap for 11 seconds?
@Zoidberg When are they executed?
user142019
11:42
No wait I should make import definition instead of a statement.
user142019
That way you can put it in about almost any scope you want.
user142019
@sehe I can fap whenever I want.
user142019
Even at school but you know ain't gonna happen.
When will you see the girl again?
user142019
@FredOverflow hopefully next weekend.
11:44
@FredOverflow Whenever he closes his eyes
user142019
Also I'm going to FortaRock with her.
user142019
@FredOverflow you should go to FortaRock too except you won't like most of the music but it's near Germany.
@Zoidberg I don't like festivals anymore.
user142019
@sehe that too. :L
user142019
@FredOverflow ohlol
11:45
@Zoidberg s/e\./e/
user142019
s/e/h/e/
@Zoidberg E488: Trailing characters
hmm
whats with the ss and the es and hs?
I didn't even have keywords in my lexer
that's a surprise.
11:46
making a new language?
user142019
@FredOverflow I know how I'll fix the required default in switch expressions problem.
user142019
They're only required if you use the result of the switch, and otherwise they aren't.
user142019
PROBLEM SOLVED.
@GamesBrainiac You are not a proper Loungizen if you don't.
Have you renamed the language to Yold yet?
11:46
@FredOverflow I bet you liked them before they were cool :)
user142019
@FredOverflow No. xD
user142019
Also if you use result of switch but you have no default case, you can use unreachable:
switch 0 : 1 pattern matching
2
user142019
x := switch (myBoolWhichIsNeverFILENOTFOUND) {
    case true: meh();
    case false: moo();
    default: unreachable;
}
@R.MartinhoFernandes not a proper lozenge FTFY
11:48
@Zoidberg What if the bool is -1?
You don't know
@doug65536 hmmm. it's in pretty bad state atm. You can build it, but I suggest windows.
myBoolWhichIsNeverFILENOTFOUND ? meh() : foo()
user142019
@FredOverflow assume public enum bool { true, false, FILENOTFOUND }.
@FredOverflow a true bool will only ever be true or false
11:48
@BartekBanachewicz I am in windows
@thecoshman a true bool will only ever be true
user142019
@StackedCrooked cannot implicitly cast WindowsBool to Bool.
@StackedCrooked oh you :P
@BartekBanachewicz You use OpenGL but can only run in Windows?
Whats the best code-related joke you've ever heard?
user142019
11:49
Ternary operator condition must be of type Bool otherwise error.
Just curious
@R.MartinhoFernandes just for now, I am looking for a better glut alternative. Everything else than window is cross-platform. GLUT had terrible problems, and I had old winapi class
@BartekBanachewicz I'm in the same boat with one of my git projects, should have made a dev branch, It is somewhat buggy as it sits in github
@doug65536 did you download develop-2.0 branch of engine?
user142019
STUPID FLOOD CONTROL IS DRIVING ME CRAZY FUCK YOU STACK EXCHANGE AND WHOEVER CREATED THIS CHAT SYSTEM OF DOOM.
3
11:50
trunk I guess... let me look at github again
@GamesBrainiac there is a Q on Stack Overflow, look for it
Xeo
Xeo
Hey, robot, wasn't there some problem with the recursive fold here? Something about it not finding its own declaration... or am I misremembering?
@Zoidberg what are you doing? searching the heck out of chat?
@BartekBanachewicz : There seems to be a question for everything on SO
user142019
@sehe no I'm just chatting regularly but apparently I chat too fast?
11:51
@thecoshman "a true bool" lol
@BartekBanachewicz 10k+, probably
user142019
Look at how much messages are between mine.
@Xeo I don't remember that.
@Zoidberg refresh browser, check system time
@sehe No, left as old archive
11:51
@BartekBanachewicz I only see a "master" branch on github
user142019
@sehe done both already.
@doug65536 develop-2.0 of engine, master of Minicraft
> C++ Polymorphism problems when casting from void *
user142019
Flood control should be client-side if it should exist at all.
11:51
@Zoidberg gasp. you're in a wormhole
@R.MartinhoFernandes wut = ;oml
828
Q: What is your best programmer joke?

hmasonWhen I teach introductory computer science courses, I like to lighten the mood with some humor. Having a sense of fun about the material makes it less frustrating and more memorable, and it's even motivating if the joke requires some technical understanding to 'get it'! I'll start off with a cou...

16 hours ago, by FredOverflow
> Why do students love functional programming? Because there are no assignments!
user142019
Maybe it's there to help Xeo.
@FredOverflow trolololo
@Zoidberg all security should be client side :P
11:52
@FredOverflow see, too little flood control
user142019
Flood control is not security.
user142019
It's annoyance.
Xeo
Xeo
@Zoidberg Wut?
user142019
Flood control exists to prevent your crappy connection from blowing up when you're in the chat. :P
Xeo
Xeo
11:53
@R.MartinhoFernandes Eh. Something about a function not being declared in its own decltype?
30
A: What happened to "What's your best programming joke?"?

randomSenile grandparents who constantly soil themselves need to be put out of their misery sooner or later. Sure, they're a member of the family and fought damn well hard to earn their place once upon a time. But that time is long gone now and it's a different world today. A cleaner, more just wor...

lol
@BartekBanachewicz sorry I'm not following. "develop-2.0 of engine"? Nevermind, I found it. thanks
@Zoidberg Have you ever written a graphical game in Haskell?
user142019
Nein.
11:55
I wonder how hard it would be.
okey, time to cleanup that code
@FredOverflow OpenGL is the same, regardless of language
@FredOverflow lol
Thanks to all. Sorry, my stupid fault. The code wasn't inside function body ;((
@Innuendo I knew it :)
user142019
@FredOverflow as with all Haskell, not harder than non-Haskell once you got your brain turned upside down.
11:56
@FredOverflow I suspected it too.
@Zoidberg So you are saying that Haskell is exactly as hard as any other language except for the parts where it is harder?
user142019
typeof(expr) is a type name, does that make sense?
@BartekBanachewicz I could have known, but I've disabled my psychic abilities. It's 'low carbon footprint februari'
Is there equivalent of null stream in C++?
user142019
11:57
@FredOverflow no.
@BartekBanachewicz Like /dev/null?
user142019
"not harder than" so "as most as hard as"
@BartekBanachewicz that's came up yesterday
user142019
Not "exactly as hard as".
@R.MartinhoFernandes something compatible with ostream that ignores input
11:57
11
Q: Implementing a no-op std::ostream

jcsI'm looking at making a logging class which has members like Info, Error etc that can configurably output to console, file, or to nowhere. For efficiency, I would like to avoid the overhead of formatting messages that are going to be thrown away (ie info messages when not running in a verbose mo...

ugh, long
@sehe that. Thanks
Welcome to the world of IOStreams.

« first day (856 days earlier)      last day (4317 days later) »