« first day (803 days earlier)      last day (4145 days later) » 

8:00 PM
it is first boxed and then a call to GetType is done through the Object class
 
I can only conclude that the design consideration has been to make value structs have value semantics, unless you want to use them 'polymorphically' - which includes object.ToString, GetHashCode, GetType and Equals
So, instead you should just do typeof(var)?
 
when writing forwarding functions, if you have template<typename T> f(T&& arg);, can you write std::forward<decltype(arg)>(arg) or must it be std::forward<T>(arg)? I know in this case the latter is better, but in other cases where you haven't taken the template parameter plain like that it can be shorter
 
@SethCarnegie equivalent
 
@sehe Thanks
 
user142019
8:06 PM
> GIANT inflatable cocks.
 
@EtiennedeMartel NSFW?
 
@sehe Is anyone working right now?
 
@EtiennedeMartel Of course
 
This room is never safe for work
 
I feel bad for them.
 
user142019
8:07 PM
I like C#.
2
 
user142019
If I were a boss I wouldn't give a fuck if somebody had that picture on his screen.
 
@CatPlusPlus Newbie hints don't say a word about it?
@Zoidberg'-- But that's a big iff
 
I don't know I didn't write them :v
 
user142019
@sehe If, not iff.
 
I'm gonna install Linux via PXE because I'm that good
 
8:10 PM
@Zoidberg'-- Iff means "if and only if", just fyi.
 
user142019
 
@Zoidberg'-- That's not necessary.
 
Hilariously NSFW: i.imgur.com/Ie7Oe.jpg
6
 
user142019
It is SFNW.
 
8:12 PM
There. Better on the starboard
 
Xeo
@sehe lol'd
 
user142019
C# standard is very clear. I like it.
 
Dec 19 at 19:52, by Zoidberg'--
I want Not Safe For Train warnings.
 
Calling ECMA standards "standards" is a stretch at best
 
@CatPlusPlus How so/
 
8:14 PM
Besides, I don't get the language standardising bandwagon
 
Duly noted
Just look at ruby/perl/php. I mean javascript has a number of things going for it there
 
What?
Also Ruby is an ISO standard now :v
 
user142019
Is there any reason ; is allowed after a class definition in C#?
 
how shall we know
 
user142019
lol
 
8:21 PM
perhaps it's for c++ compatibility
 
Xeo
@Zoidberg'-- Can you put multiple ; there?
 
user142019
@Xeo One optional semicolon. Don't know about multiple.
 
multiple ;es is valid in C++ starting with C++11
 
user142019
The optional semicolon is part of the class declaration in C#.
 
and valid prior to it only at block level
 
Xeo
8:22 PM
@JohannesSchaub-litb I know, that's where my idea stems from - C# just allowing empty statements at namespace scope.
 
user142019
ECMA-334 section 17.1.
 
user142019
> ..., optionally followed by a semicolon.
 
Is anyone here good with dynamic programming?
 
I program dynamically...
 
lol
 
8:24 PM
...by which I mean "while hanging off the edge of my bed".
 
Heh, I didn't know that.
 
@StackedCrooked Know what?
 
8:44 PM
kek
@Zoidberg'-- Isn't it nice
 
user142019
No. xD
 
user142019
THAT'S ONE TOKEN THAT MUST BE HANDLED BY THE PARSER. PRECIOUS CLOCK CYCLES. PRECIOUS MEMORY. PRECIOUS PERFORMANCE.
 
user142019
I'd like GitHub's syntax highlighting color scheme in Visual Studio.
 
user142019
Obsidian and Monokai are also nice.
 
I like Visual Studio's colour scheme
 
8:50 PM
@Zoidberg'-- True. Better to have the programmer go back and fix a character :0
 
user142019
I'm going to install this theme. studiostyl.es/schemes/son-of-obsidian
 
@Zoidberg'-- I like that style.
I did similar colors, but I have some Blues in there.
 
user142019
Obsidian's always been nice.
 
he didnt change the 'Current Statement' color, though
So it's still that fucking obnoxious C# yellow.
 
user142019
How often are regions used in C#?
 
8:51 PM
I will never understand why they did that, jesus christ.
@Zoidberg'-- Depends on the coder. I've used it for some really large, gnarly switch statements and for when I had over 32 overloads for a collection of functions.
 
user142019
I see.
 
user142019
I might use them in my giant lexer.
 
@Zoidberg'-- Sounds like a good place to put them.
 
user142019
Giant mess. xD
 
8:53 PM
Buahaha holy shit #region plx.
 
hey guys, I had an idea about how to create a super-fast compiler
 
user142019
@DeadMG Tell us! I'm writing a compiler!
 
you implement two compilers (or let's say one of them will be Clang).
the first one is optimized for luuudicrous speed but emits basically no useful diagnostics whatsoever
 
user142019
heh
 
then, if it finds an error, you run the second compiler
which finds the error and gives a useful diagnostic
 
user142019
8:55 PM
Do that for Wide.
 
user142019
Also
 
user142019
Thank God C# standard requires the implementation to insert a newline at the end of the source file before lexing.
 
user142019
It makes everything much easier.
 
lolwot?
 
user142019
Lexer must insert carriage return prior to lexing unless the source file is empty or already ends with a line termination character.
 
8:57 PM
why?
 
user142019
This makes lexing easier since you don't have to deal with EOF everywhere.
 
what, they insert an artificial EOF, basically?
that sounds much more like an implementation detail than something you should be Standardising
 
user142019
The standard says it is for "compatibility with source code editing tools that insert end-of-file markers and to enable a source file to be viewed as a sequence of properly terminated lines."
 
"Compatibility with Visual Studio which sucks balls":
 
user142019
It allows a preprocessor directive just before EOF.
 
user142019
9:00 PM
Preprocessor directives must end with a line terminator.
 
user142019
That's the main reason.
 
user142019
But it makes lexing easier anyway. I would've never come up with such a thing.
 
Treat EOF as whitespace, problem solved
 
user142019
heh
 
user142019
That's also possibru.
 
user142019
9:03 PM
Well, newline not whitespace.
 
@Zoidberg'-- I don't use them
 
my cake is not a lie!
 
@ScottW Because you like to. And it works a lot better that way?
@JohannesSchaub-litb But the proof requires a pudding
 
lol
fortunately the cake is a polymorphous life form. you can access it as a pudding
 
and it is moist
 
9:11 PM
dynamic_cast<Pudding*>(pCake);
 
throw Cake;
 
user142019
var up = new Exception();
throw up; // ha ha
 
@Zoidberg'-- ooooooooold
 
I cast Cake against the -Wall.
 
user142019
@sehe not older than me.
 
user142019
9:15 PM
do {
    identifier += c;
    c = PeekChar();
    if (!IsIdentifierPartCharacter(c)) {
        break;
    } else {
        c = GetChar();
    }
} while (true);
 
user142019
I find this so ugly.
 
Jun 14 at 10:08, by sbi
@DomagojPandža std::exception up("urgh!"); throw up;
^ nearly
 
@JohannesSchaub-litb Otto meticulously removed it
 
who is Otto
 
user142019
9:20 PM
Dammit Johannes it looked funny "quick someone flag it" with all the removed messages.
 
is it a bot
@Zoidberg'-- dammit :( you are right!
why did you have to flag my "quick someone flag it"!? now it's removed too :/
 
user142019
@JohannesSchaub-litb A petrol engine is called an Ottomotor in Dutch.
 
ohh
it seemed to me that this is related:
2
Q: What does "stackenblochen" mean?

Johannes Schaub - litbIn a chat room, someone sent a link to this youtube video: http://www.youtube.com/watch?v=zqAdxN1IWQQ . In the video they use the word Stackenblochen I have never heard the word, even though I believe I know German reasonably well. Can anyone please clarify? Apparently, some Germans are ash...

do you think it's OK to cook at 22:30 ?
 
user142019
@JohannesSchaub-litb no, not at all
 
or is that too late for the neighbors
not that they scream at me
lol
 
user142019
9:26 PM
Ask your neighbours whether they mind.
 
6 mins ago, by Johannes Schaub - litb
quick someone flag it
 
better not xd
@sehe lulz
 
user142019
@JohannesSchaub-litb ask on Stack Overflow
 
hysterical
 
@Zoidberg'-- or shall I ask on cooking.stackexchange.com
 
user142019
9:28 PM
@JohannesSchaub-litb THAT TYPO WAS ON PURPOSE
 
Bored much?
 
Xeo
@JohannesSchaub-litb Erm. How exactly are you cooking that it'd annoy the neighbours?!
 
user142019
 
lol
@Zoidberg'-- as was mine!
@Zoidberg'-- that looks like pandalove!
 
user142019
@JohannesSchaub-litb are you hungry?
 
9:29 PM
 
user142019
 
@Zoidberg'-- i guess i shall do fish
 
user142019
Me gusta puddingbroodje.
 
i still have my hat as backup should i not cook on my own
 
user142019
I asked a question on Programmers and no I read it it doesn't make any sense yet it has upvotez lol.
 
user142019
9:32 PM
@JohannesSchaub-litb you cook hats?
 
@Zoidberg'-- Ew
 
@Zoidberg'-- you're not up to date? SO cooks them
 
user142019
Cook a bat, not a hat.
 
Crooked brat
 
user142019
9:34 PM
 
Xeo
Damn brats.
 
@sehe lol
 
user142019
Perfectly edible.
 
Xeo
@sehe Reminds me of Crooked Minds.
 
user142019
StackedCrooked Minds?
 
Xeo
9:34 PM
lol
 
user142019
hMm repository pattern.
 
> ElcomSoft Forensic Disk Decryptor can decrypt BitLocker, PGP, and TrueCrypt. And it's only $300 - whoa
 
Wow.
Get owned.
 
user142019
Isn't there OSS?
 
Lulz, Security.
 
9:43 PM
can i ask c++ questions here
 
user142019
Lulz Security, commonly abbreviated as LulzSec, was a computer hacker group that claimed responsibility for several high profile attacks, including the compromise of user accounts from Sony Pictures in 2011. The group also claimed responsibility for taking the CIA website offline. Some security professionals have commented that LulzSec has drawn attention to insecure systems and the dangers of password reuse. It has gained attention due to its high profile targets and the sarcastic messages it has posted in the aftermath of its attacks. One of the founders of LulzSec was a computer secu...
 
user142019
@JonathanO Does this look like a C++ room?
 
user142019
Dec 23 at 1:02, by Cat Plus Plus
If you're new and don't want to be hated, read the rules.
 
user142019
Also time to get this DAL to work. Fuck this shit.
 
@sehe Couldn't TrueCrypt just update their encryption?
 
9:45 PM
I thought TrueCrypt had variable algorithms as well.
 
@Rapptz cough. What are you saying? The problem is key security
@ThePhD ^
 
Ah.
The keys get compromised.
 
Oh I see.
 
user142019
@sehe ENCRYPT THE KEY!
 
Well, simple: never store the keys with the volume?
 
user142019
9:46 PM
And disable swap.
 
That's not the problem
 
user142019
And whatnot.
 
I mean, usually you don't crypto something like your basic computer, but an offline HDD.
 
user142019
Don't use a hard drive.
 
It's software for analysing cold boot images
 
user142019
9:47 PM
Also
 
user142019
shred your HDD before the police get their hands on it.
 
And the key has to be in memory, so the volume has to be already mounted
 
@ThePhD How on earth are you going to use it then.
 
It's not a threat to your porn collection
 
@sehe I don't know. Stop asking me hard questions I don't know the answer to! Dx
 
9:48 PM
@ThePhD That's the only sane advice. But then you have residu copies
 
Actually many people do full-disk encryption
 
@sehe Free space erase ftw!
 
@CatPlusPlus In fact, you can still use your porn collection to make it hard (period?) to find the 'secret' data
 
It's more secure than silly login screen
 
user142019
I have a "friend" who has a hard drive formatter and a hard drive shredder. I don't want to know why.
 
9:49 PM
@ThePhD And numerous other things. But it is a pain, a chore and can be hard to maintain: program create temp copies in all the wrong places without telling you
 
user142019
His start page in Firefox is /b/.
 
I'm so glad I never make temp anything ever.
 
@Zoidberg'-- Please don't bring that up here.
 
@ThePhD What OS are you using?
 
user142019
lol
 
9:50 PM
No more memory? KABOOOOM, program explodes.
 
@ShotgunNinja why
 
@Zoid
 
user142019
berg
 
@ThePhD We all do. Except the puppy and mooingduck maybe
 
'--
 
9:50 PM
@Rapptz You need to stay in more, if you don't know what that is.
 
user142019
Just ask the question. :P
 
@zoidber'-- is there a place I can talk about c++? I though t this was it.
 
@ShotgunNinja I know what it is, I browse it. I just think you're being irrational, lol.
 
@sehe Uh. Windows. It doesn't dump things in my RAM out, right?
 
BTW
> Für folgende Webadresse wurde keine Webseite gefunden: file:///b/.
it doesn't exist
 
user142019
9:51 PM
@JonathanO As long as it does not involve a giant wall of code it's fine.
 
@ThePhD Of course it does, it's called swap
 
@ThePhD hahaha. "right?". Girly face. Trembling lower lip
 
No, it's b
 
OK great. I am trying to manage my include files. Right now I have this huge chain of classes that have includes. What is the best practice ehre
 
@sehe :c
 
9:52 PM
Not having huge chain of classes that have includes
 
user142019
@JonathanO include what you need, don't include what you don't need.
 
True. Some classes need private vaiables of other types of objects
 
user142019
Also use a sane language like Haskell or Erlang or Python or C#. Not C++, come ooooon. :P
 
You will have exponential includes anyway because C++
 
@ThePhD point is: sure it does, like there's nothing better to do. And the real point it: it will leave temp copies of files which you subsequently don't shred. Of course, you can combat this by using edlin exclusively. or whole-disk ecnryption to make forensics a tiny bit harder more expensive
 
user142019
9:53 PM
@JonathanO well include the files containing those classes.
 
user142019
You need them so you can't get around it.
 
I am actually better in C# than C++. I am making a game and thought that C++ was the best option
 
Use compilation firewalls
 
Should I go C# instead?
 
@JonathanO Uh. I'm not sure who told you this.
 
9:54 PM
pimpls, forwards
 
user142019
If you create very high performance game that needs a lot of processing power use C++.
 
Or something else
 
If you create a nerd game, use BF
 
user142019
Like Battlefield.
 
This is just a simple game. Overhead view in 2D. Basic dungeon crawler. Not intense processing
 
user142019
9:55 PM
If you create tic tac toe, don't use C++. xD
 
user142019
Unless you want to learn C++ or find it fun, of course.
 
Actually...
 
You use the tools available for the job, and the right tools. SharpDX / C# if you need a simple, managed language with little-to-no overhead. C# / XNA if you don't care about Windows 8 or new DirectX 11.
 
is car sickness common?
 
9:55 PM
Yes, @Rapptz
 
In games only the engine is typically C++, and that's probably mostly because game developers suck
 
it is in cars and among people who are prone to traveling nausea
 
If I use C++ is it easily portable to other platformas like ios? or linus?
*linux?
 
linus? up arrow edits
 
Don't port thing to Linus he'll be angry
 
9:56 PM
Porting to Linus.
 
user142019
Depends on whether your code is portable.
 
Roflmao.
@JonathanO All you have to do is replace OS function calls, which you should abstract after you actually make the game.
 
user142019
You can also use C# and use unsafe if you find a bottleneck in a tight loop or something.
 
Come on MSDNAA people give me my account I need to activate my OS
 
So there are ways to make c# more performant?
 
user142019
9:57 PM
lol activating an OS
 
@Zoidberg'-- C# and P/Invoke, FTFY. unsafe really doesn't bring much to the table
 
like can you manage memory manually etc
 
Woop, ~performance~ discussion, I'm out
 
user142019
Manual memory management in C#, hmm. Sounds like a pain.
 
Why would you want to manage memory manually.. what a PITA
 
9:57 PM
@JonathanO Why would you ever want to?
 
@JonathanO See C# and SharpX. That will take you a long way. You don't need manual memory management at this point.
C# and SharpDX will take you extremely far for hte 2D top-down game you want.
 
"manual memory management" -> Kneejerk
 
user142019
For a dungeon crawler, really, use the language you like. :P
 
user142019
If you like C++ use C++.
 
user142019
If you like C# use C#.
 
user142019
9:58 PM
If you like Haskell use Haskell.
 
Ok I will look into C# XNA and and SharpX
 
@Zoidberg'-- Oh god.
 
user142019
Unless it's something ridiculous like Erlang, of course.
 
If you like PHP, use APL.
 

C#

General discussions about the c# language, Squirrels | gist.gi...
 
user142019
9:58 PM
OpenGL and PHP. XD
 
@ScottW Ow, you had to top mine, did you
 
user142019
Use PHP? Better make all your methods private because calling private methods is faster than public methods!
 
@Zoidberg'-- Javascript.
 
Can SDL be used with C#? Im just following LazyFoo tutorials and he uses C++ and SDL
 
Every language is a circlejerk in here
:(
 
user142019
9:59 PM
@ThePhD JavaScript is fine.
 
JavaScript is horrible
 
@JonathanO Find different tutorials for your C# needs.
 
user142019
You are horrible.
 
@Zoidberg'-- Better make all methods private, to avoid risking running your code. Oh wait, security is likely broken too
 
Also private methods being faster can be a result of optimisation
 

« first day (803 days earlier)      last day (4145 days later) »