rommanio-p9 | 5 Jun 2010 07:30
Picon
Favicon

Reflections in Limbo?

Hello.

    Is it in limbo programming language analogue of reflections (such as 
in Java/.NET)?

--
Sincerely yours.
    Roman Jaryzhenko.

- - | 6 Jun 2010 19:02
Picon

Re: Re: Re: Re: Re: windows disks names

hello.
now everything works ok

bind [-b |-a] '# U *' <any path>

connects to <any path> list of windose drives. on them and their folders you can navigate and view files, you
can read/write files  (do not try exec)

devfs.c with this
http://basmp.narod.ru/9/devfs.zip

My fix for faster search and check I mark
//{*} b
.
.
//{*} e

due to the fact that the current situation with windose disks extremely inconvenient and not very
compatible with other ports of "emu". and other solutions to this problem have been proposed, or I do not
find these decisions, I would be grateful to Charles Forsyth if, after proper verification and,
possibly, correction, the ability to easily obtain the list of names of windose disks was incorporated
into the main source tree of inferno. 
In order to facilitate the assembly of further versions of inferno for me and for other users of windose port
of inferno wishing to have access to the list of names of windose disks directly from the inferno.

thanks

15.05.10, 06:08, "- -" <basmp@...>:

> Hello. I corrected devfs. Now with a 
(Continue reading)

- - | 6 Jun 2010 19:07
Picon

Re: Reflections in Limbo?

that there is a "reflections"? small description + a couple of simple examples would be good.

05.06.10, 09:30, "rommanio-p9" <rommanio-p9@...>:

> Hello.
>  
>      Is it in limbo programming language analogue of reflections (such as 
>  in Java/.NET)?
>  
>  
>  --
>  Sincerely yours.
>      Roman Jaryzhenko.
>  
>  
>  

--

-- 
Здесь спама нет http://mail.yandex.ru/nospam/sign

Alex Efros | 6 Jun 2010 21:10
Favicon
Gravatar

Re: Reflections in Limbo?

Hi!

On Sun, Jun 06, 2010 at 09:07:54PM +0400, - - wrote:
> that there is a "reflections"? small description + a couple of simple examples would be good.

Hmm. Isn't searching wiki much faster than replying to maillist?
http://en.wikipedia.org/wiki/Reflection_(computer_science)

--

-- 
			WBR, Alex.

Alex Efros | 6 Jun 2010 21:16
Favicon
Gravatar

Re: Reflections in Limbo?

Hi!

On Sat, Jun 05, 2010 at 12:30:38PM +0700, rommanio-p9 wrote:
>     Is it in limbo programming language analogue of reflections (such as 
> in Java/.NET)?

Which task you're trying to solve and why you think you need reflections
for it?

In Limbo you can dynamically set module path to load and so use different
implementations for same interface (i.e. you can keep "class name" in
variable), but I don't think you can use variable as "method name".

--

-- 
			WBR, Alex.

Skip Tavakkolian | 6 Jun 2010 21:18

Re: Reflections in Limbo?

i don't believe there's an equivalent thing.

in limbo modules are dynamically loaded, and the ability to
declare-assign provides some (most?) of what reflection is good for.

> that there is a "reflections"? small description + a couple of simple examples would be good.
> 
> 05.06.10, 09:30, "rommanio-p9" <rommanio-p9@...>:
> 
>> Hello.
>>  
>>      Is it in limbo programming language analogue of reflections (such as 
>>  in Java/.NET)?
>>  
>>  
>>  --
>>  Sincerely yours.
>>      Roman Jaryzhenko.
>>  
>>  
>>  

- - | 6 Jun 2010 23:27
Picon

Re: Re: Reflections in Limbo?

as far as I understood from the courtesy links, we are talking about a certain version selfmodification.

this possibility is fairly easy to be represented using the capabilities of modular organization and the
direct generation of dis-code.

It is important to understand that dis is quite different from the usual script-interpreted languages. is
much closer to the compiled languages such as Pascal. that is, the change in the course of dis module
directly from him, even if he did not jit-compiled to be quite difficult.

On the other hand, using the dynamic generation&loading small modules that should not be difficult. even
because the  dis-code is rather abbreviations of limbo commands than the usual p-code.

06.06.10, 23:10, "Alex Efros" <powerman@...>:

> Hi!
>  
>  On Sun, Jun 06, 2010 at 09:07:54PM +0400, - - wrote:
>  > that there is a "reflections"? small description + a couple of simple examples would be good.
>  
>  Hmm. Isn't searching wiki much faster than replying to maillist?
>  http://en.wikipedia.org/wiki/Reflection_(computer_science)
>  
>  

--

-- 
Здесь спама нет http://mail.yandex.ru/nospam/sign

- - | 7 Jun 2010 04:00
Picon

little changed (improvement?) toolbar 4 wm/wm

Hello.
slightly altered the appearance of toolbar for wm/wm on, in my opinion, more comfortable and familiar.
http://basmp.narod.ru/9/wm-toolbar.PNG

toolbar I moved up, the band split in two, a tree-menu items, also displayed in the upper band, like
conventional programs. in the bottom line displays the buttons of minimized programs.

edited file /appl/wm/toolbar.b link
http://basmp.narod.ru/9/toolbar.zip

My changes to facilitate the search, also marked
#(*) b
..
#(*) e

and i will also will be grateful if this toolbar will be added to the main source tree. not to make changes
every time you upgrade.

Alberto Estenaga | 7 Jun 2010 05:49
Picon

Re: little changed (improvement?) toolbar 4 wm/wm

Hello: just a request, can anybody tell me how to unsubscribe?.
Your advice/input will be very much appreciated. Thank you. Alberto

On Mon, Jun 7, 2010 at 12:00 PM, - - <basmp-Q+l+L2ir60w@public.gmane.org> wrote:
Hello.
slightly altered the appearance of toolbar for wm/wm on, in my opinion, more comfortable and familiar.
http://basmp.narod.ru/9/wm-toolbar.PNG

toolbar I moved up, the band split in two, a tree-menu items, also displayed in the upper band, like conventional programs. in the bottom line displays the buttons of minimized programs.

edited file /appl/wm/toolbar.b link
http://basmp.narod.ru/9/toolbar.zip

My changes to facilitate the search, also marked
#(*) b
..
#(*) e

and i will also will be grateful if this toolbar will be added to the main source tree. not to make changes every time you upgrade.

- - | 8 Jun 2010 03:32
Picon

Re: Reflections in Limbo?

one of the grave, but extremely simple examples

implement Selfmod;

include "sys.m";
include "draw.m";

include "sh.m";

Selfmod: module {
	init: fn(ctxt: ref Draw->Context, argv: list of string);
};

init(ctxt: ref Draw->Context, argv: list of string){
	sys := load Sys Sys->PATH;
	sh := load Sh Sh->PATH;

	prg := "implement hw;" +
		"include \"sys.m\";" +
		"include \"draw.m\";" +
		"hw: module {" +
		"  init: fn(ctxt: ref Draw->Context, argv: list of string);" +
		"};" +
		"init(ctxt: ref Draw->Context, argv: list of string){" +
		"  sys := load Sys Sys->PATH;" +
		"  sys->print(\"hello world\");" +
		"}";

	sys->print("%s\n",
		sh->system(ctxt, 
			"mount -c {memfs -s} /opt ;" +
			"echo '" + prg + "' > /opt/tst.b ;" +
			"limbo -o/opt/tst.dis /opt/tst.b ;" +
			"/opt/tst.dis ;" +
			"unmount /opt")
	);
}

05.06.10, 09:30, "rommanio-p9" <rommanio-p9@...>:

> Hello.
>  
>      Is it in limbo programming language analogue of reflections (such as 
>  in Java/.NET)?
>  
>  
>  --
>  Sincerely yours.
>      Roman Jaryzhenko.
>  
>  
>  

--

-- 
Здесь спама нет http://mail.yandex.ru/nospam/sign


Gmane