« first day (1140 days earlier)      last day (3810 days later) » 

5:00 PM
Also manoeuvre
This is unspellable
 
@Jefffrey so you try to not let in... terrorists or something?
 
kind of
 
Also on this spelling/language thing.
I still think you should be able to stick "un" to negate everything :D
 
The inconsistencies are everywhere.
 
5:02 PM
unconsitencies
I take artistic license with cases like this (i.e. I don't give a fuck)
 
Xeo
Shorter answer: Not. — Xeo 16 secs ago
Teehee
 
If I recall correctly, some words have neither in or un.
 
@CatPlusPlus OTOH, unfucking is not really feasible.
 
Fun, perhaps?
 
"Unfuck the build, idiot"
 
5:04 PM
@CatPlusPlus OK, yeah.. :)
 
Actually, endl is defined to always write a '\n' into the stream ([C++11: 27.7.3.8/1]), though the underlying file stream provided by the OS may perform its own line-ending conversion if it wishes. — Lightness Races in Orbit 23 secs ago
pwned
 
@Pawnguy7 That's how Newspeak works :S
 
fuck it, worship me
 
user3010322
@melak47 So how goes the Snaku? :D
 
user3010322
Also, fuck tuple_cat ;~;
 
user3010322
5:10 PM
No matter how I change what I write, it's not compounding my tuple and returning it properly and I am apparently not catching the right overloads. =/
 
@ThePhD Still sounds like you're approaching it wrong.
 
"Compounding tuples" sounds like businessspeak
 
user3010322
:c
 
user3010322
I don't know how to describe it
 
user3010322
I'm going to sprinkle parameter packs and extra parameters until my function works
 
5:13 PM
Are you still trying with recursion?
 
@R.MartinhoFernandes True. Still, I didn't say get rid of "bad" or "terrible"
Many words don't seem to have such a negation.
 
user3010322
@R.MartinhoFernandes Um. Sort of?
 
@Pawnguy7 Does not matter. You are doubleplusungood.
@ThePhD Give it up.
I doubt you can make it a recursive version under 20 lines.
 
user3010322
It's not really recursion. What I'm doing is trying to get all the parameter packs to expand themselves indefinitely in the function until it builds the whole tuple. =/
 
Find a different approach.
@ThePhD No idea what that means.
 
user3010322
5:14 PM
I... I don't know how to describe it.
 
user3010322
I'm so lost. ;~;
 
May 9 '12 at 15:54, by R. Martinho Fernandes
Code speaks louder than words.
 
user3010322
I've just been trying to make my template parameters match what the errors have been telling me, and even then it's not working.
 
Rockets also speak louder than words
 
user3010322
5:16 PM
... Wait
 
@ThePhD Line 35: shouldn't it be awesome_tuple_dog?
 
user3010322
Have I think I made a derp typo <_>
 
user3010322
@R.MartinhoFernandes SSHHHH
 
(Still, yeah, that's a recursive solution—I see a base case there)
 
user3010322
:O
 
user3010322
5:17 PM
It seems to be working?
 
user3010322
Oh wait
 
user3010322
Nevermind
 
DigitalOcean is running a promo, 50$ credit for new customers and extra 25$ for 25$ payment for existing ones
 
user3010322
It's missing 2 types. =/ Let me backtrack...
 
user704565
hi people, could someone help me with inline assembler error? :(
 
5:18 PM
No
 
user704565
great, the code i found at microsoft's msdn as example of inline assembly just throws lots of errors -.-
 
user704565
__asm{ mov eax, offset text }
 
Try not using inline assembly
Or jumping
Whatever
 
user704565
there is no other way to do the thing i need
 
user3010322
5:19 PM
Inline assembly does not work on 64-bit binaries for VC++.
 
What, getting compile time errors? There's plenty of ways
 
user3010322
Not even sure it works in 32bit anymore.
 
user704565
that is 32bit binary
 
user704565
 
user1804599
Ignore.
 
5:20 PM
Yeah we don't really care (also don't use inline assembly)
 
you don't need inline assembly to call C functions :E
 
@jakubinf #include <stdio.h> sigh
 
Things you need inline assembly for:
 
user704565
i need this thing:
__asm{
push offset text
call [addr]
}
 
@LightnessRacesinOrbit Why do I see messages directly sent to a guy I plonked?
 
user704565
5:21 PM
but first i need to make offset work
 
No you don't
 
user1804599
> i
 
user3010322
That's different from what you said before.
 
user3010322
Get out.
 
user1804599
 
5:21 PM
@Jefffrey Because
 
@Jefffrey Because you didn't plonk me
 
Therefore
 
user1804599
We’re Lounge<C++>, not Lounge<Assembly> or Lounge<MSVC>.
 
user704565
but this is about C++
 
user704565
inline assembly is part of C++
 
Xeo
5:21 PM
 
Not really
 
Xeo
We don't care
 
user1804599
Inline assembly is not part of C++.
 
@jakubinf These guys get snotty about people asking actual C++ questions, though
 
@ThePhD Two things: 1) I don't think you'll ever get a recursive solution below 20 lines; 2) you will have to avoid all those extraneous copies; and 3) remember that if you take a tuple of references, the result must keep the referenceness.
 
It's implementation defined to the point of uselessness
1 min ago, by Cat Plus Plus
Things you need inline assembly for:
 
They'll just treat you subhuman. Give up now
 
user1804599
There is an asm keyword and its meaning is implementation-defined.
 
High horse mode ACTIVATED
 
ahaha f---l---ags
 
5:22 PM
oh look my favorite Cat is online.
Hi Cat!
 
Ahahaha yeah that flag is gonna pass
@LightnessRacesinOrbit Freudian slip
 
user3010322
My favorite Cat is online. <3
 
@ThePhD <3
 
@CatPlusPlus no, deliberate, but not obvious enough in hindsight
 
If I need assembly, I use an assembler.
 
user704565
5:23 PM
ok c++ lowers, typedef void func_fmt(const char*,...); func_fmt func=(func_fmt)address; func("Crashes too!")
 
user704565
if you want it in c++ already
 
Xeo
1 min ago, by Xeo
We don't care
Read, reflect, and leave please.
 
user1804599
lol variadic functions.
 
@Xeo Would you act like a grown-up human being for one fucking second? He has the same right to be in here that you do.
 
lol static addresses
 
Xeo
5:24 PM
@LightnessRacesinOrbit Never
 
user704565
so now i asked about how to do that in C++, if not assembly, but i get same response - get out ;)
 
user704565
nice
 
You've missed the most important part
 
user1804599
You should have read the room’s tags.
 
That we don't give a damn
 
5:24 PM
@jakubinf Sorry about these people.
 
user1804599
And the newbie hints, as linked in the big fat message in the sidebar.
 
There's a real C++ room somewhere
 
You should formulate your question better and post it on SO, though.
 
You can ask there!
 
@jakubinf Read this. Then take a look at the on the top right corner.
 
5:25 PM
if I have a shared_ptr to a functor, there is no alternative to ptr->operator()(..) ?
this sucks :(
 
And stop flagging random messages.
 
No Lounge messages are random.
 
user3010322
@gnzlbg (*ptr)(..); too.
 
The real reason we want him to leave is being annoying and flagging shit, really
 
TIL ITT Cat is not the annoying one
 
5:26 PM
never
 
@ThePhD thanks, its late and im a moron.
 
@ThePhD I'd prefer that, myself. Or reference it.
 
Cat is the greatest cat ever.
 
user3010322
@gnzlbg Pat pat. Happens to the best of us.
 
He's not annoying, albeit somewhat grumpy at times.
 
5:27 PM
@TonyTheLion I dunno, I find his grumpiness annoying when he takes it out on others
 
user3010322
@LightnessRacesinOrbit <3 references
 
I love you too
 
@ThePhD <3
 
user3010322
I rarely use pointers anymore these days.
 
Woah
what
 
user3010322
5:28 PM
I also like the strong guarantee they hav eon constructors.
 
@LightnessRacesinOrbit It can be, but its not the same annoying that you get from people continuously harassing you with some question, when they could just go on Stack Overflow and ask it there.
 
@ThePhD ikr
@TonyTheLion I'd hardly call this "harassment", certainly not when you compare it to the vile remarks being sent his way.
 
I have a very expensive object, and don't know who owns it yet, so im using a shared_ptr
 
I mean, if you can't handle a couple of messages in a chat room, perhaps the internet is not the place for you
 
well, I sense we could discuss this all night
 
5:28 PM
Bah, "get out" is not ~vile~, it's to the point
 
user3010322
@CatPlusPlus What I mean is I don't use regular pointers, just void*on occasion. ;D
 
but, yea, I have to go
 
@CatPlusPlus It's rude as fuck and completely uncalled for. Grow up.
 
@TonyTheLion It wouldn't be the first time ;)
@ThePhD Ugh - I haven't used void* in over 9,000 years
 
5:29 PM
@LightnessRacesinOrbit :)
 
Fuck euphemismism and fake smiles
 
Nerdrage
Cute!
 
@LightnessRacesinOrbit do you need to interface with C?
 
@gnzlbg Yes, and I lied :)
 
user3010322
@LightnessRacesinOrbit Sometimes, it's a necessary evil. =[
 
5:30 PM
instead of templates, they use void* for everything
 
I do manage to keep it to a low-level interface between the two environments, though
 
@LightnessRacesinOrbit my sarcasm detector is down too, shit
i should go home
 
user3010322
But I mean, if I'm going to use void*...
 
5:31 PM
@gnzlbg Mine requires a high-level certification
 
user3010322
I might as well put it all together in my favorite structures. <3
 
user3010322
union { void* unsafe; uint32 more_unsafe; } <3
 
user3010322
All the things I love~
 
I hope you dont program for your future self :P
 
user3010322
Unnamed union, type punning, and all its goody goodness. <3
 
5:32 PM
@CatPlusPlus ... again?
so, how many of you are familiar with "The Late Late Toy Show"? I would assume not, and recommend you make this the year to change that.
 
user3010322
@R.MartinhoFernandes I'm lost. =[ I don't know how to solve this.
 
Xeo
5:45 PM
Well fuck Uplay.
 
Anybody know the distance between further and farther?
I was fairly certain I was instructed that further was unknown distance (as with amount and number).
 
user3010322
@Xeo That thing is still alive?
 
Farther is more distance. Further is more figurative
 
user3010322
I thought it was canceled.
 
A tricky question
Without using any semi-colons in the entire code write a simple application in C/C++ which simply prints "Hello World" on the console
 
user3010322
5:54 PM
Use digraphs/trigraphs.
 
"Farther" is colloquially considered acceptable for most uses of "further", though
 
user3010322
Oh wait, there's no semicolon digraph.
 
@LightnessRacesinOrbit are there any cases where further is used for distance?
 
user3010322
"Go further up the road" <--- I've heard that in peopletalk.
 
yup @ThePhd
 
5:56 PM
Who created all these confusing words :\
 
user3010322
int main () { if (printf("%s", "Hello World")) {} }
 
user3010322
That was easy.
 
Not bad ! you took like 4mins, right ?
 
Oh.
I thought this was C++ :\
 
@SaifAsif extern "C" short const main[] = {-14520,448,0,18432,-14393,1,0,-29368,3893,0,18432,-15673,12,0,1295,184,0,-15616‌​,25928,27756,8303,28535,27762,8548}; // THIS IS HOW WE ROLL
You still need that semicolon unfortunately
 
user3010322
5:59 PM
@LightnessRacesinOrbit Hah, mine didn't need one. :D
 
user3010322
Because I'm a dirty cheater.
 
@Pawnguy7 Colloquially yes from the start
@ThePhD oh, nice
 
I would still go for @ThePhd's answer. His answer literally was without any semi-colon
 
@SaifAsif but mine's awesomer
 
user3010322
Wait, we're answering a question.
 
user3010322
6:00 PM
And, true, @LightnessRacesinOrbit's is much more badass.
 
user3010322
I wonder if mine really works though. I didn't put it into coliru. ._.
 
@ThePhD It does
 
user3010322
 
@LightnessRacesinOrbit your answer is what I would call "tigram" answer!
Yeah it would work @ThePhd
 
I seemed to have remember some things backwards.
I had it as burst wasn't the word, and bust/busted was :\
 
6:02 PM
we use the phrase "Tigram" when we put up some logic in the code that we don't want the any-other coder to understand
 
Why don't you want them to understand?
Unless any-other coder is a reviewer for the obfuscated C contest.
 
Just to mess up with the new guys !
 
1
A: How to use a std::function as a C style callback

DraxIn most cases you can't. But if your stored a C style callback in your std::function, you can use the target() member function.

Woah
 
user3010322
You didn't know target existed? :O
 
lol, now someone saying the right thing would be to make ß decompose into sz because it's a ligature.
@LightnessRacesinOrbit Not valid.
 
6:08 PM
@R.MartinhoFernandes It's certainly not legal.
 
@R.MartinhoFernandes It does "work" on all the GCCs I've tried it on, though.
 
Gotta go shooping. I'm going to try and cook some bakies this weekend.
 
Don't do drugs
 
You'll end up like Cat! Bitter and young
 
user3010322
6:13 PM
@R.MartinhoFernandes Let me know how it goes!
 
@R.MartinhoFernandes 'bakies'?
 
user3010322
He's baking some... .. medicine.
 
My house is fucking cold
 
@thecoshman He meant "babies".
 
@Jefffrey I hear fire makes things warm
Particularly when it is burning houses.
 
6:20 PM
@Pawnguy7 You are becoming sympathetic lately.
 
Perhaps.
 
> Black Friday Deals in Patio, Lawn & Garden
Geez, thanks, Amazon.
 
I saw a documentary on Black Friday once. On how it started.
I seemed to have forgotten how. Something about teddy bears.
 
Also, what do you guys think that article?
 
@EtiennedeMartel Mismatched Barteks.
 
6:32 PM
I finally have SSD and wow.
 
@StackedCrooked AT LAST!
 
It's more impressive than I expected.
 
@StackedCrooked We told you so years ago ;)
 
@EtiennedeMartel It was pretty terrible.
 
I got my previous computer in 2010, just before SSD became common.
 
6:34 PM
@DeadMG How so?
 
well, let's see.
first, he pretty blindly asserts that immutability is this great thing because no sync, and then just waffles on about immutability as if it's the greatest thing since sliced bread.
he doesn't really get to grips with the upsides and downsides of immutability at all.
 
"waffles on"?
 
secondly, he clearly doesn't really know C++ that well- for example, see that crap about map() and not being able to deduce the return type, which decltype can do just fine.
plus, nice job with is_convertible<F, std::function<U(T)>>, it's not like std::function's constructors are hideously underconstrained in many implementations or anything like that...
so, in short, my reading of the article is "er mah gerd immutability so great", as opposed to any useful reasonable discussion.
 
That sums up my experience with LYAH
 
not to mention that a child could design an immutable linked list, and it's stuff like immutable random-access containers, immutable trees or hash tables, etc, that I might actually want help with (if I ever decided I want one).
 
6:39 PM
@StackedCrooked SSD mkes only a useful difference to some operations, but with stuff that reads and writes a lot of small files, (like builds), it's a massive gain.
 
he also doesn't consider stuff like a move-only List<T> and the performance benefits of not having to use that awful reference counting.
or possibly practical implementations of a garbage collector in C++, like Boehm?
he tries to show off the article as some kind of "You should really consider all the options" jobby, but hardly considers any actual options.
 
array doesn't have a () operator :(
 
@gnzlbg why would array have () ?
 
@MartinJames It makes a huge different in basic usage. Navigating the file system, starting programs, rebooting.
It's all immediate.
 
because classes for multi-dimensional arrays need to have it
 
6:42 PM
thats the worst argument ever...
 
in generic code, i take a point
I can take an Eigen vector, a boost::geometry point, armadillo vector, trillinos vector...
 
@StackedCrooked Well, I don't notice that anymore:) I suspect that if I was forced to use a spinner again, I would be climbing the walls and headbanging the kbd in short order.
 
but I can't take a simple std::array because it doesn't implement ()
 
@gnzlbg std::array isn't a multidimensional array.
 
so C arrays and std::containers use [], while the rest of the world uses ()
 
6:44 PM
you'll have to specialize for it/use a wrapper.
 
yeah, that is what break my balls
 
I doubt that very much.
 
Yeah, balls aren't made of bones.
 
all of those cases can be handled by a generic begin(x)/end(x) interface.
 
or by a generic at or get
but the fact that i implement at or get for (), and specialize for std containers and pointers tells me that there is something wrong
 
6:46 PM
I've been thinking about trying for a garbage collector implementation in C++.
 
I lost him when he said "immutability is great". I mean, ok, no race conditions and everything is cool, but his argument about copying the vector every time I need to push it doesn't really strike me as "performant". I might just be a newb though.
 
@DeadMG is reference counting that bad for your application?
 
@gnzlbg Realistically, they're different algorithms suited for different workloads.
oh, it's not because I really really need it, it's partly just because I'm curious.
 
gasp heresy etc
yeah, garbage collectors are fun
 
@DeadMG go for it
 
6:48 PM
i remember some link from Hans Boehm @hp where they provide one
and the rust mailing list had a lot of interesting posts about them
 
@Jefffrey Well, I would argue that most code does not handle sync points. Even if they did, I'd rather consider ownership transfer (e.g. move semantics) or warps rather than immutability.
 
sound like a fun endevour
@Jefffrey to me it sounded really slow too :/
 
@Jefffrey the nice thing about immutability is that you can usually optimize nearly all the copies away
(at least in a reasonable language, given a reasonable compiler)
 
I'm yet to see an efficient immutable array-like data-structure
 
You can do a small embedded DSL (domain-specific language) using template expressions :) — sehe 6 secs ago
 
6:53 PM
moving an int == copying an int there, and if you grow or shrink you'll have to effectively copy everything
 
@gnzlbg uh, that's like saying "I've yet to see a combustion engine run on electricity"
An array is only a meaningful data structure if it can be made mutable
 
@jalf Possible.
 
i mean, if you are using a list, you dont care about performance
otherwise you'll be using a stable_vector
same thing for a tree, if you care about performance you use a flat_set..
 
@gnzlbg You're talking about C++ specifically, I take it, and not immutability in programming in general?
 
im talking about my CPU going through memory sequentially
 
6:54 PM
...
Do you even know what a stable_vector is?
 
@gnzlbg So you are talking about C++, or similar languages, where allocations are fixed in place and handed out at pseudo-random addresses.
 
I personally have never ever seen that reference before.
 
> We present stable_vector, a fully STL-compliant stable container that provides most of the features of std::vector except element contiguity.
Can you drop the bullshit now?
The one thing you care about is the one thing stable_vector doesn't have.
 
@gnzlbg Protip: in a GC'ed language, it is pretty trivial to put subsequent allocations directly next to each others in memory (and in the kind of languages where immutability really makes sense, it would also be conceivable for the implementation to transform high-level code using a list into some kind of array-like structure in memory)
 
@jalf Pretty sure GHC does that.
 
6:58 PM
@R.MartinhoFernandes boost implements a stable_vector as an array of pointers to elements :/
 
But sure, assuming you use a language where the implementation is powerless to perform significant optimizations, writing any kind of code which doesn't naively translate to the underlying CPU instructions is going to cost a lot of performance.
 
@gnzlbg What else would it be?
 
@gnzlbg and... you were saying something about going through memory sequentially?
@R.MartinhoFernandes I haven't checked, but it wouldn't surprise me
 
the only implementations I've seen of a stable_vector as two arrays, one of elements and one of bits, and you flag the elements that are removed, and iterate with filtered iterators
 
that would be O(N) random access, which would be super bad.
 
6:59 PM
and you have to reserve memory from the beginning, and can't exceed the initial max capacity
you don't get random access
you get a "flat_list"
 
then what the fuck
 

« first day (1140 days earlier)      last day (3810 days later) »