Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 09:05
    hiiamboris commented #108
  • 09:04
    hiiamboris commented #108
  • 09:03
    hiiamboris commented #108
  • 09:01
    hiiamboris edited #108
  • 08:59
    hiiamboris opened #108
  • Oct 25 14:11
    hiiamboris commented #4652
  • Oct 24 09:58

    dockimbel on interp-events

    FIX: compiler crashing in error… (compare)

  • Oct 24 09:50

    dockimbel on interp-events

    FIX: allows paren! series as ar… FIX: improper error reporting o… (compare)

  • Oct 24 08:11

    qtxie on interp-events

    FIX: Win: gets WM_PAINT event i… (compare)

  • Oct 24 06:35

    qtxie on master

    Fix NetBSD compilation and rpath (compare)

  • Oct 24 06:35
    qtxie closed #4987
  • Oct 24 06:32

    qtxie on master

    Fix 'about' word in FreeBSD con… (compare)

  • Oct 24 06:32
    qtxie closed #4986
  • Oct 24 06:02
    vazub edited #4987
  • Oct 24 06:01
    vazub opened #4987
  • Oct 23 18:53
    greggirwin commented #4986
  • Oct 23 18:17
    vazub synchronize #4986
  • Oct 23 18:14
    vazub synchronize #4986
  • Oct 23 18:08
    vazub opened #4986
  • Oct 23 17:43

    dockimbel on interp-events

    FEAT: integrates interpreter ev… (compare)

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?
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.