World: r3wp
[RAMBO] The REBOL bug and enhancement database
older newer | first last |
Henrik 3-Feb-2007 [2615x3] | do load tail ['a] Actually this seems to be enough to crash it. |
I don't see this in RAMBO. | |
RAMBO'ed | |
Anton 3-Feb-2007 [2618] | Nice one. I seem to remember a bug like this a long time ago, though. |
Gabriele 6-Feb-2007 [2619x2] | if you find anything that is broken in the 2.7 releases but worked fine on 1.3 please let me know. |
(key events bug is already known) | |
Ladislav 6-Feb-2007 [2621] | the load "#[function! [] []]" bug is know too, but anyway, I am reminding it here |
Anton 6-Feb-2007 [2622] | I haven't found much else wrong. |
Anton 7-Feb-2007 [2623] | This is a problem that has occurred since View 1.2.100 or before (but seems not a problem in View 1.2.48 or 1.2.54) I see a difference between these two: request-file/keep request-file/keep/file %hello The first one remembers the directory of previous invocations, but the second one doesn't. I think when the /FILE refinement is used, it just ignores the previous directory, reasoning that the user is passing in the "current directory" via %hello That seems simplistic. I would prefer if REQUEST-FILE would check the /FILE refinement's NAME argument to see if it contains a path or is just a single file. When it is a path, then it is OK to use it. When it is just a single file, then it should use the previous directory. |
Gabriele 7-Feb-2007 [2624] | Anton, if that applies to 1.3.2 too, then please make sure it is in RAMBO. |
Pekr 7-Feb-2007 [2625x3] | is there going to be official 2.7 release soon or what? |
dunno if RAMBOed, but there is a difference in callback! vs callback between 2.6 and 2.7 | |
and I hope timezone gets fixed finally after all those years | |
Anton 7-Feb-2007 [2628x2] | Gabriele, yes it does apply to 1.3.2 and also 2.7.5 |
Ok, posted bug report. | |
Gabriele 7-Feb-2007 [2630] | Petr: first of all, we don't want 2.7 to introduce new bugs. (2.7 is a merge of a number of branches of the code - Carl really needed to do this to simplify things - so there are many things that can break in such a scenario). Then, we want it to fix a few bugs too. :) |
Pekr 7-Feb-2007 [2631] | but we want 2.7 to fix certain bugs, no? |
Gabriele 7-Feb-2007 [2632] | of course. as i said, first we must remove the bugs introduced by the merge, then we start fixing bugs that were in 1.3.2 already. |
Ladislav 7-Feb-2007 [2633] | Gabriele: I noticed that two ROUND test cases ceased to work in 2.7 - this signals, that comparison in 2.7 isn't equivalent to comparison in 1.3.2 |
BrianH 7-Feb-2007 [2634] | Is it better? |
Ladislav 7-Feb-2007 [2635] | Brian: if your question is related to my post, then I would answer: it depends. The cases are: not negative? 1E-8 - abs 0.9999999 - mod 99999999.9999999 1 0.1 == round/even/to 0.1 1E-16 |
BrianH 7-Feb-2007 [2636x2] | Dang, I'd have to refresh my math memory to know what the answers to those should be. Still, my preference is to have comparison work correctly, and if it didn't before, break backwards compatibility and fix the code that depended on the bad comparisons. There can't be much of that... |
Err on the side of more correct :) | |
Ladislav 7-Feb-2007 [2638x2] | my preference is to have comparison work correctly - this may be a matter of preference, as it looks. Both versions yield: 0.1 + 0.1 + 0.1 = 0.3 ; == true zero? 0.1 + 0.1 + 0.1 - 0.3 ; == false |
:-) | |
BrianH 7-Feb-2007 [2640] | Where are fixed-point or BCD numbers when you need them? :) |
Anton 7-Feb-2007 [2641] | This is just madness. Why do we still put up with this ? |
BrianH 7-Feb-2007 [2642] | Because 0.1 is a floating-point value in REBOL, and for that matter one that can't be represented exactly, much like 1/3 in decimal. |
Maxim 7-Feb-2007 [2643x2] | anton, this is a problem in all floating point... I had serious issues in compiling earthquake data over a 30 second period... adding each change over and over could amount to moving a building a foot away ! |
because all of the small discrepancies eventually add-up. | |
Geomol 7-Feb-2007 [2645] | >> 0.1 + 0.1 + 0.1 - 0.3 == 5.55111512312578E-17 That's not zero! Anyone can see that! ;-) I think, it's ok, because the way floating-point works. One could just do >> 0.1 + 0.1 + 0.1 - 0.3 < 1e-10 == true and that's almost zero, right? :-) |
Maxim 7-Feb-2007 [2646] | in high-end 3D and games you live with this imperfection daily. |
Geomol 7-Feb-2007 [2647] | Just like the real world. Imperfection! |
Maxim 7-Feb-2007 [2648x2] | hehe should we define an 'ALMOST func ? |
almost? #"a" "a" ==true | |
ICarii 7-Feb-2007 [2650] | i would prefer precision over speed. |
Geomol 7-Feb-2007 [2651] | >> almost-zero?: func [v][v < 1e-10] >> almost-zero? 0.1 + 0.1 + 0.1 - 0.3 == true |
BrianH 7-Feb-2007 [2652] | I believe they call the minimum value that floating point values can differ before they register as different: Epsilon. |
Maxim 7-Feb-2007 [2653x2] | but like brian said... 0.1 cannot be reprensented in binary ... precision is not the issue... you'll never get to that amount exactly. |
which is why BCD exists. these actually are a base-ten counting system. | |
Geomol 7-Feb-2007 [2655x2] | Right! I haven't studied floating-point closely, but it's something about powers of 2 added together, and that'll never end up for some values. |
I guess, we can think of it this way: some values like 0.1 to computer floating-point system is like square-root 2 or pi to our human base-ten system. | |
ICarii 7-Feb-2007 [2657] | is the standard double type used in other languages BCD encoded? |
Geomol 7-Feb-2007 [2658] | There are just some real numbers, that we can't write down with our base-ten system. The same way, computers can't handle some values completely. |
BrianH 7-Feb-2007 [2659] | ICarii, no, generally double in other languages is the same exact type as decimal! in REBOL - for that matter, REBOL uses C double internally for decimal! values. BCD is fairly rare outside of programming libraries and languages made for financial use, like COBOL. |
Anton 7-Feb-2007 [2660] | Yes, I know the *technical reason* why ! :) (we have of course been over this before, several times). It was just blowing some steam. Never mind me. |
Oldes 7-Feb-2007 [2661] | ICarii > "i would prefer precision over speed." - - I would prefere speed over precision. But I'm not making any financial calcultions:-) |
BrianH 8-Feb-2007 [2662] | I would prefer good enough on both, but failing that I would prefer known limits that can be adjusted for in planning. |
Maxim 8-Feb-2007 [2663x2] | I just posted a few bugs about the plugin being quite shorthanded with the event it receives from the various browsers. |
for example, I just discovered that the "enter/return" key is not trapped within fields (so by extension isn't sent to the plugin) within Internet Explorer. This specific case is not an issue within firefox... but then, neither receive scroll-wheel events... and others have posted that the alt+ctrl+shift keys are not detected, and there are other event issues too IIRC. this is quite serious IMHO. | |
older newer | first last |