|
|
Up |
|
|
  |
Author: Alex McDonaldAlex McDonald Date: Jan 12, 2007 10:31
werty has managed to inspire me (or drive me nuts; you be the judge).
Although I have him in my killfile, replies to his posts from the
certifiably sane get through, and one of them has provoked the
following.
Directories, folders and files are a convenient hierarchical structure
on disk or other long term medium; just about every OS has some form of
HFS. So does Forth in its use of search-order words. Can the semantics
be extended to include an HFS, without requiring a whole new wordset,
and be done transparently?
Win32Forth may be unusual in that its wordlists can be defined with a
specific search and create mechanism; the default is to use the
in-memory wordlist. Given that, then as an example, assume a directory
structure of
/
/home
/home/user
/home/user/alex
This could be made to appear in a "vocabulary" (let's call it
FILESYSTEM) defined in FORTH.
|
| Show full article (2.00Kb) |
|
| | 6 Comments |
|
  |
Author: m_l_g3m_l_g3 Date: Jan 12, 2007 13:28
"""Alex McDonald писал(а):
"""
> Directories, folders and files are a convenient hierarchical structure
> on disk or other long term medium; just about every OS has some form of
> HFS. So does Forth in its use of search-order words. Can the semantics
> be extended to include an HFS, without requiring a whole new wordset,
> and be done transparently?
Any mapping string --> something may be thought of as a wordlist.
It would be good to have a portable interface for such "word lists" of
user-definable nature.
There have been at least the following experiments:
1) local names searched in a pseudo-wordlist
2) file paths are considered to be INCLUDE directives (SP-Forth)
3) there was something else, again, text strings converted into a
meaning, but I do not remember what it was for....
[...]
> This could be made to appear in a "vocabulary" (let's call it
> FILESYSTEM) defined in FORTH.
Now you have to find a problem that it would solve.
|
| Show full article (1.35Kb) |
|
| | 2 Comments |
|
  |
Author: Alex McDonaldAlex McDonald Date: Jan 12, 2007 15:09
>
> Now you have to find a problem that it would solve.
There you have hit the nail on the head. Excuse my wertyism.
--
Regards
Alex McDonald
|
| |
| 1 Comment |
|
  |
Author: Bruce McFarlingBruce McFarling Date: Jan 12, 2007 20:44
Alex McDonald wrote:
> Directories, folders and files are a convenient hierarchical structure
> on disk or other long term medium; just about every OS has some form of
> HFS. So does Forth in its use of search-order words. Can the semantics
> be extended to include an HFS, without requiring a whole new wordset,
> and be done transparently?
But, the Forth-83 ONLY/FORTH/ALSO vocabulary system shares something
more in spirit with a hypertext system than with a classical
hierarchical file system.
Indeed, I'd rather have an eight deep file directory search stack with
each item on the stack consisting of a named directory search path,
invoked by name, than a reinvention of the same old POSIX wheel.
And if you had that, you'd have a defining word for the named search
path, and then the name would do what you told it to do using the name
you told it to answer to, like any other Forth word.
|
| |
| no comments |
|
  |
Author: wertywerty Date: Jan 17, 2007 09:40
> Any mapping string --> something may be thought of as a wordlist.
> It would be good to have a portable interface for such "word lists" of
> user-definable nature.
>
> There have been at least the following experiments:
> 1) local names searched in a pseudo-wordlist
> 2) file paths are considered to be INCLUDE directives (SP-Forth)
> 3) there was something else, again, text strings converted into a
> meaning, but I do not remember what it was for....
> Now you have to find a problem that it would solve.
Experiments ?!! We have started a context of
using wordlists to eliminate files/folders work on the
programmer and you take us aside with ...
".... Now you have to find a problem that it would solve. "
It is trivial to nix Files/Folders and at same time eliminate
99%% of the other Distractions of old Forth , and this nerd
wants to
"...find a problem it will solve "
|
| Show full article (1.28Kb) |
| no comments |
|
  |
Author: m_l_g3m_l_g3 Date: Jan 17, 2007 02:45
"""Alex McDonald писал(а):
"""
>>
>> Now you have to find a problem that it would solve.
>
> There you have hit the nail on the head. Excuse my wertyism.
>
IMO it is no shame to have an idea that you do not yet know how to use.
First you discover an effect, then think out how it may be used.
|
| |
| no comments |
|
  |
|
|
  |
Author: wertywerty Date: Jan 18, 2007 09:59
Alex McDonald wrote:
> Directories, folders and files are a convenient hierarchical structure
> on disk or other long term medium; just about every OS has some form of
> HFS. So does Forth in its use of search-order words. Can the semantics
> be extended to include an HFS, without requiring a whole new wordset,
> and be done transparently?
_________________________________________________
Not so convenient , if user must spend most of his time
keying in directives to link his files and ....
WAIT !! There is NO fs that links files !!
It dont exist , so whats your point !!!
####################################
The User must be able to link files !
#######################################
|
| |
| no comments |
|
|