moving data between ruby and assembler stream

Post any examples or modules that you want to share here
Post Reply
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

moving data between ruby and assembler stream

Post by KG_is_back »

I have found something totally crazy... Reading ruby documents I've found that pack method can actually pack a pointer to a string. It is possible to convert this pointer to float and pass it to the assembler. Assembler can then both read and write to the string to which the pointer points.

The string of data can essentially be shared between ruby and multiple assembler components. It could also enable to open and process mems/wave files in ruby, since "to address" primitive essentially outputs pointer to raw data.

I've literally just found this out... I haven't tested it rigorously, but preliminary tests show it should be relatively stable.
Attachments
pointer pack.fsm
(751 Bytes) Downloaded 1027 times
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: moving data between ruby and assembler stream

Post by nix »

interesting,
what does this mean entirely.
does it mean green to mem to stream, mate, or stream to float?
Could an audio recorder say be built like this?
Post Reply