Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 09:01
    loziniak commented #2485
  • 06:46
    toomasv edited #4084
  • 05:36
    qtxie labeled #2723
  • 05:36
    qtxie labeled #2723
  • 05:36
    qtxie labeled #2723
  • 05:03
    Oldes closed #2723
  • 04:19
    toomasv opened #4084
  • Oct 15 23:53
    endo64 commented #2723
  • Oct 15 23:24
    endo64 commented #4081
  • Oct 15 23:13
    greggirwin closed #4079
  • Oct 15 23:13

    greggirwin on master

    FIX: #4079 replace on strings s… FIX: Fix for failed replace tes… Merge pull request #4081 from e… (compare)

  • Oct 15 23:13
    greggirwin closed #4081
  • Oct 15 22:46
    endo64 synchronize #4081
  • Oct 15 22:44
    endo64 commented #4081
  • Oct 15 21:27
    dander updated the wiki
  • Oct 15 21:10
    greggirwin updated the wiki
  • Oct 15 19:39
    hiiamboris edited #4083
  • Oct 15 19:38
    hiiamboris edited #4083
  • Oct 15 19:37
    hiiamboris edited #4083
  • Oct 15 19:20
    hiiamboris opened #4083
garthgoldwater
@garthgoldwater
Red [needs: view]

win: [ 
    text "input"
    input: field 480x480
        on-key-down [
            output/text: do input/text        
    ]

    button "close" [
        quit
    ]
]
view win
which is source that creates a window, and if you copy and paste it into the window and press a key (like up arrow)
it will create a copy of the same program
i dont know if this is old hat to y'all but it might be a good pitch for red as a whole
also it's crazy that it's running do on each keydown with no noticeable lag
Vladimir Vasilyev
@9214
@garthgoldwater an old hat indeed, but it's great to see that you have fun with Red. Welcome!
garthgoldwater
@garthgoldwater
i feel like that should be on the front page of the website or something
Petr Krenzelok
@pekr
As for above code - where does the outputcome from? Isn't that a typo?
FLuX LoOP
@x8x

@dockimbel
For Arch installed thru Manjaro or Manjaro Architect this is what's needed:

pacman -S lib32-curl

(tested with version 18.02 on a 4.20 kernel)
(@rebolek not sure since which release but it's not crashing anymore when doing a read url!)

For Ubuntu thru 17.10: libcurl3
For ubuntu from 18.04: libcurl4

Also this:

apt-get install libc6:i386 libcurl3:i386

can be reduced to:

apt-get install libcurl3:i386

as libc6 is a dependency like there are many others, is it ok to update with the short version or is there any reasons to specify it?

And in the commands, we sometimes have sudo and sometimes not, probably more copy/paste friendlier to include sudo if it's needed.

For:

sudo apt-get install ia32-libs libc6-i386 libcurl3

Agree with @giesse and @rebolek, it's dinosaurs' era stuff, not used at least since Ubuntu version 11.10 which was released in October 2011, I would remove that and readd it if some specific system/OS needs it.

Ashley
@Dobeash

Trim now supports binary! values. By default, only null values are removed.

>> trim/with #{00} null
== #{}

works.

>> trim #{00}

hangs console.

Vladimir Vasilyev
@9214
@Dobeash confirmed. Would you like to open a ticket for it?
Ashley
@Dobeash
Yes, how do I do that?
Vladimir Vasilyev
@9214
FYI, we have /bugs room where you can post bugs for confirmation.
@Dobeash start here and fill in all the info.
Ashley
@Dobeash
Perfect, should I move this entire discussion there?
Vladimir Vasilyev
@9214
Sure, if there's something else to discuss. There's no need to delete messages and cross-post them in another room though, that was just a remark for future.
Ashley
@Dobeash

Yeah, my first bug raised ... #3721

Got a whole bunch more to post to /bugs once I get some simplified test cases. ;)

Vladimir Vasilyev
@9214
@Dobeash congrats! When a :boy: becomes the :man: :wink:
Nenad Rakocevic
@dockimbel
@Dobeash Great! :+1:
Boleslav Březovský
@rebolek
@x8x right, the read url crash is gone for few months already
Nenad Rakocevic
@dockimbel

@x8x Thanks for the exhaustive screening. Feel free to apply the changes on the Download page directly.

as libc6 is a dependency like there are many others, is it ok to update with the short version or is there any reasons to specify it?

IIRC, libc6 is still required for runnning red.exe?

Boleslav Březovský
@rebolek
@dockimbel I believe that @x8x means that libc6 is installed together with libcurl. I haven't tried, but I guess it should be true.
Nenad Rakocevic
@dockimbel
@rebolek We will be dropping libcurl soon, so I want to avoid him removing a dependency that we still need by merging those two together.
Boleslav Březovský
@rebolek
I see, that makes sense.
Greenfoot is the most advanced I have found, though after playing some time with it (despite the terrible slowness), it seems it just cannot scale up well visually with deeply nested code.
Boleslav Březovský
@rebolek
@dockimbel Wow, lot of stuff to explore! Thank you!
huangyg11
@huangyg11
how can i make a post request and parse returned json?
Boleslav Březovský
@rebolek
@huangyg11 see send-request function from https://github.com/rebolek/red-tools/blob/master/http-tools.red It can send POST requests and does automatically parse returned JSON data
huangyg11
@huangyg11
thanks
Boleslav Březovský
@rebolek
POST request is done with write/info server [POST some-data].
Rudolf Meijer
@meijeru
I repeat my signal: the feed in the right column of this page, wich is a useful tool for me to keep up-to-date, seems to be stalled. Most recent item I see is "toomasv commented #3714" on Jan 07. It is now Jan 10, and I am sure that much has happened that needed to be in the feed. Will someone look into this and take it up with Github?
Gilbert
@gilbert
are there any examples of compilers written in red?
Vladimir Vasilyev
@9214

@gilbert VID and RTD dialects, the former compiles declarative description of GUI layout to a virtual tree of components, the latter takes a stylized text and compiles it down to a single string with a low-level styling description. C3 (currently in development) compiles a domain-specific language for smart-contract development down to EVM bytecode. One of community members implemented Brainfuck to 8085 assembly compiler. There's also this.

If you mean compilers for general-purpose languages rather than DSLs and esolangs - Red and Red/System compilers are written in Rebol, which is 95% compatible with Red.

Gregg Irwin
@greggirwin
@x8x, do you know what the issue might be, that @meijeru reported above?
mikeparr
@mikeparr
@9214 Congrats on you well-written, balanced article on Red vs Racket on Reddit.
Gregg Irwin
@greggirwin
I'm anxious to get to it today @9214. Thanks for doing that.
Vladimir Vasilyev
@9214
@mikeparr that's a cross-post in Racket subreddit, the "article" you've mentioned is here.
Gilbert
@gilbert
@9214 Thanks
Jose Luis
@planetsizecpu
@9214 I enjoyed reading your article. :-)
FLuX LoOP
@x8x
@greggirwin @meijeru I'm looking into the activity area issue with gitter staff, most probably something behind our control.
Gregg Irwin
@greggirwin
Thanks @x8x.
Gregg Irwin
@greggirwin
@9214, absolutely fantastic reddit Racket write-up. Don't lose that. We should find a good place to post it, or start our "Red for Blub" developers series and use it there.
Vladimir Vasilyev
@9214
@greggirwin such series would require writers who know both Red and Blub thoroughly, to make a fair review. "X vs. Y" topics are extremely important to handle blandly and with due respect to both sides. And posting them on behalf of Red might imply a biased "X vs. y" rather than "X vs. Y" to someone.
Boleslav Březovský
@rebolek
I am interested in Red vs. Brainfuck.
Vladimir Vasilyev
@9214
If only Red relaxed lexing rules a bit and allowed , as part of a token, then BF would be fully loadable :wink:
Gregg Irwin
@greggirwin
@9214, yes, people need to at least be familiar with the other lang. And they can grow over time. The main thing is to be a primer, so they can find their feet with Red.
huangyg11
@huangyg11
twice: function [a [integer!] /one return: [integer!]][
c: 2
a: a * c
either one [a + 1][a]
]
in this function definition, what is the "/one" represents?