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

World: r3wp

[!REBOL3]

Henrik
4-Feb-2010
[419]
host kit will fix remaining graphics issues, which Cyphre is already 
preparing. It will also help prepare for a better console for all 
platforms. Robert and Maxim has done various implementations (OpenGL, 
SQLite) and are doing general tests. BrianH, I can't remember what 
he's doing...
Pekr
4-Feb-2010
[420]
Fixed tickets now at 14 and counting :-) A good sign R3 is back in 
development, although over time we do have few tens of tickets to 
implement :-)
Maxim
4-Feb-2010
[421]
btw, I will start working on a public R3 /library extension as of 
next week, its now on my agenda.
Graham
4-Feb-2010
[422]
are you claiming the bounty?
Maxim
4-Feb-2010
[423]
I guess I will.
Graham
4-Feb-2010
[424]
I think it has to be delivered this year though ...
Maxim
4-Feb-2010
[425x3]
a good thing its only february then  ;-D
but seriously, I'll start work on this next week, I'll report on 
my progress.
The idea here is not build a prototype, but a "end-user" product.
Graham
4-Feb-2010
[428]
Chinese new year  ... starts in 9 days ... you don't have much time
Janko
4-Feb-2010
[429]
Maxim: great!
WuJian
4-Feb-2010
[430]
haha
Graham
4-Feb-2010
[431]
I was going to have a look at the R3 gui sources but they're all 
flattened..  Is there a pretty print for r3?
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 :)