Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:31

    qtxie on master

    FEAT: adds support for custom h… (compare)

  • 12:41

    dockimbel on master

    FEAT: a few minor improvements … (compare)

  • 01:14

    dockimbel on master

    FIX: missing entry for %tools.r… (compare)

  • 00:51

    dockimbel on interp-events

    (compare)

  • 00:46

    dockimbel on master

    FEAT: preliminary work on instr… Merge branch 'master' into inte… Merge branch 'master' into inte… and 86 more (compare)

  • 00:10

    dockimbel on interp-events

    FIX: minor code cleanup. (compare)

  • Nov 30 14:55

    dockimbel on interp-events

    FIX: removes early experimental… (compare)

  • Nov 30 11:57

    dockimbel on interp-events

    FEAT: improves a bit debugger's… (compare)

  • Nov 30 11:56
    dockimbel unlabeled #5002
  • Nov 30 11:56
    dockimbel labeled #5002
  • Nov 30 11:56
    dockimbel commented #5002
  • Nov 30 11:54
    dockimbel labeled #5002
  • Nov 30 03:42

    qtxie on IO

    FEAT: support IPv6 client TCP p… (compare)

  • Nov 29 21:13
    greggirwin commented #5002
  • Nov 29 21:11
    greggirwin commented #5002
  • Nov 29 18:53

    dockimbel on interp-events

    FEAT: generates CALL/RETURN eve… (compare)

  • Nov 29 18:51
    hiiamboris commented #5002
  • Nov 29 18:21
    greggirwin commented #5002
  • Nov 29 18:16
    greggirwin labeled #5002
  • Nov 29 18:16
    greggirwin commented #5002
Boleslav Březovský
@rebolek
@pekr yes
RaycatWhoDat
@RayMPerry
Something I've always wondered about this language: Has someone used it in each domain highlighted in this graphic? https://3.bp.blogspot.com/-xhOP35Dm99w/UuXFKgY2dlI/AAAAAAAAAGA/YQu98_pPDjw/s1600/reichart-abstraction-diagram.png
Is the split in the line mean to represent Red/System?
Toomas Vooglaid
@toomasv
Yes, some are using it in each domain all the time, others are working more in one or other end. From left: Red/System, Red (proper), and dialects like Parse, VID, Draw.
Henrik Mikael Kristensen
@henrikmk

Does REPEAT intentionally ignore alterations to its index word? It makes it a lot less flexible than REBOL's REPEAT function.

REBOL:

repeat i length? [a b c] [print i i: i + 2]
1
== 3

Red:

repeat i length? [a b c] [print i i: i + 2]
1
2
3
== 5
Toomas Vooglaid
@toomasv
@henrikmk There was recently a chat connected to this :point_up: June 2, 2021 9:28 PM
Henrik Mikael Kristensen
@henrikmk
@toomasv thank you
Toomas Vooglaid
@toomasv
You are welcome!
Gregg Irwin
@greggirwin
@RayMPerry some examples:
  • Hardware: https://www.red-lang.org/2019/07/gpio-port-for-raspberry-pi.html
  • Drivers: The Red Wallet has its own USB driver built in.
  • OS: @BeardPower has done some experiments in this area. So even writing your own OS from boot is possible, but also system applications that run just above that.
  • Apps and scripting are the bulk of what people do with Red.
  • DSLs: There are plenty of those in the wild, along with some that come built into Red.
Raghu Ranganathan
@razetime
{0A05AAD8-6EE4-410A-BEF6-52EBBB32D4A1}.png
I'm trying to use the draw dialect here
I'm not sure what's causing the problem
arr here is a series of pairs
Toomas Vooglaid
@toomasv
@razetime You can't use Red proper inside VID just like that. Prepare your draw-block beforehand and feed it to VID, something like this:
arr: [10x10 190x190 10x190 190x10]
lines: collect [foreach p arr [foreach q arr [keep reduce ['line p q]]]]
view [base 200x200 draw lines]
Toomas Vooglaid
@toomasv
Or you can compose it inline:
view compose/only [base 200x200 draw (collect [foreach p arr [foreach q arr [keep reduce ['line p q]]]])]
Raghu Ranganathan
@razetime
oh, interesting.
what is the keep reduce for?
Toomas Vooglaid
@toomasv
keep is subfunction in collect (see ? collect), and reduce reduces (i.e. evaluates words (and other reducible things)) the block before keeping it.
Raghu Ranganathan
@razetime
ah, so collect and keep together create a list of lines
Toomas Vooglaid
@toomasv
Yes
Raghu Ranganathan
@razetime
sort of like a flatmap
Gregg Irwin
@greggirwin
You can use them together that way, yes. General HOF design is in the works.
GiuseppeChillemi
@GiuseppeChillemi
Could http links be made clickable if printed on the console?
Toomas Vooglaid
@toomasv
They could. Tried a quick hack
Console links
GiuseppeChillemi
@GiuseppeChillemi
@toomasv Thanks, the idea that has triggered the question was to make web addresses in function spec string clickable on HELP function-name console printout:
aname: func [
   {This function does <this>. 
      For additional documentation go to: 
       HTTPS://github/docs/extended/aname
    }
   arg {This arg does <that>. 
      For examples go to: HTTPS://github/docs/extended/aname/arg}
]
[
   ...somecode...
]
I have really needed it while learning. Toomas, what you think about this?
@greggirwin And you Gregg, what you think about this?
Toomas Vooglaid
@toomasv
Yeah, would be nice to have it, something like this:
Console links2
(Links are not actually included in online version (which is old), as it is just a hack)
GiuseppeChillemi
@GiuseppeChillemi
That's the idea. You added one "feature" : the highlighting of any link on screen. My idea was to have an highlight <string> function which is called by help to print specs descriptions.
(so the string creates a clickable output on the console when encountering web links)
Rudolf Meijer
@meijeru
HELP! red-latest-exe is not updated beyond 26-May (commit 9b645b93). There are already 5 newer ones.
Gregg Irwin
@greggirwin
@GiuseppeChillemi @toomasv very cool, and yes. We can use @rebolek's nsource as well, e.g. producing the necessary URL from help for natives.
@x8x do you know what the server issue is for @meijeru 's report?
GiuseppeChillemi
@GiuseppeChillemi
@greggirwin I will write a request for it.
Gregg Irwin
@greggirwin
@toomasv I can't remember, is your console stuff in a gist or repo?
GiuseppeChillemi
@GiuseppeChillemi
Toomas Vooglaid
@toomasv
@greggirwin In a repo, but I haven't updated it for long time, some things don't work.
FLuX LoOP
@x8x
@meijeru Issue is fixed. Try again please!
Raghu Ranganathan
@razetime
is there an equivalent for maximum-of in Red?
I need to get the meximum of a series
Galen Ivanov
@GalenIvanov
@razetime No, last sort series
Raghu Ranganathan
@razetime
thanks
Rudolf Meijer
@meijeru
@x8x red-latest-exe is up to date. Tx!
Gregg Irwin
@greggirwin
@x8x what was the issue?
Gregg Irwin
@greggirwin
@GalenIvanov sorting and pulling a value doesn't match the behavior. maximum/minimum-of in R2 are not great names, because they return the series offset, not the value. I proposed either at-max or find-max in the past. But they also need design input. e.g. what are they used for, is /case worth supporting, or even /skip? And if you need this behavior, is it better to do it with an aggregator, because a linear search is not efficient. No big deal if your data is small or the query infrequent, but finding the maximum feels more like something you need in larger data analysis scenarios, where it can add value. e.g. graphing data and setting chart bounds.
My old mezz versions use forskip to support /skip, so aren't applicable to Red at this time.
Galen Ivanov
@GalenIvanov
@greggirwin I (correctly) guessed that @razetime needs maximum-of as value and not series offset, for code-golf :smile:
I agree with your comments. Linear search is easy to alias as reduce series :max (or fold, or scan) once we have HOF.
Gregg Irwin
@greggirwin
:+1:. I see now that @razetime is into esoterics and golf. :^)
ne1uno
@ne1uno
emphasizes?