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

16:21
@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
16:46
Nope.
Als
Als
Hello guys
silence/
qox
qox
List comprehensions are great.
naw
qox
qox
yaw
naw
Als
Als
16:53
guess what I am in Casablanca right now...
naw
yaw
pitch
roll
250-400 nm
Als
Als
huh..seems like im invisible
Is there somebody out there...?
16:57
You just missed him.
Als
Als
whom?
Dunno, never talked to him.
Als
Als
@StackedCrooked Who is "HIM"?
HIM, is the HYMAN.
I read that as hymen first time
16:59
I wanted to do that but changed to HYMAN.
It looks cool in all capitals.
Als
Als
geez
I'mma make my website suck less
Glad you hate to say it ^^
meh, Library linkers always hate me.
linkers hate everyone
17:17
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
17:27
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
Ell
Poco's dynamic does this:
DynamicStruct a;
a["arbitraryField"] = "whatever";
17:37
> 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
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
Ell
but I mean, writing unit tests is like writing your library in reverse
17:43
Ok...
You write code that tests contracts.
Ell
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
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
17:46
@Ell it would be a regression test, not a unit test.
@Ell Some OpenGL drivers do/did that
Ell
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
17:47
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
Xeo
18:06
Hey @Luc, did you get the pling wrt the indices trick faq?
@Xeo Yes.
Xeo
Xeo
So, any comments? Do we have an faq on that?
I don't think we do.
18:22
> 2D Rubik's Cube
???
Rubik's Square?
Could be talking about an 8 puzzle?
Ell
Ell
a sliding puzzle?
a your momma puzzle
Ell
Ell
an obamma puzzle
a go-llama fuzzle
I hate turning flow charts into code -.-
18:35
People do flow charts?
Ell
Ell
in maths
Wow, even less likely.
Ell
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
Xeo
Turn them into Minecraft redstone circuits!
Ell
Ell
18:40
oh wait.
ruby doesn't support goto. LOL
Xeo
Xeo
switch?
Ell
Ell
switch? o.O
switch statement o.o
Xeo
Xeo
switch(value){ case x: ...; case y: ...; }
Ell
Ell
what about it?
meh I cba with this
if it takes in [6.1, 6.9, 5.7, 4.8, 5.3]
Xeo
Xeo
18:41
switch is the higher-level goto :P
Ell
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
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
Xeo
Like the all_of metafunction that checks if all values in a pack are true
Ell
Ell
18:43
I forget what fold/reduce is. Is that the accumulation type thing?
Xeo
Xeo
yes
it's just a foldl over the list with && and true as the initial argument
Ell
Ell
would I be right in saying ruby is quite functional?
Xeo
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
Xeo
right
18:45
Pick either foldr or foldl'. Not that it matters too much but.
Xeo
Xeo
What does foldl' do differently?
It's stricter.
Xeo
Xeo
(Note: I'm just throwing things at GHC hoping it works.)
Ell
Ell
s'okay I think i wrote it this time
Xeo
Xeo
hm, what do I need to import for foldl' to be in scope?
18:46
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
Xeo
for infinite lists, yeah
foldr is nice.
@Xeo Data.List
Ell
Ell
anyone have a clue as to what this does? pastebin.com/nMBv9aVw
The magic of non-strictness!
Xeo
Xeo
18:51
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
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
Ell
damnn wtf does this do?
@Ell Prints the minimum of the list.
roughly
Ell
Ell
18:56
I thought it did the minimum, but it doesn't seem to work. i've probably implemented it incorrectly
Xeo
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
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
19:13
@Ell What's with the random 5.0?
and abs?
Ell
Ell
the |value_in_here| is .abs
user1182183
zaahoii
Ell
Ell
and the 5.0 should be 5, my bad
user1182183
hh
Ell
Ell
no wait
the 5.0 is just because the algorithm says so
user1182183
19:14
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
Ell
Drink some water
user1182183
19:16
I'm eating an apple should be jusrrtj right enouuugh
user1182183
rr
user1182183
-.-;
Ell
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]
19:17
@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
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
Xeo
19:19
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
19:21
@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
Xeo
19:22
@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
Ell
@GamErix go and grope a stranger then. Trust me, this will all make sense tomorrow
user1182183
peettpppo
user1182183
latee
user1182183
i thjink
user1182183
19:23
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
19:26
tooto muvh brrrt
user1182183
okkkki goi tdd dlrrrp
user1182183
nnyrr
user1182183
bbyurrrr
right
time to set me up some ASP.NET website
19:26
My condolences.
better than setting me up some PHP website, which I could have chosen instead
You're crazy.
Ell
Ell
is asp.net a language?
or a web framework utilising existing .net languages?
Xeo
Xeo
@Luc: Is there a way to make foldr return early?
19:29
@Ell It's websites in C#
Ell
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
Ell
19:32
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
Ell
django is pimps
RoR confuses me
and I know ruby, not python :L
foldr can short-circuit.
Django is trivial.
Xeo
Xeo
Hm. How do I get newlines in GHCi?
Ell
Ell
19:34
django documentation is good
What do you mean?
Ell
Ell
im guessing ghci is interactive
Xeo
Xeo
like when defining a function and wanting cases, the | case thingies must be on new lines, right?
Ell
Ell
interactive haskell?
Xeo
Xeo
19:35
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
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
qox
19:38
@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
Xeo
3 mins ago, by Xeo
oh, wait, I guess they don't
:)
qox
qox
Oh, didn't see that one. :)
lol, nice
Ell
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
qox
19:39
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
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
Ell
19:42
@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
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.
19:43
@EtiennedeMartel iPad â„¢ is even better
Xeo
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
19:44
@DeadMG Oh yesss.
Your site isn't working for me.
@Pubby â„¢
Ell
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
Ell
don't dns changes take like 24 hours?
19:46
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
19:48
my current draft
Ell
Ell
make the nav wider IMHO
or you could have a main nav on the top
nah
Ell
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.
19:49
wait
on the right?
why would I do that?
Ell
Ell
it doesn't matter imho, either side is good
Because a lot of sites do it that way lol
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?
19:50
now that's a good reason to put it on the right
@Pubby You've never visited a blog?
No
Ell
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
19:51
@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
Ell
19:53
@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
Ell
why not use wordpress or something?
19:56
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
Ell
it doesn't just do blogs does it?
@DeadMG Make it 60px.
Ell
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
19:57
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
Ell
19:58
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 (4452 days later) »