Search found 68 matches

by Dmitry Dagaev
Sat Mar 10, 2018 5:56 pm
Forum: Co_
Topic: Standard Container Library
Replies: 2
Views: 18442

Re: Standard Container Library

Example - Vectors.Vector MyRec = RECORD i1: INTEGER; END; MyVec = RECORD (Vectors.Vector) data*: POINTER TO ARRAY OF MyRec; END; vec.Init(10); Log.String("Pointer Initial Size,Capacity="); Log.Int(vec.size); Log.Int(vec.capacity); Log.Ln; mr.i1 := 109; vec.Set(9, mr); mr.i1 := 110; vec.Set...
by Dmitry Dagaev
Sat Mar 10, 2018 5:49 pm
Forum: Co_
Topic: Standard Container Library
Replies: 2
Views: 18442

Standard Container Library

I'm going to introduce Scl - Standard Container Library. Scl package implements vectors, lists, queues, stacks, maps without any generics. It uses BlackBox Kernel metadata. Motivation: 1. The same software for the same tasks like sorting or binary search of elements; 2. No generics infrastructure; 3...
by Dmitry Dagaev
Sun Oct 01, 2017 3:26 pm
Forum: Co_
Topic: Co_Routines Support for Oberon
Replies: 90
Views: 641848

Re: Co_Routines Support for Oberon

New Co_ version in updated in http://www.zinnamturm.eu/downloadsAC.htm#Co_
For BlackBox 1.7.1 use it as is
For BlackBox before 1.7.1 please, copy Mod/Routines6.odc Mod/Routines.obc before compilation.
by Dmitry Dagaev
Fri Apr 28, 2017 5:08 pm
Forum: Co_
Topic: Co_Routines Support for Oberon
Replies: 90
Views: 641848

Re: Co_Routines Support for Oberon

certainly,coroutine must has "state" field; then user's can use "resume","yeild","sleep" Co_ is based on Carrier-Link-Rider model: Scheduler-Dispatcher-Coroutine. Scheduler holds state, the basic states are: ST_READY* = 1; ST_LOCKED* = 2; ST_FINISHED* = 3; ST...
by Dmitry Dagaev
Fri Apr 28, 2017 4:15 pm
Forum: Co_
Topic: Co_Routines Support for Oberon
Replies: 90
Views: 641848

Re: Co_Routines Support for Oberon

luowy wrote:our framework can provide two std scheduler
Co_SchedTasks can be reimplemented in standart BlackBox way for your own needs.
Co.scheduler and Co.stdScheduler are factories like Files.dir, Files.stdDir.
by Dmitry Dagaev
Fri Apr 28, 2017 4:08 pm
Forum: Co_
Topic: Co_Routines Support for Oberon
Replies: 90
Views: 641848

Re: Co_Routines Support for Oberon

if we can implement the coroutine use stackless tech, maybe we can make an optimization for special cases offered by some languages but it needs a language change and heavy optimizations in the compiler I've written before https://community.blackboxframework.org/viewtopic.php?f=54&t=164&sta...
by Dmitry Dagaev
Tue Apr 25, 2017 7:33 pm
Forum: Co_
Topic: Co_Routines Support for Oberon
Replies: 90
Views: 641848

Re: Co_Routines Support for Oberon

Your example, please: Main creates A A creates B A transfers to B B yields to A A transfers to B B yields to A A transfers to B B yields to A A transfers to B B yields to A A transfers to B B yields to A A transfers to B B yields to A A yields to Main I just removed (*ASSERT(current = NIL, MUST_BE_P...
by Dmitry Dagaev
Mon Apr 24, 2017 6:52 pm
Forum: Co_
Topic: Co_Routines Support for Oberon
Replies: 90
Views: 641848

Re: Co_Routines Support for Oberon

Ivan, The dialog is much better in this case. Otherwise (for example) center's Coroutines Sleep(0) implementation can never exceed 6% CPU. You have mentioned the problem, I've provided time comparisons. By the way, I have 2 latest builts: 849 mentioned above and 852 http://blackboxframework.org/unst...
by Dmitry Dagaev
Mon Apr 24, 2017 5:31 pm
Forum: Co_
Topic: Co_Routines Support for Oberon
Replies: 90
Views: 641848

Re: Co_Routines Support for Oberon

Josef,

You are cheating, not I do. The latest build you mentioned is http://blackboxframework.org/unstable/i ... a1.849.zip. There are no nested coroutines example in ObxCoroutines there.
by Dmitry Dagaev
Mon Apr 24, 2017 2:50 pm
Forum: Co_
Topic: Co_Routines Support for Oberon
Replies: 90
Views: 641848

Re: Co_Routines Support for Oberon

And what about the overlap between the 2014 Co_ subsystem and the 2017 Center proposals? Is it large overlap? Is it a good thing? Is it a bad thing? The center's Coroutines are general purpose while the Co_ package, as far as I understand it Several final cuts about two subsystems should be done fr...