Hacker News new | ask | show | jobs
by dockimbel 2997 days ago
Thanks for those answers. Let me add something for helping the visually impaired who have troubles reading the Red blog. Here is a simple Red script to retrieve information from the Red blog, then calculate and display (with a color fade-in effect) the upper bound result of the RED tokens sales:

    Red []

    page: read https://www.red-lang.org/2018/01/red-here-we-go.html
    
    parse page [
        thru "Private investors" thru "(" copy angels to ")"
        thru "open rounds"       thru "(" copy public to ")"
        thru "Private Investors" thru ">" copy angels-price to "RED"
        thru "Open round"        thru ">" copy public-price to "RED"
    ]
    angels: to-integer trim/with angels ","
    public: to-integer trim/with public ","
    result: (angels / load angels-price) + (public / load public-price)

    view [
        title "Token Sales Result"
        below
        text 300 "And the (upper) bound sales result (in eth) is:"
        h1 300 center bold beige beige rate 5 data result
        on-time [
            ff: face/font
            repeat c 3 [ff/color/:c: ff/color/:c - pick 4.2.3 c]
            if ff/color = black [face/rate: none]
        ]
    ]
This short example relies on two eDSL, one for parsing data, one for building a GUI. Such built-in features (not requiring any library) shouldn't be that bad for an "incomplete" language, right?
1 comments

I assume "visually impaired" was a little jab at me, well, I must be really blind, because having read the blog posts it's still unclear to me how many tokens were sold and how much money was raised.
https://www.red-lang.org/2018/01/red-here-we-go.html shows the complete breakdown of token distribution, and is where the data is pulled from in the above script demo.

In a very real sense, we can't think of "money raised" in terms of a country's legal tender (what cryptos call 'fiat currency'). Remember, cryptocurrencies have no jurisdiction. You can see how much ETH was raised, but what that really tells you, we hope, is how much investment interest there was, based on the technology backing the project.

Even title of this [1] blog post didn't ring a bell? It doesn't make much sense to cash out raised ETH now, because of the bear market.

[1] : https://www.red-lang.org/2018/01/red-token-sale-success.html

The post was about Android support. Why do you care how much the ICO did or didn't make?

Let's say it made money/ETH--and even if a program in the language can print out a message saying it did. What does this have to do with your assessment of the technology, or its completeness or incompleteness?