« first day (722 days earlier)      last day (4240 days later) » 

4:21 PM
@CatPlusPlus No, it's in space. Like ye olde X-Wing style thingies of olde. Plus stealth.
 
A lot of things are in space.
 
plus, I intend to add physics that have real gameplay repercussions, because firing your engines makes light, but coasting along doesn't
 
List comprehension sucks
 
I agree
 
4:46 PM
Nope.
 
Als
Hello guys
silence/
 
qox
List comprehensions are great.
 
naw
 
qox
yaw
 
naw
 
Als
4:53 PM
guess what I am in Casablanca right now...
 
naw
 
yaw
pitch
roll
 
250-400 nm
 
Als
huh..seems like im invisible
 
Is there somebody out there...?
 
4:57 PM
You just missed him.
 
Als
whom?
 
Dunno, never talked to him.
 
Als
@StackedCrooked Who is "HIM"?
 
HIM, is the HYMAN.
 
I read that as hymen first time
 
4:59 PM
I wanted to do that but changed to HYMAN.
It looks cool in all capitals.
 
Als
geez
 
I'mma make my website suck less
Glad you hate to say it ^^
 
meh, Library linkers always hate me.
 
linkers hate everyone
 
5:17 PM
Some more than others. GCC linker has a contract out on me.
 
Basically i need to know how to write a function in a class. — Pendo826 3 mins ago
Best question I've seen today
 
The hardest part is figuring out what their actual assignment was.
 
give him that link ^^
 
Poco's dynamic var is awesome
 
5:27 PM
I never really was very excited about that.
I wonder if I missed something then.
 
depends on your use
we use it for interacting with a JSON interface
 
I see they are using it for reading values from a database. The DynamicVar has knowledge of the held type and this allows for a little extra magic.
That's what I suspect.
 
user406009
Wait, what's the main difference between Poco's dynamic var and boost::any?
 
any is simple and dynamic is loaded with shit.
I like this slide.
Better than UML.
 
Ell
Poco's dynamic does this:
DynamicStruct a;
a["arbitraryField"] = "whatever";
 
5:37 PM
> session << "INSERT INTO Person VALUES(?, ?, ?)", use(person);
The start of that statement was a little worrying.
Oh, and they use the comma operator. Even if Scott told us not to.
 
without using crazy techniques, you can't build crazy stuff
 
You can but you will writing more code and it will be less statically typed.
More code + More bugs/Quantity of code
That wouldn't be good would it?
On the other hand unit tests would help there. (But don't say that here.)
 
Ell
dynamically typed isn't so bad
also i don't understand how unit tests work
how do you know your unit tests are right?
 
It's not rocket science.
 
Ell
but I mean, writing unit tests is like writing your library in reverse
 
5:43 PM
Ok...
 
You write code that tests contracts.
 
Ell
like what?
I have seen the trivial add(a, b) tests
 
Also the process of writing a test case before writing the implementation helps to focus on the end rusult .
 
Ell
hmm
How do you unit test an image library?
compare it to an image with correct output?
 
@Ell yeah, not everyone is sold on unit tests. I
 
5:46 PM
@Ell it would be a regression test, not a unit test.
 
@Ell Some OpenGL drivers do/did that
 
Ell
@Abyx a regression test?
 
I'm not really a big unit test person
 
unit test tests units of code.
 
it's just more code you can get wrong, and you could have spent that time fixing actual bugs, and you can't test for the more difficult bugs anyways
 
5:47 PM
Mar 13 at 9:30, by Luc Danton
@thecoshman I have unit tests for the unit tests.
 
@Ell I recently had to write code for encoding and decoding network data. For the tests I used real packets that I had captured with Wireshark and compared my results with the wireshark report. I agree it would be foolish to test my own decoders against my own encoders and vice versa without ever testing against a reliable outside measure.
 
Your example code isn't even 31 lines long, so hard to have an error on line 31 of it. — Joachim Isaksson 16 mins ago
^^ lol
 
Maybe his code started at line 12.
Or line 12 started at his code. Muaha.
 
Xeo
6:06 PM
Hey @Luc, did you get the pling wrt the indices trick faq?
 
@Xeo Yes.
 
Xeo
So, any comments? Do we have an faq on that?
 
I don't think we do.
 
6:22 PM
> 2D Rubik's Cube
???
 
Rubik's Square?
 
Could be talking about an 8 puzzle?
 
Ell
a sliding puzzle?
 
a your momma puzzle
 
Ell
an obamma puzzle
a go-llama fuzzle
I hate turning flow charts into code -.-
 
6:35 PM
People do flow charts?
 
Ell
in maths
 
Wow, even less likely.
 
Ell
we aren't actually doing programming
just decision maths, but I'm turning them into programmes
I have a habit of using goto though because fors and whiles etc. aren't as recogniseable :L
damn
 
Xeo
Turn them into Minecraft redstone circuits!
 
Ell
6:40 PM
oh wait.
ruby doesn't support goto. LOL
 
Xeo
switch?
 
Ell
switch? o.O
 
switch statement o.o
 
Xeo
switch(value){ case x: ...; case y: ...; }
 
Ell
what about it?
meh I cba with this
if it takes in [6.1, 6.9, 5.7, 4.8, 5.3]
 
Xeo
6:41 PM
switch is the higher-level goto :P
 
Ell
and outputs 4.8
is it getting the minimum value a reasonable guess at what it does? I cba to try it with different values for the array
 
Xeo
Damn. I should've never started learning a thing about functional programming. Now I see opportunities to fold/reduce and map all the time in code.
 
That's good!
 
Xeo
Like the all_of metafunction that checks if all values in a pack are true
 
Ell
6:43 PM
I forget what fold/reduce is. Is that the accumulation type thing?
 
Xeo
yes
it's just a foldl over the list with && and true as the initial argument
 
Ell
would I be right in saying ruby is quite functional?
 
Xeo
I even tried it with Haskell in GHCi and let all_of a = foldl (&&) True a is really all it needs. My mind is being warped. :(
 
@Xeo all_of = foldl (&&) True is even nicer :)
 
Xeo
right
 
6:45 PM
Pick either foldr or foldl'. Not that it matters too much but.
 
Xeo
What does foldl' do differently?
 
It's stricter.
 
Xeo
(Note: I'm just throwing things at GHC hoping it works.)
 
Ell
s'okay I think i wrote it this time
 
Xeo
hm, what do I need to import for foldl' to be in scope?
 
6:46 PM
Ah well it's a rule of thumb. You can investigate the subtleties but it only matters for edge cases (e.g. infinite lists), not for basic correctness.
 
foldr is pretty bad, I thought
 
Xeo
for infinite lists, yeah
 
foldr is nice.
@Xeo Data.List
 
Ell
anyone have a clue as to what this does? pastebin.com/nMBv9aVw
 
The magic of non-strictness!
 
Xeo
6:51 PM
Okay, for all_of, folding is nice. For any_of, it's not the best choice, though, I think.
Nvm. I can't think straight
for both, early returns are possible.
 
Even if I did have a TMP fold I'd still write the recursion for And and others by hand since C++ TMP is strict though.
 
Xeo
What's this about (non-)strictness?
 
Well, thinking about it, it's not super strict anyways. I might want to investigate this one day.
 
Ell
damnn wtf does this do?
 
@Ell Prints the minimum of the list.
roughly
 
Ell
6:56 PM
I thought it did the minimum, but it doesn't seem to work. i've probably implemented it incorrectly
 
Xeo
@LucDanton That's interesting, thanks.
Question: Why does Haskell use [] for the empty list but (x:xs) for any other list, and not [x:xs]?
 
[x, xs] is the same as x:xs:[], which has two elements. x:xs is one head and a tail -- the tail can have any length.
Keep in mind something like a : b : c must be parsed as a : (b : c).
It's not a colon-separated list (as in, the syntactical construct) of elements.
 
Ell
silly maths: imgur.com/6MLut
 
I made a char array and put a number in specific place and when I try to cout the content without [] it won't work
 
7:13 PM
@Ell What's with the random 5.0?
and abs?
 
Ell
the |value_in_here| is .abs
 
user1182183
zaahoii
 
Ell
and the 5.0 should be 5, my bad
 
user1182183
hh
 
Ell
no wait
the 5.0 is just because the algorithm says so
 
user1182183
7:14 PM
hm, i like it thssat i just need to type ch andd im in the luonge:P
 
user1182183
eeh fuck iiotoo much beeer
 
user1182183
jj
 
user1182183
sso aaany new?
 
user1182183
newsS?
 
Ell
Drink some water
 
user1182183
7:16 PM
I'm eating an apple should be jusrrtj right enouuugh
 
user1182183
rr
 
user1182183
-.-;
 
Ell
alcohol inhibits water absoprtion into you or something so you have to drink more
else you get dehydration (hangover)
 
user1182183
oow
 
user1182183
hmmhk okay sounnd faiir]
 
7:17 PM
@Xeo After a bit of looking around I believe I was mistaken here, implementing e.g. any in terms of a fold is not desirable.
 
user1182183
ddounds
 
user1182183
sounds
 
Xeo
@LucDanton Both any and all don't fit well with fold if you want early returns, I think.
 
user1182183
You aalell feel also so;;light'' when yyou idrink a few beers riivht;/?
 
user1182183
srsly II sccvsn 't hit thekkeboar hgood XD
 
Xeo
7:19 PM
Hey, even the cat has better spelling when he's drunk. :/
 
@GamErix Stop it.
 
user1182183
aawwwww ii'm justt boreedm, nonthing toofop after thhr pary
 
user1182183
pparty
 
user1182183
SOooooood CV++ is coooli
 
user1182183
cool
 
7:21 PM
@Xeo You can't expect everyone to be as awesome as I am.
 
user1182183
999hzh
 
user1182183
fuujjk
 
user1182183
ii wantre to yope 9hah in de berowded xdd
 
user1182183
99gagg
 
@Xeo @CatPlusPlus is Polish, he's used to it :P
 
Xeo
7:22 PM
@GamErix, please, stop, else it's just going to get embarassing for you later on.
 
user1182183
II oodoon'tl like doto bee alone :(D(
 
Ell
@GamErix go and grope a stranger then. Trust me, this will all make sense tomorrow
 
user1182183
peettpppo
 
user1182183
latee
 
user1182183
i thjink
 
user1182183
7:23 PM
10pm222222222
 
You're overdoing it.
 
user1182183
viguhu?
 
user1182183
ghjuuhu
 
user1182183
hhuuh??/
 
@GamErix Dude, just stop it. If you want to appear realistically drunk, make a few typos, but don't post complete BS.
 
user1182183
7:26 PM
tooto muvh brrrt
 
user1182183
okkkki goi tdd dlrrrp
 
Alt+F4
 
user1182183
nnyrr
 
user1182183
bbyurrrr
 
right
time to set me up some ASP.NET website
 
7:26 PM
My condolences.
 
better than setting me up some PHP website, which I could have chosen instead
 
You're crazy.
 
Ell
is asp.net a language?
or a web framework utilising existing .net languages?
 
@Ell No.
 
Xeo
@Luc: Is there a way to make foldr return early?
 
7:29 PM
@Ell It's websites in C#
 
Ell
Right kk. Or vb.net I assume?
 
well, in theory, any .NET language
 
@Xeo No.
 
@CatPlusPlus What, I picked "something else" instead of "PHP" and that makes me crazy?
 
No, you were choosing between ASP.NET and PHP.
 
Ell
7:32 PM
at least its asp.net
and not asp 6
 
@Ell It's part of the .NET Framework.
 
@CatPlusPlus Well, I could also use Python or Ruby, I guess.
but I have no experience in Django or RoR
 
Ell
django is pimps
RoR confuses me
and I know ruby, not python :L
 
foldr can short-circuit.
Django is trivial.
 
Xeo
Hm. How do I get newlines in GHCi?
 
Ell
7:34 PM
django documentation is good
 
What do you mean?
 
Ell
im guessing ghci is interactive
 
Xeo
like when defining a function and wanting cases, the | case thingies must be on new lines, right?
 
Ell
interactive haskell?
 
Xeo
7:35 PM
oh, wait, I guess they don't
 
Then end with :}
You can also use non-layouted syntax.
 
now I need to learn some HTML
 
Ell
ahhhhhhhhhhhhh mother of god
dorito wedged inside my gum
 
hahaha
now I need to actually design my intended website
and then actually figure out how to create it
 
qox
7:38 PM
@Xeo foo x | x < 0 = 0 | x > 0 == 1 | otherwise = x is correct, no newlines needed.
But newlines are often used for readability there.
 
Xeo
3 mins ago, by Xeo
oh, wait, I guess they don't
:)
 
qox
Oh, didn't see that one. :)
 
lol, nice
 
Ell
@DeadMG I find that suprisingly difficult :L
what website are you making anyway?
 
eh
all I really need is like, navigation bar, donate button, copyright message
 
qox
7:39 PM
Porn website for Tony.
 
@Ell Replacing my existing crappy one.
 
Web design is easy as pie.
As long as you're not going to be overdoing it.
 
qox
@DeadMG Use Bootstrap.
It's like, navigation bar and buttons.
 
@Rapptz Naw.
 
Well do you have like, a "vision" of how it's supposed to look like?
 
Ell
7:42 PM
@DeadMG ahh good, about time too! Who are you hosting with?
 
@DeadMG All you need to do is wear scarves, don't shave, stare out the window of coffee shops, and most importantly copy other people.
 
@Ell AWS
for now
 
@Pubby How about carrying a iPhone at all times?
 
Xeo
crap. How do I "unlet" a defined function?
 
I think your site is okay really. It just needs some CSS to make it look pretty.
 
7:43 PM
@EtiennedeMartel iPad â„¢ is even better
 
Xeo
@Pubby Alt+0153
 
I have an iPhone :(
 
@Rapptz The wide language spec part is horrific.
 
I dunno how2altcode
 
and I actually have no idea how to make a nav bar for something so big
unless you just make a big-ass nav bar
 
7:44 PM
@DeadMG Oh yesss.
 
Your site isn't working for me.
@Pubby â„¢
 
Ell
@DeadMG put it on the left and make it hierarchial
 
oops
you have to get rid of the www. now
I fucked with the DNS to point to the ASP.NET but didn't quite fuck with it enough
let me just fix that
 
Iâ„¢ amâ„¢ goingâ„¢ toâ„¢ trademarkâ„¢ everythingâ„¢ nowâ„¢
 
Ell
don't dns changes take like 24 hours?
 
7:46 PM
naw
not always
@Ell Well, I know I'm gonna need two different bars, depending on if you're in the C++ Tutorial part or the language spec part.
 
What you're asking for sounds really easy.
 
mmmmmmm
my previous experiences with CSS are that you think it should be simple, but it's really not
 
I know CSS.
 
CSS is really easy lol
 
7:48 PM
my current draft
 
Ell
make the nav wider IMHO
or you could have a main nav on the top
 
nah
 
Ell
and the left nav can be a tree structure for sub nav
 
Put your nav bar on the right.
 
A while ago, there was this rule that 50% of a page had to be whitespace. I don't know if it's still relevant today.
 
7:49 PM
wait
on the right?
why would I do that?
 
Ell
it doesn't matter imho, either side is good
 
Because a lot of sites do it that way lol
 
oh
 
What's on the left is the first thing people will see. Do you want them to focus on the content or the navbar?
 
@Rapptz Which?
 
7:50 PM
now that's a good reason to put it on the right
 
@Pubby You've never visited a blog?
 
No
 
Ell
his website isn't a blog though
 
Or any other site that has a hierarchy type of system like that
So?
 
Blogs aren't hierarchy
 
7:51 PM
@Pubby Blog content is separated by monthly archives, it is hierarchy in a way.
 
Top-down explanation requires you state what you're going to be talking about before you do it, thus navbar should come first
same reason table of contents is in beginning of books
 
..? What does this have to do with anything? We're discussing left/right.
 
You see left navbar before you see content
 
That's a good point.
 
Ell
7:53 PM
@DeadMG thats good
 
Anyway, whenever I use blog-like websites I navigate using tags and not date of post
 
Would you.. pin the top bar?
 
most of the pages aren't long enough to make any difference
but I think I would
and the left bar too
 
I think that requires JS
 
Ell
why not use wordpress or something?
 
7:56 PM
If you are going to pin top bar then don't make it more than 16px
 
@Ell That does blogs. This is not a blog.
@Pubby Dafuq can you put in 16 pixels?
 
Ell
it doesn't just do blogs does it?
 
@DeadMG Make it 60px.
 
Ell
@DeadMG a notification bar?
 
@DeadMG One line of text? Anything larger is such a huge annoyance on small screens.
It's like having 5 toolbars on IE
 
7:57 PM
If you have a small screen in 2012 you have issues son.
 
small screen master race
 
7 mins ago, by Ell
his website isn't a blog though
 
@Ell And it's shit.
 
aright
 
(small screens are actually much easier for reading, better mouse accuracy, less eye movement, cheaper, etc)
 
Ell
7:58 PM
I didn't realise wordpress only did blogs
ughh dijkstra by hand sucks :L
 
wait
what site was it that moved some button to the right?
I found that supremely annoying
maybe I'mma stick with a left navbar
 
2
A: Boost::Spirit::QI parser: index of parsed element

seheUsing inherited attributes Here is a relatively straightforward approach: parsing directly into a vector<vector<double> > (full code live online) qi::rule<It, Matrix::value_type(size_t cols), qi::blank_type> row; qi::rule<It, Matrix(size_t rows,size_t cols), qi::blank_typ...

^ There. Another spirit question beat to death comprehensively, as far as I can tell
 

« first day (722 days earlier)      last day (4240 days later) »