Questions tagged [rebol3]

A cross-platform data exchange language and a multi-paradigm dynamic programming language.

A cross-platform data exchange language and a multi-paradigm dynamic programming language designed by Carl Sassenrath for network communications and distributed computing.

207 questions
108
votes
4 answers

Avoiding recursion when reading/writing a port synchronously?

All port operations in Rebol 3 are asynchronous. The only way I can find to do synchronous communication is calling wait. But the problem with calling wait in this case is that it will check events for all open ports (even if they are not in the…
Shixin Zeng
  • 1,458
  • 1
  • 10
  • 14
20
votes
1 answer

How are words bound within a Rebol module?

I understand that the module! type provides a better structure for protected namespaces than object! or the 'use function. How are words bound within the module—I notice some errors related to unbound words: REBOL [Type: 'module] set 'foo…
rgchris
  • 3,698
  • 19
  • 19
11
votes
2 answers

Best intro to dialects and parse?

I'm new to Rebol, and am working with a small corporate-based group to evaluate it for use in some areas that time and again have proven themselves highly resistant to change and to concepts such as DSLs. Can anyone suggest what they have found to…
johns
  • 113
  • 4
10
votes
1 answer

What is the summary of the differences in binding behaviour between Rebol 2 and 3?

The current in-depth documentation on variable binding targets Rebol 2. Could someone provide a summary of differences between Rebol 2 and 3?
Adrian
  • 741
  • 4
  • 14
9
votes
3 answers

Does anyone have an efficient R3 function that mimics the behaviour of find/any in R2?

Rebol2 has an /ANY refinement on the FIND function that can do wildcard searches: >> find/any "here is a string" "s?r" == "string" I use this extensively in tight loops that need to perform well. But the refinement was removed in Rebol3. What's…
Ashley
  • 131
  • 5
9
votes
2 answers

What exactly happened when not using "copy" to deal with a string?

The purpose of the function below is to return a string having inserted the argument value between two stars. star-name: func [name /local stars] [ stars: "**" insert next stars name stars ] print star-name "test" ;*test* print star-name…
Wayne Cui
  • 835
  • 7
  • 15
9
votes
1 answer

Where can I find a Rebol 3 micro web server?

There are plenty of nice little web-servers written in Rebol 2, but Rebol 3 has a different networking model, and I'm looking for a web-server that works with that. I'm not looking for anything fancy. It's just to run on an embedded board to let me…
rebol
  • 348
  • 4
  • 8
9
votes
1 answer

What is the 'reword' function in Rebol and how do I use it?

I saw someone mention the reword function today, but documentation for it is very brief. It looks like shell script environment variable substitution, or maybe regex substitution, but different. How do I use this function and what kind of gotchas am…
Adrian
  • 741
  • 4
  • 14
8
votes
2 answers

|Red Programming Language| How to get Cookies from a Webpage?

I searched a lot on Google as well as Stackoverflow. I could not find How to get Cookies (or in general, The HTTP Headers)from a Webpage and then edit it and send it back? [I know how to make POST/GET requests using read/write but Cookies idk]
8
votes
3 answers

If...else if...else in REBOL

I've noticed that REBOL doesn't have a built in if...elsif...else syntax, like this one: theVar: 60 {This won't work} if theVar > 60 [ print "Greater than 60!" ] elsif theVar == 3 [ print "It's 3!" ] elsif theVar < 3 [ print "It's less…
Anderson Green
  • 30,230
  • 67
  • 195
  • 328
8
votes
1 answer

How to write a "Hello, World" CGI with Rebol 3?

Lets start with something simple: a form with a field which gets echoed.
dt2
  • 183
  • 6
7
votes
2 answers

REBOL layout: How to create layout words automatically - word has no context?

Using the REBOL/View 2.7.8 Core, I would like to prepare a view layout beforehand by automatically assigning words to various layout items, as in the following example. Instead of prepared-view: [across cb1: check …
jjr_
  • 73
  • 2
7
votes
1 answer

Rebol Tail Call Optimization

I come from a functional programming background and think first about recursive solutions to problems rather than iterative ones. I'm starting to work with Rebol a bit (specifically R3) and have written a solution to the primefactor kata using a…
Jamie
  • 150
  • 6
7
votes
1 answer

How to send HTTP POST requests using only Rebol3

What is the simplest way of sending HTTP POST requests and getting response (in XML format for example) using only Rebol3? Is there an equivalent of using read/custom in Rebol2, as it is done in this question? How to send an HTTP post with a custom…
dreamyToto
  • 131
  • 2
6
votes
1 answer

how to properly parse paired html tags?

the question is about parsing an html stream obtained by load/markup in a way you can get html tags constituent parts, i.e. when you find
my text
you should end with something like
, {my text} and
in the…
Pep
  • 451
  • 2
  • 9
1
2 3
13 14