Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:56
    hiiamboris opened #4803
  • 14:56
    hiiamboris labeled #4802
  • 14:56
    hiiamboris labeled #4802
  • 14:55
    hiiamboris opened #4802
  • 09:07
    qtxie closed #4799
  • 09:07
    qtxie labeled #4799
  • 09:07
    qtxie labeled #4799
  • 09:07

    qtxie on master

    TESTS: adds tests for issue #47… (compare)

  • 08:56

    qtxie on master

    FIX: issue #4799 (Binary and st… (compare)

  • 08:56
    qtxie labeled #4799
  • 08:56
    qtxie assigned #4799
  • 08:41

    qtxie on master

    FIX: cannot find some macro def… (compare)

  • Jan 17 18:56
    greggirwin commented #4800
  • Jan 17 18:21
    hiiamboris labeled #4801
  • Jan 17 18:21
    hiiamboris labeled #4801
  • Jan 17 18:21
    hiiamboris labeled #4801
  • Jan 17 18:17
    hiiamboris opened #4801
  • Jan 17 18:10
    hiiamboris labeled #4800
  • Jan 17 18:09
    hiiamboris opened #4800
  • Jan 17 14:41
    hiiamboris commented on c6c0842
GiuseppeChillemi
@GiuseppeChillemi
Does anyone recognize this?
image.png
Gregg Irwin
@greggirwin
Nice! Have you tried the Generate feature with your first example?
It's the first public Hello World! diagram. :^)
pixel40
@pixel40
Where can I purchase a "Knowledge Module" like in the Matrix Movie. There is too much to learn. Need to learn faster. :-)
Toomas Vooglaid
@toomasv
@GiuseppeChillemi I don't see how the last line in your second example (skip ...) can work. I would expect it to be something like
skip (set 'value load/next str 'new probe :value) :new
GiuseppeChillemi
@GiuseppeChillemi
Toomas Vooglaid
@toomasv
Remind you, DG is written in Red, and load/next works differently in Red and REBOL. For diagramming it is ok to use REBOL syntax, but trying it out will fail.
GiuseppeChillemi
@GiuseppeChillemi
Thank you, have you resources which explain the differences?
Toomas Vooglaid
@toomasv
Yes, help :)
Toomas Vooglaid
@toomasv

Compare:
REBOL

>> str: "one two three"
== "one two three"
>> set [value str] load/next str
== [one " two three"]
>> set [value str] load/next str
== [two " three"]
>> set [value str] load/next str
== [three ""]

Red:

>> str: "one two three" 
== "one two three"
>> load/next str 'str 
== one
>> load/next str 'str 
== two
>> load/next str 'str 
== three
François Jouen
@ldci
Hi everybody: The software I wrote with Red for paediatric application about face evolution in children is now open source . You can get the code here: https://github.com/ldci/Face
pixel40
@pixel40
@ldci Wow, I just read through your Research article, just amazed that you used RED for this. I don't know much about OpenCV/RedCV, wish I did though. Keep up the incredible work you do.
François Jouen
@ldci
@pixel40 Thanks a lot. Red is really a fantastic language for a lot of applications:)
FLuX LoOP
@x8x
Great stuff @ldci ! Thanks for sharing! :thumbsup:
François Jouen
@ldci
@x8x Thanks. I’ve just updated face.md and deleted some non neccessary files in libs.
Toomas Vooglaid
@toomasv
Great work, @ldci, congratulations!
François Jouen
@ldci
@toomasv Thanks. BTW redCV use the matrix-object we developed during yhe last summer:)
GiuseppeChillemi
@GiuseppeChillemi

@toomasv So in Red you are forced to use the same word that contains the source series.

/next        => Load the next value only, updates source series word.
  position     [word!] "Word updated with new series position."
a: {does x: 22 print ["hello"] probe x}
== {does x: 22 print ["hello"] probe x}
>> load/next {x: 22 print ["hello"] probe x} 'a
== x:
>> load/next a 'val
== x:
>> load/next a 'val
== x:
>> load/next a 'a
== does
>> load/next a 'a
== x:
>> load/next a 'a
== 22

While in Rebol it can be any word. I don't understand the reason but it's ok.

hiiamboris
@hiiamboris
reason is less memory pressure
GiuseppeChillemi
@GiuseppeChillemi
So, why not {load/next 'a}? (Where Red gets the value a once next is true, and then set word new-position}
(note: it's a curiosity and not a complaint)
hiiamboris
@hiiamboris
no idea ;)
but guess for compatibility with normal load
when your argument's type and meaning changes based on refinements it's kinda bad
GiuseppeChillemi
@GiuseppeChillemi
In this case you map various meanings to the unused datatype. It is like copy/part where part can be: series, position, number elements. Why you think it is bad? I have started to use this in dialects.
Toomas Vooglaid
@toomasv
@GiuseppeChillemi There is no difference between REBOL and Red in this respect. If you want to use exactly same line of code to move forward then both REBOL and Red have to use same word, but you can change word on each line if you want, e.g.
>> str: "one two three" 
== "one two three"
>> load/next str 'str1 
== one
>> load/next str1 'str2 
== two
>> load/next str2 'str3 
== three
GiuseppeChillemi
@GiuseppeChillemi

@toomasv You are right! I have made a mistake:

>> load/next a 'val
== x:
>> load/next a 'val
== x:

This is the correct version

>> load/next a 'val
== does
>> load/next val 'a
== x:
>>

It's @hiiamboris fault which has not corrected me! :-)

hiiamboris
@hiiamboris
bad because I have hard time even imagining how the docstrings would be spelled ;)
GiuseppeChillemi
@GiuseppeChillemi
Now I have understood and no, I do not map different meaning but the working of the element in the meaning which the arg is representing (as copy/part)
Gregg Irwin
@greggirwin

@ldci fantastic! Thanks for posting.

@pixel40 if you find a way to jack in, let me know. I could use it too. :^)

Gregg Irwin
@greggirwin
@GiuseppeChillemi using @toomasv's example, this is correct for Red:
parse text blk-rule: [
        some [
            str:
            newline |
            #";" [thru newline | to end] new: (probe copy/part str new) |
            [#"[" | #"("] blk-rule |
            [#"]" | #")"] break |
            skip (value: load/next str 'new probe :value) :new
        ]
]
Gregg Irwin
@greggirwin
I added a note about it to https://gitter.im/redlake-comm/DiaGrammar
pixel40
@pixel40
@greggirwin Just a silly question. Would RED work on a linux based phone like Pine Phone?
Gregg Irwin
@greggirwin
@Respectech is our resident expert on that. I haven't tried it.
He owns https://ameridroid.com/ and they sell Pine64 products.
pixel40
@pixel40
@greggirwin Thank you, that's a great site. Just what I wanted. I won't use Google anymore, just ask you LOL
Gregg Irwin
@greggirwin
I know a lot about a little. :^)
GiuseppeChillemi
@GiuseppeChillemi
@ldci Great work!
François Jouen
@ldci
@GiuseppeChillemi Thanks
Jose Luis
@planetsizecpu

@ldci good job!
@greggirwin An old journalist from the parliament in my country once said on TV:

A specialist is someone who knows almost everything about almost nothing.
A journalist is someone who knows almost nothing about almost everything.

So you are a specialist, the right person to ask. 😊

Gregg Irwin
@greggirwin
:^) My Dad used to say that an expert is someone who knows more and more about less and less until they know absolutely everything about nothing.
R cqls
@rcqls
Very wise father! Lucky man!
GiuseppeChillemi
@GiuseppeChillemi
I have seen something new for red in Diagrammar:
image.png
How have added inner and outer hyperlinks? Is it a new Red feature?
I like this help doc navigator, it reminds me of Windows Help. I see it simple to create: a text-list, a text-area and 2 button. Is there other magic behind?
Gregg Irwin
@greggirwin
It is magic, using Red's rich-text style and rich text dialect, driven by a custom parser against an internal make-doc/markdown like format used for help content.
GiuseppeChillemi
@GiuseppeChillemi
@greggirwin Will you share the magic with us?
Gregg Irwin
@greggirwin
Someday, yes. :^)