Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: High level language for writing Forth Date: Wed, 19 Apr 2017 23:25:33 -0700 Organization: A noiseless patient Spider Lines: 24 Message-ID: <871ssnegte.fsf@nightsong.com> References: <87efwneria.fsf@nightsong.com> <8760hzelwb.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="efdb76e8249dce14a596c997ec8f2e8c"; logging-data="21022"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aJS+FMPRxxiO2PpIGAaJ7" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:YeJN/rYPaHGkQLTCG+2uN46Etwc= sha1:8dbl8lgePFqd518pV6vvgqAPFFk= Xref: csiph.com comp.lang.forth:57635 Cecil Bayona writes: > Do you have a MySQL implementation for 8th or for something else that > could be adapted? I don't, but as Ron says, you could use the FFI or connect to the mysql command line tool. > The VM implements anywhere for 60 to 100 primitives, the code to run > words from the dictionary, do I/O, and handle the stacks, the rest is > implemented in Forth Word tokens that the VM can execute. That seems like a lot of instructions, but ok. I'd expect the VM to just be a bytecode counterpart to a classic ITC address interpreter. It shouldn't know anything about the dictionary layout. It does have to do some i/o. Do you know about the C port of eForth? http://chiselapp.com/user/tehologist/repository/compc/home > determine if the target system is a complete Forth on board or just a > tethered system that gets its running code from the PC host. If you're thinking of MCU targets you better not write the VM in Go. The Go runtime is intended for bigger machines, needs a megabyte or so of ram, has a garbage collector, etc.