# Leveraging other programming languages to make a compiled RenC

**URL:** <https://revolt.metaeducation.com/forum/t/leveraging-other-programming-languages-to-make-a-compiled-renc/1420>\
**Category:** Development\
**Created:** [December 2, 2020, 1:13pm UTC](https://revolt.metaeducation.com/forum/t/leveraging-other-programming-languages-to-make-a-compiled-renc/1420 "2020-12-02T13:13:16Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![hostilefork](https://revolt.metaeducation.com/forum/user_avatar/revolt.metaeducation.com/hostilefork/32/421_2.png) [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Post date:** [December 11, 2020, 6:10pm UTC](https://revolt.metaeducation.com/forum/t/leveraging-other-programming-languages-to-make-a-compiled-renc/1420/8 "2020-12-11T18:10:33Z")

</div>

> [@LkpPo](#):
>
> I did not know the flaws were so fundamental.

For reasons of either self-delusion or charlatanism, you won't hear it discussed many places besides here.

Here's another one from history: historical Rebol achieves binding by hiding a pointer inside a WORD!, that identifies the specific context OBJECT! that instance points to. So if you write:

```
 >> base: make object! [
     x: 10
     x-plus-20: does [x + 20]
 ]

 >> derived: make base [x: 30]

 >> base/x-plus-20
 == 30

 >> derived/x-plus-20
 == 50

```

You now have two objects. But the X in `does [x + 20]` points to BASE's X. How can DERIVED override this to find its X?

Historical Rebol's answer is that the MAKE OBJECT! for DERIVED does a deep copy of _all_ the function bodies in the base object. If it has 20 methods, each with 20 BLOCK!s in it, then each object instance has to copy all these blocks. There are a number of reasons this is unsettling...in terms of semantics as well as efficiency. It's another issue Red doesn't talk about.

Revolt addresses it with **["derived binding"](https://github.com/metaeducation/ren-c/pull/727)**; copies are not needed. Which means _[this test runs reasonably quickly](https://github.com/metaeducation/ren-c/blob/9dc8ca2786ff57f9e4fc579e7a14623b014e4ce2/tests/datatypes/object.test.reb#L115)_ ...

> [@LkpPo](#):
>
> Do you have to have a clear understanding of this list of blockages? Maybe on trello?

Most of my "maximum concern" revolves around these topics:

- [Modifying While Iterating](https://revolt.metaeducation.com/forum/t/modifying-while-iterating-crash-nonsense-predictable-or-illegal/1317)
- ["Virtual Binding"](https://revolt.metaeducation.com/forum/t/key-question-on-virtual-binding-and-mutability/765) and impact on [Declaring Locals Inline](https://revolt.metaeducation.com/forum/t/in-the-interest-of-shipping-something-rebol2-style-local-s-only/1309)
- [Object Representation](https://revolt.metaeducation.com/forum/t/generic-quoting-makes-headway-on-make-object/997) (just in general, including [Block Parity](https://revolt.metaeducation.com/forum/t/block-and-object-parity-in-pathing-picking/1086))
- [Modules and the Genesis of Binding](https://revolt.metaeducation.com/forum/t/the-real-story-about-user-and-lib-contexts/764)
- [Typeset Representation](https://revolt.metaeducation.com/forum/t/the-typeset-representation-problem/1300)

These are the areas where the answers impact basically every program written, and where I kind of "just don't know, yet". I haven't come up with clever ways to mitigate risk with limited decisions yet.

> [@LkpPo](#):
>
> I see all your great posts go by and I can't reply. It's really frustrating.

Glad you can skim them. I think that maybe if you just kind of do as others do and keep tabs now and again, you'll be able to see when development hits a moment that you might be able to use it practically.

Maybe the most useful thing to carry away is just to save yourself some time on Red. I don't really mind people spinning their wheels over there long enough to get enough experience to see the flaws...at which point they might come out of it ready for the answers Revolt provides (some working today, hopefully more tomorrow).

---

_[View the full topic](https://revolt.metaeducation.com/forum/t/leveraging-other-programming-languages-to-make-a-compiled-renc/1420)._
