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

World: r4wp

[#Red] Red language group

Kaj
3-Apr-2013
[6833]
It would be better to update it wholesale. Using older versions will 
keep leading to already fixed problems like this. Updating parts 
can lead to inconsistency problems
Bo
3-Apr-2013
[6834x2]
undefined symbol: cvCreateCameraCapture


which is a component of highgui.reds, which I #include in my program.
Thanks for the advice.  I'll have to add in Francois's additions 
into yours.
Kaj
3-Apr-2013
[6836]
Did he change the C library binding?
Bo
3-Apr-2013
[6837]
Yes, he added a couple of items:

        ;added by F. Jouen
        ; is not a number? 
        isNaN: "isNaN" [
                value           [float!]
                return:		[logic!]   
        ]
        ;isinf - test for infinity
        isInf: "isInf" [
                value           [float!]
                return:		[integer!]
        ]
        ;// F. Jouen
Kaj
3-Apr-2013
[6838]
Hm, that's annoying. Working like this will quickly explode into 
extra work
Bo
3-Apr-2013
[6839]
Do you propose using github or something to host the Red/System bindings?
Kaj
3-Apr-2013
[6840]
It's already hosted in Fossil
Bo
3-Apr-2013
[6841]
Is there a how-to for Fossil?  I checked http://red.esperconsultancy.nl/Red-C-library/wiki
but don't see a how-to there.
Kaj
3-Apr-2013
[6842]
http://fossil-scm.org
Bo
3-Apr-2013
[6843]
Thanks.  I'll read it.
Kaj
3-Apr-2013
[6844]
Those two functions are BSD extensions. They can't be relied upon 
to be in all C libraries
Bo
3-Apr-2013
[6845]
So there should be an OS check there, right?
Kaj
3-Apr-2013
[6846]
You'd first have to know which platforms support them
Bo
3-Apr-2013
[6847]
OK.  So I successfully checked out your C-Library using Fossil.  
Thanks for the pointers!
AdrianS
3-Apr-2013
[6848]
Bo, wrt crappy built-in searching, I highly recommend the Everything 
search utility from voidtools. Best file search for Windows. Lightweight 
(no need for service), small, and quick. I've been using this for 
quite a while and I thought that development had unfortunately stalled, 
but, since the new year, it looks like it's being actively worked 
on again. I'm so happy! Yes, it is that nice!

http://www.voidtools.com
Bo
3-Apr-2013
[6849x2]
Kaj, I did a Google search on isNaN and cannot find a list of C libraries 
that don't support it (or that do).  Do you have any ideas on how 
to do this check?
AdrianS: Unfortunately, it won't work for me:

From their FAQ:
1.3 Does Everything search file contents?

No, "Everything" does not search file contents, only file and folder 
names.


I find that I search within file contents at least as much as for 
filenames.  It shouldn't be too hard to write a Rebol-based standalone 
exe that would do this.  I'll add it to my growing list of scripts 
to write.
AdrianS
3-Apr-2013
[6851]
I thought this might be an issue. For that, you should use my second, 
favourite search tool - grepWin, from Stefan's Tools.

http://tools.tortoisesvn.net/grepWin.html

Btw, we should take this to another group.
Kaj
3-Apr-2013
[6852x4]
Bo, I'm looking here in the documentation of the GNU C library, where 
it says they are BSD extensions:
http://www.gnu.org/software/libc/manual/html_node/Floating-Point-Classes.html
I'm working on integrating them into the binding
C99 defines corresponding macros, so that's the standard, but C macros 
can't be used in Red/System
Bo
3-Apr-2013
[6856]
Kaj, thanks!
Kaj
3-Apr-2013
[6857]
Looked through your files, Gregg. You've been busy :-)
Gregg
3-Apr-2013
[6858]
Yes I have. It's great fun. Starting from the basics, seeing what 
you need to build everything else, and re-thinking how to do things 
because things like PARSE aren't there yet.
Ladislav
3-Apr-2013
[6859]
Does Red already have a URL! datatype?
Gregg
3-Apr-2013
[6860]
No. Now is your chance to make sure it's done right. :-)
Ladislav
3-Apr-2013
[6861x2]
Hmm, Rebol is, essentially, in the same situation (url! is incorrect)
(maybe more correct in R2 than in R3)
Gregg
3-Apr-2013
[6863]
Interesting, and not good.
NickA
4-Apr-2013
[6864]
I believe Red can find a market:  http://www.drdobbs.com/jvm/the-quiet-revolution-in-programming/240152206?cid=DDJ_nl_upd_2013-04-03_h&elq=6510ad5ddf4b42adb5b3cd05ed730e24
DocKimbel
4-Apr-2013
[6865]
Yes, there's an opportunity for a language like Red with very broad 
possible usage.
AdrianS
4-Apr-2013
[6866]
The DrDobbs link led to this one - After XML, JSON: Then What?


http://www.drdobbs.com/web-development/after-xml-json-then-what/240151851


That article mentions that one of the "most interesting" new data 
formats being considered is TOML (this looks like the .ini file format)

https://github.com/mojombo/toml

Is this really what we can expect?
DocKimbel
4-Apr-2013
[6867x8]
Funny, on each iteration, they are getting closer and closer to REBOL 
data format...:-)
# First class dates? Why not?
# You can indent as you please. Tabs or spaces. TOML don't care.

:-))
INSERT action implemented for all series datatype. Unit tests are 
welcome.
Especially on strings with different internal encodings (Latin1, 
UCS-2, UCS-4), all combination should be tested for both INSERT and 
APPEND.
INSERT and APPEND on string! extended to handle argument value of 
any datatype!.
(implicit FORM applied to arguments not directly compatible)
New OpenCV Red/System code demo and video (image real-time filtering) 
posted by François: 

http://www.digicamsoft.com/cgi-bin/rebelBB.cgi?thread=%3C17Mar2013190850930275100%3E

Video link:
http://www.wuala.com/fjouen/Code/OpenCV/Red/pub/filtering.m4v/
François says that the Red/System binding has been tested successfully 
with OpenCV 2.0. Base OpenCV features are 98% complete, now François 
is working on wrapping image processing functions.
Gregg
5-Apr-2013
[6875x4]
Go Doc Go!
Quick tests inserting a string in a string work, but inserting a 
word or integer crash.
Char! seems to work.
Testing from console.
DocKimbel
5-Apr-2013
[6879]
I can't reproduce the issue Gregg, it works fine here.
Gregg
5-Apr-2013
[6880x2]
Hmmm. Let me rebuild the console again, to be sure it's not that.
Still crashes.
DocKimbel
5-Apr-2013
[6882]
Maybe your repo is corrupted somehow?