rubyx/lib/parfait
Torsten Ruger 87eee0b66e add object method missing as sys exit
functions get added twice and thus removed once
remove restriction for now
2018-04-02 16:49:30 +03:00
..
behaviour.rb move parfait up one, as per its module structure 2017-01-18 20:09:43 +02:00
binary_code.rb fix binary code mixup 2018-04-01 12:13:14 +03:00
cache_entry.rb adding cache entry to parfait 2018-03-17 19:03:39 +05:30
class.rb moving vool_method to parfait 2017-12-10 20:47:26 +02:00
data_object.rb fix integer and data object get/set word 2018-04-01 11:56:04 +03:00
dictionary.rb move parfait up one, as per its module structure 2017-01-18 20:09:43 +02:00
integer.rb fix integer and data object get/set word 2018-04-01 11:56:04 +03:00
list.rb move parfait up one, as per its module structure 2017-01-18 20:09:43 +02:00
message.rb mostly brackets and formatting 2018-03-23 18:55:23 +02:00
named_list.rb move parfait up one, as per its module structure 2017-01-18 20:09:43 +02:00
object.rb fix interpreter test harness and start testing 2018-03-22 18:54:40 +02:00
page.rb move parfait up one, as per its module structure 2017-01-18 20:09:43 +02:00
README.md polish docs 2018-03-11 16:11:15 +05:30
space.rb linked list of methods instead of list of methods 2018-04-02 16:36:43 +03:00
symbol_adapter.rb move parfait up one, as per its module structure 2017-01-18 20:09:43 +02:00
type.rb add object method missing as sys exit 2018-04-02 16:49:30 +03:00
typed_method.rb linked list of methods instead of list of methods 2018-04-02 16:36:43 +03:00
vool_method.rb passing frame (locals) into method creation 2018-03-18 22:09:27 +05:30
word.rb add data objects 2018-03-25 18:22:02 +03:00

Parfait: a thin layer

Parfait is the run-time of the object system. To be more precise, it is that part of the run-time needed to boot.

The run-time needs to contain quite a lot of functionality for a dynamic system. And a large part of that functionality must actually be used at compile time too.

We reuse the Parfait code at compile-time, to create the data for the compiled code. To do this the compiler (re) defines the object memory (in parfait_adapter).

A work in progress that started from here : http://ruby-x.org/2014/06/10/more-clarity.html went on here http://ruby-x.org/2014/07/05/layers-vs-passes.html

A step back: the code (program) we compile runs at run - time. And so does parfait. So all we have to do is compile it with the program.

And thus parfait can be used at run-time.

It's too simple: just slips off the mind like a fish into water.

Parfait has a brother, the Builtin module. Builtin contains everything that can not be coded in ruby, but we still need (things like List access).

Vm vs language- core

Parfait is not the language core library. Core library functionality differs between languages and so the language core lib must be on top of parfait.

To make this point clear, i have started using different names for the core classes. Hopefully more sensible ones, ie List instead of Array, Dictionary instead of Hash.

Also Parfait is meant to be as thin as humanly possibly, so extra (nice to have) functionality will be in future modules.