Remix.run Logo
chandlerc1024 6 days ago

Source-to-source translation is definitely planned. We've even done some early experiments.

But we need to get the language and interop into good shape to be able to thoroughly test and evaluate the migration.

justcuriousab 5 days ago | parent | next [-]

I am trying to run Carbon in Godbolt.

Printing as in the example from Carbon's Github repository, does not work. 'Print("Test");' gives a complaint about not finding 'Print'.

josh11b 4 days ago | parent [-]

That is correct. Strings and I/O both have a bunch of work to be done. Printing currently requires workarounds like https://godbolt.org/z/MP4164f7s

josh11b 2 days ago | parent [-]

Array iteration got checked into the prelude so this is now shorter: https://godbolt.org/z/YYheo19ea

cb321 6 days ago | parent | prev | next [-]

I see. So, it's just a slide-ware bullet point right now? It would be helpful to really emphasize a word like "planned" in that bullet. It might have been lifted from some future-sounding/plan-oriented list and now the material makes it seem like it's actually available.

justcuriousab 6 days ago | parent | prev [-]

Is there a compiler, maybe an online one, for Carbon, or some way to compile and run Carbon code? And if not, what are the plans for that?

josh11b 4 days ago | parent [-]

The nightly release of the Carbon compiler can be used via https://carbon.compiler-explorer.com/ . Note that it is definitely a work in progress, it hasn't even reached our v0.1 goals yet, but a good chunk of important functionality is working.