« first day (1868 days earlier)      last day (3083 days later) » 

1:00 AM
flame
they all pass but better to change that api now
 
> Kilometres
 
really
 
@JohanLarsson no thousands separator intended?
 
should be np, hold on adding a case
 
1:02 AM
Many of the differences between American and British English date back to a time when spelling was not widely standardized. For instance, some spellings seen as "American" today were once commonly used in Britain; and vice versa. A "British standard" began to emerge following the 1755 publication of influential dictionaries such as Samuel Johnson's A Dictionary of the English Language, and an "American standard" started following the work of Noah Webster, and in particular his An American Dictionary of the English Language. == Historical originsEdit == In the early 18th century, English spelling...
Blimey
 
> Components are registered with an Entity Manager, and the Entity Manager is then responsible for adding Entities to each Component. Once per frame, the Entity Manager will call EntityManager::UpdateComponents(), which calls each Component's ComponentInterface::UpdateAllEntities().
Doesnt that seem backwards
 
yes
"Unless it's explicitly spelt out," -- It is. I posted exactly where the standard says so well before you posted your answer. — hvd Nov 23 at 18:32
 
some of these google projects actually use CMake
 
Getting the legal bullshit out of the way is actually a big part of the struggle as well. And presenting it in a way people are used to. This is a draft of one of those legal screens during loading from January 2015, just found the photo deep in the documents directory.
 
have they finally seen the light?
 
1:08 AM
^^^ He just edited that part out. What a low-effort answer
 
American and British IQ differences
 
@LucDanton found a bug, did not parse #_##0.00 correctly
 
Not sure if joking is allowed in such sections, but hey, we're retards.
 
@GregorMcGregor USA! USA! USA! USA! USA! USA!
 
This is pretty interesting... so Google has made a bunch of libs on top of SDL that help with general c++ dev. I feel like its more stuff from a rogue google dev rather than a concentrated effort though
Which means I kind of dont want to use it because Google is notorious for killing off most of what it starts
 
1:10 AM
link
ITT @Elyse should work for google
 
Assert.AreEqual("1\u00A0200,00 mm⋅s⁻¹", speed.ToString("N mm⋅s⁻¹", sv));
^passed
 
Is the thousand separator default fot Sweden?
 
@sehe if this was replying to me I linked it earlier, scroll down on this page: developers.google.com/games/#Tools
 
I mean, do you not have to ask for the number format
 
@sehe For N it renders like that
tried to stay as close as possible to the framework
 
1:14 AM
@JohanLarsson did you pick nbsp yourself?
I would have thought you formatted numbers with the use of a lib-provided thing, i.e. the thousands sep would come for free
 
No Robot helped me with that.
@LucDanton Yeah they do sort of. I have to dig out the double part myself though
since I'm doing a composite thing which I'm fishing for flaming on
 
@JohanLarsson that uses a regular space
@JohanLarsson did he now
 
@JohanLarsson Ah. I wasn't paying attention. N looked like a unit to my sleepy eye
 
I wonder how much cash Rockstar dropped on all those radio stations in GTA V.
 
@LucDanton nope: Assert.AreEqual("1 200,00", 1200.ToString("N", sv)); <- fails
 
1:19 AM
well I meant the output as displayed on the page :)
which does it use?
 
@sehe yeah, that is what I'm not sure about. Format strings that reads like regexes.
which what?
 
space
 
the bot space
 
I actually don’t know what best practices are but I’m sceptical it’s appropriate, I’m thinking there’s another width for the job
still though using the lib thing is the best way to go about it, i.e. turn it into someone else’s problem
 
@Prismatic Whoa those doxygen docs.
They're good.
Reminds me of mine except nicer.
 
1:22 AM
char* dup = strdup(str.c_str()); token = strtok(dup, " "); free(dup); — Gilles Richer 34 mins ago
 
guess what for ^^ (yeah it's bad, -1-ed)
 
Is the way the documentation looks now one of the first things you notice lol?
 
It's the only thing I noticed.
It's a boring link otherwise.
 
@sehe Aren't you sleeping, btw? :D
 
1:23 AM
I don't think I am
 
Oh wow they all use the same documentation style lol
Oh nope.
 
@Rapptz Interesting.
 
Ah, I only counted one good night. Usually it requires 3-4 :D
 
@Rapptz you take that back
 
:27141061 sehe has a tradition of going to bed, but not really :D
 
1:24 AM
@sehe good night
@ElimGarak Yeah.
 
@Prismatic gamedev libraries are abundant and common
 
THERES A TEXT EDIT WIDGET
oh boy
oh boy oh boy oh boy
 
I don't see what makes this one special outside "google made it"
 
and most are badlets
 
Are ECMAScript regexes supposed to be have "multiline mode" always on, where ^ and $ match beginning & end of lines?
 
1:25 AM
Guys, I was reading an article on cplusplus.com about std::atomic and found an example on a page about operator=. After a minor fix it compiled at ideone ideone.com/YIg8Cz but I'm confused on why while (foo==0) { where foois declared as std::atomic<int> foo works.
I cannot find any traces of == operator for atomics
 
> cplusplus.com
 
@Rapptz its less a gamedev library and more just a bunch of utils on top of SDL and other nice libraries
 
so why it works?
no == operator on cplusplus.com either
 
@zerkms atomic has a conversion operator to T
 
to be fair
SDL works with Android
so I can see why they care about it
 
1:26 AM
right, thanks
 
but uh these docs look pretty nice
 
yep, I did not know the == would implicitly convert it
 
did you release your documentation thing yet
 
no
This FlatUI library reminds me of this shitty UI library
Maybe I'm judging it too harshly but I don't like immediate mode GUI
 
1:28 AM
Yeah, I was just gonna say the immediate mode bit is offputting
 
Instant gratification mode
 
@Rapptz I want to see what it looks like hurry up
 
It's just an extension for Sphinx.
You can style Sphinx however you want.
 
Sphincterx
 
gui::Run([&]() {
  gui::StartGroup(gui::kLayoutVerticalLeft, 5);
    gui::Label("value: " + x, 40);
    if (gui::TextButton("increase", 40) == kEventWentUp) x++;
  gui::EndGroup();
});
 
1:29 AM
use Sphinx on something more friendly than C++ (let’s say, Python?) and that should get you an idea
 
@Rapptz so in other words it looks shit until you mess with the style for an eternity? :v
 
lol this is how it looks like without the sugar?
 
@Rapptz better not forget to close your tags groups!
 
I have to say though it feels nice seeing clean c++11 in a google project... or really any 'big name' project
 
@melak47 No.
Sphinx has nice default themes.
 
1:29 AM
good :)
 
Nicer than anything Doxygen offers.
 
eeeeeeeeeeeh I dunno about that
but at least you can pick themes from places
 
@Prismatic ugh protobuf
 
@LucDanton sphinx-rtd is a default theme now
 
alabaster is blindingly white and all I rember about the other defaults is that I didn’t pick them
@Rapptz blue, Python 2 one?
 
ah fair enough
oh read the docs lol
 
not even one dark theme
useless
 
@LucDanton yeah read-the-docs is a common one
 
docs are for printing out! can't make them dark, fool
 
people still print things?
 
1:31 AM
There are a lot of themes online.
 
I wasn't aware it was the 1950s
 
@melak47 why would I printf perfectly legible documents?
@Rapptz my point!
 
@nick I'm installing CS:GO.
Again.
 
Yeah.
 
I was too harsh on the defaults though, probably disappointed by lack of dark themes
 
1:32 AM
I think the defaults look fine though compared to Doxygen defaults.
 
@Prismatic yes, print it on punchcards, to make use of the non-punched spaces!
 
Which look absolutely terrible lol
 
and you get lost
 
@Rapptz wow, that enum
 
1:33 AM
alphabetic ordering is the worst ._.
 
that is formatted beautifully
 
My tool does ordering of how they show in the file.
 
CXcan’t CXread CXthat CXgarbage
 
not sure if that's a bad thing though
 
@Rapptz doxygen as well but alphabetic is the default
 
1:34 AM
I don't think I can sort it by alphabetic lol :(
 
it’s not a feature
we have invented Ctrl-F
 
What if I open an issue on the FlatUI github page asking them to add BiDi support? Then they add it and I have a one stop solution for shifting all of my responsibility
a man can dream
 
BiDi?
 
They'll never add BiDi though, its locked up in ICU or some LGPL lib
BiDirectional text
For when you mix text that runs right to left (like arabic and hebrew) and left to right (like mostly everything else)
 
1:36 AM
that's what RTM was invented for
 
people using mutices as class members
 
whats RTM
@GregorMcGregor I do that all the time why is that bad
 
er RLM
lmao
 
because now it's no longer copyable nor movable
 
The right-to-left mark (RLM) is a non-printing character used in the computerized typesetting of bi-directional text containing mixed left-to-right scripts (such as English and Cyrillic) and right-to-left scripts (such as Persian, Arabic, Syriac and Hebrew). It is used to change the way adjacent characters are grouped with respect to text direction. == Unicode == In Unicode, the RLM character is encoded at U+200F right-to-left mark (HTML &#8207; · &rlm;). In UTF-8 it is E2 80 8F. Usage is prescribed in the Unicode Bidirectional Algorithm. == Example of use in HTML == Suppose the writer wishes...
 
1:37 AM
yeah that’s only useful if you have bidi support
 
So I have to dynamically allocate your shitty class if I want to use it as a member without disabling up my copy/move constructors too
 
it’s part of the deal
 
it's deleted constructors all the way down
If you really want to have a mutex as a member then make it a shared_ptr idk
Or maybe I just suck that's also possible
 
value_ptr to the rescue!
I dunno shared_ptr is kinda weird. now you have multiple instances sharing the same mutex.
 
Ell
I want to see your value_ptr implementation
 
1:40 AM
It won't help you copy a mutex :(
 
@melak47 well yes
 
Ell
Ahaha I was reading mutex as matrix
 
@GregorMcGregor it’s a larger issue—e.g. now you’re fragmenting the innards of your class
 
OK because right now this class is just using the mutex to protect access to a resource, which is, well, the purpose of a mutex right
 
Ell
What's wrong with that?
 
1:42 AM
modules will help that
:')
 
and provided my analysis is correct, having multiple copies of the same instance sharing the same mutex is functionally equivalent
 
uuuuuh
 
Ell
I was about to ask "is it a mutex for s shared resource?"
 
what kind of mutex is that class using?
 
Ell
1:43 AM
My nubbery is extremely apparent WRT concurrency
 
the one that calls God
 
yeah it's for a shared resource
 
Including boost spirit just kills Visual Studio background code analysis...
 
@LucDanton a recursive mutex apparently
 
then shouldn’t there be one mutex at all instead of one per instance/object?
 
1:44 AM
the shared resource is a file descriptor
 
yes but what about the mutex
or more precisely: what is it exactly that makes the class non-copyable?
 
Ell
One mutex per shared object
 
how do people make lockless data structures
 
@Ell really?
 
Ell
@melak47 I'm mobile so I can't see which msg soz
 
1:45 AM
@LucDanton that the mutex is a member
 
is it just the obvious
or is there magic involved
 
Ell
@Rapptz atomic instructions isn't it?
 
@GregorMcGregor that gives rise to one mutex per object
 
IMO there should be 1 shared mutex per file descriptor, and then there can be as many instances of the "wrapper" object while still not losing safety
 
@Ell do you really want to see my value_ptr :)
 
Ell
1:46 AM
Oh, yes :)
 
the (typical) reason to have a mutex as a member is to make usage of a given object safe from multiple threads
 
@Ell have fun reading it on mobile :P coliru.stacked-crooked.com/a/6b1fb828a53f62fe
 
yes but in this case I don't think the identity of the object matters
 
it’s not about identity
 
I'll make a coliru
 
1:47 AM
._. what is going on
 
I'm implementing a struct problem in the namespace brain. I guess I have some, because I can't type brain::problem without a giggle.
 
will lucdoc ever get released one wonders
 
Ell
Eh I can't scroll on color in on mobile
 
are you waiting from upstream or is the project dormant still
 
it only works on the git version of sphinx
I thought about it a little bit
 
1:49 AM
@Ell I once tried actually writing something on there. Dealing with auto correct and auto capitalization and even navigation problems wasn't much fun :)
 
and I can just subclass napoleon's garbage
I think
lemme verify
 
I remember things like Throws/Raises were in the way, hence why I referred to upstream
 
yeah it seems I can just subclass and override behaviour
god bless python
 
declare everything virtual any(vector<any> const&);, just in case
 
The ones with ---- under the sections is Numpy right
 
1:52 AM
yeah
Google leads to indent-induced rightwards drift
 
lol I like how they use that style of commenting under the class GoogleDocstring
 
@LucDanton this
 
@GregorMcGregor yeah that doesn’t protect a shared resource per se, that protects an object shared between threads
 
lol wording
 
C++17 has std::shared_mutex.
I think C++14 has std::shared_lock
 
1:55 AM
@GregorMcGregor the transformation doesn’t make sense
they’re not alternatives
 
lol wait I'm confused
why is std::shared_lock a thing
 
@LucDanton are they not?
 
first one is 1:1 mutex to object, second one is 1:n mutex to objects
 
oh it's for std::shared_timed_mutex
 
1:56 AM
@Rapptz but that's still not copyable...so now you need a shared_ptr<shared_mutex>, and guard the shared_mutex with per-instance mutex...:D
 
well?
 
well what does it change from the POV of the shared resource?
 
@melak47 really?
 
I dunno, I hope not :p
 
@GregorMcGregor ._.
pretend you have a shared, unprotected variable
 
Ell
1:57 AM
@GregorMcGregor it would mean anyone with a wrapper can access the resource
 
hb_buffer_set_direction(harfbuzz_buf_, HB_DIRECTION_LTR);
hb_buffer_set_script(harfbuzz_buf_, HB_SCRIPT_LATIN);
hb_buffer_set_language(harfbuzz_buf_, hb_language_from_string(text, length));
Well I got excited over nothing
 
@melak47 shared_mutex( const shared_mutex& ) = delete;
 
you declare one mutex per thread, then try to use it
 
oh...
 
Ell
Regardless of whether some other wrapper is using the resource too
 
1:57 AM
...okay
 
maybe it'll have i18n in a year :[
 
@Rapptz I do that too sometimes
 
In the first case you can't have more than 1 wrapper, so that's 1 mutex anyway
 
"oh look it’s declared!"
 
Ell
@Prismatic what do you want from harfbuzz?
It can do RTL
 
1:58 AM
@GregorMcGregor that kinda plays into the 'they’re not alternatives' unless you make the singleton-ess explicit
or where the fds come from
I’m assuming it’s anything goes
 
idgi
i'll just give up and do it regardless
 
pls no ._.
 

« first day (1868 days earlier)      last day (3083 days later) »