Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 22 21:31
    vazub edited #4984
  • Oct 22 21:29
    vazub opened #4984
  • Oct 22 18:28

    dockimbel on interp-events

    FEAT: preliminary work on a sim… (compare)

  • Oct 22 18:16

    dockimbel on interp-events

    FIX: minor code formatting impr… (compare)

  • Oct 22 14:28

    dockimbel on interp-events

    FEAT: adds `stack` and `parents… (compare)

  • Oct 22 13:32

    dockimbel on interp-events

    FIX: makes interpreter event ha… FIX: missing change in previous… (compare)

  • Oct 21 18:47
    hiiamboris commented #92
  • Oct 21 16:32

    dockimbel on interp-events

    FEAT: adds support for watching… (compare)

  • Oct 20 17:33

    dockimbel on interp-events

    FEAT: preliminary work on debug… (compare)

  • Oct 20 16:21

    dockimbel on interp-events

    FIX: removes an unused argument… (compare)

  • Oct 20 07:34

    qtxie on master

    FIX: macOS: do-events/no-wait e… (compare)

  • Oct 19 19:51

    dockimbel on interp-events

    FEAT: adds EVT_ERROR support in… (compare)

  • Oct 18 18:04

    dockimbel on interp-events

    FEAT: adds support for @stop an… (compare)

  • Oct 18 17:23

    dockimbel on interp-events

    FEAT: adds `prolog` and `epilog… (compare)

  • Oct 18 16:19

    dockimbel on interp-events

    FEAT: removes unused tracing co… (compare)

  • Oct 18 11:51
    endo64 commented #4983
  • Oct 18 11:10

    dockimbel on interp-events

    FEAT: minor improvement on loca… (compare)

  • Oct 17 23:35
    endo64 commented #4331
  • Oct 17 18:29

    dockimbel on interp-events

    FEAT: adds `words-of` reflector… FEAT: show local contexts inlin… (compare)

  • Oct 17 08:17
    hiiamboris closed #4793
Raghu Ranganathan
@razetime
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?
Gregg Irwin
@greggirwin
Yes.
Galen Ivanov
@GalenIvanov
@ne1uno Fixed!
ne1uno
@ne1uno
ty. a friend spotted it
ne1uno
@ne1uno
.freenode.net Message of the Day -You have been blocked due to filtering problems. Contact kline@freenode.net
they've been indiscriminately banning users after most of the staff abandoned ship, if red-lang is still linking to freenode, it might be time to switch to another network.
most everyone moved with the staff to http://libera.chat/ @rebolek
Boleslav Březovský
@rebolek
@ne1uno I'm not against switching the network, I've read about freenode's dubios behavior in last weeks and moving elsewhere makes sense to me.
GiuseppeChillemi
@GiuseppeChillemi

When code is data and data is code, sometimes you can't distinguish a situation from a value:

>> a: [b c #[none!]] 
probe type? probe pick a 3 
probe type? probe pick a 10
none
none!
none
none!

None is returned either as an element picked from a block and when we are out of the boundaries.
In any function of this kind, you have to create another one to check if we are in a situation that returns None.