Has anyone ever tried "long filenames" from H.P.Recktenwald?

Anything QL Software or Programming Related.
User avatar
ql_freak
Gold Card
Posts: 354
Joined: Sun Jan 18, 2015 1:29 am

Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by ql_freak »

 
It's on Dilwyns page.

Search for "qvfs06.zip".

I have never tried it albeit I know the author. But if it works, it would be the MOST IMPORTANT feature, which should be implemented into QDOS (SMS and how they are all named).

It's most probably not possible to port a C++ Compiler, because even for standard headers and libraries the pathname length from QDOS (36 chars [device name is not counted :‑)] is too low, to compile a C++ Compiler (without a lot of change – because of too short pathnames – in the source code).

It's a real problem (36 character length), because this limit is in the access layer of the directory device driver of QDOS. So it's not easy to overcome it.

BUT I THINK: We must find a solution! (Even Microsoft found a solution for FAT file system to overcome the 8+3 filenames).


http://peter-sulzer.bplaced.net
GERMAN! QL-Download page also available in English: GETLINE$() function, UNIX-like "ls" command, improved DIY-Toolkit function EDLINE$ - All with source. AND a good Python 3 Tutorial (German) for Win/UNIX :-)
Martin_Head
Aurora
Posts: 853
Joined: Tue Dec 17, 2013 1:17 pm

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by Martin_Head »

I wrote this https://www.qlforum.co.uk/viewtopic.php ... ept#p27694 some time ago.
It was just a proof of concept, and I never went any further with it.


User avatar
ql_freak
Gold Card
Posts: 354
Joined: Sun Jan 18, 2015 1:29 am

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by ql_freak »

Thank you, looks interesting. But it's a work of your own right? Not "long filenames" from Recktenwald, which claims to support pathname length up to 255 characters.


http://peter-sulzer.bplaced.net
GERMAN! QL-Download page also available in English: GETLINE$() function, UNIX-like "ls" command, improved DIY-Toolkit function EDLINE$ - All with source. AND a good Python 3 Tutorial (German) for Win/UNIX :-)
User avatar
Peter
Font of All Knowledge
Posts: 2009
Joined: Sat Jan 22, 2011 8:47 am

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by Peter »

ql_freak wrote: Sat Dec 09, 2023 2:11 am It's most probably not possible to port a C++ Compiler, because even for standard headers and libraries the pathname length from QDOS (36 chars [device name is not counted :‑)] is too low, to compile a C++ Compiler
A compiler can be cross-compiled on a system without that limitation. I think there are other, bigger problems when it comes to porting modern toolchains.


User avatar
ql_freak
Gold Card
Posts: 354
Joined: Sun Jan 18, 2015 1:29 am

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by ql_freak »

Of course you're right. But there are a lot of other programs, which will not run on a QL just because of the (now!) too short pathname length. The problem is of course, that this limit is not in the physical layer of directory device drivers, but in the access layer. In fact I think this is a real design flaw of QDOS, cause you cannot (at least not easy) correct it with a new directory device driver, but only by extending QDOS with a new (second) access layer open routine. And even then, this would only work for (new/ported) programs.

An example would be Python, which would be a very nice add-on to QDOS. And as Python is an interpreter like SB, you can compile it on another OS for QDOS, but it will be (most probably) not fully usable on QDOS, cause there may be import statements necessary which will exceed the QDOS pathname length.


http://peter-sulzer.bplaced.net
GERMAN! QL-Download page also available in English: GETLINE$() function, UNIX-like "ls" command, improved DIY-Toolkit function EDLINE$ - All with source. AND a good Python 3 Tutorial (German) for Win/UNIX :-)
Derek_Stewart
Font of All Knowledge
Posts: 3975
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by Derek_Stewart »

Hi,

The problem with QDOS is restricted to 32 character file names.

With the introduction of Level 2 file system, which introduced the concept of a Hard Directory, which has a file type of 255.

I am wondering if the Level 2 directories could be updated to hold 32 character file names for each directory and subdirectory.

Now, I have asked this before and always been this was not possible.


Regards,

Derek
User avatar
NormanDunbar
Forum Moderator
Posts: 2278
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by NormanDunbar »

Hi Derek,

I remember many years ago -- which is unusual for me, remembering stuff -- having a rant about this very matter. Why does the QL's file system need to include the whole directory tree in each and every filename in the directory?

The eRant is at https://normandunbar.github.io/RantsAnd ... le-system/ and dates from May 2009!


Mind you, if we did do it properly (!) then I suppose we'd be getting into Linux territory and have to use inodes then. ;)

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
tofro
Font of All Knowledge
Posts: 2702
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by tofro »

NormanDunbar wrote: Sun Feb 11, 2024 4:02 pm I remember many years ago -- which is unusual for me, remembering stuff -- having a rant about this very matter. Why does the QL's file system need to include the whole directory tree in each and every filename in the directory?
The answer to that is simple: Because directories on the QL are just an illusion (no joke intended).


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
NormanDunbar
Forum Moderator
Posts: 2278
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by NormanDunbar »

I know! ;)


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Derek_Stewart
Font of All Knowledge
Posts: 3975
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: Has anyone ever tried "long filenames" from H.P.Recktenwald?

Post by Derek_Stewart »

NormanDunbar wrote: Sun Feb 11, 2024 4:02 pm The eRant is at https://normandunbar.github.io/RantsAnd ... le-system/ and dates from May 2009!
Not much of rant...
NormanDunbar wrote: Sun Feb 11, 2024 4:02 pm Mind you, if we did do it properly (!) then I suppose we'd be getting into Linux territory and have to use inodes then. ;)
I do not see the problem with this.

But the Amiga has 31 character filename per directory.

Maybe using using a modified file name substitution for the directory tree to a device, like SUB implements. But this would need a change to the operating system, DV4 ?
tofro wrote: Sun Feb 11, 2024 5:02 pm
NormanDunbar wrote: Sun Feb 11, 2024 4:02 pm I remember many years ago -- which is unusual for me, remembering stuff -- having a rant about this very matter. Why does the QL's file system need to include the whole directory tree in each and every filename in the directory?
The answer to that is simple: Because directories on the QL are just an illusion (no joke intended).
All of life is an illusion, due to the lack beer...


Regards,

Derek
Post Reply