• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

Gregg
27-Mar-2013
[6702x4]
It's having the doc string on the /dup refinement itself that causes 
it.
Take that out and it works fine.
It looks like that 's the case for all refinements that take an arg. 
If you have a doc string before the arg, it causes the arg to be 
ignored.
Can someone please confirm?
DocKimbel
27-Mar-2013
[6706]
Testing with a string! between a refinement and its argument, I get 
odd results (but no crashes so far). Definitely a bug.
Gregg
27-Mar-2013
[6707]
Do you want a bug report, or have you logged it yourself?
DocKimbel
27-Mar-2013
[6708]
We need a bugtracker entry for this one, if you're on it, please 
add it.
Gregg
27-Mar-2013
[6709]
red>> get 'x
red>> type? get 'x
==
red>> print type? get 'x
unset

The second result is the one in question.
DocKimbel
27-Mar-2013
[6710x3]
Odd...please add it to the bugtracker.
Hmm, I get correct result here:

red>> get 'x
red>> type? get 'x
== unset!
Probably an interference from doc-strings like for APPEND.
Gregg
27-Mar-2013
[6713]
Could be.
DocKimbel
27-Mar-2013
[6714x2]
After pulling your doc-strings locally and recompiling the console 
I get the same output as you.
I need to fix that issue asap, before getting flooded with new tickets. 
:)
Gregg
27-Mar-2013
[6716]
:-)
DocKimbel
27-Mar-2013
[6717]
But I need to go to dinner now, so it will have to wait a bit.
Oldes
27-Mar-2013
[6718x3]
How to create a routine which would accept any-type?
I was trying:  r: routine [value [any-type!]][] but got error like:

*** Compilation Error: invalid definition for function exec/r: [value 
[red-any-value!]]
sorry... 

*** Compilation Error: invalid definition for function exec/r: [value 
[red-any-type!]]
PeterWood
27-Mar-2013
[6721]
The commit to introduce the doc-strings seems to have caused a number 
of tests to fail, a few in the compiler tests but a much bigger number 
in the interpreter tests. For example:

	ok - serialization....................275 / 275
	** - interpreter-serialization*********11 / 275 **
Gregg
27-Mar-2013
[6722]
Wow. Even my docs have bugs. I will run test here. Should have done 
that before.
PeterWood
27-Mar-2013
[6723x2]
My tests don't test the doc-strings so its definitely not you Gregg 
:-)

I wonder how I can test your doc-strings ?
I've just run the Red tests on both Windows 7 and OS X. Same results 
on both:

** - Red Test Suite******************5331 / 5666 **
Gregg
27-Mar-2013
[6725x3]
Evenetually we can test for missing doc strings and use some for 
reflection test, at the least.
I get the same serialization results here. Great to have so many 
tests Peter, and easy to run.
Does it log results somewhere?
PeterWood
27-Mar-2013
[6728x2]
Yes. the log is in Red/quick-test/quick-test.log
Thank Nenad for the tests being easy to run, it's his design.
Gregg
27-Mar-2013
[6730]
Excellent. Maybe have the test runner print out the log location 
at the end?
PeterWood
27-Mar-2013
[6731x2]
That's a thought.
I've just checked the quick-test docs and see that I forgot to mention 
the log file. I'll certainly need to update the docs.
DocKimbel
27-Mar-2013
[6733x2]
Oldes: you can't currently as any-type! is not a defined type yet.
Doc-string related bug fixed.
Gregg
27-Mar-2013
[6735]
That's great Doc! Only 12 tests fail here now.
DocKimbel
27-Mar-2013
[6736]
There should be only 9 failing, 3 are invalid tests that I'm fixing 
right now, 6 are EXIT/RETURN tests for interpreter (not supported 
yet).
Gregg
27-Mar-2013
[6737]
Yes. Looking good.
DocKimbel
27-Mar-2013
[6738x2]
Pushed the fixes for invalid tests, you should have only 6 failing 
now.
OpenCV 2D lines demo: http://www.wuala.com/fjouen/Code/OpenCV/Red/pub/lines2.jpg/


Webcam driver and videos playback code example in Red/System can 
be found in this thread: http://www.digicamsoft.com/cgi-bin/rebelBB.cgi?thread=%3C17Mar2013190850930275100%3E


François is close to 100% covering of OpenCV for Red/System. Once 
that (huge) work done, we would need to create some good dialect 
to access all those features from Red.
Bo
27-Mar-2013
[6740]
Awesome!
Pekr
28-Mar-2013
[6741x2]
Dialect =  parse, for that, you need objects, no? :-)
or do you mean Red/System kind of dialect?
DocKimbel
28-Mar-2013
[6743x2]
Dialects implementations do not need PARSE, they can be implemented 
with base functions, as shown by Kaj with its VID-like dialect for 
GTK+.
PARSE helps making the dialect implementation shorter, faster (for 
interpreters) and more elegant.
Pekr
28-Mar-2013
[6745x2]
weeee wanna more elegant :-)
well, but as for me, from usability standpoint, as a priority, I 
prefer I/O ....
DocKimbel
28-Mar-2013
[6747]
Me too. :-)
Oldes
28-Mar-2013
[6748]
float
Pekr
28-Mar-2013
[6749]
floats for Red? Yes, why not ... but file, networking, ports, schemes, 
tasking schemes ... so that Graham can implement/port FTP, smtp, 
pop3 etc for us :-)
Oldes
28-Mar-2013
[6750x2]
Pekr, are you aware of this:

red>> 2.3
*** Error: word has no value!


Sorry, but if there is any top priority, than it's decimal support!
Anyway, you can read/write including networking with Kaj's cURL binding 
already, but not to do something basic like 1.1 + 2.2 yet