Live data from Hacker News

Red programming language 0.6.2: LibRed and Macros

red-lang.org

11–20 of 86 posts

Re: Red programming language 0.6.2: LibRed and Macros

#11
post #4

I've never seen a language with such a variety of built-in data types (e.g. coordinates, tags, email, url, issues). There's support for IPv4 numbers as a base type (tuples) but I can't tell if there's support for IPv6, which shows the trouble with this approach for the language maintainers.

Where do you see a nice list of these types?

Re: Red programming language 0.6.2: LibRed and Macros

#12
post #4

I've never seen a language with such a variety of built-in data types (e.g. coordinates, tags, email, url, issues). There's support for IPv4 numbers as a base type (tuples) but I can't tell if there's support for IPv6, which shows the trouble with this approach for the language maintainers.

Where do you see a nice list of these types?

The Red website has it somewhere, but they're focusing on the Lang and not the site at the moment, so it might be hard to find. I think the Rebol website (successor language that is mostly compatible although interpreted only) should have a lot of those.

Re: Red programming language 0.6.2: LibRed and Macros

#13
post #4

I've never seen a language with such a variety of built-in data types (e.g. coordinates, tags, email, url, issues). There's support for IPv4 numbers as a base type (tuples) but I can't tell if there's support for IPv6, which shows the trouble with this approach for the language maintainers.

Where do you see a nice list of these types?

No need to go anywhere :)

  >> words: keys-of system/words
  >> types: collect [forall words [if datatype! = type? get/any words/1 [keep words/1]]]
  >> probe types
  [datatype! unset! none! logic! block! paren! string! file! url! char! integer! float! word! set-word! lit-word! get-word! refinement! issue! native! action! op! function! path! lit-path! set-path! get-path! routine! bitset! point! object! typeset! error! vector! hash! pair! percent! tuple! map! binary! time! tag! email! handle! image! event!]

Re: Red programming language 0.6.2: LibRed and Macros

#14
post #4

I've never seen a language with such a variety of built-in data types (e.g. coordinates, tags, email, url, issues). There's support for IPv4 numbers as a base type (tuples) but I can't tell if there's support for IPv6, which shows the trouble with this approach for the language maintainers.

Where do you see a nice list of these types?

here is a list of datatypes from REBOL days, Red is probably mostly there

http://compsci.ca/v3/viewtopic.php?t=17726

Re: Red programming language 0.6.2: LibRed and Macros

#15
post #4

I've never seen a language with such a variety of built-in data types (e.g. coordinates, tags, email, url, issues). There's support for IPv4 numbers as a base type (tuples) but I can't tell if there's support for IPv6, which shows the trouble with this approach for the language maintainers.

What does a type being built-in do for you extra? In ES6 you can define a template string builder which you could name, for instance, ipv4, and then when you want an IPv4 address literal you say

    ipv4`192.168.0.1`
and get your object. Are there other benefits besides a literal syntax? (Not to slag on Red. One advantage I can see is avoiding the call at runtime to the ipv4 function.)

Re: Red programming language 0.6.2: LibRed and Macros

#20
post #5
post #2

I've noticed that Red shows up on HN with some regularity, and it sounds interesting. But I don't really understand where it comes from or who it's meant for. The Red / REBOL community seems more than usually self-contained, although it's possible that it's because almost everybody involved is Czech, and I am not. It seems like most of the English-language resources for Rebol were written by one guy with a thing for…

I remember reading somewhere that there is funding/support from China. I can't find any support for that. I stumbled upon this site in my search though http://red.reb4.me/

Yes, Team Red (as I like to call them), got some funding from a tech incubator, and Red's creator became Entrepreneur-in-Residence there for a time.
Post reply on HN