Deutsch English Français Italiano |
<v4cc5f$1mqkb$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Malcolm McLean <malcolm.arthur.mclean@gmail.com> Newsgroups: comp.lang.c Subject: Re: Running an editor from ANSI C Date: Wed, 12 Jun 2024 15:42:55 +0100 Organization: A noiseless patient Spider Lines: 59 Message-ID: <v4cc5f$1mqkb$1@dont-email.me> References: <v3pge7$uf2i$1@dont-email.me> <v3r2pl$16mtl$1@dont-email.me> <v3r7v8$1b57j$1@dont-email.me> <v3rek5$1c4i5$1@dont-email.me> <v3rrtm$1e6g8$1@dont-email.me> <v3ru84$1eafb$1@dont-email.me> <87o78dzw1a.fsf@nosuchdomain.example.com> <v3tkmb$1o860$3@dont-email.me> <v3uk0l$20s0s$2@dont-email.me> <v3uoeo$21g4g$5@dont-email.me> <v3v6jt$23q0b$2@dont-email.me> <v3vk3m$265uv$1@dont-email.me> <v44itr$3jn4i$1@dont-email.me> <v46o75$dnnu$1@dont-email.me> <v46qj9$e4lf$1@dont-email.me> <v46uha$fj5k$1@dont-email.me> <v47c92$hv04$1@dont-email.me> <v4bl16$1ieto$1@dont-email.me> <v4bo2g$1iqqi$1@dont-email.me> <v4bre0$1jfqf$2@dont-email.me> <v4c567$1l5lm$1@dont-email.me> <v4c5q7$1lki1$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 12 Jun 2024 16:42:56 +0200 (CEST) Injection-Info: dont-email.me; posting-host="e49f606f2e95c6323d93ef7cfc454fbd"; logging-data="1796747"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BnT8IDNC/r6OhK6PRoHYNAjewrIky7F8=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:n/7hRjshtxzdr30xRfIf0p2dFSg= In-Reply-To: <v4c5q7$1lki1$1@dont-email.me> Content-Language: en-GB Bytes: 4012 On 12/06/2024 13:54, David Brown wrote: > On 12/06/2024 14:43, Richard Harnden wrote: >> On 12/06/2024 10:57, Malcolm McLean wrote: >>> >>> But yes, my view is the Baby X FileSystem is going to enhance Baby X >>> and lift it to a new level. The ability to mount an internal >>> filesystem in a small program is very useful indeed. >>> >> >> Why? >> >> You have an xml file, which is just a text file, and you want to slurp >> that into your babyx - fine, so now you have a large char*. >> >> Now you want to 'mount' that. >> So you can opendir, readdir, ..., fopen something. >> >> All just so that you can fgets? >> Just so you can get a string out of a 'file'. >> A string you basically had a pointer to already. >> >> I'm sorry, but I just cannot see the point. Seems like you're making >> it way more complicated than it needs to be. I'm not sure why you >> think it needs to exist at all. Or why you think it's a good idea. >> >> > > Exactly my thoughts. > > I can appreciate wanting to do this for the fun of it, or the challenge > of it. People have picked weirder things for their hobby projects. > > But I am at a loss to understand why Malcolm thinks this could possibly > be /useful/ for anyone. We've had lots of "you want to be able to do > this or that", without the slightest hint as to who "you" might be, or > why "you" would want to do anything of the sort. > > And /if/ access to the contents of the xml file as individual files is > important and useful, then libfuse would be a vastly more useful and > powerful way to handle it. > That is part of the motivation. Because the shell is an excuse to embed the MiniBasic interpeter, and then enhance it. But no one will seriously want to edit FileSystem XML files using the embedded BabyBasic (forked from MiniBasic) scripts. It's just for fun. But it might get the target audience interested in interpreters, and they might even buy the book. Pepole will want the shell to go into FileSystem XML files, list the contents, and maybe extract or insert individual files. And so I've now put in a powerful ls command. libfuse yes. But as a separate project. It doesn't fit with Baby X. -- Check out my hobby project. http://malcolmmclean.github.io/babyxrc