Lounge<C++>

Today we're daydreaming about C++26 reflection
Jun 2, 2017 04:49
no need to ask if you may ask a question - just ask it, and anyone interested will respond...
Nov 2, 2013 07:52
the classic icon for emacs is a "kitchen sink", for a good reason...
Nov 2, 2013 07:51
over the years, I went vi -> emacs -> xemacs -> vim
with some GUI IDEs scattered in between
vim gets the job done
Nov 2, 2013 07:50
hahaha sacriledge - emacs is not just an editor
Nov 2, 2013 07:48
no-mouse-mode usually faster: vim or emacs
Mar 10, 2013 09:49
is a monad related to a lambda at all? (trying to understand monads in context of Haskell)
Mar 8, 2013 17:00
lmao : this is better than the movie:

http://www.youtube.com/watch?v=l2KSPiTOMR8
Mar 8, 2013 16:50
@Rapptz you were right - the Spiderman reboot is boring - I couldn't watch more than 15-20min of it...
Mar 8, 2013 07:56
@sehe ok - I added a small paragraph to the OP

http://stackoverflow.com/q/388242/975129
Mar 8, 2013 07:41
@sehe good idea - will do
Mar 8, 2013 07:38
the book is almost a compilation of the author's observations through his experiences with TMP (so not much theory - much more in terms of TMP techniques), so I think its usefulness will depend highly on the match between the reader and the book (in other words, the intended audience may be very narrow)
Mar 8, 2013 07:34
the biggest drawback (besides the formatting/editing) is that the edition was written pre-C++11
Mar 8, 2013 07:34
@sehe I find it a little hard to read, but it has tons of useful little snippets for someone who is just learning TMP (but I wouldn't recommend it to a total beginner of TMP) - otoh, I actually find it easier to take in than Alexandrescu's opus
Mar 8, 2013 07:13
Though I do wonder if there is less writing (or good writing) out there due to so many new forms of media and distribution... (as a reason for all the reboots)
Mar 8, 2013 07:11
I actually like the new Star Trek reboot (that one's needed - all the actors getting too old/died off)

Out of the non-reboots, I like Kick-Ass.
Mar 8, 2013 07:08
ok - I'll check it out then
Mar 8, 2013 07:07
did they make it "darker"?
seems like TDK is influencing other films...
Mar 8, 2013 07:04
@Rapptz is that a reboot?
Mar 8, 2013 06:55
nice
Mar 8, 2013 06:55
LoL

Themes: demons, developing powers, Ecchi, harem
Mar 8, 2013 06:53
@StackedCrooked c any good anime lately?
Mar 8, 2013 06:53
how appropriate...
Mar 8, 2013 06:52
rofl - I never noticed that
Mar 8, 2013 06:52
aye - lol - they need to push out a edition 2 of the book!
Mar 8, 2013 06:49
@Don look at libevent.org for a list of current ways of doing this, or even better - just use the library
Mar 8, 2013 06:48
ic - ty - I'm plodding through Di Gennaro

http://www.amazon.com/Advanced-Metaprogramming-Davide-Di-Gennaro/dp/1460966163/ref=sr_1_1?ie=UTF8&qid=1362725242&sr=8-1&keywords=c%2B%2B+advanced+metaprogramming+programming

v.nice book, btw, but new c++11 features (in particular, typetraits) is making some of the code obsolete...
Mar 8, 2013 06:46
hehe - good to hear - I thought that if I waited long enough, there may be enough new features to make SFINAE obsolete - lol
Mar 8, 2013 06:44
with typetraits, are there still a lot of cases where you use SFINAE? (this stuff is new to me, so I'm still trying to get a feel of what's used in a changing landscape...)
Mar 8, 2013 06:43
would be a really nasty question to come up in a job interview
Mar 8, 2013 06:42
shake my head
Mar 8, 2013 06:42
never would've guessed - in that decl() post...
Mar 8, 2013 06:38
@StackedCrooked damn - comma operator smh 8^P
Mar 7, 2013 20:26
@R.MartinhoFernandes lol - looks like DB tri-state logic
Mar 7, 2013 12:06
@LucDanton your ghci sanity-check regarding let helped: with your comment, I found that it was the copy-paste pretty-print single-quotes in the pdf that was killing me (was not 100% obvious to a Haskell noob like me) - ty
Mar 7, 2013 08:23
btw, in learnyouahaskell, when the code **doesn't** have `ghci>` in front of it, does it mean it'll only work as a compile?

eg removeNonUppercase st = [ c | c <- st, c ‘elem‘ [’A’..’Z’]]
Mar 7, 2013 08:20
@LucDanton yeah - for that case, I mentioned earlier that it looked like a template parameter... anyhoo, reading along while waiting for g++ to compile
Mar 7, 2013 07:43
@Pubby aye - I agree - I'm just using that as a "crutch" to understand some operations for the moment.

When I looked at it again a 3rd/4th time, it definitely looks more like something to help type-inference along.
Mar 7, 2013 07:40
@Pubby k - ty
Mar 7, 2013 07:39
@Pubby to see if there is a existing type that does what I need to do (so I don't need to create a new one: eg Complex)
Mar 7, 2013 07:37
@Pubby btw, is there a way to query ghci for all types that are in the Num typeclass?
Mar 7, 2013 07:34
@Pubby I'm going through learnyouahaskell when I came across these examples:

ghci > 20 :: Int
20
ghci > 20 :: Integer
20
ghci > 20 :: Float
20.0
ghci > 20 :: Double
20.0

ghci > read "5" :: Int
5
ghci > read "5" :: Float
5.0

The first set looks almost like a C++ cast while the second set looks like a disambiguator for a template function. This is my first day looking at Haskell, so I'm using C++ equivs to get a handle on things, but I'm sure as I get more familiar with H, those ideas will fall away...
Mar 7, 2013 07:26
trying to get a handle on Haskell's :: in the context of typeclasses

it's really funky - sometimes looks like a C++ equivalent of a cast, sometimes looks like a template parameter. (I think it's due to functions in Haskell being first-class)
Mar 5, 2013 06:08
HoTS beta wasn't bad
Mar 5, 2013 06:08
海賊
Mar 5, 2013 05:44
though that prolly doesn't apply to KPP ;^P
Mar 5, 2013 05:43
20 yo is the age of adulthood in JP
Mar 5, 2013 04:34
@EtiennedeMartel wtf lol
Mar 4, 2013 09:53
it's hard to keep one's sanity these days - w/so many languages, and so many mutating languages - eg C++11 looks v.different from pre-C++11
Mar 4, 2013 09:52
lol
Mar 4, 2013 09:51
@LucDanton thx for that explanation - it helps a lot to have sanity checks when shifting paradigms