« first day (1818 days earlier)      last day (3122 days later) » 

12:00 AM
@Ell Probably because it's downright useless ._______.
 
@Morwenn omg magic value
 
while I think I might have a developing template problem, this sort of thing does seem like a good opportunity for a templated alias with multiple arguments, with specializations for the common combinations. vOv
 
@StackedCrooked Yeah, and it's still 10u on master.
 
Ell
@Morwenn it sounds like a cool way to find better algorithms
 
@Ell Don't get me wrong: it doesn't create new algorithms, it simply picks the « best » one depending on the type it's passed.
 
Ell
12:04 AM
I guess
 
Basically, if the collection to sort has sort method, it will use it, otherwise, if it's passed an std::array or a fixed-size C array with less than 14 elements, it will dispatch it to pick the best fixed-size small array sort, otherwise, if the collection has random-access iterators, it will use a pattern-defeating quicksort, otherwise if it has bidirectional iterators it will pick a quicksort and otherwise, if the collection has only forward iterators, it will pick a mergesort.
 
Ell
isn't bubble sort good for something with a very small amount of elements?
like 6 :P
 
I could have made it choose a spreadsort if the collection has random-access iterators and we're sorting a collection of integers, floating point numbers or strings.
 
@Morwenn you got that well sorted out
 
@StackedCrooked golf clap
 
12:07 AM
@Ell I use it as a fallback for mergesort for small collections with forward iterators.
@StackedCrooked The hardest part was to expose clean and working building blocks :)
 
@Ell Bubble sort is pretty much only used by leaders of the free worlds to gain sympathy votes from techies.
 
Ell
What would I call an adaptor which takes an input iterator and turns it into a forward iterator by caching the results somewhere?
 
shared_ptr_inside_iterator.
 
@ElimGarak obama interview by google :D
 
@Ell Naming is the hardest part. And I didn't write the tutorial to write adapters yet.
 
user406009
12:09 AM
@Ell Why not just read that input iterator into a std::vector?
 
user406009
I don't see how restricting yourself to a forward iterator allows any additional optimizations.
 
Ell
@Lalaland because then doing i++ on the std::vector iterator won't read more input
 
@Ell memoiterator
 
This is reminding me of lua iteration. ;~;
 
user406009
Oh, I see, you want it to be lazy.
 
Ell
12:11 AM
I want it to make backtracking possible in my parser when it is only handed a streambuf_iterator
but I'm just wondering how it would work without storing the whole file now.
in which case I may as well put it in a std::vector
 
user406009
Often, you only need a small amount of backtracking.
 
Ell
yeah, I'm just wondering how I can encode that
 
user406009
What type of parser do you have?
 
user406009
LL(k)?
 
Ell
No idea yet :P
LL(k) sounds about right though
 
user406009
12:14 AM
With LL(k) you only need to read k items at a time.
 
user406009
A std::deque seems like the right structure to me.
 
@ThePhD gl
 
Ell
I actually prefer the idea of LR parsers though
 
If you're doing more than 1 lookahead you're doing it wrong anyway
 
I've gotta add a proper readme for Furrovine and maybe OS some of the projects using it..
 
Ell
12:16 AM
I wrote a terrible naive parser generator in ruby
actually maybe it doesn't work :L
it uses a recursive descent parser to parse an EBNF file
and then generates and LR parser
LR parsers just seem right man
more like the way humans parse
 
Mechanically and based on tables of actions?
 
Ell
No, bottom-up
 
I thought recursive descent parsers were nicer to read/write and.... more human relatable...?
 
I use recursive descent
 
They're manual as fuck
PEGs rule anyway
 
12:18 AM
PEGs?
 
Ell
@ThePhD the parser itsself is easier for a human to read
but imho parsing bottom-up is more human like
 
In computer science, a parsing expression grammar, or PEG, is a type of analytic formal grammar, i.e. it describes a formal language in terms of a set of rules for recognizing strings in the language. The formalism was introduced by Bryan Ford in 2004 and is closely related to the family of top-down parsing languages introduced in the early 1970s. Syntactically, PEGs also look similar to context-free grammars (CFGs), but they have a different interpretation: the choice operator selects the first match in PEG, while it is ambiguous in CFG. This is closer to how string recognition tends to be done...
 
Ell
you parse words then sentences
 
@ThePhD yes
 
Ah. So EBNF and stuff.
 
Ell
12:19 AM
I was learning a little bit of boost::spirit, (thank you agian @sehe)
 
user406009
There is also the fact that LR parsers are more powerful.
 
I don't think they're more powerful.
Just that they achieve what you want with less state?
 
No theres a class of things certain parsers cant do, but off the top of my head i cant remember what that is.
 
user406009
LL and recursive descent cannot parse left recursive.
 
user406009
LR can parse left recursive.
 
Ell
12:21 AM
LL parsers can't parse left recursive rules
 
"Left recursive" ?
 
@ThePhD Y -> Yx
or wtv the notation is
 
Oh.
 
with LL and recursive descent you have to muck up your grammar to make the left recursion go away
 
@Rapptz Do you still have the link for where jakobsen wrote that entire c++ parser?
 
12:23 AM
@orlp, it appears you are not alone. :P
Make 2x2 single component texture. After much frustration, remember (again) that GL_UNPACK_ALIGNMENT defaults to 4.
bahahah.
 
user406009
@Borgleader You can convert any left recursive grammar to an alternative right recursive grammar which recognizes the same language, but with a different parse tree.
 
@Rapptz Oh, there it was. Thanks!
 
it's not an entire C++ parser
this only parses declarations
 
I'm alright with that, I just wanted something to model HLSL declarations a bit.
C/C++ (and maybe C#) come quite a bit close to what it looks like in HLSL.
 
12:29 AM
> C/C++
 
:D
 
@Borgleader What technical projects have you been up to lately?
 
@ThePhD Sadly not much T_T Too few nops to have the will to code anything outside of work hours
and all this grammar talk makes me wanna dust out my language repo
ffs
 
:D
 
12:33 AM
I finished inkdoc a while back
but iunno what 'features' to add.
 
What's it about?
 
Ell
@Borgleader it makes me want to write a parser generator instead of writing a parser for my language :P
idk how to do represent tokens & the parse tree in c++
I will Accept No Visitors!
 
@Rapptz That's probably the fun part: it's almost 4k LOC and it « only » parses declarations.
 
@ʎǝɹɟɟɟǝſ It's a doc tool for C++.
For Sphinx.
I opted to not steal features from python autodoc (different languages) or Doxygen (different ways of writing docs).
So I don't know what to add.
 
12:46 AM
@Ell what's with the drums :p
 
Ell
woah is this a sci-fi style hologram? youtube.com/…
@melak47 idk, they're cool tho :P
 
@Morwenn does it handle noexcept and decltype?
 
It doesn't handle noexcept(...)
But it handles noexcept.
 
yeah I meant the fun one :p
 
Pull requests welcome.
Mine get accepted anyway.
:v
 
12:52 AM
@Ell wow
 
>Put alarm at 7
>Snooze until 8
>Be late af
good job
morning
 
Ell
happens everyday for me
 
I used to arrive at my workplace at 9am. I wasn't the first one, but probably in the first half.
 
the trick is to set your alarm an hour early, or to make it so annoying that you get angry enough to wake up in the first half second
 
Ell
my alarm is 1.5 hours early
 
12:58 AM
I am supposed to arrive before 8, in practice I arrive around 8:30, today almost 9 D:
 
Ell
I still arrive late :/
 
double points for putting it on the other side of the room
 
Abandon all hope of being on time
 
v_v
~deedle-ee-dee-deedle-ee-dee~
:(
~deedle-ee-dee-deedle-ee-dee~
>:(
~deedle-ee-dee-deedle-ee-dee~
*stomp across room, stab at alarm with fingers to shut it up*
~silence~
*realize you're so angry you're fully awake*
 
Buahaha
 
1:01 AM
start day as normal
 
Rebecca Black as alarm
 
there we go
 
@GregorMcGregor The idea is only to wake you up, not get you to commit suicide.
 
or anything loud and irritatingly cheerful
 
Bartek
 
had a roomate in college that had an alarm from a song called footloose. I only know this because she told me after I growled at it.
 
and she changed it to song of the lonely mountain :) Favorite roomate
 
All things that will make you undeniably upset at being woken up.
@jaggedSpire I will never have roomates.
 
Waking up does that
 
1:05 AM
Would rather fight to the death with a rabid cat.
 
@ThePhD You can do that here every day :)
 
all I heard at 7:30AM was JOOOCE JUICE JUICE JOOCE
I thanked her for changing her alarm from "The juice song" and that was when I learned it didn't contain the word "juice"
 
Waking haze is strong.
 
@jaggedSpire I hear "shoes" maybe you need to wash your ears a little ;)
 
Ell
1:10 AM
night all
 
night ell
 
@Ell G'night.
 
@Borgleader I claim no accuracy on the part of the version of myself that happens when I am both angry and too tired to move
@Ell night
 
I'm terrible at city planning. I hope Mourningwood residents like traffic jams :)
 
cities: skylines?
 
1:12 AM
Yus :)
 
Mourning, indeed.
 
I wish it could be night all the time, it looks so much better in the dark
 
@ThePhD especially once the sanitation feedback loop happens
 
@Borgleader At least back in the days of the original SimCity, railroads ruled. Simulators probably aren't quite so simplistic now though.
 
OpenTTD, railroads. \o/
Really, the business model for Open Transport Tycoon Deluxe was:
build really long railroad.
Cash in exorbitant amounts of cash.
 
1:15 AM
I'm going to sleep.
 
For some dumb reason, distance traveled by transporation (even if it was carrying goods) was factored into the payment algorithm.
@Morwenn Nighty night, sleep tight, don't let the flowers suffer blight.
 
@ThePhD No need to be so bright, I won't bite.
 
Nov 1 '13 at 3:29, by Luc Danton
As an aside, I know US geography mostly from Railroad Tycoon 2. Yay videogames!
 
Anyway, thanks :)
 
I would never have believed otherwise there is a city there called 'Baton Rouge'.
 
1:18 AM
@Morwenn good night
 
@Borgleader thx m8
 
1:36 AM
@LucDanton Louisiana is a strange place.
 
must be because of the French
 
1:51 AM
If I open a stream in binary mode, operator<<(stream, int) should write exactly sizeof int bytes to the stream, right? Or do I need to use write
 
Try it!
 
I did, operator<< writes the textual representation, ie stream << 2 will append 1 byte, 0x32.
 
@AlexM. 15 is old enough for everything.
 
@GregorMcGregor Oh, well RIP that idea then.
Guess you need to write manually.
Or write a wrapper than forces serialization.
 
1:58 AM
@GregorMcGregor yeah you have to write. Binary/text mode is about '\n' translation.
 
It's ridiculous to have to reinterpret_cast and give the size of the obj
Is this 1980
 
@GregorMcGregor Almost all operator<< (ditto operator>>) are so called formatted output (resp. input) operations, which I guess is a fancy way of saying it’s a fancy operation. write is dumb bytes.
 
Would be nice to have some default that does The Right Thing
 
@GregorMcGregor Write your own, once. As a bonus it’s where you do the right thing re: endianness, too.
 
#Nooble2016
 
<------ Perfect for RO
 
This reminds me that we really need something that separates dumb byte writing from formatting in iostreams, and gives the same << and >> operators for both...
 
Playing with Periscope, such a curious concept. Watching some schmucks in Seattle. Also, opened a video where a guy is broadcasting his dick (fapping) in Turkey.
 
Periscope?
 
lol write doesn't even return the number of bytes written
 
2:04 AM
Oh wait, that thing that livestreams from the phone?
 
An app made by Twitter guys. Yes, all over the globe.
 
@ElimGarak ew
 
Thinking about broadcasting shit
but I am not really social, so no
 
@GregorMcGregor There’s something else to query for that. Read the API.
 
@LucDanton bad design everywhere
 
2:06 AM
I don't see where to query for it...
 
Don’t shun the ability to chain os.write(…).write(…).write(…) calls without knowing where or when any of them fails.
 
A woman in Long Beach (LA) is broadcasting her damn dog.
 
@LucDanton Why would anyone do that?!
 
@ElimGarak is she a captain
 
I guess you tellg
 
2:08 AM
i hate iostreams
 
and then write
 
@GregorMcGregor If you’re in a hurry and don’t want to have to pretend you’re competent.
 
and then tellg again?
 
@ThePhD idiocy
complete idiocy
 
vOv
 
2:09 AM
I'll use the C API
 
Probably a good idea.
Or maybe work with rdbuf directly?
 
Just finished The Beginner's Guide. Took me a hour and a half. At the end I think I just stared at the menu, not really knowing what to do with myself.
 
@ThePhD Then what
 
It's, uh.
Not pretty.
Those names are some of the most hardcore C vowel-eaters I've ever seen.
 
Is that shorthand for std::sputnik
lol even the C API uses void* instead of char* for the data
 
2:11 AM
it stands for forward progress and modern thinking
 
too bad it distinguishes between object size and object count
 
So, there's this girl doing impressions and I tell her to do Captain Picard and she says who is captain pikrd? ahaha
 
@ThePhD small Putin, extra small Putin
 
but hey at least no reinterpret
 
2:18 AM
@jaggedSpire You play LoL?
 
@Nooble nope. I found it browsing around
remember: I only got a mouse a month ago.
 
Was there not a proposal to replace iostreams with something usable
 
@GregorMcGregor Wow, I either failed to notice or utterly forgot that reinterpret_casting unrelated pointer types was fixed as early as in n3690.
 
I think LoLers would have hunted me down and set me on fire if I tried playing with a trackpad that locked mouse movement every time I pressed a key.
 
i.e. early C++14 development
 
2:23 AM
@jaggedSpire Better late than never.
 
@LucDanton I don't follow, are you saying that the reinterpret_cast should still be mandatory? It's VS2013 so anything compiles really. I'll compile on GCC later.
 
@Nooble :P
 
Trackpad gaming. \o/
 
@GregorMcGregor In C++11 and earlier, there’s no telling what std::string s; reinterpret_cast<char*>(&s) does.
 
Watching Hassan from Iraq
 
2:25 AM
It’s defined, but it’s also implementation defined. So it can do a lot of stuff, as long as it’s documented. (And it must roundtrip.)
 
@ThePhD it wasn't fun. Even minecraft became difficult. I'm still terrified of zombies, because I'm used to the idea that I can't walk and change directions at the same time
 
Not roundtripping would be worrying
@ElimGarak What does he do
 
@GregorMcGregor Driving, probably the car is full of explosives </prejudice>
 
@jaggedSpire Sounds like a setting to set in your laptop driver.
 
And listening to some hilarious music.
 
2:26 AM
Clearly a simple case of under-specification, I’m glad it wasn’t forgotten.
tl;dr it does cast through cv void* as you’d expect.
 
@ThePhD the driver is faulty in this image, and sometimes doesn't allow alteration of settings. It also resets to default every few days.
:D
 
... Wh...
Nevermind.
 
also lol what on Earth is xalloc iword and pword on the basic_ios interface
 
A load of bullshit.
 
I haven't reimaged because I'm on windows 7, and no longer attend the college that provided images for free.
 
2:27 AM
DAE leaky abstractions
 
A load of bullshit that Dietmar Kuhl loves lots.
 
@jaggedSpire Just run from them.
 
@GregorMcGregor no earthly being knows
 
@jaggedSpire Upgrade to Win10.
 
@jaggedSpire Sounds like its Windows 10 time.
 
2:28 AM
@ThePhD He's the criminal behind that?
 
@GregorMcGregor Just run from them.
 
Fuck Win10. lol
 
@Nooble what actually winds up happening is I make a fortress and hide in it and never make anything that requires hostile mob drops
 
@GregorMcGregor No, but he vehemently defends iostreams as being just fine.
 
Not Kuhl, man.
 
2:28 AM
@jaggedSpire But muh potions.
 
@ThePhD It's the volume edition of win7, which doesn't have the free win10 upgrade
 
@jaggedSpire Geeeeeeeeeeeet dunked on.
 
@ElimGarak OFFENSIVE MUST FLAG
Also lol Razmak
 
The guy is just repeating "No engrish, no engrish"
 
2:30 AM
@ThePhD I have no idea what that means so I'm going to assume either "haha you idiot" or sympathy, or both
 
And here was I thinking Iran was natively English speaking
 
Je n’utilise jamais qu’un propre ji.
 
If I were to broadcast, I'd be a single blip in a radius of 1000 km.
 
@jaggedSpire Hey I have a key.
Hmm.
Actually how does Microsoft handle this.
Do they detect changes in hardware :P
 
@Nooble nah, I'm slowly becoming more and more infuriated with windows.
 
2:31 AM
@ElimGarak RAZMAK
 
@jaggedSpire Install Gentoo.
 
I suspect I might last another year before switching to debian
 
Eww, debian.
Eww, gentoo.
 
@EtiennedeMartel Yeah, the system is in English, but when you want the Croatian keyboard, you get "RAZMAK"
 
Eww, ubuntu.
Eww, arch.
 
2:32 AM
@ThePhD I was about to ask
 
@jaggedSpire Gentoo or rightfold will be furious.
 
And super ewww, fedora.
 
What's wrong with Debian?
 
@GregorMcGregor God damn hipsters.
 
Debian, hipsters?
Debian is about as non-hipster as you can get, with Fedora
 
2:33 AM
@Nooble rightfold will mock me then. And I might switch later, but I want a small level of idiot-proofing while I figure shit out
 
Ubuntu failed me in school while doing OpenGl dev with NVidia drivers, I couldn't figure out how to use arch, Debian is what the company I worked with before was using for their servers (and they refused to upgrade it and wouldn't let me compile a level of GCC greater than ~4.2 on it so I could dev something that wouldn't fall over).
 
There isn't a single blip in Africa. Also, Canada is a wasteland.
 
@jaggedSpire Ok :(
 
Alaska = 2 blips
 
@Nooble because I will do stupid things when I am new to it.
 
2:35 AM
@GregorMcGregor Ah I suppose you have a point. Debian is one of the more mainstream distros.
 
inb4
 
@ElimGarak inb3
 
Watching some guy, straight out of Compton or some shit
He just said "you feel me, real n-word shit"
 
We can't say the n-word?
 
did you feel him
 
2:41 AM
hehehe niggble too shy to feel himself, real n-word shit
 
@Nooble I don't want no mods up my ass, so guess not.
 
Just so long as you don't -er it.
 
May 20 '14 at 13:37, by William Andrew Montgomery
nigger is not offensive
 
13:37
 
Some hipster girl is talking about her love life
Every time a semi-hot girl streams, 90+ live people. A dude streams, 12 tops.
 
2:43 AM
rape culture m8
 
Oh, man, so many attention whores. The point of periscope is to interact and show interesting shit, not talk about yourself.
 
obviously
 
Let me introduce to you this app called Peniscope whose purpose I need not explain
 
can I order one on penisland.com
 
No more penises. The shock today was horrible. Guy literally broadcasts from his home, masturbating. I know in which room of his flat, practically.
 
2:47 AM
@ElimGarak Use more lube.
I’ve been wanting to say that for the last ~20 minutes, thanks.
 
Three guys in a weird half broken cubicle type room. One doesn't have his shirt on, the other one is taking off his pants. San Francisco, Jessie Street Substation.
The world is a weird place.
 
@ElimGarak man, I love the <typename CharT, CharT... Chars> operator"" :D
 
did you do a "The %s goes %s."_format("cow", "bonjour") yet
 
@ElimGarak What are you watching?
 
yeah, but then I though format("stuff %s"_string, stuf...) might be better
 
2:52 AM
@Nooble Periscope, people broadcasting live across the world.
 
@ElimGarak Sounds amazing.
 
@melak47 eeeeh if you take translation into account it might deserve its own literal. nah who am I kidding it’s all down to opinion
 
It kinda is, minus the guy I saw who broadcasted his dick.
 
@ElimGarak Why are you shocked
Is this your first time on internet
 
@LucDanton doing a full blown string let's you do nice stuff like this
constexpr auto str = "testing\0length"_string;
static_assert(str.size() == 7, "!");
 
2:54 AM
I get people privately/anon doing stupid shit. But I've literally got the guy's address down. Everyone does.
 
@melak47 …that’s the opposite of a feature
 
@ElimGarak Just like Omegle.
 
I don't make up the requirements of random SO questions :v
 
Alright, second penis guy today. I am out.
 
@LucDanton why?
 
2:56 AM
@ElimGarak weakling
 
it is this data-intensive, responsive, beautiful thing... And people use it for such shit.
 
@melak47 The literal operator (even the old forms) give you the full length. If/when you need to degrade it to dumb C-style strings you can always std::strlen long after the fact.
 
cue the internet is for porn
 
@GregorMcGregor as well as dick picks and dick camming and dick waving
 
@LucDanton well, it could be called something different, but it doesn't degrade anything. Let's you prevent "\0crap" as a format string though if you check the length strlen-like
 
2:59 AM
Going back to C is always degrading :D
 

« first day (1818 days earlier)      last day (3122 days later) »