Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Universal Compiler (neos) - Turing Completeness Date: Wed, 12 Feb 2025 02:47:31 -0800 Organization: None to speak of Lines: 33 Message-ID: <8734gjo2ws.fsf@nosuchdomain.example.com> References: <877c5wnixf.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 12 Feb 2025 11:47:31 +0100 (CET) Injection-Info: dont-email.me; posting-host="bfe7a9ee105f2f75a62ac64b60e39c4f"; logging-data="2419913"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nbGzOfYMMe7s0LK0rMB/F" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:VG+8PEbXhF9O2JZEkpZKLCvTdes= sha1:j3O44QiNdYlTlnwdx0wCczQLWUc= Xref: csiph.com comp.lang.c++:121591 David Brown writes: > On 12/02/2025 00:46, Keith Thompson wrote: >> Mr Flibble writes: >>> I hope to achieve neos Turing Completeness in March during a two week >>> holiday. >>> >>> Also, did you know that with neos you can mix code from different >>> programming languages in the same source code file! >> That's a remarkable assertion. >> I presume you're asserting that you can do this *and* the code will >> execute correctly. >> Are you saying that that's possible in your current implementation, >> or >> that it's something you intend to implement in the future? >> Does switching from one language to another require some kind of >> explicit marker, or does neos figure it out? With what granularity? >> If the latter, how does it know whether >> size_t s = sizeof 'a'; >> is C (typically setting s to 4, sizeof (int)) or C++ (setting s to >> 1)? > > I would assume that there must be some way to switch languages within > the file, and tell the compiler what you are doing. Otherwise a > switch between C and C++ is a pretty minor affair compared to a switch > between, say, Cobol and Haskell. Maybe the OP could give us some more > detail. I would assume nothing (including that what "Mr Flibble" is claiming is possible), which is why I asked. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */