« first day (773 days earlier)      last day (4175 days later) » 

11:00 PM
Needs uu8 for unsigned
 
@R.MartinhoFernandes The hell.
 
using my_text = ogonek::basic_text<ogonek::utf8, std::vector<unsigned char>>; works fine.
I actually changed this sometime ago. Initially the types had to match. But that was too restrictive for little gain.
 
I really just use the types to ensure I'm getting what I asked for: I.E. byte* is UTF8, ushort* is UTF16, uint* is UTF32. But that's probably not the best way to go about it...
 
I may add some restriction about sizes, though.
As is, ogonek::basic_text<ogonek::utf16, std::vector<unsigned char>> compiles ok, but... I'm just going to say it's UB. I am not sure exactly what happens, but I know it's nasty.
2
 
Well, you probably want the codeunit given to be large enough to fit the desired encoding. Maybe a static_assert or something to ensure sizeof ( underlying ) >= encodingcodeunitsize ?
 
11:04 PM
No, I want the sizes to be equal. Conversion can be done both ways.
 
This is true.
 
ogonek::basic_text<ogonek::utf32, std::vector<std::string*>>
 
@R.MartinhoFernandes Equal? What if I want to store it in fastint_t?
 
@MooingDuck Oh gawd.
 
@Pubby too bad
 
11:06 PM
@Pubby If a conversion can be lossy, no dice.
 
I don't really think there's a point in lossy text compression.
 
How can it be lossy if the size is greater?
 
@Pubby Conversions can be done both ways.
 
@Pubby going the other way
 
@EtiennedeMartel Glad my corruption is spreading slowly.
 
11:07 PM
@ThePhD truncation isn't a good compression
 
I love you -> I lv u.
 
@Cicada Tss tss.
 
> Ogonek will value validity and correctness above speed and other concerns. Ideally it shall be impossible to obtain invalid Unicode data after any operation provided by ogonek.
 
This is C++, I want to shoot my foot!
 
@Pubby Use char*?
 
11:07 PM
@Pubby Take this bazooka and aim at your head, please.
 
@R.MartinhoFernandes I want to go out in style though.
 
You can always do struct fucked_up_utf8 : ogonek::utf8 { using code_unit = std::uint_fast8_t; };...
 
What is the fast for?
 
speed
 
I think I have more extensibility than I expected.
I am not going to document this.
 
Ell
11:11 PM
@R.MartinhoFernandes Isn't documenting your library on that github thingy?
 
@Ell Yes, on bitbucket right now. But I meant that I won't document this particular hack chat.stackoverflow.com/transcript/message/6420154#6420154.
 
@ThePhD You realize that kind of compression requires a lot of power
 
Ell
oh well I guess if it's not on the library spec
 
@Cicada Removing vowels and doing some predefined replacements?
 
@R.MartinhoFernandes ys
 
11:14 PM
@Ell It works, but I don't want it to cause breaking changes in the future. If I break something that is not documented, it is not a breaking change.
 
user1182183
can any1 tell me where the hell do I get boost::lockfree::queue ? I download a package but it has only fifo, stack and some other one
 
Boost has that?
@GamErix FIFO is a queue.
(First-In, First-Out)
 
You must get boost premium for that.
It's not in the classic boost.
 
user1182183
but it throws thousands of errors when I replace queue by boost::lockfree:fifo :(
 
Means it's working right?
I have no idea.
 
user1182183
11:16 PM
//queue <PassData> PassVector;
boost::lockfree::fifo <PassData> PassVector;
 
user1182183
 
user1182183
 
Wide development a failure? What happened?
 
You don't need to clear the vector manually. You can (should) get rid of that destructor.
@GamErix That only works with PODs.
There is no way around it if you want lockfree data structures, btw.
 
user1182183
@R.MartinhoFernandes POD?
 
user1182183
11:19 PM
and I deleted the destructor, still 23 errors
 
user1182183
PassVector.push(PassData(way.begin(),way.end(),extra,costx,amx));
 
user1182183
no push member
 
user1182183
srsly..
 
Plain Old Data. Cannot have dtors, copy ctors, etc, and cannot have non-POD members.
vector is non-POD.
 
@R.MartinhoFernandes The normal lockfree queue works fine with non-PODs.
 
user1182183
11:20 PM
so how would I edit my code? :$
 
@DeadMG How does it copy stuff without acquiring a lock?
 
first, allocate memory (may or may not be lockless, but I don't think a non-lockless memory allocator counts)
 
user1182183
well the copy stuff is only done in one thread
 
then copy into memory
then atomic swap pointer to memory to end of queue
it's the bog-standard lockless queue implementation
 
Why wouldn't a non-lockless memory allocator not count?
 
11:22 PM
because you can't know in advance if your memory implementation locks or not
 
so if you said "You can't be lockless if the memory allocator might lock", then nobody could ever offer any lockless anything, ever.
 
And so does my spelling damn it!
 
Anyway, I guess Boost's doesn't do that, since the errors mention something about boost::is_pod. I guess only the docs can answer it though.
 
user1182183
ok so, no joy for me? Have to stick with the old code?
 
11:23 PM
also
being POD won't help jack shit
whether you copy with memcpy or T t(old);, the problem is still whether or not it's atomic, which potentially involves size considerations... but certainly not PODness.
 
It probably checks for size too.
 
there's no algorithm which could work on any POD but not any non-POD
 
@GamErix Dunno. Check the docs.
I already checked the docs for someone else today.
 
user1182183
@R.MartinhoFernandes docs do say how to convert structures to work with this?
 
That's one time too much that I did it.
@GamErix Docs say what how it works.
You cannot know how to convert any code if you don't know what you are converting to.
 
11:26 PM
 
@GamErix Forget Boost, it doesn't have any useful threading structures.
go TBB or PPL
 
Sometimes warnings as errors is annoying. Unused parameter? Here, have warning as error, plus 50 lines of template backtrace.
 
you will not have problems with concurrent_queue<T>
 
user1182183
@DeadMG I don't know that shortcuts :o
 
Thread Building Blocks, by Intel
Parallel Patterns Library, by Microsoft
 
user1182183
11:27 PM
oh ok, but cross compatibility?.. linux
 
Latin-1 workingses.
 
TBB is cross-platform
 
@GamErix TBB works on Linux, AFAIK.
 
PPL is VS only
 
Now to Windows-1252.
 
11:28 PM
http://boost-sandbox.sourceforge.net/doc/html/lockfree.html "Memory Allocations
Allocating memory from the operating system is not lock-free. This makes it impossible to implement true dynamically-sized non-blocking data structures. The node-based data structures of boost.lockfree use a memory pool to allocate the internal nodes. If this memory pool is exhausted, memory for new nodes has to be allocated from the operating system. However all data structures of boost.lockfree can be configured to avoid memory allocations (instead the specific calls will fail). This is especially useful for r
 
that's not entirely true- you can implement lockless memory allocators
 
> Allocating memory from the operating system is not lock-free.
 
user1182183
@R.MartinhoFernandes it's a lib, header only, or do I need to compile .cpp files?
 
although last I checked it was a mere two thousand times slower (whoops)
 
@GamErix Sorry, I never used... I write libraries, where threading code does not often go.
 
user1182183
11:31 PM
@R.MartinhoFernandes ok :$
 
user1182183
well reverting back to 180 and then update it with TBB
 
man
I need to finish fixing my CV
that recruiter probably already filled those vacancies
 
I think I will put "Rule of Zero" on mine.
 
I just can't figure out what to put
 
11:33 PM
Didn't you put everything already?
Your tutorials, and your codestuffs?
 
yeah but I have to put it again in a better way if I want a job (in short)
 
I mean
how exactly do you describe std::bound_function?
also, that fucking chair guy still hasn't given me a document number, dafuq?
 
@DeadMG On your CV?
 
yeah
 
user1182183
11:35 PM
This C++ application uses Intel's new Threading Building Blocks (TBB) product to create a multi-threaded file compression utility. You'll need TBB (free trial download) to compile and run. The readme in the download contains detailed setup instructions.
 
user1182183
Do I need to pay for that shit?!
 
Silly windows, saying "you must type a file name" when I type ".gitignore".
 
@GamErix Only if you intend to charge for your code.
 
@Griwes haha, good luck doing that through the explorer.
 
they dual-licence commercial and LGPL
 
11:36 PM
It works fine if you create it from Notepad, IIRC.
 
@R.MartinhoFernandes I figured.
 
user1182183
@DeadMG oh ok, well I don't charge and my code is open source
 
But the error message is entirely silly.
 
Either that or good ole cmd.
 
hmmmm
a generic functional abstraction?
 
11:37 PM
@Griwes Yeah, it had me baffled for a few minutes the first time I saw it.
 
I mean, we are not in FAT12 for a long time, are we?
 
Runtime generated closure?
 
Xeo
1
Q: Using std::enable_if to declare a parenthesis operator with variadic template args

Zach SawI have the following smart_ptr class. template <typename T> class smart_ptr { public: // ... removed other member functions for simplicity T* get() { return ptr; } template <typename... Args> decltype(T::template operator ()(Args()...)) operator ()(Args... args) const...

Close votes?
 
not enough buzzwords
 
user1182183
yay all the sample apps download links return a 404, now how the hell i'm going to copy paste -.-'
 
11:38 PM
lol copy and pasting concurrent code
ah
maybe I'll just skip it
 
user1182183
@DeadMG no code examples and I'm stuck, srsly
 
> I currently work with the C++ Standardisation Committee to resolve defects in the C++ language and library, and work on new features. This work involves dealing with the requirements of almost all users of the language for performance, abstraction, and safety, as well as working as a team with the various Committee members. Some of the technical areas in which I have worked include containers and interfaces for the support of Unicode.
 
You really made that look like something incredibly awesome.
 
well
not to pat myself on the back too much, but you've gotta have real skill to get traction with those fuckers :P
> I aim to attend the April 2013 conference in Bristol to defend my proposals.
put it right on the CV, "I want time off in April 2013 to attend X conference."
 
11:46 PM
> You have a transfer of £1,000,000.00 Pounds Sterling from Western Union®!
hmmmm
must reply with my personal details!
 
Xeo
I want LWS back. T_T
 
> I aim to attend the April 2013 conference in Bristol to defend my work in person and ensure its acceptance into C++14.
even better
I'm such a smart guy, I know the date of the next proposed Standard.
 
2 hours ago, by StackedCrooked
Coliru's sandboxing has been improved. It runs in a chroot, number processes and filesize are capped. Timeout seems to be working. So if you like you can use it again.
?
Oh great, cp1252 does not cover the full 00-FF spectrum. It has random holes in the middle. WTF.
 
lol
cp1252 > you
 
And the worst is, they have shown in the past that they don't mind plugging those holes.
The € symbol was not part of it at first.
 
11:51 PM
lol
gotta admit, € would have been fun to deal with for the IT industry
 
I think I will reject them. There's really nothing I can do about it.
 
all those old keyboards with franc and deutschemark and whatever symbols on, now junk
 
Haha, PTE's symbol was $.
 
Hmm, Github windows client is nice, but why does it insist that local repository directory name is exactly same as remote repository name...?
 
> I have also written a series of tutorials to aid newcomers to C++ programming, utilizing my extensive experience on Stack Overflow,
better
 
11:52 PM
OMG, you are a genius.
 
extensive refers to corporal circumference, I wager
 
> [The fix wasn't entirely simple, and will result in a DR for the standard, but
it's fixed for 4.8](http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55463)
lol
 
Hi
 
Xeo
@R.MartinhoFernandes I want a "run" button for that. :(
 
11:57 PM
Run button?
 
Xeo
> However, I got lost in creating SFINAE that is capable of detecting a variadic templated operator () (i.e. NOT a duplicate of Is it possible to write a C++ template to check for a function's existence?).
 
quick question: let's say I have a base class B which has all its methods implementation as empty (*() {}). Let's say I have a function myFunction(B*); that run few methods from B* and that usually accept a derived class A (class A : public B). How do I make it so that if I pass A* to that function all its methods (of that A) override the B* defaults methods?
 

« first day (773 days earlier)      last day (4175 days later) »