« first day (1589 days earlier)      last day (3356 days later) » 

2:00 PM
@Dominik I am your friendly koala overlord.
 
@райтфолд So use regizter or something close.
 
user1804599
This isn't German!
 
@Nooble thats awesome we have coalas here
 
koala overboard.
 
coca coala
 
2:01 PM
coala overflow
 
user784668
@райтфолд reg
 
@райтфолд deprecated though, it does nothing anymore
 
@Mgetz well it made my insertion sort 2x faster!
 
user784668
@Mgetz Still a keyword.
 
@Mgetz Ir prevents you from accidentally taking the address of a variable:
register int a;
int * p = &a;   // compile-time error
 
user784668
2:03 PM
So int register; is illegal
 
LOL
 
lol
 
user784668
2:04 PM
@FredOverflow It's legal in C++.
 
@FredOverflow is that still true? I thought they removed that prohibition in C++11
 
Oh okay, maybe I'm not up to date on that issue.
 
user784668
@Mgetz There's no such restriction in C++03 in the first place.
 
BTH nor am I, it may always have been legal in C++ and illegal in C
 
user784668
2:07 PM
@Mgetz Yes.
 
user784668
But then, C is illegal.
 
user784668
@райтфолд uhh
 
It was always legal in C++ because C++ always acknowledged what register means: nothing.
 
user784668
So why make it a keyword?
 
Compatibility with C maybe?
 
2:10 PM
it isn't a suggestion to the compiler anymore?
 
@Fanael because alleged compat with C
 
@bluefog Programmers are too stupid to decide what values should be stored in registers.
 
user1804599
Bison generates code that uses register.
 
user784668
@bluefog The only instance of the register keyword having any real meaning is GCC's register asm extension.
 
@bluefog A suggestion to the compiler? What does it suggest?
 
2:11 PM
@райтфолд You looked at generated code? Isn't that a sin? ;)
 
user784668
@R.MartinhoFernandes "remove the source file because the programmer is a moron"
 
user1804599
@FredOverflow No, my compiler errored because register is deprecated.
 
How old is Bison?
 
user1804599
So I turned off -Werror and now it warns.
 
user1804599
I should change the warning settings for the two generated files.
 
user784668
2:12 PM
Hint: always use -w on generated code.
 
@райтфолд Turning that for generated code? You are a brave man.
 
@FredOverflow however old it is, I'm using yacc which is older :|
 
user1804599
@FredOverflow No idea but it doesn't know about C++ at all unless you enable C++ mode which is horrible.
 
user784668
@FredOverflow Very.
 
user1804599
So it just generates code as if it is C code, except the bits I put in that are C++ code.
 
2:13 PM
@райтфолд Of of curiosity, could you post some generated Bison code? Say, a dozen lines?
 
user1804599
sure
 
user784668
@FredOverflow It's a GNU project, so even though it came into being around 1990, it was way outdated back then.
 
pantoona, have you considered using flexc++/bisonc++?
5
 
user784668
@райтфолд Why are you using bison in the first place?
 
user1804599
2:15 PM
Because everything else I tried was even worse.
 
@райтфолд Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
:/
 
@райтфолд Why does everything start with yy lol
 
user1804599
Because C lacks user-defined namespaces.
 
user784668
@райтфолд Handwrite the parser.
 
@Griwes OMG Bison is older than Chernobyl.
 
user1804599
2:16 PM
@Fanael Why?
 
user1804599
Using Bison takes less effort.
 
Handwritten code is more debuggable.
 
Hand-writing parsers is fun.
@FredOverflow dat edit
 
I find table-driven parsers to be impenetrable.
 
user784668
@райтфолд Quite the contrary. For me, at least.
 
user1804599
2:17 PM
If you want to write this parser by hand then I'm totally fine with that.
 
3 mins ago, by Blob
pantoona, have you considered using flexc++/bisonc++?
 
> pantoona
lol
 
user784668
lol "pantoona"
 
Oh nevermind.
 
user784668
paŭmqpoʌg
 
2:23 PM
0
Q: DirectInput Virtual Key Press

Lorenzo MorandiniI just joined this site which helped me a lot in the past. I don't want to sound mysterious, so at the moment I'm developing a bot for a game (personal use). The bot is pretty simple, just press some keys in sequence. I tried using simple script languages like AutoIt, and also using SendInput in ...

10/10
> I made some research and read about DirectInput Hook, DLL Injection, but unfortunately I have bigger projects right now so I can't start learning them for now. So, the real question is, if someone maybe knows a more updated and hopefully simpler way to do that. If you could give me the code with some explanation it would be perfect, useless to just copy/paste.
 
user784668
@Blob would read again?
 
@Fanael read it twice
 
Dafuq is pantoona?
 
pamplona
 
user784668
2:27 PM
12 mins ago, by Blob
pantoona, have you considered using flexc++/bisonc++?
 
райтфолд
 
user784668
In short, paŭmqpoʌg.
 
I need to buy food for the train.
 
Well, what kind of food does your train eat?
 
2:28 PM
@R.MartinhoFernandes They run on electricity silly!
 
When you leaving?
@FredOverflow lol
 
@AndyProwl Thanks, I put a lot of love and effort into it. About 5 minutes.
 
@FredOverflow Would have taken me days
 
im new here and just curious, why is this called lounge c++? lol
 
user784668
Because we love PHP
 
2:30 PM
@Dominik because it's a lounge and we're c++ people
@Fanael no one's stupid enough to believe that
 
I am
 
@Andy tomorrow morning to Stockholm and then at 22.40 to Abisko.
 
@R.MartinhoFernandes Oh.. THAT trip:(
 
@R.MartinhoFernandes Have a nice trip! Must be quite exciting
 
user1804599
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
user1804599
2:32 PM
.ll means both LLVM and Flex.
 
user1804599
fuuuuuuuuuuuuuck
 
'overnighter' takes on a whole new meaning when going that far north:)
 
We have booze.
Oh wait.
Still need to buy tonic water.
 
@райтфолд wat
 
@R.MartinhoFernandes and gin
 
2:33 PM
@AndyProwl GIMP is your friend.
 
@thecosh got the gin already.
 
@R.MartinhoFernandes what about rum?
 
Gin is enough.
 
-2
Q: why use multidimensional arrays

SumSC supports array. The multidimensional array is theory concept & the memory assign for the array elements is continuous , then why the concept of multidimensional array is raised ?

What's he trying to say?
 
@R.MartinhoFernandes Will you be around in here? I'm guessing that 100Mb internet connections will be in short-supply.
 
2:40 PM
I'll bring my phone.
 
@R.MartinhoFernandes You can post the pics when you get back to reality:)
 
user1804599
REQUIRE(mill::safeAdd(std::int8_t(126), std::int8_t(1)) == std::int8_t(127));
REQUIRE_THROWS_AS(mill::safeAdd(std::int8_t(127), std::int8_t(1)), std::overflow_error);
 
The pics will be on my camera. No way I was going up there and expect to get pictures with the phone.
 
user1804599
it works! :D
 
Don't call me C++ people
 
2:43 PM
Pity I don't have a wide angle lens, though.
 
user784668
@R.MartinhoFernandes I heard Edward Kmett has one.
 
@CatPlusPlus C++ Cat
 
@Dominik he's actually a goat
 
@Blob lol goats are epic
 
user784668
@Blob actuly iz dolan
 
2:49 PM
@Dominik Our neighbour has a goat named Merlin. Saves having to take out the veg waste recycling bin.
 
@MartinJames ahahh
 
user1804599
WTB a library with overflow checks.
 
user1804599
So I don't have to implement it myself. :v
 
outsource the work
 
Hmm. Weather forecast doesn't seem promising Q_Q
 
user784668
2:58 PM
What is Twitter for?
 
for birds
 
@BartekBanachewicz boom. As shit as it is, I'm calling that a game!
 
user784668
3:21 PM
@MartinJames lol
 
user784668
@MartinJames Villa scored
 
What's a good book for a programmer to learn C++? I actively program C#, also learned programming in C. But would like to learn C++ any recommendations?
 
@Greg If you wanna learn algorithms then Algorithms and data structures by Sedgewick
 
user1804599
He wants to learn C++, not algorithms.
 
user1804599
4271
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 published 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 well-written...

 
3:26 PM
I'd like to learn both.
 
@Greg Accelerated C++.
 
Thank you for the post.
 
Your favorite language now supports while loops!
 
@Blob what are you going to name it?
 
@bluefog Right now it's IHU, but I think I'll change it. Maybe to "GPL", as Jerry recommended.
i'm going to dump this for my introcs final project, and it's in python because i'm required to use python for the project, so i can't release it until then ;_;
i think it's also supposed to be web-related, but fuck that. if that's a requirement i'll just make a textbox where you dump code and a button that interprets it
 
3:33 PM
sup
 
STEVE
OMG ITS STEVE AGAIN
 
yhupp
 
Steve...Steve...Steve...
 
user784668
Steve?
 
@Steve, why were you gone for so long?
 
3:37 PM
@Fanael We noticed. We are not amused:(
 
user784668
The only Steve I know is the slippy one.
 
user1804599
> I love to reload during battle.
 
user784668
@MartinJames Now score, because Villa are a disgrace and must go down.
 
partying lo;
hey guys quick question i would like to add link for github on my project so ppl could fork which will be better add fork me on github or just github logo?
 
user1804599
Nobody cares.
 
3:44 PM
wtf are you asking, Steve?
 
user784668
@райтфолд Isn't reload, like, deprecated and being replaced by LRA?
 
This looks like a cool sight.
 
user3010322
@райтфолд That's a lot of instructions to go through... how do you access them? Just by using a bytecode instruction index, or with the usual variant-style search-and-visit?
 
user3010322
@R.MartinhoFernandes That's pretty awesome.
 
@R.MartinhoFernandes This looks even cooler (or snowier, anyway). :-)
 
user1804599
3:51 PM
boost::apply_visitor, duh
 
@Steve Depends on whether (and if so, how much) you like the double entendre of the "fork me" phrasing (and the degree to which that fits with the rest of your site).
 
Given an std::vector<T>, is there a generic way to invoke a variadic function with the vector's elements as arguments?
More specifically, I have a vector of locks and I would like to call std::lock() on those locks
 
Sort of.
 
@AndyProwl You'd have to limit the size of the vector.
 
i.e. holy code generation batman
 
3:59 PM
std::sort_of
 
@Griwes I would really really not like to do that
@LucDanton Sounds approachable
 
user1804599
C variadic or variadic templates?
 
variadic templates
 
@Griwes Nah, put std::numeric_limits<std::size_t>::max() specializations and you’re done :D
 
@LucDanton Good luck with not eating horrendeous amounts of memory with all that code. :D
 
user784668
4:01 PM
@Griwes ~hardware is cheap~
 
hey guys!
 
Ah wait Boost has a lock() function that takes a pair of iterators
 
@Fanael lol
 
@AndyProwl Have a big table of function pointers to a function template’s specializations, from 0 to whatever upper limit you want. Then table[v.size()](v) to call that specialization.
 
@AndyProwl Oh. Neat.
@LucDanton lol
 
user784668
4:02 PM
Call the compiler at runtime.
 
Alternatively you could wrap the vector in something that returns real objects for first N elements, and then some weird empty object...
 
Is it easier to wrap c++ code in c# or otherwise? Can this question even be answered genarally? I need to have a asynchrone socket based communication lib in c+ and c#
 
...and make a single call with std::numeric_limits<std::size_t>::max() arguments. lol
 
@mike Hi.
 
@Griwes It’s my go-to for bridging from runtime to compile-time ;)
 
4:03 PM
@mike No, not really. C++ is legendary for being not cooperative with everything, even itself.
 
user784668
C++ sucks, not enough dependent typing.
 
@mike Prepare yourself to write lots and lots of code.
 
@milleniumbug so should I wrap c# code in c++? or write both libs from scratch?
 
What's wrong with doing everything in one language?
 
@mike Have them share a common subset, or... why are you writing two libraries in the first place?
 
4:06 PM
@Nooble it simple is not possible. The libs has to be provided in Java, C++ and C#. These are the requirements
 
@Griwes Oh and of course you want one such table for every variadic functor and possible argument type you ever call. No way we want to pay for more dynamic dispatch!
 
@LucDanton lol
 
@JerryCoffin Woah.
 
@milleniumbug I'm even writing 3. But I finished the java one. The problem is the company I'm working for has a product. And we wan't to provide new, faster libs to access that product.
 
Now we are just paying for "static" dispatch (but not really, since you are still calling those functions indirectly. :D)
 
4:07 PM
Man, even if it's cloudy, I'm going to take some awesome pics.
 
I'm sad cos I'm probably gonna just be at home all day until it's dark and whatnot
 
I certainly will, since I gotta pack.
 
@mike FFI of Java, C#, and C++ allow them to call C functions. So your options are: a.) have functions written in C called by all three libs b.) Provide C interface for library in one language to allow other languages to call it. c.) write three separate libraries.
 
I've upvoted this question ot because I think it's particularly good, but because it's a fair question that doesn't really deserve a downvote. — einpoklum 32 mins ago
sigh
 
user784668
@milleniumbug For C++ ↔ C# interop I'd use C++/CLI.
 
user784668
4:14 PM
Allows using C++ directly without silly C wrappers
 
Kinda directly
Also doesn't work with Mono
 
user784668
@CatPlusPlus Does anybody care about Mono?
 
@LucDanton Interesting
 
user784668
@CatPlusPlus Who?
 
4:15 PM
@Fanael so leaving java aside (as the lib is finished already), I should code in c++? never heard of CLI but I'll take a look
 
I'm trying it just for fun but I'm doing it wrong. Where's my suckage?
 
Me and all the people who deploy to Linux
 
@Fanael C++/CLI is not C++. (as proven by many people, even in this chat)
 
user784668
@milleniumbug Didn't say it is.
 
It doesn't need to be C++
 
4:17 PM
Can you wrap C++/CLI in C++?
 
@R.MartinhoFernandes We'll (or at least I'll) expect to see at least a few of them...
 
About the same you can wrap C# in C++
You need to host the CLR
 
Meh I'm an idiot
I forgot to add Ts... to the function parameter list
 
Crime of all crimes
 
@CatPlusPlus hosting the CLR won't be a problem, since target platform should be win7 or above. I think one can assume .net to be installed, or add it to the requirements
 
4:20 PM
If you're going to host the CLR then the C++ wrapper is redundant, just use C# version directly inside the CLR
 
user784668
@mike .NET is like pretty much built in to Windows since Vista or something.
 
If you're going with .NET then forget about C++ nobody cares
 
@CatPlusPlus so I'll write the lib in c#, then add a c++/cli wrapper to it?
 
user784668
@mike So you write the lib in C# and the rest in C#.
 
No, you'll write the lib in C# and that's that
C++/CLI's only function is to bridge legacy C++ code to CLR
If you're already inside CLR then you don't need it
 
4:22 PM
@AndyProwl That’s what I do for dispatching on variants or any<…>. The only difference being that it’s indexed on type (e.g. table[v.which()](f, v), so to speak).
 
@CatPlusPlus but a c++ lib is needed for developers to embed the library in their c++ product? Or am I understanding sth wrong here?
 
If your lib is in C# and requires CLR, nobody will bother to use it from native C++
 
mmh no any is more of a vtable, nevermind that bit
 
Interop is just too crappy this way
 
@LucDanton All right
 
4:25 PM
@CatPlusPlus Sry, I still don't understand you. My task is to create a java, c# and c++ lib, for customers that programm in java, c# or c++. We have many customers, and each would use exactly one library. Going from that, I can't understand your point
 
user784668
@mike Write three libraries.
 
You either write it native and bridge to others or write 3 of them
 
oh fuck me I found a high-rep American who's made rampant comma abuse in loads of his answers
stepping away from the computer now
 
oh, no
not, the, commas
 
,,,,,,,,,,,,,,,,
 
4:26 PM
fukken, commes
 
@Steve
 
Thanks. I'll put in some further research effort...
 
@LightnessRacesinOrbit Please, tell, us more.
 
@Pris I can't, this sort of sentence structure makes me barf, it's horrible and I don't understand why anyone was taught to write this way, it just makes no sense
 
4:31 PM
@CatPlusPlus what about it?
 
hey guys
 
Green bars are contributing causes
 
religious membership?
 
No.
Religious(Membership)
 
quick question, I can't start my app in Visual Studio 13 because of "The project platform must be set to x86 or x64", any idea how to fix it? I tried setting both to 64 and 32
 
user784668
4:32 PM
@CatPlusPlus sauce?
 
Democracy 3
 
@VixinG Install linux?
 
something that does not require leaving Windows
 
I don't think anyone here uses Windows (maybe Cat?).
 
I thought Visual Studio is popular
guess not
 
4:33 PM
among Windows people, it is
it's one of the good things Microsoft has made
 
gonna try asking in C#, thanks anyways
 
@Blob A few of us use Windows, myself included
 
@Borgleader got any idea why I get this error?
there are 0 results in google for this exact error
 
@VixinG You're saying you set it "both to 64 and 32", and they say "The project platform must be set to x86 or x64" :D
 
4:36 PM
I tried setting to 64 THEN to 32 and it didnt work in both cases
 
@VixinG Nope
 
@milleniumbug if A && B then A || B
 
I guess my code is just a mess
 
@VixinG no.
 
@VixinG I don't think your code has much to do with it. Play around with the settings a bit, or just switch to linux.
 
4:37 PM
I shouldn't add random nuget packages to my project
 
user1804599
sluts
 
the error appears since I added low keyboard hook package @Blob
 
@VixinG hmm.. remove it?
 
yea I will now
 
Canada doesn't like science apparently, Science Funding is 0% popular
 
4:48 PM
they should consider trading in some Reputation
 
@LightnessRacesinOrbit Sir, you should really learn how to take it easy. Thank you! — Koray Tugay 20 mins ago
lol
 
user784668
@LightnessRacesinOrbit dude, that dude is totes right
 
no he's not
I was taking it perfectly "easy" until he started being a dick
 
complaining about the quality of the free help he was getting from someone else and taking my donation of free weekend time to explain why this was as some kind of fit of rage
 
user784668
4:50 PM
@LightnessRacesinOrbit Stop this fat-shaming of yours. There's nothing wrong with being dick. Or dünn, for that matter.
 
guess he wanted to see more smileys and exclamation marks!!!!!!!!!!!!!!! :-D :-D
 
user1804599
Religious Damnation
 
@Fanael good one
 
@LightnessRacesinOrbit I don't see why anything that dude said made him a dick
 
@CatPlusPlus eerily accurate
 
4:52 PM
They really don't like Abortion Law
 
user784668
@Pris Disagreeing with Lightness is being a dick.
 
In other news, Canada is now fat
 
user784668
I wanna play Democracy 3 now.
 
@Fanael \o/ Stoke won or, more correctly, Vile committed suicide:)
 
user784668
@MartinJames Great!
 
user784668
5:05 PM
We drew.
 
user784668
Which means… nothing really.
 
@Fanael ..slightly tempered by the loss of the £10 I had on a 1-1 draw:(
 
@Pris try english comprehension hth
 
user784668
@MartinJames Should've bet on Stanley - Cheltenham, was 1-1.
 
5:07 PM
@Fanael Stoke was 1-1 for ages. I was already mentally spending the £90 I was going to get back:(
 
user784668
In other news, manure lost to Swansea.
 
@Fanael Yeah! I know who all the manure fans are in the club. I will be having appropriate words tonight:)
 
user784668
And Chelski drew with Burnley.
 
is there a type trait function to find for a type T, and a set of types Us..., which U in Us would rank best in an implicit conversion scenario?
 
user784668
Cue Jose The Cunt whining about the refs being biased against his team.
 
5:10 PM
@Fanael Not got many C. fans, so it's not as much fun.
@Fanael That's a given. I would laugh at his post-match interviews if M. did not put me into a coma after 'speaking' for ~10 sec.
 
are you guys still blathering about the most boring sport in the history of man?
perhaps we could discuss a competitive curling match instead
 
Oh look - a pup popped up.
 
woof woof
 
Motherfucker!
 
indeed
 
5:13 PM
@MartinJames son of a bitch*
 
nevermind i just wrote my own
 
user784668
@Blob Well that's a given.
 
@Blob He's always moaning about soccer threads. I don't think they have sports in the swamp he came from.
 
user784668
@Puppy But nobody's mentioned darts.
 
Motherpupper
 
5:15 PM
unfortunately they do have bores like football
 
@Fanael I watch darts on Tues and Thurs. Usually that means drinking bad ale in strange pubs as Anne tries to get double-1 for an hour:(
@Puppy Meh - you have less soul than robot.
@Fanael lol - the lawyers have muzzled M: 'I can't go through the incidents. I am punished when I refer to these situations and I don't want to be punished'
 
@MartinJames His soul is made of metal, so there's a pretty large mass of it.
 
It get better, VDG: 'Today we played well - only we forgot to score'
 
5:39 PM
C++ tag wiki says C++14 is "currently waiting official publication pending editorial changes."
 
user784668
@MartinJames Just watched the interview, holy shit he's a retard.
 
@Fanael He started to mumble on about 'callers', and I dropped off..
 
user784668
@MartinJames He was describing the call tree of your code.
 
@Fanael M. on a different thread to the rest of us.
 
user1804599
5:49 PM
aaaaa
 
@LightnessRacesinOrbit WTF is that black stuff at the botom of the plate?
 
user1804599
/usr/local/include/boost/variant/detail/make_variant_list.hpp:40:27: error: too many template arguments for class
      template 'list'
    typedef typename mpl::list< T... >::type type;
                          ^     ~~~~~~
 
@LightnessRacesinOrbit do you eat in front of the computer
 
yes
@MartinJames black?
 
@LightnessRacesinOrbit Well, I will be first to admit that my display setup might be sub-optimal, but it sure looks dark to me.
 
5:52 PM
@Pris You don't?
 
@CatPlusPlus nah
crumbs in the keyboard man
 
Looks like potatoes, bacon, tomato and twiglets.
 
missssssssssssssssssss me?
 
@Pris That's where they belong
It makes keyboard stronger
 
hearing things crunch under my keys is worse than scratching a blackboard with my nails
 
user1804599
5:54 PM
Fucking Boost not using goddamn variadic templates.
 
@Pris It helps to avoid typos. After practicing a while, you can audibly detect them.
 

« first day (1589 days earlier)      last day (3356 days later) »