Wiki

Ticket #164 (new enhancement)

Opened 15 years ago

Last modified 15 years ago

Option to keep bytecode in memory

Reported by: webnov8 Owned by:
Priority: critical Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

Often when treating Cobra in a script-like manner it's undesirable to create a binary file. A good option would be to have an option like -inmemory where the bytecode is kept in memory and executed from there.

#! /usr/bin/cobra -inmemory
class Foo
  def main
    print 'I can run without creating an executable'

Change History

Changed 15 years ago by webnov8

The run option would probably be more intuitive. That's the option used by the Tiny C Compiler

#!/usr/bin/cobra -run

Changed 15 years ago by eric.sellon

I think you want ticket:24 here.

Changed 15 years ago by Chuck

While it's true that DLR integration (ticket:24) would enable this, it is also possible to generate regular CLR byte code to memory. Although, there's nothing wrong which pointing out the DLR here.

Note: See TracTickets for help on using tickets.