Questions tagged [rebol]

Rebol is a modern interpreted language where code is data. It isn't object oriented, but has objects. It isn't a functional language but has first class functions. There are virtually no syntax rules or immutable keywords, making it ideal for developing domain-specific "dialects".

Rebol is a homoiconic language with heritage from , , , and . Language focus is on careful control of dependencies, and concern over the size of the interpreter and code...as well as achieving an English-like readability. The project's motto is "Rebel against software complexity".

On 12-Dec-2012, the unfinished ANSI-C sources of the Alpha release of Rebol3 was open-sourced under an Apache 2.0 License. Standalone "zero-install" binaries are available for x86 and ARM platforms--covering Linux/Windows/Mac/Android, 64-bit builds, hard-float compatibility and HaikuOS. Core builds are about half a megabyte, while GUI builds are around 1 megabyte (uncompressed).

(Note: Several forks of the code exist, with a community wiki summary at REBOL3 - what is the difference between the different branches?)

In addition to inheriting the "code is data" paradigm of Lisp, Rebol has a rich type system...natively recognizing patterns like URLs, dates, HTML tags, currency, and binary literals. Of note, Douglas Crockford (of JSON and JSLint) has credited Rebol as a source of inspiration for JSON, adding:

"Rebol's a more modern language, but with some very similar ideas to Lisp, in that it's all built upon a representation of data which is then executable as programs. But it's a much richer thing syntactically.

Rebol is a brilliant language, and it's a shame it's not more popular, because it deserves to be."

    —Douglas Crockford, founder of JSON, 2009 [link]

A modern compiled variant of Rebol which draws in several new concepts is , which is under heavy development.

696 questions
0
votes
2 answers

How to run a view without blocking Rebol's Console?

Taken from http://www.rebol.com/docs/view-system.html#section-4: In some cases you may want to view a window but continue evaluating code after the window is open. You can do that by specifying the new refinement. Here is an example: print…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
1 answer

Why show doesn't refresh this rebol listview?

I show the list of spams from mysql in a listview, after delete I use show grid but it doesn't refresh, why ? do http://reboltutorial.com/source/mysql-protocol.r do http://www.hmkdesign.dk/rebol/list-view/list-view.r window: layout [ grid:…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
1 answer

Rebol Call Command doesn't behave exactly like Dos command (ex with Subversion command line)

This Subversion import command works on dos command line: "C:\Program Files\Subversion\bin\svn.exe" import c:\myproj file:///c:/svnrepo/myproj -m "test" If I try to send the same command with Rebol Call Command with this script: Print "This command…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
2 answers

Rebol's DOM like library for Rebol's Block?

I agree with Carl that XML is too much verbose compared to Rebol's Block but there is no equivalent of XML DOM library for Rebol's Block or am I mistaken ? How can I iterate through a hierarchy of block ?
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
2 answers

Why do I get an error when I try to create a rebol object from another one using reflection

>> example: make object! [ [ var1: 10 [ var2: var1 + 10 [ var3: now/time [ set-time: does [var3: now/time] [ calculate: func [value] [ [ var1: value [ var2: value + 10 [ ] […
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
1 answer

Reflection in Rebol: Is it possible to know the script/object/function that is executing?

If not will this be possible in R3 ?
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
1 answer

Getting a reference to an enclosing list/block in Rebol

Given a sublist is there a way to get a reference to it's parent/enclosing list/block? For example: fs: [ usr [ local [ bin [] ] share [] ] bin [] ] l: fs/usr/local ;grab a sublist p: none ;now grab l's parent (which is fs/usr) without…
Sunder
  • 1,445
  • 2
  • 12
  • 22
0
votes
2 answers

rebol parse rule with compose/deep and append function

This works great (thanks to Sunanda's suggestion How can I parse [a / b] ? syntax error in Rebol?): attribute: copy [] class: copy [] definition-rule: compose/deep [some [set class word! 'is 'defined 'by [some [copy attribute to (to-lit-word "/")…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
1 answer

Rebol Self Object

I asked this question a few weeks ago about port Rebol Smallest Http Server in the World: why first wait listen-port? listen-port is an object first listen-port is self so still don't understand why self doesn't equal listen-port that is why do we…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
1 answer

How can I parse [a / b] ? syntax error in Rebol?

I am having a problem with: >> parse [a / b] ['a '/ 'b] ** Syntax Error: Invalid word-lit -- ' ** Near: (line 1) parse [a / b] ['a '/ 'b] >>
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
1 answer

Which version of Rebol 2 do I use on CentOS?

Can somebody please tell me which version of Rebol 2 to use on CentOS? There are a couple of Linux versions on this page: http://www.rebol.com/platforms.html I'm going to have a go at this tutorial: Quick and Easy CGI - A Beginner's Tutorial and…
David Smith
  • 411
  • 2
  • 5
  • 12
0
votes
1 answer

Rebol: Found a way to auto-generate and execute code dynamically, is there a better way?

I have experimented with this: >> code-block: copy [] == [] >> append code-block [func[][print "a"] ] == [func [] [print "a"]] >> do do code-block a >> Is there a way to avoid to do "do" twice :)
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
2 answers

Rebol Request-Download doesn't support Big File: how to correct?

download-dir: request-dir Print ["downloading " "VStudio2008Express.iso" "..." ] url: http://go.microsoft.com/fwlink/?LinkId=104679 file-save: to-rebol-file rejoin [download-dir "VStudio2008Express.iso"] request-download/to url file-save In the…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
1 answer

Rebol RebDB Relational Database: is there a better Syntax for inserting today's date

From User Guide http://www.dobeash.com/RebDB/db-guide.html I did this >> record: make block! [] == [] >> append record 'next == [next] >> append record now/date == [next 13-Sep-2009] >> append record "test insert date" == [next 13-Sep-2009 "test…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
0
votes
2 answers

Rebol Script Error: Alias word is already in use: f whereas it isn't true

I have defined these alias in user.r alias 'powershell "pw" alias 'explorer "o" alias 'open-program-files "pf" alias 'cmd "dos" alias 'edituser "eu" alias 'run-firefox "fx" alias 'run-firefox "f" When launching rebol it shows ** Script Error: Alias…
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36