« first day (790 days earlier)      last day (4174 days later) » 

user142019
12:00 PM
Cool.
 
I have no experience with this though :P
I might be talking non-sense.
 
user142019
So you’re translating machine code to assembly?
 
sbi
@Neil I guess you have a pointer there.
 
@StackedCrooked usually those instructions are position-dependent.
 
@Zoidberg'-- Yes. Or maybe just the instructions as hexstring. Or maybe just as binary.
@Abyx I figured there would be some problem.
 
user142019
12:02 PM
And then you can execute them? How do you do that? mmap?
 
sbi
@KonradRudolph I consider condemning the Pope to hell pretty hardcore (never mind that I agree with the arguments supplied as a reason), and it's totally not out of character for you to retweet such stuff. :)
 
...so he can't execute them on the other end
 
He should just use a shared library.
 
user142019
A friend once wrote a custom class loader in Java so he could transmit Java byte-code over TCP and execute it.
 
@Zoidberg'-- I would use one of the scripting languages that work on the JVM.
Then I just need to eval.
 
sbi
12:04 PM
In other news I just had a very worried mother of my daughters school friend on the phone who tried to tell me to not to yell at her, as she has done everything right in their opinion. Despite me saying that this is the last thing that crossed my mind the very first moment I could sneak half a sentence into her speech (about 5mins into the call, probably), she kept repeating this for 20mins.
Oh well, so some boy's mother out there thinks my daughter is a real angel. Who am I to disagree?
 
user142019
@StackedCrooked byte code is usually shorter and more performant (no compilation step needed).
 
sbi
Oh, and BTW, thanks to everyone who hang out here last night for helping me staying somewhat sane.
 
@sbi “I consider condemning the Pope to hell pretty hardcore” – ah well, I can’t understand that. But maybe that’s only because I simply disbelieve in fairy-tale concepts like “hell”.
 
@Zoidberg'-- Not sure. Can inline asm be defined as runtime string?
 
sbi
@KonradRudolph Reality is not the point. He is supposed to believe this to be the worst that could happen to a human being. You know, it's like talking a kid up how bad something is and then condemning it to do just that.
 
user142019
12:09 PM
@StackedCrooked using asm? Highly unlikely, but it’s implementation-defined what asm does AFAIK.
 
@Neil No worries. :)
 
user142019
@StackedCrooked Try LLVM or something similar. Or generate machine code yourself.
 
@sehe "Still, if you never took the time to read The Early History of Smalltalk, I'd urge you to" NOOOO noo more smalltalk
 
user142019
LLVM can generate and execute machine code.
 
Nevertheless, despite tons of "rulez" and other slang words that I keep tripping over, the article looks nice
Ctrl-D'ed
"It's like calling a nail "Hammerable", because you known, that's what you do with a nail."
 
12:18 PM
@BartekBanachewicz The history of it isn't as irrelevant as the language. Too many things may have been forgotten
 
I still have post-traumatic stress disorder after my uni project in smalltalk. That's the problem.
 
@BartekBanachewicz Indeed. Overuse of smileys too. This appears to somehow cover for unsecurity. Maybe it's just the language barrier though
 
@BartekBanachewicz I saw the movie.
 
@StackedCrooked The movie?
 
@BartekBanachewicz I'd actually give something to know what ST is really like. All I can go back on is a bit of SqueakVM toying (and perhaps.. Factor in a semi-related vein)
 
12:20 PM
@BartekBanachewicz It's a joke.
 
@BartekBanachewicz Don't feed them
 
I'm going to watch The Hobbit tonight
 
You surely have seen the Erlang movie. It's been available for years.
 
Is there a c++ movie?
 
12:21 PM
@StackedCrooked This has to be one of the greatest cheesy videos I've seen lately
 
else we could make one?
 
@TonyTheLion that would be great
 
@BartekBanachewicz It's hilarious. And I'm not sure if they do it on purpose or not.
 
Starring: C++ Loungers
 
cpx
| language = English | music = Maury Laws | budget = US$3,000,000 (est.)}} The Hobbit is a 1977 animated musical television special created by Rankin/Bass, a studio known for their holiday specials, and animated by Topcraft, a precursor to Studio Ghibli, using lyrics adapted from the book. The film is an adaptation of the 1937 book of the same name by J. R. R. Tolkien and was first broadcast on NBC in the United States on Sunday, November 27, 1977. Plot The plot of the animated production is in most respects similar to that of the book, which was already styled as a classi...
This?
 
12:23 PM
@StackedCrooked I love the VHS noise. And stuffz
@cpx the new one
 
user1182183
$3 mil budget for an animation :/
 
@TonyTheLion Have fun.
 
user1182183
and my school doesn't even have 1500 euro / student budget
 
user1182183
LOL
 
12:24 PM
Damn, I can't remember if my driving lesson is today or next Friday
I didn't write it down :(
 
user1182183
@TonyTheLion get ya phone and call then lol
 
sbi
Ok, so I have something like this:
struct X;
struct functor { void operator()(X&); };
struct fancy_functor { /*...*/ };
struct X {
 void do_it(std::function<void(X%) f);
 void do_it(fancy_functor ff) { do_it(std::bind(ff, ref(*this))); } // <== here
};
GCC throws me a naked bone like so:
functional_iterate.h:106: error: no class template named 'result' in 'fancy_functor'
What's it want from me?
 
You should probably derive from a standard functor.
 
a result class template in fancy_functor?
 
@sbi It wants you to tell it the return type of ff(*this).
 
12:25 PM
@BartekBanachewicz @1:27 "here is a program in C and here is the equivalent program in Erlang." :D
 
through a typedef in ff called result.
 
@StackedCrooked Yea. I'm just watching how they call each other
 
sbi
But isn't it the thing with std::bind that it finds that out all by itself?
 
I think you can also explicitly tell it like std::bind<T>(ff, ref(*this));
@sbi Not without decltype.
for a user-defined functor, anyway
 
user1182183
1>proxydll.cpp(22): error C2059: syntax error : ')'
1>proxydll.cpp(23): error C2143: syntax error : missing ';' before '{'
1>proxydll.cpp(23): error C2355: 'this' : can only be referenced inside non-static member functions
1>proxydll.cpp(23): error C3861: 'ref': identifier not found
1>proxydll.cpp(23): error C2143: syntax error : missing ',' before ')'
1>proxydll.cpp(24): error C2143: syntax error : missing ';' before '}'
 
12:26 PM
there's no way to do it
 
sbi
@DeadMG But I have dozens of std::bind() expressions in that code and it never wanted this.
Oh, wait, I think all the others are real function.
 
@sbi Yeah, it has magic for function pointers or member function pointers.
it's only arbitrary user-called types that have to provide typedefs
 
@StackedCrooked "Hello, Joe - Hello, Mike. - Hello, Robert - Hello, Mike"
 
sbi
Dang, isn't it std::function<> which provides these typedefs?
 
no
 
user1182183
12:29 PM
Well if I edit it to this:
struct X;
struct functor { void operator()(X&); };
struct fancy_functor { /*...*/ };
struct X {
void do_it(std::function<void(X)>);
void do_it(fancy_functor ff) { do_it(std::bind(ff, (*this))); }
};

then the error I get is:
http://pastebin.com/Mf3jh8Ap
Lol'd
 
sbi
Oh, no. That's the universal function.
 
std::unary_function<sig> I believe
should be in TR1
 
sbi
@DeadMG Ah, yes, that's what it was called!
@DeadMG It's in C++98, even.
 
The type of a function is in its function definition. The type of operator() is not in the type definition of the surrounding class. I guess that's why the latter is not deducible.
 
so struct fancy_functor : public std::unary_function<args> { ... };
 
12:31 PM
ohhh I found a Haskell job
 
@TonyTheLion you found a Haskell / Clojure / Java / C# / F# / C++ job
 
it has Haskell in it
so
 
still amazing he found any job with "Haskell" mentioned on it
 
I can has Kell job?
 
:P
 
12:32 PM
Maybe the employer made a typo.
 
Yeah, he probably meant Pascal.
 
@DeadMG indeed, very amazing.
 
"You are a Software Engineer that loves functional programming". Certainly interesting.
 
uh uh
though I know very little about functional programming, so I wouldn't really qualify
 
Of course my programs are functional!
 
12:34 PM
more Robot or FredOverflow
I would guess
This job has an interesting title.
 
Functional programming is the opposite of dysfunctional programming.
 
I've been doing dysfunctional programming lately
2
 
sbi
@DeadMG Only it also needs the return type. I think that's the first template arg.
Oh snap. This is devilish.
My functor really looks more like this:
struct functor : public std::unary_function<void,functor::some_interface&> {
  class some_interface {};
  void operator()(some_interface&);
};
Of course, this won't compile, because it refers to the undefined functor::some_interface in the base class list.
Any ideas how I can get around this without letting that interface leak out of its surrounding class definition?
 
just write the typedefs yourself
 
sbi
Hullo? Are you all away hunting for Haskell jobs?
3
 
12:41 PM
unary_function is just a convenience helper
 
sbi
@DeadMG Slaps forehead.
I guess I just didn't have enough sleep tonight.
 
@sbi Last night/This morning?
I don't think a lack of sleep in the future can impair your performance now :P
 
@sbi Yes, wasn't that obvious?
 
sbi
@DeadMG Last night, of course. I guess I just didn't have enough sleep tonight to correctly write even that sentence... :-/
 
user142019
12:43 PM
@FredOverflow and object-oriented programming is the opposite of subject-oriented programming?
 
programming the opposite of noobgramming?
 
lol
I'm going to change my name to "LOL"
 
user142019
@DeadMG congramming!
 
so then I don't have to say it anymore
you'll just know I'm always lolling
 
user142019
12:46 PM
Tony The Out-Loud Laughing Lion
 
hahah
 
user142019
TTOLLL
TROLLL
 
user142019
lol
 
user142019
Hasfuck code y u no compile.
 
user142019
12:46 PM
> Could not deduce (m ~ IO)
 
sbi
Becaue you suck.
 
> C++ design patterns
lol
 
user142019
I know.
 
user142019
@TonyTheLion lol
 
I made a terrible mistake today. Then I panicked and made another terrible mistake. Today does not look like a good day.
 
user142019
12:48 PM
 
user142019
^ lol
 
@R.MartinhoFernandes Keep your cup of coffee at least an arm's length away on your desk today.
 
sbi
@R.MartinhoFernandes Checked non-compiling code into CVS?
 
@R.MartinhoFernandes I've made many terrible mistakes. I still suffer the consequences of some.
 
12:49 PM
@sbi BOOST_RESULT_OF protocol: boost.org/doc/libs/1_52_0/libs/utility/utility.htm#result_of (assuming boost, which is probably wrong)
 
user142019
CVS? Who uses CVS?
 
sbi
@Zoidberg'-- The company he works for. I know a guy who once started that cvs2svn script to convert it to SVN. It died after rattling on for 3 days.
 
user142019
People told me CVS is bad.
 
@Zoidberg'-- it is. But that doesn't mean it's not being used
 
It is IMHO not that bad. It is just too old and weak.
 
user142019
12:50 PM
Software that is bad is bad and the users of bad software should feel bad.
 
@Zoidberg'-- Diana is getting nerfed.
 
user142019
@BartekBanachewicz wat?
 
@Zoidberg'-- Ah, you don't really play LoL?
 
@wilx it is pretty bad
 
user142019
@BartekBanachewicz lol no
 
user142019
12:51 PM
I only play Minecraft.
 
user142019
And I play clang and GHC. And erl. And Node.js.
 
I have used it at $OLDWORK as well.
I know.
 
It seems I am the only LoL player here, but it's hated there
 
sbi
@sehe It's TR1, actually. I could switch to boost now for anything that's header-only (Björn and I finally got around doing that), but I wouldn't want to when this wouldn't compile with C++11.
 
user142019
Today I learned about inheritance at school.
 
user142019
12:52 PM
It prevents code duplication, they said.
 
It's fucking useless, that they didn't say.
 
user142019
No, inheritance is useful.
 
user142019
Not that I use it much.
 
@sbi Meh, that would not be terrible.
 
When did you use it lastly, apart from implementing an interface?
 
12:53 PM
hay anyone can tell me about the c++ project execution in eclipse
 
user142019
@BartekBanachewicz interfaces I use even more rarely.
 
sbi
@wilx And it doesn't allow renaming and moving. Or atomic checkins. Or... In fact, it has lots of letdowns, most of which are neatly addressed by SVN.
 
@DineshDabhi hay it executes. kthxbai !!
 
@BartekBanachewicz "It is useless. Tell me when did you use it lastly apart from the situations where it is useful?"
 
Bint
 
12:54 PM
@sbi I know CVS.
 
user142019
@BartekBanachewicz I privately inherited from std::unique_ptr to implement something. But it was fun code to check things out.
 
user142019
Nothing serious.
 
@R.MartinhoFernandes Oh, fuck you. It's useless / { implementing an interface }
 
user142019
Last time I used inheritance in a real program was a subclass of NSViewController (or NSObject, but that’s doesn’t count).
 
12:55 PM
no binary found error occurs
 
user142019
@DineshDabhi well, make sure Eclipse can find the binary.
 
sbi
@R.MartinhoFernandes So what did you do?
 
Expressly excluding use cases to claim something is useless is quite dishonest IMO.
 
@R.MartinhoFernandes but there's only one use case
 
user142019
It ain’t rocket science.
 
user142019
12:56 PM
@BartekBanachewicz Free Foftware Soundation?
 
@Zoidberg'-- Shitty logitech keyboard
 
yes it could not find the binary
 
@sbi Don't want to talk about it. Not until I fix it. It's not work-related, though.
 
@R.MartinhoFernandes well, if the use case was "I used inheritance in order to work with an API that had been designed to be used through inheritance", I'd say it is of quite dubious value ;)
 
it could only generate the object files only
 
user142019
12:57 PM
Well use ld to link them into an executable.
 
is it mendetory to write the make file?
 
@jalf a-ha!
 
user142019
Or whatever linker you use.
 
best question title ever: "C Wrapper for C library as library"
 
@jalf gimme
 
12:58 PM
1
Q: C Wrapper for C library as library

user1904027I'm writing a wrapper library that allows to call C++ functions out of C-code. Unfortnuately it doesn't link... wrapper.h: #ifdef __cplusplus extern "C" { #endif extern char* (keygen) (); #ifdef __cplusplus } #endif wrapper.cpp: #include "wrapper.h" #include <someincludes> char* k...

 
@zoi
 
@Zoidberg'-- Tony The Loln
 
user142019
lol
 
user142019
1:01 PM
@DineshDabhi y u no Stack Overflow.
 
user142019
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK
 
sbi
BTW, does anyone of you remember how I told you the other day that I chewed of some manager's ear about how IT is putting brakes on our progress and joy of working? Well, the very next noon we were asked what improvements we want. We supplied a list including 64bit OS, 8GB RAM, SSD, and admin rights to our machines. And guess what? In the afternoon we were told we'll get this Q1/2013. All of it.
 
Back to inheritance for a while: in javascript you have to choose between "private" and possibility to do inheritance (in a reasonable way) :) choice is quite obvious
 
user142019
Type system y u no what I want.
 
@sbi that's pretty much the setup I got by default as intern
 
1:03 PM
@sbi Let's hope they see the comma and don't give you 8 GB SSDs ;)
 
@zoi tari boon no bhosado
@zoi search it for gooogle
go mane
 
@DineshDabhi WAT
 
sbi
@BartekBanachewicz I used to have this, too, in other companies. Here, there's a twist to this, and I ended up with having to make a big splash at, I think, my 5th day of working here, in order to have access to a local admin account.
 
user142019
@DineshDabhi heh Googling for Haskell stuff is almost impossible.
 
@sbi Again, I disagree with that: by his own standards the Pope would suffer the punishment that he believes in, were it real. I’m not condemning him to anything, he does himself, through is actions.
 
user142019
1:04 PM
Because Larry Page thought it was a good idea to ignore punctuation in Google.
 
@Zoidberg'-- Use Hoogle instead.
 
@sbi do they at least pay you adequately for (personal) damage?
 
user142019
@FredOverflow Hoogle is only for documentation. :P
 
@Zoidberg'-- Oh, I thought that's what you were after.
 
user142019
@FredOverflow nope.
 
1:05 PM
@sbi Hehe.
 
sbi
@FredOverflow Actually, when asked which size SSD we want, and everyone went pondering, I said 256GB pretty quickly. I wouldn't bet my life on getting this big an SSD, but it's been promised.
 
@sbi In fact, I morally don’t agree with punishment / retribution at all so I wouldn’t condemn the Pope to it either.
 
sbi
@BartekBanachewicz Kinda, yeah.
 
user142019
@FredOverflow I’m getting a weird error which seems very unlogical to me:
 
user142019
Expected type: Action IO a
  Actual type: Action m a
 
1:07 PM
Does it work without signatures?
 
user142019
Hmm let me see.
 
@sbi nice :)
 
sbi
@KonradRudolph Are you deliberately obtuse or are you simply unable to get it? He's a kid believing in Santa bringing the presents. You just told him you want him to live where the is no Santa, thus no presents, ever. That is mean. It doesn't necessarily mean I disagree with the idea of doing that to him (and I certainly agree with the reasoning of why). It's kinda hardcore nevertheless. (And before you ask: I grew up an atheist in a protestant area.)
 
@TonyTheLion that's actually quite sweet
 
sbi
1:09 PM
They all say that until it happens to them.
@jalf Yeah, this company is growing on me.
 
Windows, Y U NO stay on top for every window?!
 
sbi
Sorry for that, jalf. Did I mention I haven't slept enough?
 
user142019
@R.MartinhoFernandes yes, it does. Thanks.
 
Duh. There's a blood donation bus on tuesday here, but I've lost so much weight lately I fear it might be dangerous -.-
 
user142019
@BartekBanachewicz Hmm, I should look in my basement, maybe the bodies still have some blood in them.
 
1:20 PM
@Zoidberg'-- It was not a proposed fix. It was a debugging technique.
...
 
user142019
@R.MartinhoFernandes I know. I found the correct type using GHCi.
 
"What type is this blood you have brought to us in the jar?"
"Mixed type."
 
user142019
@wilx "unsigned long long const volatile* restrict"
 
:)
 
user142019
Oh in a jar? java.util.ArrayList
 
1:32 PM
@sbi Sorry? For what? :)
 
Plinking you by mistake.
 
ooh
 
@R.MartinhoFernandes now he's sad. Look what you did!
 
that's fine. I prefer being plinked when you respond to me. I just get annoyed at the chat once every 4 weeks or whatever it is, when it re-enables the sound
 
@wilx Java type.
 
1:34 PM
So it is in fact a coffee?
 
but that's the chat software I get annoyed at, not the people using it
 
@jalf Ah, but what he apolgized for was the fact that he edited something not intended at you, but by mistake edited the reply to you, and plinked you for nothing.
 
so now I get to do a tester's job
someday I'll actually get to do my own job, if I ever get there
I've been everything besides a programmer
 
@sbi You only have one operating system, right? In that case, 128 GB should be more than enough. Even 64 GB should suffice.
 
128 GB is a minimum
 
1:38 PM
@Zoidberg'-- m is probably too abstract, dunno :)
 
user142019
@FredOverflow it is so abstract, even a Haskell implementation cannot wrap its head around it.
 
@sbi Nicely done! Although I disagree with it, I can sort of understand the reasoning behind lack of admin access. I've never understood at all the reasoning behind trying to save a tiny bit of money on cheap hardware.
 
@R.MartinhoFernandes how confusing :)
 
I might not be thinking straight.
 
@R.MartinhoFernandes You've got drain bamage
 
1:51 PM
bain babbage
 
Charles*
 
user142019
So this tutorial explains everything about a certain template engine, except how you actually render the templates.
 
@BartekBanachewicz For what? I run my OS in 10Gb for the last many years. Granted, all 'my docs' (including non-current ones) would be ~50Gb, but I usually don't have more than 20Gb on my SSD
 
@FredOverflow Nah, 64GB ain't really enough.
 
@Zoidberg'-- Which engine? Java?!
 
user142019
1:54 PM
@sehe Heist.
 
user142019
No why would I use Java.
 
Sounds violent
@Zoidberg'-- Not use it. Get told about it
 
@sehe My compiled projects take about 30 gigs. Beethoven's discography 25.
 
@Zoidberg'-- You are constantly blabbering about it.
 
@BartekBanachewicz Well, do you keep Beethoven's discography on your desktop?
 
1:55 PM
at work.
 
@sehe I moved it recently. However, I keep my projects at my desktop SSD.
I have around 8GB free right now there
 
@sehe For Windows, I've found that the absolute bare minimum size of the OS partition for a stable system that works for everything I want to do on it is around 35GB
that's with documents, program files and everything else moved to other partitions
 
@BartekBanachewicz Me too. It's what my SSD is for. 30 Gb is a lot though. What do you work on/Don't you know about branch switching :)
 
Windows takes around 20 of those, and the rest is free space to satisfy broken installers which check for free disk space on the OS partition, even if they're being installed elsewhere
 
@sehe Visual studio generates a lot of binaries
 
1:57 PM
@jalf I agree on that. That's also about the dimension of my Windows partition. And yes, I move everything else on a spinning disk
@BartekBanachewicz Clean?
 
@sehe That's the point.
 
@BartekBanachewicz ?
 
I don't want to be in a position where I need 2 projects in a short time but I have to clean one to build another
 
I'd have to check on the actual disk usage of my last C++ project(s) done in VS.
 
user142019
0
Q: Availability of Free Store in C++ code

Piyush DeshmukhDoes computer provides a fixed amount of free store such as 10 MB or 20 MB something as this to any C++ program ? or the code is free to use whole of the drive space in which the directory is ? If fixed amount of size is offered to the code, then what is that value?

 
user142019
1:58 PM
LOL
 
@BartekBanachewicz Fair enough
 

« first day (790 days earlier)      last day (4174 days later) »