« first day (1112 days earlier)      last day (4062 days later) » 

17:00
@JerryCoffin Actually beer helps both (but I wouldn't recommend it over fiber).
In school we were taught that whole grains are the source of fiber. (Brown bread etc). However, on the web vegetables are often mentioned as well.
I wonder which works better.
@MartinJames No--I'm pretty sure most Americans would recognize either "fibre" or "fiber", so probably no need to compensate at all.
I generally don't like fruit, except for raspberries.
@StackedCrooked Vegetables (but then whole grains are vegetables, so it's not really an "either/or" situation).
user1804599
Hmm.
@JerryCoffin yeah - it's just getting messy now. I no longer know whether to use 's' or 'z'. Maybe I should use wildcards? 'initiali?e'.
17:04
@JerryCoffin Oh, I never thought of it this way.
'colo*r'
shudnt it be
colou*r ?
What would the wildcard fill in?
@MartinJames Just a wildcard would allow things like initialialibe. You probably want initiali[sz]e.
color is American English
17:06
@GamesBrainiac So you want to allow colouuuuuuuuuuuuuuuuuuur?
American English is the best English.
@GamesBrainiac No - the murriccans don't like vowels, especially 'u'.
col[ou]r?
So that's why POSIX
@JerryCoffin its british :P
user784668
17:07
@GamesBrainiac (rx (and "colo" (opt "u") "r"))
Joe
Joe
I are alive
@Rapptz That allows only color and colur. I think you mean: colou?r.
user1804599
@Joe Get out.
Joe
Joe
:D
@JerryCoffin Ah right.
17:08
I was alive before I started on US 'English'. Now, I wish I was dead.
I think Facebook had pirate English.
@MartinJames English was fine, but regexes are hell.
Joe
Joe
facebook was written in the best language ever: PHP
I'm bored.
Rexex? PHP? Note everyone - it was Halloween last night.
17:10
You can diagnose what is wrong with Joe.
Joe
Joe
I'm convinced that if Linux was written in Fortran, it would be widely adopted
user1804599
@Joe linux is the most widely adopted OS in the world
Can you just shut up about him tia
17:11
@Pawnguy7 iunno, looks like he's either insane or baiting for a reaction.
You're just encouraging this shit
Yeah I'd just ignore too.
user784668
@CatPlusPlus No, YOU!
Joe
Joe
@StackedCrooked Linux can't scale
OK, enough of the trolls. I'm off to watch re-runs of Big Brother.
17:12
@Joe I'm sorry to hear that.
Looks like my attempt at humor failed again.
user784668
@Pawnguy7 You fail humor forever.
@rightfold Average troll Joe.
Joe
Joe
@Fanael :'D
@Fanael it would seem that way.
Joe
Joe
17:14
rightfold why are Dutch men so weak?
Joe
Joe
I enjoy writing web apps in C
@Joe I guess that's enough to prove insanity beyond any reasonable doubt.
user784668
@JerryCoffin: you're an owner. Kick him or something.
Joe
Joe
Noooo dont kick me :(
17:16
We can't kick
Joe
Joe
I hath noth violate da rulllz bro
I would kick him if I was close to where he lived.
lol
user1804599
Coordinated flagging. vOv
Joe
Joe
@StackedCrooked Check my IP address. I stay in China
@ScottW om nom nom
17:18
@Fanael I can bin messages, but so far the closest he's come to bin-worthy is having the poor taste to mention Fortran. Unfortunately, I've undoubtedly done the same myself, so it'd be hypocritical of me to bin that.
user1804599
char32_t peek_char() {
    auto old_begin = begin;
    class guard { ~guard() { begin = old_begin; } } g;
    return read_char();
}
user1804599
I wonder whether this works. I’m afraid it doesn’t.
user784668
@JerryCoffin So bin him and bin yourself. Problem solved.
Gosh food is pricey in The Old Town
@rightfold What is that?
user1804599
17:19
Probably invalid code.
Joe
Joe
@Fanael :'D
Also what's Joe still doing hete
user1804599
Scope guards in C++ are so cumbersome.
Scope guards are wrong.
vOv
C++ is cumbersome
17:19
@rightfold You do know you can just put braces right? Though it doesn't apply here probably.
user1804599
Where?
@R.MartinhoFernandes Damn -- I was just physically shrugging as that came up.
{
    int x;
}
user784668
@rightfold (save-begin (read-char))
Oh. TIL it works better if we yell at the OP :/ — sehe 14 secs ago
I posted the same, + solutions, earlier
user1804599
17:20
@Rapptz that’s something different.
Gosh that looks like lisp
Hence, "doesn't apply here" :P
Votes on SO are stupid and meaningless
user784668
@BartekBanachewicz Really?
user784668
@R.MartinhoFernandes C++ is wrong.
@Fanael All programming is wrong.
@LucDanton FFS
Just facepalm
lol
that's pretty retarded
user784668
@R.MartinhoFernandes See? Don't use C++.
@Fanael Don't use LetDown.
17:25
stuff
how do you underline in Markdown?
@Rapptz It's amazing how many stupid people you can find in programming.
Does SO not support underlining in their dumb markdown parser?
@Rapptz You don't.
@Rapptz Don't think so. Underlining is usually undesirable on the web, because links.
@Rapptz Which one? (They seem to have at least three).
Can you think of a simulation which would be useful with many objects?
17:26
@R.MartinhoFernandes Yeah true.
I was thinking of a chain reaction with balls (billards-ish).
@Pawnguy7 Finite element analysis.
When you put a room in gallery mode, does it refresh the page?
It's supposed to
I was going to try it but figured asking is better
oh ok
17:27
Well.
It gave me the room loading thing.
But :stackoverflow: and sometimes things that are supposed to refresh/update the page don't
My brain just idly wondered: can you do a DoS via refreshing?
Probably not, too slow
As I recall I was typing a long-ish message when I got the refresh. So I guess you can be mildly annoying if you are psychic.
17:28
The heaviest bit is WebSocket connection
Static things are on a separate CDN anyway
@LucDanton Doesn't it stick?
It does on my browser.
@JerryCoffin After skimming wikipedia, I am not entirely sure what that is. Also, this would be visualized for somebody with no knowledge in this area, basically.
Never not have Lazarus installed
It didn't that time.
17:30
What's a good JSON parser for C++?
user1804599
Python.
@Rapptz Depends who you ask. There's an SO question for that, though. Some people say that a good one doesn't exist.
@R.MartinhoFernandes To drive the point home: tweaking the extension means removing one line of python.
@Rapptz Boost.PropertyTree has JSON parser, though I don't know if it is good enough for you.
17:32
@Pawnguy7 FEM is mostly for things like analyzing stress on a beam. You treat the beam as a bunch of tiny balls/cubes/whatever, and simulate the forces being transmitted through them.
@caps lol google redirect
I know of the SO question, I was asking people here :s
JsonCPP looks like there's a lot of boilerplate.
user784668
@Rapptz Write your own.
I'm not that bored =/
lol I found this while googling github.com/vivkin/gason
Some C++ library :|
@Rapptz It's strtok-y.
But it's very fast
user784668
17:37
@CatPlusPlus You misspelled "fucked".
I might just pick another data format
> gason stores values using NaN-boxing technique. By IEEE-754 standard we have 2^52-1 variants for encoding double's NaN. So let's use this to store value type and payload:

<snip>diagram</snip>

48 bits payload enough for store any pointer on x64.
user784668
@Rapptz You started making sense!
user784668
@R.MartinhoFernandes What.
It's C++ ecosystem that's shit, it's not a problem with JSON
Also I love that "very simple API" basically means "do it yourself event-based parser"
17:39
@Fanael I don't even.
> rapidjson is written in C++ with very few dependencies (no BOOST, no STL).
Is everything in the global namespace?
Xeo
Xeo
... no "STL"?
How is "STL" a dependency?
user784668
17:40
@Rapptz It's so grand, it doesn't depend on Stephan!
I don't know.
Freestanding needs to parse Json too you guys.
Brain damage galore
meh C++ libraries are so shitty.
17:41
If I didn't have to scons everything myself I'd split annex into a model set of libraries but too much work :v
@LucDanton It uses <cstdio>
I don't get the whole "No STL dependency" thing but I've seen it a lot.
@Rapptz Get Rid Of Slimy templateS
TEMPLATES ARE SO SLOW AND BLOATED
3
17 mins ago, by R. Martinho Fernandes
@Rapptz It's amazing how many stupid people you can find in programming.
2
17:43
I've stopped being amazed
funny thing is, it uses templates :|
rapidjson::Document d;
d.Parse<0>(json);
Great API
Good job, rapidjson author
user784668
<0>
> rapidjson supports SAX (Simple API for XML) style and DOM (Document Object Model) for parsing.
Ahahah
For JSON
user784668
@CatPlusPlus It supports sucks?
> The number 0 in Parse<0> means using default parse flags. More flags will be explained.
17:44
SAX and DOM
lmao
> rapidjson contains code with SSE2 and SSE4.2 optimization. But this is optional.
Ahahahahahahaha
Wait what
What
Hmm, what
SSE-optimised JSON parser
That's what world needed
If you need to parse a 10Gbps JSON stream.
17:45
And what if you do.
I wonder if brain damage is a result of C++ programming, or a prerequisite
how can you even vectorize JSON parsing
It still makes no sense.
@CatPlusPlus rofl...
@nightcracker It uses SSE instructions to add numbers okay
OPTIMISED
WEBSCALE
17:46
I wouldn't be surprised if they vectorized like one loop, which turns out to be costlier than if done linear due to moving from/into SIMD units in the CPU
user784668
@nightcracker They optimized… wait for it…
user784668
Skipping fucking whitespace.
No no no SSE is always an optimisation you see because it's FAST
DOUBLE RAINBOW? QUADRUPLE ADDITION!
MUST BE FAST CAUSE ITS 4 AT ONCE, RIGHT?!
Well, from its project page it does say this:
> Rapidjson is an attempt to create the fastest JSON parser and generator.
So they thought so I guess.
17:47
cause parsing json needs to be fast
It doesn't need to make sense, if it's ~~FAST~~
bottleneck right there people - we've found it
user784668
lol
Clearly fastest didn't involve development time if they decided to avoid STL dependency... idiots
17:47
@Fanael Aahahahahahahahahahhaahhaahahahahah
@Fanael lol
2 mins ago, by Cat Plus Plus
I wonder if brain damage is a result of C++ programming, or a prerequisite
user784668
@CatPlusPlus Both, surely.
I mean seriously now
@Fanael oh god...
17:48
So much null-terminated crap :|
> assert(document["pi"].IsNumber());
What a fancy API
what the fuck
I don't understand
why do you need powers of 10 when parsing json?
What is a sum type
@Borgleader I'm not sure actually.
17:49
how can they think a 5 kilobyte lookup table is faster than a repeated squaring algorithm for powers of 10
> You may access an array with literal indices such as a[1], a[2]. However, it will generates a compilation error when accessing the first element with a[0].
@Fanael haha, you're right
//! Skip whitespace with SSE 4.2 pcmpistrm instruction, testing 16 8-byte characters at once.
user784668
@CatPlusPlus Ahahahahahahahahahahahahhahahahahahahahahahhahaha what.
it might be faster in a looped benchmark, but in real-world usage the cache will kill you
I present to you, PHP 2.0
17:50
@R.MartinhoFernandes Perverted.
@R.MartinhoFernandes lol
@CatPlusPlus They claim it's VS specific though.
@CatPlusPlus ffs
@LucDanton It says "for example" vOv
> a[SizeType(0)]
16 8-byte characters?
17:50
Ahahah
Convenience features
Oh, my misreading.
> Besides using Size() and operator[] to obtain the elements in an array value, we can also use iterator, similar to std::vector:
But we're not using std::vector because
And also, Begin() and End()
I think they mean 16 8-bit characters
I don't think void foo(int); void foo(const char*); foo(0); is ambiguous, so not sure what's going on.
because I don't know any instructions taking 1kb of parameters
17:51
I'm starting to think they skipped over stdlib containers because they don't like the naming
@CatPlusPlus no, it could be slow
@CatPlusPlus unacceptable.
@CatPlusPlus lol.IsFunny()
user784668
@nightcracker It is slow.
> Finally, there are some query functions for array, which are similar to std::vector
> SizeType Capacity() const
> bool Empty() const
user784668
@nightcracker Source: they don't know about -O3.
17:52
lol
lololol
> Another related issue is that, if we are unsure whether a member is exist, we need firstly call HasMember() and then calloperator[const Ch*] to obtain the value. This incurs two lookup overheads. So, since rapidjson version 0.2, it publicizes the FindMember() function, which can check the existence of member and obtain its value at once:
Ahahahaha seriously this is actual OCD
(Spoiler: it returns a pointer)
@CatPlusPlus Hmm, nah, seems just like the std::map design: op[] vs find.
> As C++ provides several integer and floating point number types, rapidjson try to handle this with best possible range and performance.
@R.MartinhoFernandes TWO OVERHEADS
user784668
So I can either use Python and get the job done, or use this library and laugh at its author?
@Fanael Aeson!
17:55
Yeah why would you pick one large type, let's pick all of them so THERE'S NO OVERHEAD NONONONO
> According to RFC 4627, JSON string can contain unicode character U+0000, which must be escaped as "\u0000". The problem is that, C/C++ often uses null-terminated string, which treats `\0' as the terminal symbol.
> To conform RFC 4627, rapidjson supports string containing U+0000. If user want to handle this, he/she should use GetStringLength() API to obtain the correct length of string.
But not going to use std::string because
user784668
@LucDanton I may know Haskell, but I'm more comfortable with Python. Shame on me.
user784668
@CatPlusPlus std::string is slow!
This is so extremely retarded
@CatPlusPlus why use string if you can use char[]
@CatPlusPlus its faster
@CatPlusPlus hurr
I think Sehe had a JSON parser
17:58
Sehe could write one with spirit in about 5 min :P
Xeo
Xeo
Boost.PropertyTree has a JSON parser
user784668
@Borgleader And wait 5 hours for it to compile?
@R.MartinhoFernandes There's a candidate patch for libstdc++ implementing n3421 "Make functors greater<>" that (fortuitously) does use noexcept for things like std::plus<>. It doesn't account for potential value returns.
@Fanael I'm so sad that you have to compile on a machine from the stone age
17:59
What do you make of that?
(AFAICT the paper itself doesn't mention noexcept.)

« first day (1112 days earlier)      last day (4062 days later) »