r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3-OLD1]

Henrik
6-May-2009
[14008]
Forget what I said. :-)
BrianH
6-May-2009
[14009]
My point is that it is much more likely to get implemented as an 
action!, and actions dispatch based on the type of their first argument.
Steeve
6-May-2009
[14010]
sometimes i use a second tuple using it as a mask:
1.2.3 * 5 * 1.0.1 = 5.0.15
BrianH
6-May-2009
[14011x2]
Double dispatch could do the work in most cases, I suppose.
Can that be expressed as 1.2.3 * 1.0.1 * 5?
Steeve
6-May-2009
[14013x2]
yep
it works too, in any direction
BrianH
6-May-2009
[14015x2]
That's what I mean. It's an implementation detail, but it could be 
the difference between having this feature and not having it. We'll 
see.
Basic math operations are polymorphic, but dispatch based on the 
type of the first argument.
Rebolek
6-May-2009
[14017]
I didn't know about +/- to word change. Thanks.
Steeve
6-May-2009
[14018]
if vectors could work that way.
Less the limit of 0-255 range
Less the limit of no negative values in a tuple
Rebolek
6-May-2009
[14019x2]
Henrik in fact there are small practical examples, say for loading 
AIFF file into a vector! array, see files area in R3-alpha world.
They're for some older alpha though, I have to rewrite them.
BrianH
6-May-2009
[14021]
Bolek, it's mentioned in a comment in the CureCode ticket which thought 
'- referred to unsigned (probably the motivation for the change). 
It's otherwise undocumented as of yet.
Rebolek
6-May-2009
[14022]
Why not math? ...noone has suggested it yet.
 Not true also.
Steeve
6-May-2009
[14023]
vectors with scalar maths operations would allow super fast  modifications 
in images.

For example: gama corrections or quantization without the need to 
use loops
BrianH
6-May-2009
[14024]
If it's not in a CureCode ticket, the sggestion doesn't count.
Steeve
6-May-2009
[14025]
i know most of this tricks can be performes with the effect or draw 
dialect, but sometimes we need more accurate operations
BrianH
6-May-2009
[14026]
Steeve, the basic math operations generate new values, they don't 
modify in place. This cold cause a lot of memory overhead. Modifying 
operations might be better to do as functions, perhaps even native 
functions loaded in plugins.
Rebolek
6-May-2009
[14027x2]
I must admit I haven't used CureCode for about 3 months I think. 
And my vector! document on R3-alpha precedes CureCore for about a 
year. Because no one but me payed attention to vectors for so long 
I never cared about rewritting those requests to CureCode.
But it's nice to see some progress in this area, I'd like to experiment 
with vectors bit more and post some new tickets to CureCode :)
BrianH
6-May-2009
[14029]
Most of the vector! bug tickets fixed in alpha 51 were migrated from 
the R3-Alpha tracker.
Pekr
6-May-2009
[14030]
Steve - how could vector help to speed operations on images, if image 
is separate datatype?
Rebolek
6-May-2009
[14031x2]
Yes, I know those bugs very well ;)
I like how vector is molded now. No need for my vector-format function 
now.
Pekr
6-May-2009
[14033]
Steve - isn't convolution (where you set matrix too) enough for image 
manipulation type you mention?
Steeve
6-May-2009
[14034x2]
That's the point Pekr, If we can't convert vectors to binaries (and 
the reverse) it's useless
image/rgb returns a binary serie
BrianH
6-May-2009
[14036]
Bolek, there is one bug in how vectors are molded (#756), but otherwise 
it's nice :)
Rebolek
6-May-2009
[14037]
Steeve I wrote some conversion functions for vector<->binary, if 
you've got access to R3-alpha, you can find it there.
Steeve
6-May-2009
[14038]
you mean the Altme world ?
Rebolek
6-May-2009
[14039]
yes
Steeve
6-May-2009
[14040]
don't have
BrianH
6-May-2009
[14041]
Has anyone tried to-binary of a vector! in alpha 51 yet? Don't knock 
it until you've tried it.
Steeve
6-May-2009
[14042]
anyway, i'm asking for fast natives convertion functions here, not 
for mezzanines, if so, i can do them myself
Rebolek
6-May-2009
[14043]
I've got error on to binary! vector. Also WHY? function tries to 
open non-existing page.
BrianH
6-May-2009
[14044]
Bolek, R3-alpha has been retired. Post the files elsewhere before 
the server for the world goes away.
Steeve
6-May-2009
[14045]
BrianH, yes it's the first thing i tried, it doesn't work
BrianH
6-May-2009
[14046]
Write it up :)
Steeve
6-May-2009
[14047x2]
Noone noticed that bug at first ?
Pekr perhaps or Rebolek
Rebolek
6-May-2009
[14049x2]
Submitting bugs in Altme was much more fun than some web-based service...
But OK :)
BrianH
6-May-2009
[14051]
Vectors have been put on hold for a year, they didn't work at all. 
At first means since two nights ago.
Steeve
6-May-2009
[14052]
i have a very slow connection currently, most of the time i'm disconnected 
-_-'
Rebolek
6-May-2009
[14053]
It's not exactly true that they didn't worked at all. I was able 
to do drum and subtractive synthesis plus AIFF/WAV loader/saver with 
vectors. It was just NOT easy :)
Sunanda
6-May-2009
[14054]
Brian --- R3-alpha is archived on REBOL.org, for world-members only 
(ie the same read rules as the AltME version itself).

So good news -- we have a persisent archive of that world: no need 
for Rebolek to rush

But bad news -- not many people can see it -- so any gems do need 
to be ported to more visible locations.
Pekr
6-May-2009
[14055]
Having the ability to apply some math and matrix operations over 
vectors would be nice. Having the ability to use such functionality 
to modify some binary (e.g. image) would be cool too.
BrianH
6-May-2009
[14056]
Well, make it easy by submitting bug tickets, Bolek :)
Pekr
6-May-2009
[14057]
Rebole - but there is no sound functionality in R3, no? So what was 
it good for? :-)