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

World: r3wp

[RAMBO] The REBOL bug and enhancement database

Anton
25-Sep-2005
[1215x3]
Romano, I was expecting TRUE to be returned from the function.
Maybe this makes it clearer:
>> do func [][while [true][return 'from-body]]
== from-body
>> do func [][while [return 'from-cond][return 'from-body]]
== none
I am expecting the second example to return 'from-cond.
Benjamin
25-Sep-2005
[1218]
Im really worried about this alpha thing, personaly i belive rebol 
is a great tool and i use it all the time, 

i know there is the time factor in development, but i belive there's 
no priority and the policy about TODO's 

it's crazy, on one side, services, view and graphics, sound formats, 
and on the other, multitasking, async ports, 

OSX support, and so many, many others... all taking place at the 
same time... 

We don't know what's first on the list, rebol changes as fast as 
developers type their code, 

(i dont  mean it in a bad whay, but still worries me) so todays 100 
lines may be tomorrows 10 

and so on ... why to spend time writing code on some issue will never 
leave alpha state, or even workst, be droped down 

some code will loose compatibility with newer versions and refuse 
to work, 

some other cobe, may become obsolete and old as soon we put it on 
the market, i think rebol has loose the KISS strategy. 

i know we love our 600K amazing tool, but don't be fool, this 600K 
don't mean is an easy and standarized 

development tool it's more like an other thing... ok it still is 
a cool tool, bla bla, but we must know 

there's a line conducting rebol upgrades, not just the crazy 600Kilobytes 
limit, 

it would not mind to my even if it whas 600 megas at this point this 
limit has loose the sence to be. 

i think here ideas come and go to fast, development has, in the last 
years, been embeed with the fashion of some lenguages, 

leave out the top then fight, we dont need it, just make it simple, 
i know rebol will reach maturity only if a srtight line traces his 
development
Pekr
25-Sep-2005
[1219]
let's wait what Carl will say at devcon on friday - his keynote is 
"Accelerating REBOL improvements"
Benjamin
25-Sep-2005
[1220]
please note that i know rebol is been maintened by a small goup of 
developers, and with a small budget,i know a LOT of 

work has been done now and in the past, the reach today rebol state 
of development, and there's too many thing to do to make us all happy
Pekr
25-Sep-2005
[1221]
You are not alone waiting for what comes, because while View 1.3 
was nice example of how things could/should work, nothing public 
happened since then and it is not a good sign. That is why I suggest 
to wait one more week - but to be honest - for me it will be deciding 
point if I start to take REBOL more seriously or not, because I don't 
want last devcon promisses to happen once again - none of the promissed 
stuff was actually delivered ...
Benjamin
25-Sep-2005
[1222]
may be here thing are getting to big for such a small goup of people 
and budget, rebol development need's to take place in another context 
that's somthing we all know
Pekr
25-Sep-2005
[1223]
anyway - chatting in wrong group ...
Benjamin
25-Sep-2005
[1224]
what goup should we chat ?
Pekr
25-Sep-2005
[1225]
whatever - Chat for e.g. - RAMBO is bug reporting related group ...
Romano
26-Sep-2005
[1226x4]
Anton, the first block of while it is not the body of loop, it has 
a special meaning, for example it must eval to an any! value:
>> while [][]
** Script Error: Block did not return a value
** Near: while [] []
I see many solutions:
 while [return true] [] could be considered like
	- while [true] [] 
	- an error!
	- return from while with a value (like break/return value)
	- return from the outer function (your proposal)
i am not sure about what can be considered the best
Perhaps your proposal can be the best: eval the first block like 
the second one.
Ladislav
27-Sep-2005
[1230]
Anton: I support your proposition too. Carl once corrected a similar 
issue with BREAK from WHILE condition block.
Anton
27-Sep-2005
[1231]
Romano, yes I think to be consistent, it would be better that RETURN 
should exit the while loop and return from the function, and BREAK/RETURN 
should only break from the while loop.  That way we don't have to 
think when we can and cannot use RETURN.
Volker
3-Oct-2005
[1232x3]
probe system/version ; 1.3.1.4.2   

sec: [lroot [allow read] ldir/test allow %/home/volker/webconsole/data/cgi/ 
[allow read]]
lroot: %lroot/
ldir: %ldir/
probe reduce/only sec [allow]
this crashes reliable here
(on linux) can somebody confirm
Tomc
3-Oct-2005
[1235x2]
>>  probe system/version ; 1.3.1.4.2
1.3.1.4.2
== 1.3.1.4.2

>> sec: [lroot [allow read] ldir/test allow %/home/volker/webconsole/data/cgi/ 
[allow read]]

== [lroot [allow read] ldir/test allow %/home/volker/webconsole/data/cgi/ 
[allow read]]
>> lroot: %lroot/
== %lroot/
>> ldir: %ldir/
== %ldir/
>> probe reduce/only sec [allow]
08526730 2F000000 C0FC5108 00000000 00000000 /.....Q.........
08526740 00000100 00000000 00000000 00000000 ................
08526750 2A000000 B0D75208 00000000 00000000 *.....R.........
08526760 2F000000 D0D65208 00000000 00000000 /.....R.........
08526770 60095208 20D95208 00000000 00000000 `.R. .R.........
08526780 16000000 68010000 23020000 889C1608 ....h...#.......
08526790 2A000000 10D75208 00000000 00000007 *.....R.........
085267A0 2F000000 20D75208 00000000 00000000 /... .R.........
085267B0 00000000 00000000 00000000 00000000 ................
085267C0 5B616C6C 6F772072 6561645D 5D0D0000 [allow read]]...
 
** CRASH (Should not happen) - Corrupt datatype: 96 at 201
on linux
Benjamin
4-Oct-2005
[1237]
ax: make struct! [fnc [callback!]]none
ax/fnc <---- this hangs up rebol with a GPF error.
Volker
4-Oct-2005
[1238x2]
rebol callback
 -> http://www.rebol.net/article/0141.html
sorry, wrong group.
Benjamin
6-Oct-2005
[1240]
that damm article,  yes i've read it too many times maybe... ok what 
about this  

a: make struct! [x [integer!] y [integer!] z [struct! [ xy [integer!] 
yx [integer!]]]] none 
length? third a 

== 12 <--- it has 4 integers thats 16 not 12 !  what about 0141.html 
now ????
Volker
6-Oct-2005
[1241]
xy is a pointer to a struct, nt the struct itself.. sadyl we lack 
nested structs.
Benjamin
6-Oct-2005
[1242x2]
yes it's a pointer to the struct, a workaround my be done because 
you can know how many intems are including the nested one's, and 
as far i can see rebol assigns 4 bytes for all datatypes meaning 
strings and nested structures ar also pointers
you can use size: (length? second a) * 4
it may fail :-)
Volker
6-Oct-2005
[1244]
yes, all pointers. workaround for amll structs is: z [integer!] z1 
[integer!] ; in the main stuct. for other things you can try binaries 
and deal with offsets. or write a wrapper in c.
Benjamin
6-Oct-2005
[1245]
yes that's execly what im doing ;-) i send a number to C it read 
n data from the pointer and then passes to rebol as a string the 
i use Romanos's wraper to cast that into a structure; but i get ocational 
crashes when reading fron a crazy pointer :-) i consider this a hack, 
but still may work ...
Volker
6-Oct-2005
[1246x2]
attention: pointers in structs are considered strings. they are copied 
back *until* a 0 is found.
workaround: use two references: rebol-ref: make binary! 1234 struct/pointer: 
rebol-ref
then access things thru rebol-ref
Benjamin
6-Oct-2005
[1248]
yes thats why im sending the amount of bytes to read back to the 
C wraper still it gave me a haed hache lol
Pekr
6-Oct-2005
[1249x2]
if I would even understand what you are talking about, guys :-)
so you trying to say, that if there is struct inside a struct, you 
don't use it, you just provide it with "flat" binary, and then you 
compose things back in rebol level? Why is that better than using 
structs in structs?
Benjamin
6-Oct-2005
[1251]
well realy the thing is... did you remember that windows sometimes 
adresses structures in window messages like lparam or wparam, so 
i get the nasty number, and i've to buil a structure back from this 
*pointer*,..... because i do drugs :-)
Volker
6-Oct-2005
[1252x2]
well, you cant see what we do, because we crawling under the cars 
engine here ;)
but yes, you are right.

its because rebol has no inner structs. when you declare them, it 
actually allocates a pointer there.

thats fine with own code. but os expects real inner struct, so we 
have to workaround to allocate the right space.
but if you can code c, i would do all the os-coding in c then, and 
use rebol-structs only for pasing between rebol and my c. gives os-includes 
without any pain, much easier.
Pekr
6-Oct-2005
[1254]
coding in C stinks .... I don't wanna carry C compiler with myself, 
unless included in Rebol ;-) Librry interface should be enhanced 
then. What about trying to post a wish into RAMBO?
Benjamin
6-Oct-2005
[1255x2]
some years ago i've used a realy cool compiler rapidq the bastard 
dident have the posibility to pass structures back that time i used 
this kind of workaround
what do you mean ?
Pekr
6-Oct-2005
[1257]
I don't even know what do I mean. The only thing I know is that I 
find wrapping libraries not all that comfort and I would like to 
ask those having experience with Python,Perl or any other language, 
if they have some easier way of how to do that or not ...
Volker
6-Oct-2005
[1258]
c-compiler costs me ~4mb if it is a big one. and a good interface 
needs processing includes. basically that *is* a c-compiler included 
in rebol then ;)
Pekr
6-Oct-2005
[1259x2]
Maybe the trouble is really in me and not being able to properly 
do datatype conversion and all those structure wrappings etc.
well then, so big :-)
Benjamin
6-Oct-2005
[1261]
yes i know what you mean i put = in rebol and : in C also i get lots 
of sintax error mising semicolon.... wrapers stink
Volker
6-Oct-2005
[1262x2]
No, the problem is rebol has a good c-interface and a pretty good 
with some meta-programming. (to avoid this double-declaration in 
rebol and c). but it has a terrible os-interface (by lack of full 
c-structs and includes). if you accet that and interface onyl to 
your code, its wonderfull (as wonderfull as c can be).
then you write lots of little accessor-function to pick things out 
of os-structures. sounds terrible, but actually all 1-liners.
Benjamin
6-Oct-2005
[1264]
c has a verry strong type checking thats cool for some cross over 
plattaform but wen it comes to rebol interface you get mad ...