« first day (1057 days earlier)      last day (3897 days later) » 

user1804599
11:01 PM
> archive
 
hmmm, why does C++ allow you to do throw 5 or throw "somestring"; ?
 
Xeo
Because.
 
That's very informative.
:P
 
user1804599
Because it's a terrible language.
 
So its just part of the language, and it has no technical reason behind it?
 
user1804599
11:04 PM
Perhaps they didn't see the need to restrict the type because the compiler doesn't have to insert any instructions that attach a stack trace or other very useful information to exception objects.
 
Wouldn't it be the same if you asked "Why does it allow throw std::exception;"?
 
no. std::exception is designed to be thrown and it makes sense
 
anything can be thrown
 
throw 5; is silly
 
@CBenni binary
 
11:06 PM
meh
I'm completely meh'd by C++
it has some meh features.
 
@sehe binary is an archive?
 
user1804599
Write a tool that checks it and install it as a pre-commit hook.
 
@TonyTheLion blasphemy
@not-rightfold write a tool that when it detects it , it compiles a hello world program instead
 
@sehe, of course binary, but I was asking about the different types of binary archives
but ill stay text-based for now
 
gzip ?
 
11:07 PM
@ScottW <3 <3 :)
 
@CBenni hmmm. I'm not aware of different subtypes ... :(
 
user1804599
I was wondering.
 
user1804599
What if you represent π as an object of type , and represent multiplications as objects of type Multiplication, and sines as Sines, etc.
 
user1804599
You wouldn't lose any precision.
 
@not-rightfold huh?
 
11:09 PM
@not-rightfold What kind of "precision" are you talking about?
 
user1804599
@EtiennedeMartel Well, sin(M_PI) != 0.
 
@not-rightfold sine of multiplication pi ?
like sine npi ?
 
user1804599
M_PI is a constant, silly.
 
user1804599
It's a C example.
 
user1804599
(Otherwise I wouldn't format it as code.)
 
11:15 PM
I still don't get how your solution would fix that problem.
 
user1804599
Sine x(Pi);
assert(x == Int(0));
 
user1804599
Because you're not calculating with floating point numbers but with more abstract representations of terms.
 
What if you have a number that has the value of pi? Would that equal to Pi?
 
user1804599
Yes.
 
But don't you have the same precision problem?
 
user1804599
11:17 PM
No.
 
user1804599
You never store the value of π directly.
 
Why wouldn't you?
 
user1804599
Because how are you going to store π with infinite precision?
 
You'd still need to convert that Pi to a number at one point.
 
user1804599
Why?
 
11:19 PM
And that's where you lose the precision.
Oh, wait.
I get what you mean.
You want to use math formulas instead of numbers?
 
user1804599
I would be a complicated system because it needs to know ALL THE RULES.
 
So 2 * pi is 2pi.
 
user1804599
But it would be pretty cool.
 
Sounds about as useful as nothing.
 
user1804599
@EtiennedeMartel new Multiplication(new Int(2), Pi)
 
11:20 PM
@not-rightfold Looks to me like a case of "better because objects".
 
user1804599
@ScottW That's true.
 
user1804599
There could just as well be nothing and it would be just as good as if there would be anything.
 
@not-rightfold sounds interesting
night
 
11:38 PM
@minitech hey
 
@Borgleader Hi!
 
how are you?
 
Pretty good actually — I’m finally going to finish a certain project. Yourself?
 
Cool :) I'm good too.
 
In VS, how does one debug expressions with, for example, std::cos ?
 
Ell
11:45 PM
@Etienne well its essentially lazy evaluation, right?
 
@Pawnguy7 Wot? You suspect that your FPU or software cos'ser is generating incorrect results?
 
@MartinJames No, I just wanted to know what the value was.
Turns out the issue was I forgot a foreach takes them by value.
 
@Pawnguy7 Ah.. :)
Anyway, I gotta sleep 'cos beerpocalypse... BFN..
 
Is there a way to make a shortcut use a relative path on windows?
This.. seems really basic.. so..
 
Ell
Dont think so
Unless you make a shortcut and just change the command
 
11:56 PM
5
Q: How do I create a shortcut (.lnk) with a relative target?

ronysI have an executable on my disk-on-key in dir\program\prog.exe I'd like to have a shortcut to the executable on the DoK's root directory, that is, prog.lnk would refer to dir\program\prog.exe. However, it seems that prog.lnk can't have a relative target. This is a problem when the DoK will have...

;_;
Well I made a .bat file I guess
good enough for me
 
Ell
Ahh so much pressure so much pressure
 

« first day (1057 days earlier)      last day (3897 days later) »