« first day (992 days earlier)      last day (3965 days later) » 

10:00 PM
Invisible is better.
 
@sehe Lol, let me correct that.
 
@milleniumbug Hm? No, I had it up from earlier. When I was complaining about stuff not working :D
 
user142019
@Mysticial Not sure if you're referring to the fact that it's C alone, or that it's C written by you.
 
@rightfold Hmm... good point...
 
@Mysticial Which means it's invisible because you possibly couldn't have written code in a language you don't know :P
 
10:01 PM
@R.MartinhoFernandes Well, less for me to type. :D
 
@ThePhD believe me -- you can, and if you do stupid things like that you will.
@Borgleader Impressive!
 
user142019
I love how assignment, increment and decrement in Go are statements and not expressions.
 
user142019
And how the order of evaluation of arguments is not implementation-defined.
 
Ell
Everything is expression in ruby. But you know that
 
... Ooh. I found a particularly nasty piece of code I wrote.
... I should post it here!
 
10:02 PM
Everything is a mistake.
 
What do you think can explain lots of time and not getting much done with that time?
 
Ell
I was a mistake
Well. Not a mistake, I was unexpected
 
Xeo
@ThePhD Say your farewell to it, if you do.
 
@ThePhD To be honest, compilers nowadays have warnings for the kind of errors that could hide, but since it still adds nothing, it's pointless WET code.
 
@R.MartinhoFernandes I see, very educational.
 
10:04 PM
@sehe There is, but a lot of that doesn't really figure into things much. Take encryption for one example: yes, the file may be encrypted -- but to create a copy, you're still just copying the encrypted bits so it can be decrypted just like the original could have been. Compressed files, sparse files, etc., are pretty much the same way.
 
@JerryCoffin What if the position on disk is used as part of the encryption key!
 
Is there a way to filter questions to get only those that have bounties on them?
 
@Borgleader There's a tab "featured" for that.
 
@R.MartinhoFernandes If it were, you'd probably have to do things differently -- but it's not, at least in any system of which I'm aware (and if there were such a system, I'm pretty sure I wouldn't use it).
 
Xeo
 
10:06 PM
@JerryCoffin Yeah, was just joking.
@Xeo With "decent" content?
 
@Pawnguy7 I do that all the time - the solution is to download all the things you need to work (documentation, tutorials, whatever) to your hard drive, and pull out the RJ-45 cable from the NIC socket.
 
@R.MartinhoFernandes Oh, I didn't know features === bounties
 
(I have no idea what meaning of "decent" I want in that sentence.)
 
Xeo
@R.MartinhoFernandes Decide for yourself.
 
@Pawnguy7 Also, this
 
10:07 PM
@JerryCoffin That's probably never rarely true. I think only device driver level copy could take those shortcuts. All the other while the OS will need to ensure you have the bits to decrypt it. Also, XCOPY, COPY and stuff all require specific flags to ensure files stay encrypted after copying (so by default, it decrypts, unless the target location inherits the ...
... encryption flags, in which case I think it gets re encrypted with the FS encryption key of the user copying the file, as opposed to the original owner)
 
@Xeo Ah, that doesn't sound insane.
 
@milleniumbug Probably. Still, I just feel I am doing badly trying to fix a bug for an hour, and going nowhere - and I know it is simple. Seems to repeat every day.
 
yeahhhh got retweeted by Bear McCreary
 
@Pawnguy7 Well, with iteration comes experience.
 
With iteration comes wear.
 
10:08 PM
@LightnessRacesinOrbit Dafuq
 
@Xeo Not something I'm particularly interested in, but not crazy.
So, definitely NOT decent: not something I care about, and not something I can tweet.
:P
 
Xeo
haha
 
Ell
I was trying to fix ub/multithreading/I don't even know bug all day and got mostly nowhere. Just that using a functor over function pointer made it segfault much less often
 
@sehe At least on Windows, it depends on how you do things. If you just do normal file reading and writing, your'e right: it'll decrypt, decompress, etc., the file as you read it, then re-encrypt, re-compress, etc., as you write (assuming they're set up for the target file). Windows has, however, a BackupRead and BackupWrite that (so to speak) serialize the original file. BackupRead just gives you a serialized form of the original file, which BackupWrite can then use to reconstitute it.
 
10:11 PM
@Ell Wrap that functor in another until you reduce the segfault frequency to zero.
 
@JerryCoffin That's cheating moving the goalposts. Backup is nowhere near regular file copy... It's like comparing xfsdump/jfs dump/zfs send to tar
 
Ell
Heh
 
@Borgleader :)
 
@rightfold A darkroom?
 
user142019
10:13 PM
@sehe A Dark Room
 
@sehe Sort of true (and no, not what I was doing in the aforementioned program either). Depending on what you're trying to accomplish, it's often actually closer to what you want than what (for example) CopyFile does though.
 
Ell
A Dark Room isn't really mobile-friendly, and it requires arrow keys.
Sorry about that!
 
Can I be the C++ Queen?
 
@JerryCoffin True. I love zfs send/recv for my bulk backup (and rsync for loose jobs; dd|mbuffer|netcat for any really high performance network transfers on trusted networks)
 
How would I go about making a scroll go from no to full speed in a given area, and with a constant rate of acceleration?
 
10:16 PM
@Pawnguy7 "Carefully", I'd think.
 
Why are you using scrolls?
 
Well, it was moving the view of the world at a constant speed.
 
Dead sea scrolls very smoothly, I hear. And they float
 
@Pawnguy7 by incrementing the speed
 
@R.MartinhoFernandes To cast spells.
 
10:17 PM
But speeding up at the start and slowing down near the end would look nice.
 
@R.MartinhoFernandes To make more candies.
 
@Pawnguy7 Yes, you really want an s-curve.
 
@rightfold How far did you get?
 
Hm.
 
@Pawnguy7 If memory serves, it's usually easiest to do that by increasing speed by a constant percentage until you reach some maximum. Then close to the end, decrease speed by a constant percentage until you get very close to 0.
 
10:19 PM
I think I'm going to do something very dangerous in the C++ world. <3
 
@ThePhD There is nothing dangerous in the C++ world. It's a safe, beginner-friendly language. Really! :-)
10
 
This... sort of describes the circumstance.
 
    template <typename Seq>
    auto decompose_canonical(Seq&& s) {
        auto decompose_one = [](code_point u) {
            return ucd::get_compatibility_decomposition_mapping(u);
        };
        return seq::map(decompose_one, std::forward<Seq>(s));
    }
Spot the error.
 
@JerryCoffin well, yes, but I need to ensure it happens within the area.
 
10:21 PM
@LightnessRacesinOrbit oo (and now it's somebody's turn for "pp", or "peepee", depending on their mental age).
 
Xeo
@R.MartinhoFernandes Using -std=c++1y?
 
Any ideas?
 
@JerryCoffin tt
 
@Xeo Yes, (though I wrote auto as a placeholder to work out the return type later)
 
10:23 PM
@R.MartinhoFernandes erm.. return type can't be deduced, or something?
 
Xeo
@R.MartinhoFernandes Okay, can't see it :(
 
@Pawnguy7 You may need to differentiate in order to find the length of the slowing-down period
 
@Pawnguy7 As you're accelerating, keep track of the time/distance necessary to reach full speed, then start decelerating at that distance from the end.
 
@R.MartinhoFernandes It's ugly?
 
@Xeo It's semantic.
The decompose_canonical function uses compatibility decompositions.
 
10:24 PM
lacks code comments
oops, I was leaving
 
Xeo
@R.MartinhoFernandes oh
 
* LightnessRacesinOrbit changed nick to Lightness[away]
 
Oh good, we imported the retarded IRC idling with nick changing.
I missed that.
 
@LightnessRacesinOrbit The stone age called.
 
@R.MartinhoFernandes It claims to do canonical decomposition, but actually does compatibility decomposition, would be my guess.
 
10:26 PM
It's obviously wrong.
 
@LightnessRacesinOrbit I am sorry, differentiate?
 
@Pawnguy7 Calculus?
 
This is a detail API so I could leave it like that :P
 
Never taken it :D
 
10:27 PM
But since the only person hurt by such evil would be me, I won't.
 
@R.MartinhoFernandes Even in a detail API, that's too horrible to leave as it is.
 
The real extreme programming.
Writing bad internal APIs on purpose.
 
I was thinking.
 
Then again, doing compatibility decomposition at all is (arguably) pretty horrible, no matter how you name it.
 
Wait, no, never mind.
Can you explain what differentiate means in this context?
 
10:29 PM
Solve a differential equation.
 
On a scale of 1 to Fuck You, how bad is the EncodeOne function here?
 
Tutf16 was a pharaoh.
 
@ThePhD Yellow.
 
I'll take that to mean it's okay then. :D
@CatPlusPlus Yellow is close to Gold, so that means good job! Yaaay!
 
Did I mention that charcodepoint is a horrible name?
 
10:31 PM
The other yellow.
 
@ThePhD Line 9 is evil.
 
Why is the argument order different in those methods?
 
@CatPlusPlus input -> output is the order
 
Tutf16 is misleading.
 
@ThePhD Meh.
 
10:33 PM
That decodes UTF-16LE, not UTF-16.
 
Also ugh out arguments.
 
@R.MartinhoFernandes It does LE or BE based on the TEndian passed in.
 
You don't use that when decoding.
 
@ThePhD I don't see that used anywhere when decoding.
 
Oh, it's at the end.
 
10:35 PM
Ah.
 
Bad place to have it?
 
Is byte-reversing decoded codepoint valid?
 
I have no idea. :D
 
@CatPlusPlus Nope.
The fuck is with the unions?
Just use reinterpret_cast already.
 
Um. Oh, uh. You know.
 
10:36 PM
@JerryCoffin can you explain this differentiation to a simpleton such as myself?
 
It's just for doing some conversions and stuff.
 
Yes, and it adds a shitton of code for what is a single line.
 
user142019
Hmm.
 
user142019
To Haskell or not to Haskell?
 
@Pawnguy7 Very informally, differentiation tells you the slope of a function at a point.
 
user142019
10:37 PM
I want to learn something about Haskell that I don't know yet.
 
If I have a function f(x), differentiating f(x) with respect to x gets you another function that can tell you the rate of change of f(x) at x
 
Ah.
 
If I have a function v(x) that represents velocity, differentiating it w.r.t x gets you the acceleration, which can be represented by another function a(x)
 
Actually, it's all broken.
The way to get the high byte from an integer variable is with bitshifts.
Everything else is implementation-defined.
 
Oh.
Really?
 
10:40 PM
Simple example: if v(x) = 2x, then d/dx (v(x)) = 2
 
=[
Damnit.
 
I have no idea how to make use of that information.
Did you see my picture illustrating my situation?
 
Unless you have different TEndian implementations for different architectures.
 
My cookies disappeared.
 
10:41 PM
@Pawnguy7 Now I do.
So what you want to do with that picture?
 
Not sure if even that would save it.
 
@ThePhD On line 51 you are using u16c.UInt160 which does not exist.
 
Well.
 
@StackedCrooked Oh Whoops..
 
Dude, it doesn't even compile.
 
10:41 PM
I basically want it to speed up in that first section.
 
@StackedCrooked Ugh, he didn't even feed it to a compiler :/
 
And slow down in the last section.
 
I feel betrayed.
 
But it would be exactly in that section, i.e., reaches full speed exactly when it hits the end, for example.
My first attempt did that.
 
@R.MartinhoFernandes I did!
 
10:42 PM
Problem was, the rate of acceleration wasn't constant.
So it... didn't look so great.
 
MSVC just didn't catch it because instantiation and stuff. :c
 
@ThePhD Are you admitting betrayal?
 
It's not my fault ;~;
 
@ThePhD That's just like putting a plate in front of it, not feeding it.
 
@Insilico does that make sense?
 
10:43 PM
=[
 
huh... a function that takes a boost::variant<foo,bar,him,her> can't be just sent directly one of those types
 
@Pawnguy7 Unfortunately it doesn't. You say the acceleration wasn't constant. So why not make it constant?
 
that's just a little bit annoying
 
@thecoshman Um, what?
 
@thecoshman variant constructor is explicit?
 
10:44 PM
I presume the acceleration is a parameter of your system.
 
Actually, no.
It is the calculated part.
 
You probably hit "only one user-defined conversion" rule or something.
 
@StackedCrooked that's what it seems like o_0 but that doesn't make sense...
 
@Pawnguy7 what are you trying to do?
 
Code.
 
10:44 PM
So, use bitshifts, and put the byte order stuffs in the right place on decode (i.e. when reading the bytes that form the code units, not on the result: the result is a number and numbers don't have byte order)
 
@Pawnguy7 So what is it that you're trying to do, exactly?
 
400 till 10k rep, :D exciting — Stephan 1 hour ago
 
A constructor that takes a variant is kinda strange.
 
Well that is an useful comment
 
Um.
 
10:45 PM
well, I was creating an instance of the variant, then assigning one of the types to it and later passing that to a function... but when I tried to pass the types directly to the function...
think I need to play on coliru
and read
 
Well.
 
1 min ago, by Cat Plus Plus
Code.
 
I wanted to define where the region was.
and, um
how many updates it has to get there
And it would calculate the rate of acceleration given this.
 
Ok, that actually doesn't help me much.
 
> User registrations are currently disabled due to server maintenance. Please try again later.
 
10:47 PM
@thecoshman When you have overloading as a language feature..
 
Cube World :argh:
 
So here's what I'm thinking right now. You're making some kind of black box.
This black box outputs acceleration, right?
 
@StackedCrooked For loose definition of "feature".
 
@StackedCrooked o_0
 
Not sure what you mean by black box.
Here is the picture again.
I want to define an update count.
 
10:48 PM
Black boxes are functions. Or the other way around.
 
And where that first line in the middle is.
 
@Pawnguy7 Dude you always post the same boring picture.
 
Forget about the picture. The picture isn't helping.
I'm trying to extract the requirements out of you. :-P
 
Needs more lobotomy.
 
10:49 PM
So you're making a computer program of some kind.
What are the inputs and outputs of this computer program?
 
My #1 most visited website was Google Reader.
 
What kind of data am I feeding into it, and what kind of data does it spit out?
 
Ok. There is a distance that needs to be traveled. How do you calculate the rate of acceleration provided that you need to move exactly that far in specified amount of movements?
 
@Pawnguy7 I don't understand what you are trying to do
In a specified time do you mean?
 
@StackedCrooked Feedly works.
 
10:50 PM
Alright, so I'm punching in a distance and the allowed time (represented as a certain amount of frames given a framerate), and it has to output a constant acceleration, correct?
 
=[[[[[[[[[[
CRTP doesn't work for something that's already a template
q____________q all my TEARS
 
@Insilico I think that is correct, yes.
 
You are wrong, boy.
 
@StackedCrooked you only just found out o_0
 
10:52 PM
@R.MartinhoFernandes But... but the compiler yells at me. ;~;
error C3203: 'tutf16' : unspecialized class template can't be used as a template argument for template parameter 'T', expected a real type

template <typename TChar16, typename TEndian>
struct tutf16 : public TextEncodingUnit<tutf16, TChar16, 2> {
/* Stuff */
};
 
@Pawnguy7 To be clear, you said "in a specified amount of movements". Do you mean to say "in a specified amount of frames", correct?
 
tutf16 is what is meant to be the T for TextEncodingUnit that CRTP happens on.
 
Yes.
 
template <typename TChar16, typename TEndian>
struct tutf16 : public TextEncodingUnit<tutf16<TChar16, TEndian>, TChar16, 2>
 
..... Oh.
 
10:53 PM
The number of frames correlate directly to the passage of time. The number of frames and the passage of time is related to the frame rate.
 
What's the deal with tut?
 
@R.MartinhoFernandes templated unicode tr-whatever fo-whatever 16.
 
Ugh, you're using Hungarian notation to mark your templates?
 
oh, I'm breaking things with silly references to things and stuff and I'm too tired to explain stuff but know that I need to rethink what I have done to add a lot more magic.
 
Why isn't it TTextEncodingUnit, btw?
 
10:55 PM
@Pawnguy7 It seems to me that acceleration is the wrong quantity to be calculating for.
What I think you really want is the velocity.
 
@R.MartinhoFernandes 'Cause that already exists. :D
Or actually... oh, no it doesn't.
 
Nevermind~
 
Why did I ask.
@ThePhD Oh.
Phew.
 
I do have TTextEncoding though...
 
10:56 PM
@R.MartinhoFernandes ooh, is that stupid one where you try to explain all the types in the name?
 
@thecoshman More or less, yes.
 
I couldn't think of a good name for the runtime crtp class for TextEncoding. :c
 
@Insilico That is what it origionally was, but I would want whatever the velocity is to be a result of the acceleration (a constant rate).
 
User registrations are currently like a DDoS attack so they're temporarily disabled. Should get better in the next days.
:v:
 
@thecoshman Apparently he can't tell when he sees utf16<blah> that it is a template, so he needs tutf16<blah>.
 
10:57 PM
@R.MartinhoFernandes It's a base class, I don't expect anyone to use it ever.
 
@R.MartinhoFernandes o_o I think I died a little bit
 
What people end up interfacing with is this:
typedef tutf16<uint16, Sys::LittleEndianByteOrder> utf16le;
typedef tutf16<uint16, Sys::BigEndianByteOrder> utf16be;
 
any way, I'm off to bed
 
I like I prefix for interfaces.
 
@ThePhD typedef utf16<uint16, Sys::LittleEndianByteOrder> utf16le; doesn't work?
I fear the answer.
 
10:58 PM
I was gonna use utf16, though...
To, um...
 
@Pawnguy7 Okay, so here are the constraints of your system as I understand it:
1) constant acceleration
2) fixed distance
 
typedef tutf16<uint16, Sys::CompiledByteOrder> utf16; // Whatever the system is compiled on's byte order
 
3) starting velocity
4) ending velocity
 
@ThePhD Oh gawd, no.
 
5) time spent
 
10:59 PM
@R.MartinhoFernandes What's wrong with that? D:
 

« first day (992 days earlier)      last day (3965 days later) »