« first day (875 days earlier)      last day (4082 days later) » 

user142019
11:00 PM
I'm bad and I should feel bad.
 
hmm
robot, your encodings are quite a bit more detailed than mine.
 
AFAIR you went with an enum.
 
no, I have policy-like encodings now.
but yours contain many properties mine don't.
 
Oh, I see.
Those are mostly for optimisation, btw.
 
Anyway, Derp is going to be evil bastard that steals everything that's not nailed down and killing everyone mostly because of his ineptitude
 
11:01 PM
then I'll definitely need them.
 
Or for determining iterator capabilities.
 
yeah
 
self_synchronizing is required for bidirectionality, for example.
 
mine are all iterator adaptors, and I'm not so happy with that.
 
Though you seem to require that encoded_string::iterator be bidirectional.
 
11:03 PM
out of curiosity, is there a way with clang/gcc to enforce that a function pointer should respect a specific calling convention?
 
(i.e. no Shift-JIS or crap like that; or even BOCU-1)
 
@R.MartinhoFernandes I think so.
Shift-JIS, doesn't that have non-Unicode codepoints?
 
Xeo
@R.MartinhoFernandes It wouldn't be bad if it was there from the beginning, no?
 
@zneak Pretty sure it's ret(__cconv *)(params).
the calling convention is part of the type, they should always enforce the convention.
 
I'll try that
 
11:04 PM
@DeadMG I think not. But it's not self-synchronizing.
 
ooh
discard_errors, that's a way better name than skip.
 
I changed to that recently :)
 
heh
 
@Xeo FTR, I was assuming Zoidberg wanted "implicit declarations", which is what his code needed.
 
y'know, I might just mostly rip your encodings spec.
 
Xeo
11:05 PM
@R.MartinhoFernandes Ah, true
 
@Xeo And in that case, no.
Ah, I forgot.
I realised that the Separator category is highly unintuitive.
So is_separator isn't very useful.
 
Xeo
@DeadMG Just say "here, incorporate ogonek" :P
 
@Xeo I need an independent proposal.
and there are some intentional differences.
for example, ogonek::text offers choice of container, I merely offer choice of allocator.
 
Xeo
Mhm. Why?
 
assert(not is_separator('\n'));
assert(is_separator(0x2028)); // LINE SEPARATOR
 
11:08 PM
y'know, I can't quite remember.
 
So I wonder why anyone would want those semantics.
 
robot, do you remember why I decided against imitating ogonek::text directly?
 
Xeo
Btw puppy
If I manage to write up a proposal or two, I might need you to present them at Bristol. :P
Or maybe I can manage to get Richard Smith to do that
 
sure
 
@DeadMG Not really. But I did notice that you gradually gravitated towards it.
 
11:09 PM
but you've got a maximum of six days to get them submitted.
 
Xeo
I know
 
@R.MartinhoFernandes Yeah, my initial proposal was far more limited, but I got spanked by the Committee :P
 
I think you wanted to avoid "that allocator crap" and went with a simplistic design.
 
Xeo
I'm currently on the overload resolution blog post, and after that will deal with the proposals, probably
 
Then people told they wanted "that allocator crap" and you changed stuff.
 
11:10 PM
hmm
I'd say more like, I forgot half the requirements for the system :P
@Xeo Well, just don't forget that if they don't make Bristol in at least a feature-complete form, they won't make C++14.
 
Xeo
Aye
 
Btw, how are you specifying tailoring?
 
@R.MartinhoFernandes I didn't, really. I just took a std::locale parameter.
 
Ah, but you are specifying interfaces for it.
That's enough.
Ugh, mein Kopf tut weh.
 
    template<typename First, typename Second, typename FEncoding = encoding_of_iterator<First>, typename SEncoding = encoding_of_iterator<Second>>
    bool less(First begin, First end, Second begin, Second end, FEnconding = FEncoding(), SEncoding = SEncoding(), std::locale = std::locale());
that's my collation primitive.
 
11:12 PM
So you require the default locale to have the default behaviour?
 
a default-constructed std::locale is the global locale.
 
the behaviour of the global locale is, well, the global locale's problem.
 
I didn't know that.
 
@R.MartinhoFernandes Nor did I.
I wanted to spec the global locale, and learned that that was how it was done.
 
11:13 PM
Btw, you still haven't renamed lines. I told you before more than once that that's a really bad name.
 
yes
line_boundaries?
 
Yeah, that's better.
Mine's the verbose line_break_opportunities.
I'm not sure if it makes sense for that one to return a range, though.
 
the iterator is actually named line_break_iterator.
 
You would usually invoke it repeatedly and collect two iterators returned from distinct calls to make up your range.
 
you can still do that by simply doing something similar with the iterators you pass in, I think.
 
11:18 PM
Wait, I don't understand what I wrote.
What I meant is that 99% of the time you will discard at least one of the iterators returned.
 
why would you do that?
isn't the whole point of calling the function to iterate over the line boundaries?
which requires two iterators?
 
Xeo
What's the value type of a line_break_iterator? A text?
 
You usually do it to iterate over line breakable points.
 
Woo! Warningless build!
 
@R.MartinhoFernandes Oh, you mean, operator* on the return iterators?
 
11:22 PM
Then you pick two of those points and call it a line.
 
in which case, I understand what you mean.
 
Xeo
line_break_opportunities doesn't give you back the text split into lines, as far as I understood it
 
Example with pipes on breaking points: "this |is |just |an |example". You don't want to break at all those points. The primary use is iterating over those points until you have enough characters/glyphs/whatever to fill a line.
 
so if I call *line_boundaries(its), then I should get one iterator, not two.
 
Getting the range "this " at the first iteration is worthless, since only the end position is useful for you.
@DeadMG Right.
 
11:24 PM
right.
I'm also going to unspecify the types.
honestly, all I did was name them, it's kinda silly.
 
@Xeo Currently it's a range, but I am arguing for it to be an iterator :P
 
Xeo
@R.MartinhoFernandes To ever hear that from you! Not having a range, but a single iterator!
 
Just to be clear it's an iterator whose value_type is an iterator from the original range.
 
Xeo
Hm... and when do you know that you reached the end of line break opportunities?
Or will it just stop at the last and always give you that back afterwards?
 
@Xeo Oh, the function returns a range.
 
Xeo
11:28 PM
Okay, now I think I'm confused
Or wait
 
user142019
I'm always confused when it comes to iterators.
 
POLICY yay!
 
user142019
s/Y/E/
 
// Here's a dumb implementation
std::vector<source_t::iterator> its;
for(auto it = source.begin(); it != source.end(); ++i) {
    if(can_break_at(it)) its.push_back(it);
}
return its;
@Xeo Does that clear it?
 
hmm
can I boundary analyse less-than-bidirectional?
I think that logically, input is probably a no-no, but I don't see why forward couldn't be done?
 
11:32 PM
For single-pass iterators that is nonsensical (see implementation above: it returns a magnific set of invalidated iterators).
So yeah, forward is the minimum.
 
Xeo
// would this count as a usage example?
auto line_breaks = line_break_opportunities(some_text);
auto it = line_breaks.begin();
auto cps = 0;
while(cps+1 <= optimal_line_size && it != line_breaks.end())
  ++it;
print_line(text(some_text.begin(), *it);
 
@DeadMG (You may find some of my template parameters named SinglePassRange where it doesn't make sense but that was probably lazyness, or bad copy-paste)
@Xeo Yeah.
 
Xeo
k, then I got it
Although I guess you'd do that in a loop to print all text.
And actually increment cps.
 
alright
kindly refresh your browsers to observe the current proposal.
 
Xeo
Hmm... I need a somewhat compelling example of why you'd restrict two templated overloads - I guess I'll just steal from robot's EnableIf blogpost.
 
11:38 PM
#TheBigDebate with THAT said, i would lock my future son in a room with a stripper for 7 days if i suspect his gay
    using string = encoded_string<encoding::system, implementation-defined default>
Shouldn't it just be std::allocator<T>?
 
no.
forcing the default of Standard containers to be std::allocator<T> was a dumb mistake, and not one I'm gonna repeat.
 
Why is it a mistake?
 
because other implementation-defined allocators can have vastly superior performance.
std::list would not suck anything like so hard if your implementation made the default allocator an object pool.
but no implementation can do that because it has to be std::allocator<T>.
 
Haha struct undefined_behaviour
 
does what it says
 
11:43 PM
You need to change the text to stop referring to skip, though.
 
user142019
lol
 
whoops
the other thing I'm looking for is opportunities to insert Policies in the encoded_string functions.
right now it flat out mandates exception in all cases
but that's not always desirable.
 
@DeadMG Because of the rebind?
 
The compile times... they are shrinking.
 
@StackedCrooked What does rebind have to do with it?
Boost's object pool allocator copes with rebind fine.
 
11:45 PM
Oh, std::list doesn't allow a custom allocator?
 
no, it does allow custom allocators.
but the default allocator has to be std::allocator<T>
 
Then why can't it use pool?
Ah.
 
whereas the optimum default allocator would be object_pool<T>.
 
Xeo
@DeadMG Expected<T>? :)
 
See, it's insight like this I put up with the general inanity in this place for.
 
11:47 PM
Pool requires preallocation of a certain size. This would need to be specified by the user somehow.
 
@Xeo No. That's not it.
 
@Xeo I have policies, I'm just not yet sure which functions require them.
 
Xeo
mhm
@R.MartinhoFernandes ?
 
Reallocating pool would still be better (cache-wise and all) than allocating list node all over the place
 
@CatPlusPlus Are you alliive?
 
11:47 PM
@StackedCrooked The implementation could just define a default, or share a pool between all pool<T> with a specific size.
 
Oh hey, you are. <33
 
also, I thought that pools could grow like vectors and didn't need preallocation beyond optimization.
 
Xeo
@CatPlusPlus How would that work out for iterator invalidation?
 
@Xeo My memory arena can expand it's capacity without invalidating, and a pool can use the same strategy.
think deque rather than vector.
 
Xeo
11:49 PM
@DeadMG I can only imagine that it basically uses a deque technique
 
You could do deque-like thing
Heh
 
Xeo
lawl
 
I might propose to the Committee such a fix in a spare moment, actually.#
strictly, it might break some people's code, I guess
 
@ThePhD Sup
 
@Xeo Throwing exceptions on invalid input isn't always a good idea (security concerns). Sometimes you want to just use replacement characters for example. An exception (even in the form of Expected<T>) means processing stops. Good luck inserting replacement characters and continuting processing after that.
 
11:50 PM
Make std::unbroken_list
 
@CatPlusPlus Then I'd have to unbreak every container. Maybe when ranges come along.
I've actually been thinking about the need of an almost std2.
 
Xeo
@R.MartinhoFernandes mhm
 
@CatPlusPlus I'm about to make a huge push. I need you to verify you can A) pull and B) see the changes (you should be looking at a dull, bleak, grey screen)
 
user142019
-5
Q: Easy way to add passsword to my setup project

Stanislav ChernychkoI'm looking for easy way to add passsword to my setup project .

 
The thing is, sometimes you want to always have a value returned, while Expected<T> is "a value or an error".
 
user142019
11:52 PM
Ban and sue immediately.
 
And that reminds me I can noexcept some of my functions. Hmm.
 
Xeo
hmhm
 
@Xeo nah update yer clientz /cc @CatPlusPlus
2013-03-09 23:28:02 [INFO] [Minecraft] Disconnecting _xeo [/xxxx:4283]: The server requires mods that are absent or out of date on your client
 
Xeo
@sehe Hm
 
@CatPlusPlus Pushing~
 
user142019
11:54 PM
@sehe I also get errors when I try to connect.
 
user142019
I need to install certain mods.
 
Xeo
@sehe Maybe it just shows the same error even when the client is more up-to-date? :P
 
Did question oneboxing change?
 
user142019
I have the latest version of all mods.
 
0
Q: Can I add a Variable to a SConstruct that won't matter for "build identity"?

R. Martinho FernandesI would like to add a Variable that will only affect the display of compiler errors, like this: vars = Variables() vars.Add(BoolVariable('fatal', 'Stop on first error', True)) # ... if env['fatal']: env.MergeFlags(['-Wfatal-errors']) However, as is, if I run scons fatal=yes followed by s...

Testing.
No.
Why is that one above orange?
 
user142019
11:55 PM
Hmm.
 
It's closed
 
user142019
@R.MartinhoFernandes that tag is styled differently.
 
@Xeo I have no clue. I don't have a client :) Ask Mr. Danton, I believe he upgraded stuff (it temporarily broke for him too when he did that.). Luc has full server access, FTR
 
user142019
The tags in the one above are flat, yours is bevelled.
 
Test
375
Q: ActiveMQ or RabbitMQ or ZeroMQ or

AbieWe'd be interested to hear any experiences with the pros and cons of ActiveMQ vs RabbitMQ vs ZeroMQ. Information about any other interesting message queues is also welcome.

Nope
 
11:57 PM
2013-03-09 23:28:02 INFO ForgeModLoader User _xeo connection failed:
missing ThermalExpansion\|NEI, bad versions ThermalExpansion, BuildCraft\|Silicon, BuildCraft\|Transport, TwilightForest, ThermalExpansion\|Transport, BuildCraft\|Core, ThermalExpansion\|Factory, IC2, ThermalExpansion\|Energy, StevesCarts, ExtraBees, Thaumcraft, ExtrabiomesXL, Forestry, ComputerCraft, BinnieCore, BuildCraft\|Factory, BuildCraft\|Energy, GregTech_Addon, Railcraft, MiscPeripherals, PortalGun, CCTurtle, BuildCraft\|Builders
 
Some weird things
 
^ WTF markdown. Without \| it will say "this message is too long"
 
Xeo
@sehe Basically, all mods in the mindcrack pack :P
 
Server is on an old version.
 
Xeo
Called it.
 
11:58 PM
You did
 
user142019
@sehe So many chat bugs.
 
I can only get on because I've held off on updating my version.
Hence the relative surprise when the server was restarted.
 
user142019
I hope there's a Mercurial implementation in Haskell.
 

« first day (875 days earlier)      last day (4082 days later) »