<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jay, perhaps you can provide some context and motivation for your proposals. I am unable to evaluate your proposals in the form of a simple laundry-list.</div><br><div><div>On 8 Jan 2009, at 01:34, Jay wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">I looked into this a bit..and I think it's actually pretty easy.<br>It hardly churns the code even.<br> <br><br>I have other things I want to do first.<br> <br><br>In the meantime, specify the directive?<br>There are actually a large number of subtle options.<br> <br> <br>Can I ask for any of n libraries -- NT, pthreads, user threads?<br> setjmp vs. context? Or is it just a boolean, user vs. kernel?<br> <br> <br>Is the option to "favor" or "require" a certain library?<br> <br> <br>Can I set it on libraries or only programs?<br> What if the requests clash?<br> <br> <br>Is it "Favor" or "Require"?<br>Is it a function call or setting a global variable?<br>I favor function call, but TARGET, WORD_SIZE, BUILD_DIR establish the other precedent,<br>and either can work.<br> <br>Is it flags in the moduleinfo like incgc, gengc, or separate data that<br>there is just one of in RTLinker? Probably separate data, unless it is allowed in libraries.<br> <br> <br>What are the names of the libraries?<br> "posix" and "pthreads" ?<br> "user" and "kernel" ?<br> "true" and "false" (or vice versa) ?<br> <br> <br>Should NT implement user threads, using fibers?<br> <br> <br>Presumably it works with both standalone and shared/dynamic programs.<br>Presumably it is ok to always bloat up m3core.dll with both libraries.<br>Presumably it is ok to have everyone pay a teeny tiny perf.<br> That is, there is a microscopic dispatching layer, that everyone<br> ends up going through, not chosing to link in one library or the other.<br> <br> <br>And as part of this, whenever it happens, can we bump up the minimum<br>bootstrap to a version that includes SchedulerPosix.DoesWaitPidYield()?<br>Or does it become VAR Scheduler.UsingKerneThreads?<br>(no, it should be a function; but naming matter remains).<br> <br> <br>(ie. as I said, the decision currently is baked into m3core.dll, but<br>now it is also baked into sysutils.dll, but these should change together;<br>m3core.dll should manage the knowledge).<br> <br><br> - Jay<br><br><br>> Date: Sat, 3 Jan 2009 01:12:27 +0100<br>> From:<span class="Apple-converted-space"> </span><a href="mailto:wagner@elegosoft.com">wagner@elegosoft.com</a><br>> To:<span class="Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>> Subject: Re: [M3devel] dynamic chose between user/kernel threads?<br>><span class="Apple-converted-space"> </span><br>> An option to cm3 or a quake directive to use in the m3makefiles<br>> would suffice in my opinion (and be a great improvement).<br>><span class="Apple-converted-space"> </span><br>> Olaf<br>><span class="Apple-converted-space"> </span><br>> Quoting Jay <<a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a>>:<br>><span class="Apple-converted-space"> </span><br>> ><br>> > Should the user/kernel thread chose be available:<br>> ><br>> ><br>> > On the command line to a Modula-3 executable (or even an executable<span class="Apple-converted-space"> </span><br>> > where main is in another language, but which static or dynamic<span class="Apple-converted-space"> </span><br>> > Modula-3 libs are used)?<br>> ><br>> ><br>> > Via a quake directive when building programs?<br>> ><br>> ><br>> > You know, imagine you have a bunch of Modula-3 programs and some but<span class="Apple-converted-space"> </span><br>> > not all use a very large number of threads and benefit from<span class="Apple-converted-space"> </span><br>> > userthreads.<br>> ><br>> ><br>> > Currently the chose is locked into m3core when it is built.<br>> ><br>> ><br>> > - Jay<br>><span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> --<span class="Apple-converted-space"> </span><br>> Olaf<br></div></span></blockquote></div><br></body></html>