Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Maciej Łoziński
    @loziniak
    Hi! Can money! extendable by custom currencies?
    Semseddin Moldibi
    @endo64
    Yes
    >> probe system/locale/currencies/list
    [
        AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BTC BGN BHD BIF BMD BND BOB BRL BSD
        BTN BWP BYN BZD CAD CDF CHF CKD CLP CNY COP CRC CUC CUP CVE CZK DJF DKK DOP DZD EGP ERN
        ETB ETH EUR FJD FKP FOK GBP GEL GGP GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS
        IMP INR IQD IRR ISK JEP JMD JOD JPY KES KGS KHR KID KMF KPW KRW KWD KYD KZT LAK LBP LKR
        LRD LSL LYD MAD MDL MGA MKD MMK MNT MOP MRU MUR MVR MWK MXN MYR MZN NAD NGN NIO NOK NPR
        NZD OMR PAB PEN PGK PHP PKR PLN PND PRB PYG QAR RED RON RSD RUB RWF SAR SBD SCR SDG SEK
        SGD SHP SLL SLS SOS SRD SSP STN SYP SZL THB TJS TMT TND TOP TRY TTD TVD TWD TZS UAH UGX
        USD UYU UZS VES VND VUV WST CFA XAF XCD XOF CFP XPF YER ZAR ZMW
    ]
    >> m: XYZ$30
    *** Syntax Error: (line 1) invalid money at XYZ$30
    >> append system/locale/currencies/list 'XYZ
    >> m: XYZ$42
    == XYZ$42.00
    Maciej Łoziński
    @loziniak
    >> append system/locale/currencies/list 'X3MB
    *** Script Error: protected value or series - cannot modify
    *** Where: do
    *** Stack: cause-error
    Semseddin Moldibi
    @endo64
    It has some constraints
    It must be 3 letters
    Maciej Łoziński
    @loziniak
    Any reason for that?
    Semseddin Moldibi
    @endo64
    Here is the code to check that constraints:
    >> ?? system/locale/currencies/on-deep-change*
    system/locale/currencies/on-deep-change*: func [owner word target action new index part][
        if any [
            word <> 'list
            not find [append appended] action
            not word? :new
            all [action = 'append any [find list new 255 < length? list]]
            3 <> length? form new
        ] [cause-error 'script 'protected []]
        if action = 'appended [set-slot-quiet back tail list to word! uppercase form new]
    ]
    3 <> length? form new line.
    It is the official ISO 4217 standard.
    Maciej Łoziński
    @loziniak
    Semseddin Moldibi
    @endo64
    Yes, but it is noted Dash does not conform to any standard.
    Maciej Łoziński
    @loziniak
    :-/
    Semseddin Moldibi
    @endo64
    May be in the future, it may change because of the crypto currencies.
    Also there might be more than 255 currencies but currently it is limited to 255 in Red, which should be enough for most cases.
    Maciej Łoziński
    @loziniak
    thanks, @endo64
    Vladimir Vasilyev
    @9214
    @loziniak see also money! documentation.
    Maciej Łoziński
    @loziniak
    Ah, the mystery is over :-) I've been looking for it in documentation, but there was no link in types list. Thanks :-)
    Btw I made a PR to fix it: red/docs#242
    To the currency discussion – ETH and BTC also do not conform to ISO 4217 standard. Tough decisions, I know :-)
    Maciej Łoziński
    @loziniak
    Also, it seems that numbers are also not allowed in ISO currencies, but there is no check for this in system/locale/currencies/on-deep-change*. So, if we do not comply fully with ISO 4217, why not dropping 3 characters limitation?
    Maciej Łoziński
    @loziniak
    Moreover, ISO 4217 seems to be a complete list of currencies. So it seems that ANY currency not on this list is simply out of standard. Keeping the standard would mean blocking ability to extend the list at all.
    Vladimir Vasilyev
    @9214
    @loziniak RED, BTC and ETH were added on top of ISO 4217 as relatively "mainstream" currencies.
    Maciej Łoziński
    @loziniak
    I'd say DASH is more mainstream than RED ;-)
    Vladimir Vasilyev
    @9214
    @loziniak I don't follow, supporting ISO 4217 doesn't preclude us from allowing user-defined currencies. It's a reference standard, not a mandate. Red complies with it in a sense that it uses the same currency codes, not e.g. DLR for a dollar or ERO for a euro.
    Maciej Łoziński
    @loziniak
    I understand that. All I want to say is when we don't follow the standard strictly, limittation to 3 characters is excessive to me.
    If RED is allowed to be a currency, DASH should also be at least possible to add to the list.
    Vladimir Vasilyev
    @9214

    OK, but without some upper boundary we're setting up a fertile ground for things like MYCOOLTOKEN$1337.

    Anyway, if using currencies with more than 3 letters is something urgent for your project, I can look into that, but the usual procedure is that you open a wish ticket and wait for eons for it to be evaluated and then maybe fulfilled :wink:

    Maciej Łoziński
    @loziniak
    I don't see anything wrong with MYCOOLTOKEN$1337 as long as somebody needs it in his app. Probably we could make a record in wish ticket acceptance speed! :-D
    Vladimir Vasilyev
    @9214

    we don't follow the standard strictly

    As I said, ISO 4217 doesn't mandate that "all the rest of the currency codes not in the list are forbidden to be in use, and if you do use them then you are Bad and you should feel Bad!". By saying that ISO 4217 is supported we say that e.g. PHP is Philippine peso and not some token that PHP Language Foundation decided to create, like Red Foundation did with RED.

    Maciej Łoziński
    @loziniak

    we don't follow the standard strictly

    To be clear - I'm strongly against following the standard strictly.

    Vladimir Vasilyev
    @9214
    @loziniak may I ask you what's the use-case? Do you need currency codes purely for displaying/formatting? Or do you need arithmetic/comparison operations with a bulk of multiple currencies, and DASH is among them?
    Maciej Łoziński
    @loziniak
    The latter, but my own currency (X3MB) not DASH.
    Vladimir Vasilyev
    @9214
    OK, so you propose to remove a limitation on currency code length and to allow usage of non-alphabetic characters (or at least to permit digits)?
    Maciej Łoziński
    @loziniak
    Exactly. Except that digits are already allowed if I'm correct.
    Vladimir Vasilyev
    @9214
    Yes, but only if digit is not the first character, because then it won't be a word!.
    Maciej Łoziński
    @loziniak
    That's OK for me.
    Vladimir Vasilyev
    @9214
    In the meantime, it's worth opening a wish ticket with a link to this discussion. AFAIK this proposal, if accepted, would require modifications in lexer and runtime code (+ writing extra tests), so it's not an overnight change. You can always try to hack your way in a separate branch though.
    Maciej Łoziński
    @loziniak
    I'll try. Thanks.
    Gregg Irwin
    @greggirwin

    The goal is to be useful to the most people, and the standard helps with that as a guideline. BTC, ETH, and RED are special crypto cases. Beyond that, we may want to consider a model like the standard uses (country code + currency letter, or X + precious metal symbol). There are pros and cons to short names too. In finance it's well known, and makes it easy to format things uniformly. That is, the codes are not meant to be self explanatory. That may help normal people, but not experts in the domain.

    The proliferation of cryptocurrencies is insane, but it's a new world too. We have to choose between playing favorites (RED) and blessing some, eliminating limits, or telling people that they just need to come up with a moniker that fits our 3-letter model. Right now we've blessed a few, and if someone wants to use theirs with money, how painful is it to use _X3 or _DA?

    3 letters is certainly limiting, but we should think about other issues, e.g., special characters.

    Vladimir Vasilyev
    @9214

    @loziniak

    >> append system/locale/currencies/list 'x3mb ()
    >> X3MB$1330 + 7
    == X3MB$1337.00
    >> append system/locale/currencies/list 'moon-soon ()
    >> negate -moon-soon$42
    == MOON-SOON$42.00

    Exclusive offer! :wink: Hacked in a few hours and not thoroughly tested though, so play with that and see how bad it is. I'll keep the branch around as a PoC for your wish, in case it will be granted.

    Petr Krenzelok
    @pekr
    First language supporting crypto currencies as a datatype might be a nice marketing claim 😀
    Maciej Łoziński
    @loziniak
    @9214 thanks a lot!
    Cong Ye
    @siriusye
    if you guys still have eth, can put the token on Uniswap. it is a quite interesting idea, and fully open source dex..https://github.com/Uniswap
    Cong Ye
    @siriusye
    defi is so hot, a quite interesting idea for pongzi, team has good development ability, can do a good defi project
    Gringo
    @15926222352
    @siriusye Good advice if your red team is ethical
    @greggirwin I know that red language teams are all technical experts, but marketing and token are equally important, and leaders need the masses
    Cong Ye
    @siriusye

    @siriusye Good advice if your red team is ethical

    The team is not immoral at least in comparing to many other pure scam projects back to 2018. RED ICO is just yet another money grab project. However, the cold blooded attitude from the team is the worst part. Most of the team members were simply showing no care about the token community/ico participants. They only care about their RED language. And ICO participants paid for their dream.

    Cong Ye
    @siriusye
    Due to the crazy market back to 2018, people invested money they cannot afford to lose to many projects. That was another problem.
    The ICO is a double sword, team got the money for a long time development, however, there are thousands of ICO participants having bad memory about the project. Even though one day the project successes , there will be people talking about those stories.