« first day (1135 days earlier)      last day (3807 days later) » 

10:00 PM
you know about NSA, right?
 
zch
It's not a big deal, but a bit not optimal.
 
@zch Sigh, why would it?
 
it they'd write an stdlib that's where string would store the data
 
They should just make the stdlib magical vOv
 
@Abyx Structure = Syntax, Interpretation = Semantics
 
10:01 PM
Had compiler writers gone with that idea, we would have some groundwork for modules laid out years ago.
 
Ell
the stdlib isn't magical?
 
nope
 
Some of it is, for example part of the type traits.
 
it's ugly but not magical
 
10:02 PM
Could I implement them myself, portably?
 
@R.MartinhoFernandes or give us modules
 
well type traits just use compiler builtins
 
@R.MartinhoFernandes ah, same thought
 
@Abyx According to my book, that's magic.
 
which type_trait can't be implemented without magic?
 
10:04 PM
is_pod. most of them
fuck it. I want reflection.
 
most of them were part of boost.typetraits before
 
The beginning of wisdom is to call things by their right names. - Chinese Proverb
 
Ell
@Abyx when you say builtins, you mean non portable stuff?
 
user1804599
@Abyx is_pod does reflection. :)
 
^ for @LucDanton
 
10:05 PM
i think most of them can be implemented without magic
 
define magic
 
@gnzlbg and boost use same builtins.
 
@sehe compiler hooks
 
@Ell yep. non-standard stuff, like __builtin_is_something()
 
@gnzlbg That seems to be an excellent question for Stack Overflow, actually
 
Ell
10:06 PM
Right
 
@gnzlbg And either they used the builtins or you had to write specialisations.
 
This kind of question tends to be highly rated
 
@sehe I think it was asked before
 
@Abyx lol. go find the link then!
 
user1804599
I want Voldemort types.
 
user1804599
10:07 PM
Ugly detail namespaces are ugly.
 
user1804599
Can’t wait for auto.
 
But in the book of Abrahams they implement a lot of them without hooks, just by specializing structs. Is not nice, but doable.
 
> "The Book of Abraham"
 
Ell
Now I need to know why e^x = (x^0)/(0!) + (x^1)/(1!) + ... + (x^n)/(n!)
 
@rightfold Wait a second. I just realized: we can already have voldemort types by returning function-local struct types. They're just limited in terms of genericity (you can't template memebers in local types, e.g.)
 
10:09 PM
@Ell You can do that with calculus.
 
user1804599
@sehe How do you write down the return type?
 
Now, with c++14 poly-lambdas, aren't we effectively locally defining functors with generic function-call-operator members?
mnom mnom
auto? any?
 
4
A: Is there "magic" in the STL?

spraffC++0x is going to standardise some de facto "magic" type traits. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2984.htm "Additional Type Traits for C++0x" This contains a few remarks such as "XXXX is believed to require compiler support." See also http://gcc.gnu.org/onlinedocs/gcc...

 
user1804599
@sehe You cannot do that in C++11.
 
@Abyx coolness
 
10:11 PM
@sehe i meant boostpro.com/mplbook
 
ikr
I was somehow glossing over that (thinking `unique_ptr<base> foo() { return unique_ptr<base>(new localX); }`)
 
user1804599
@sehe argument types are irrelevant.
 
@gnzlbg I know. It was just a nice phrase. I can't often resist terrible puns
 
user1804599
@sehe That’s type erasure, not a Voldemort type.
 
:D
 
10:11 PM
@rightfold Sorry
 
user1804599
Als je er maar veel spijt van hebt.
 
Heel erg
 
user1804599
Mooi.
 
user1804599
>:(
 
Ell
@Mysticial Can I? Where would I start?
 
10:12 PM
@rightfold The point about C++14 lambdas effectively bypassing the template-limitations of local types still stands though
 
btw, the placement new can be considered a "magic"
 
user1804599
@sehe I don’t really get how lambdas are relevant. :v
 
@Ell There's two ways to approach it. One showing that the series is a derivative of itself. And exp(x) is certainly a derivative of itself.
That method isn't rigorous though.
 
user1804599
Except that you can return a lambda in C++14, but yeah.
 
user1804599
Wait, hmm.
 
10:13 PM
3
Q: Which <type_traits> can't be implemented without compiler hooks?

gnzlbgC++11 provides standard <type_traits>. Which of them cannot be implemented without compiler hooks?

 
The other way I know of is to do a Taylor series expansion of exp(x).
 
@rightfold They're locally defined types (at least lexically. Of course, the compiler may elect to define it in some global scope, but effectively it's hidden from external scopes)
 
user1804599
auto x = [] { return [] {}; }; // Voldemort types! :D
 
user1804599
Perhaps. :(
 
10:14 PM
@Ell Oh hell... The exponential function is actually defined as that power series.
You're all done! :P
 
@gnzlbg relevant: stackoverflow.com/a/6276081/85371 (linked above)
 
Ell
@Mysticial Oh awesome xD
 
Really good question. +1 :) — jalf Aug 26 '10 at 11:28
 
so i have this code ideone.com/QG4tsS i'm trying to display the contents of an array with my Show function, but my problem is that it displays the contents over and over on new lines. how can i make it update and override the array so it's not doing that?
 
@Ell Not quite actually. The definition of exp(x) is the power series. But now you still have to prove that e^x = exp(x).
 
10:15 PM
Aw my hilarious comment was removed
SO sucks balls
4
 
@Mysticial I thought it was defined as the least solution of df/dx = f.
 
Hi, Mr. strange. You have the weirdest greeting.
Did you read the tags and the [newbie-hints](http://loungecpp.wikidot.com/owners:newbie-hints)?
 
user1804599
@Mr.1.0 ugh ugh pointers.
 
@LightnessRacesinOrbit omg why?
 
@sehe "is believed" sounds like "i dare you to try" :D
 
10:16 PM
@R.MartinhoFernandes Both those definitions are valid according to wiki.
 
Although you'd then have to prove that there's only one solution to df/dx = f.
 
@gnzlbg ? I have no clue what you're responding to. Perhaps you can do like everybody else and click the reply arrows?
 
Ell
Forgive my ignorance - I've only done e^x in school, never exp(x)
 
@Ell It's the same thing.
 
10:17 PM
High schools e^x
Highschool se^x
 
TIL about wimpy. I want to eat a hamburger from wimpy now.
 
@Mysticial There isn't.
 
Ell
@Mysticial same thing as in one is an alias of another? or same thing as in have the same value
(if that makes sense?)
 
@Ell Same value. e^x = exp(x) = (x^0)/(0!) + (x^1)/(1!) + ... + (x^n)/(n!) for all x real and complex.
 
oh baby
you took my line
 
@ScottW <3
 
@StackedCrooked It looks fabulous~
 
in bin, 6 hours ago, by jalf
I am not a violent man, but the next person to bring up listboxes will be punched in the nose
 
@StackedCrooked such awesome piece of engineering. Always find it fascinating
 
^^ lol
 
10:23 PM
@Mysticial wait... you read the bin?
 
@jalf listboxes :D:D:D runs and hides
@TonyTheLion It's at the top of the starboard. Hard to miss.
 
shit gets starred in the bin
ahahahah
 
omg lol
 
Ok! Thanks for the update. I guess the line "Spirit is much easier when parsing into PoCo" really matches your situation, then. I'd seriously consider either using a 'Spirity' simple grammar and post-processing it (like my updated answer shows) or not using Spirit in this case. It seems like you're getting the worst of two worlds where your models meet the Spirit framework... — sehe 9 secs ago
@TonyTheLion done :)
 
10:25 PM
Listboxes are OK. List views generally suck.
 
GUI's are mostly terrible
damn
I know all those lyrics by heart
listened to those songs sooo many times
 
how do you disassemble C++ code into really simplified assembly?
as in, non-optimized assembly
 
@sehe @sehe thanks! I didn't know about the reply arrows! :)
 
user1804599
F# AND and OR patterns are funny.
 
7 hours ago, by Cat Plus Plus
I've started PowerPoint, that counts as working, time for a break
^ Cat's idea of work
start powerpoint - break time
:effort:
 
10:30 PM
Break is work too so gotta take a break after that
 
It's great because recursion
get it
 
I'm hungry and sleepy
 
@CatPlusPlus you stack will overflow with work/break :p
 
10:31 PM
so did you get anywhere with your presentation?
 
@CatPlusPlus Same.
 
What is stack
 
I guess I'll just sleep.
 
user1804599
I want a call queue.
 
@TonyTheLion I got slides done, still need narration
 
10:32 PM
a thing where you put things on top of each other.
@CatPlusPlus but :effort: right?
 
I kinda need to pass this stupid seminar
 
user1804599
@TonyTheLion Or in Java, a thing where you put descriptions of where to find things on top of each other.
 
oh man, Liquid really freaks out if you try to have it generate anchors whose name would include a space
 
Why are you using spaces in names
 
@TonyTheLion towers of hanoi?
 
10:33 PM
@thecoshman ohhh I remember that
 
user1804599
@thecoshman use hyphens.
 
@CatPlusPlus I wasn't trying to, but I eventually found out that is why was freaking out
 
user1804599
Is saying this taboo on Stack Exchange?
 
@ScottW I wish.
 
10:33 PM
@rightfold nah, remove spaces does the job :P
 
nosanity
 
no hope
 
I want remove spaces to write my presentation
 
@ScottW to love me? I know baby
 
Fuckit, sleep time
 
10:34 PM
<3
Anyway, bed time
 
I lost my only USB thumb drive that wasn't horribly slow and/or unreliable :(
 
@ScottW Good night <3
 
user1804599
This question is hilarious.
 
@rightfold lol
 
@StackedCrooked Are you sure?
 
10:40 PM
ok, I just wrote this -
            void setConnection(AbstractServerConnection& conn) { m_conn.reset(&conn, [](void*){}); }
            std::shared_ptr<AbstractServerConnection> m_conn;
and now I feel *evil*
 
Surprise
Actually, last Friday I nearly introduced my first shared_ptr into my new work's code base. I didn't want to do it, and called it weekend first.
 
@sehe forgot the landing gear bay doors :p
 
user1804599
TIL: the <=> operator in Ruby is called the “spaceship operator.”
 
lol
 
Oh, actually, I specifically unselected that
Thinking it was likely the ground machinery :)
 
user1804599
10:43 PM
@melak47 It’s funny that you’re the one saying that.
 
very
 
user1804599
@melak47 OMG GEAR.
 
@sehe I personally think that looks kind of cool
 
user1804599
SOMEBODY MENTIONED THE NAME OF MY PROJECT.
 
@rightfold I don't get it
@rightfold uh oh
 
user1804599
10:44 PM
 
I didn't mean to! I'm sorry
 
@rightfold it which context?
"look at that idiot"?
 
@rightfold it is in perl too IIRC
 
With the number of (unfinished) projects the lobster has pending, it is statistically improbable that anyone can have a conversation of more than 3 sentences without accidentally naming any single one of his projects.
 
user1804599
@thecoshman All I know is that =()= is called the “goatse operator” in Perl. :D
 
10:46 PM
@thecoshman but not the naming
 
In unrelated news.
Apparently I forgot how to add something to std::hash.
 
user1804599
@sehe OMG KREEFT
 
I got this error before, but I forgot how I fixed it.
 
@rightfold that's a perl operator?
 
user1804599
@thecoshman much like --> is the “goes to” operator in C++.
 
10:47 PM
@rightfold ah
 
@Pawnguy7 namespace std { template<> struct hash<YourType> { size_t operator()(const YourType& bla) {...} }; }? don't know if putting it in namespace std is evil or not though :p
 
user1804599
20
Q: Is the Perl Goatse 'Secret Operator' efficient?

dawgThe "goatse operator" or the =()= idiom in Perl causes an expression to be evaluated in list context. An example is: my $str = "5 and 4 and a 3 and 2 1 BLAST OFF!!!"; my $count =()= $str =~ /\d/g; # 5 matches... print "There are $count numbers in your countdown...\n\n"; As I interprete the u...

 
q.e.d.
(now, quickly start a project named QED)
 
@melak47 I think it is required
 
@Pawnguy7 you can always specify a custom hash type in unordered_map as a template argument
but I guess if you want it in std::hash, you have to :p
 
user1804599
10:50 PM
@sehe quantum electrodynamics library.
 
@rightfold dimulator?
 
@melak47 true. Anyway, I have what you do (Stole it off SO). I get does not provide hash... followed by std::hash<type> has already been instantiated...
 
@Pawnguy7 uh...brb, reinstalling windows
 
Y'all I'm trying to write in a functional programming style in C++ and it's not going very well
 
Hi
Can someone help me to find outstanding manual about math and physics for game developers? Please.
 
10:57 PM
@Grinya no. please use gamedev.stackexchange.com
 
> Please
 
Hm.
I found me complaining when I had this problem last time... but no solution.
 
Thank you very much!
Need to implement simple rigid body dynamics in game engine
 

« first day (1135 days earlier)      last day (3807 days later) »