« first day (2052 days earlier)      last day (2895 days later) » 

11:00 PM
If you're new to writing parsers try this: javascript.crockford.com/tdop/tdop.html
Tools like flex/yacc etc. help auto-generate very efficient parsers
 
@KristopherIves Isn't C not context-free?
 
320
Q: Is C++ context-free or context-sensitive?

fredoverflowI often hear claims that C++ is a context-sensitive language. Take the following example: a b(c); Is this a variable definition or a function declaration? That depends on the meaning of the symbol c. If c is a variable, then a b(c); defines a variable named b of type a. It is directly initiali...

C has multiple passes so it's a bit complicated
 
Its context-sensitive if the language is taken out-of-context
 
sure, these are literally called specializations
 
lol good job computing primes with the type system
 
C++ allows for multiple declarations of the same function, although templates do it through preprocessor magic
 
next up: why is this shit taking so long
 
use PHP or sth
 
11:27 PM
also inb4 implement primes on the preprocessor
or via include files exclusively
 
@QPaysTaxes The type system is basically turing complete compile-time
 
@KristopherIves no it doesn't
 
@QPaysTaxes const int primes[] = { <? echo implode(",", compute_primes(1000)); ?> };
 
@KristopherIves s/basically //
 
@milleniumbug lol yes, but primes[]
 
11:28 PM
64
Q: C++ templates Turing-complete?

Federico A. RamponiI'm told that the template system in C++ is Turing-complete at compile time. This is mentioned in this post and also on wikipedia. Can you provide a nontrivial example of a computation that exploits this property? Is this fact useful in practice?

 
yeah, better use M4
or your face
 
@набиячлэвэлиь if you disagree you should explain why or provide a reference of some kind, not just say someone is wrong without any assertiions
 
@KristopherIves I have an assertion: I assert you are wrong
multiple defs are illegal
 
Block list updated
 
lol this motherfucker plonked me :DDDDDDD
 
11:30 PM
@QPaysTaxes Actually I think this is a better idea than either using PHP for its intended purpose or using TMP for that
 
just generate ~100MB long files with your build system
eww no parens
eww singletons
 
@QPaysTaxes well me too
it's just PHP has this property that it executes code in <? and ?>
 
@QPaysTaxes "eww lack of parens"
 
@набиячлэвэлиь Read more carefully. He said multiple declarations, and in that he's right: you can declare a function as often as you want.
 
@QPaysTaxes You often won't need 16 but more memory is often nice if you're going to have a lot of things at once
 
11:37 PM
I'd say 16 is minimum for dev work
 
@sehe You think?
 
I currently have 16 GB and I'm quite satisfied with this amount
 
Of course not. I only lie blatantly. Why do you second guess things that you would not agree with?
I have 32Gb in my desktop and 16 in my laptop
8Gb at work is frequently cramped. And that's using Vim+Cmake on Linux
 
Depends on the kind of work you do, I've found 64GB the minimum, because my tasks are IO bound and its easier to just load everything in the RAM
 
@QPaysTaxes I must say the desktop is probably overdimensioned: I do a lot of stuff with tmpfs though
@QPaysTaxes "They"?
 
Ell
11:40 PM
I am perfectly satisfied with 8Gb
 
If you just run a single VM, a single vim + YCM, and then load a 3Gb text file...
 
Ell
GB
 
@QPaysTaxes My company puts zero things on my computer.
 
Ell
I use emacs & ycmd
 
We have far larger files. But I don't tend to load those up
In forensics you deal with large images. Very large.
But the killer is building in "headroom" - systems do get swappy
On my own systems I don't ever use swap.
@QPaysTaxes I did
There's a lot of formats to support. Logs, images, raw and interchange.
Stop tickling me.
 
11:44 PM
> logs
 
I guess if someone can't fathom it, it's not valid.
I've seen far larger things go by in other companies. I think I'm dealing with reasonable data sizes here.
> images
> interchange
Log files are very easy to deal with piecemeal. Divide and conquer
It's when one tool exports data for import by another.
@QPaysTaxes They aren't. I never suggested it
text files != log files
Well. Sue me :) I don't think I was the one assuming things
o.O Woah. Buddy. I mentioned logfiles exactly once:
6 mins ago, by sehe
There's a lot of formats to support. Logs, images, raw and interchange.
And that was in a combo. No need to get aggressive because I >made you confused< for a minute.
There are worse transgressions
 
Ok, I think we can let this go.
 
You've been doing that for a while now.
Why can't it be both ¯_(ツ)_/¯
 
@sehe ¯\_(ツ)_/¯ you're missing an escape character
 
Please don't. Nnnnngh
@milleniumbug It's a meta-shrug :0
I do the pects thing only when I'm thoroughly amused.
So. Are you going for 8Gb or 16Gb. I'm confused now.
 
11:58 PM
RAM is quite easy to upgrade
 
Mobo's have limits though
 
The cost differential between 8GB and 16GB is negligible for any adult, its like $200 bucks
 

« first day (2052 days earlier)      last day (2895 days later) »