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

World: r3wp

[!REBOL3]

WuJian
4-Feb-2010
[432x2]
A script can do the job, I forgot where I'd seen it
http://www.rebol.org/view-script.r?script=clean-script.r
Graham
4-Feb-2010
[434x2]
Doesn't work on R3 source
Actually it doesn't work well on R2 source either!
WuJian
4-Feb-2010
[436]
ah...
Graham
4-Feb-2010
[437]
chokes on 

obj/:word

which is new syntax inroduced after that script was written
Pavel
5-Feb-2010
[438]
Is it week in year day in year function available in rebol? I've 
found that very messy standards for week in year calculation. There 
are minimally 3 views to what first week in year really is, combined 
with the first day in week rule. (in different words there must be 
two switches to function would be universaly useable) funny but sometimes 
necessary.
Graham
5-Feb-2010
[439]
There is /weekday
Ashley
5-Feb-2010
[440]
>> scalar!                          

== make typeset! [integer! decimal! percent! money! char! pair! tuple! 
time!]
>> to integer! 0
== 0
>> to decimal! 0 
== 0.0
>> to percent! 0 
== 0%
>> to money! 0   
== $0
>> to char! 0  
== #"^@"
>> to pair! 0 
== 0x0
>> to tuple! 0
** Script error: cannot MAKE/TO tuple! from: 0
** Where: to
** Near: to tuple! 0
>> to time! 0  
== 0:00

Should tuple! default to 0.0.0 ?
Sunanda
5-Feb-2010
[441]
tuple 0 error:  It is consistent with R2 -- but that only does not 
make it right (see CC #666)
Ashley
5-Feb-2010
[442]
>> power 2 2
== 4.0

Shouldn't this return integer! where possible?
Pekr
5-Feb-2010
[443]
>> to-integer copy/part tmp: to-string  power 2 2 find tmp "."
== 4

:-)
Ashley
5-Feb-2010
[444]
Or:

	to integer! power 2 2
Sunanda
5-Feb-2010
[445]
That produces an error for higher values of 2.

This should produce an int when it can, and a dec when it can't, 
though only for positive values of 2:

   pow: func [a b /local res][attempt [res: to-integer res: power a 
   b] res]
Mchean
5-Feb-2010
[446]
is Android and the iPhone platforms under consideration?
Pekr
5-Feb-2010
[447]
yes, it is in priority plan, to get build for ARM and possibly other 
platforms ...
Henrik
5-Feb-2010
[448]
hmm... is it possible to remove messages in R3 chat? I saw Ladislav 
posting this header:


> 6843   Re #6839: round/half-ceiling -$100.5000000    26 ladislav 
18m ago  

But now it's gone from my chat view.
Sunanda
5-Feb-2010
[449]
Manual says remove is possible....Never tried it myself:

   http://www.rebol.net/wiki/RebDev_Quick_Start#Move_or_Remove_Messages
Graham
5-Feb-2010
[450]
Graham:R3/Mezzanines>> 6843
#6843: skip from ladislav 3h ago:
BrianH
5-Feb-2010
[451x2]
Ashley, scalar! means that the type can be operated on by *, /, + 
and -, not that it can be converted from integer.
Phone platforms are in the priority plan, but that will likely have 
to be limited to platforms where REBOL will be allowed. So development 
for the iPhone would be possible, but running REBOL *on* the iPhone 
or iPad isn't allowed by Apple's rules. Other phone platforms would 
be fine though - they have no such restrictions.
Ashley
5-Feb-2010
[453]
>> length? read http://idisk.me.com/dobeash/Public/rebdb.r
== 12771
>> size? http://idisk.me.com/dobeash/Public/rebdb.r
== none
>> help size?
USAGE:
	SIZE? target

DESCRIPTION:
	Returns the size of a file.
	SIZE? is a function value.

ARGUMENTS:
	target (file! url!)
BrianH
5-Feb-2010
[454]
Good to know, I'll put it on the list for the http scheme.
Graham
5-Feb-2010
[455]
>> result: write http://idisk.me.com/dobeash/Public/rebdb.r[head]
== [%/dobeash/Public/rebdb.r 12771 none]
Ashley
5-Feb-2010
[456]
How on earth did you come up with that!?
Graham
5-Feb-2010
[457x3]
I've written a few schemes :)
so this should work inside the http scheme

		size?: funct [
			port [port!]
		][
			tmp: write port [ head ]
			pick tmp 2
		]
or just 

second write port [ head ]
Ashley
5-Feb-2010
[460]
>> #{0140} = #{0140}
== true
>> #{0141} = #{0141}
== true
>> #{0141} = #{0161} 
== true
>> #{0141} == #{0161}
== false
BrianH
5-Feb-2010
[461]
Oh, that's bad: EQUAL? is doing case-insensitive comparison for binaries. 
That's a bug - I'll report it.
Ashley
5-Feb-2010
[462]
Is this the same problem?

>> #{0159} > #{0158}
== true
>> #{0159} > #{015E} 
== true
BrianH
5-Feb-2010
[463]
Yup. Already reported.
Graham
6-Feb-2010
[464]
So, it looks like Carl is in bug fixing mode  ....
BrianH
6-Feb-2010
[465]
Oh yeah, and it is much appreciated :)
Graham
6-Feb-2010
[466]
The concensus was that the host kit should be the priority ...
Henrik
6-Feb-2010
[467]
perhaps the fixes are required for the host kit.
Graham
6-Feb-2010
[468]
That's so nice of you Henrik :)
Henrik
6-Feb-2010
[469]
anyhow A97 is clearly marked before the hostkit in the priorities 
list.
BrianH
6-Feb-2010
[470]
He's still sing the queue-with-timeouts priority model. The hostkit 
got put on hold while some of the timed out items were handled: R2, 
the web site, and now bug fixes.
Graham
6-Feb-2010
[471]
Well, the only bug that bugs me is http://www.curecode.org/rebol3/ticket.rsp?id=682&cursor=56
BrianH
6-Feb-2010
[472]
Agreed, that's a priority for me too (though not as high as TO or 
THRU charset not working).
Paul
6-Feb-2010
[473]
I think using append/insert on binary should be a high priority.
BrianH
6-Feb-2010
[474]
Well, I think that problems with workarounds get a lower priority 
than problems without workarounds, but I agree.
Paul
6-Feb-2010
[475]
The workaround for the binary issue is nested joins for me.
Graham
6-Feb-2010
[476]
the main workround is to use R2
BrianH
6-Feb-2010
[477]
Or chained inserts or appends.
Paul
6-Feb-2010
[478]
I got a big project I want to turn off of R3DBMS and need many of 
these core fixes.
BrianH
6-Feb-2010
[479]
Finished the LOAD decoder for compressed scripts/modules, now working 
on the SAVE encoder.
Pekr
7-Feb-2010
[480]
A97 released for Windows and OS-X with over 40 fixes. Can't be reached 
by 'upgrade function though, probably due to website changes. You 
can find it here: http://www.rebol.com/r3/downloads.html
Graham
7-Feb-2010
[481]
must be hostkit next?