1. file access in Euphoria
- Posted by useless_ Sep 14, 2012
- 1505 views
- Last edited Sep 15, 2012
When i do <eucode>writefile = open()</eucode> , that's not accessable for me to re-write unless i call it something else and write new C? My desire would be to add a task_yield() to it while the OS checks to see if the path\file already exists or not. On a harddrive with 1000's of directories and millions of files per directory, the OS takes a lot of time deciding if it will allow access. If Eu isn't doing anything, and the call to open() isn't in a task, the task_yield() consumes no time(?) and so to add this is painless?
I am asking this for WinXP and NTFS. It cannot possibly cache in ram all the directory listing (in this case), and disc thrashing occurs. I don't think adding task_yield to write or read would help, but it may help open() a lot.
useless,maybe
2. Re: file access in Euphoria
- Posted by ChrisB (moderator) Sep 15, 2012
- 1424 views
Hi
Unless Kat can confirm this is her post, I'm going to delete it. I see there is an underscore at the end, but to use such a similar name is really bad form.
Chris
3. Re: file access in Euphoria
- Posted by jimcbrown (admin) Sep 15, 2012
- 1439 views
Hi
Unless Kat can confirm this is her post, I'm going to delete it. I see there is an underscore at the end, but to use such a similar name is really bad form.
Chris
You can take it on my authority that this is really Kat's post. I recall that Kat had issues logging into her older accounts (nor was she the only one, CoJaBo also had issues), hence the new name....
4. Re: file access in Euphoria
- Posted by Lnettnay Sep 15, 2012
- 1429 views
Kat seems to be using useless_ now. Perhaps she lost her password? Is useless_ a new user? Are there any records such as IP address that might confirm that this is the real Kat?
5. Re: file access in Euphoria
- Posted by mattlewis (admin) Sep 15, 2012
- 1417 views
Kat seems to be using useless_ now. Perhaps she lost her password? Is useless_ a new user? Are there any records such as IP address that might confirm that this is the real Kat?
I can't see anything that makes me doubt this is the same Kat.
Matt
6. Re: file access in Euphoria
- Posted by mattlewis (admin) Sep 15, 2012
- 1476 views
When i do <eucode>writefile = open()</eucode> , that's not accessable for me to re-write unless i call it something else and write new C? My desire would be to add a task_yield() to it while the OS checks to see if the path\file already exists or not. On a harddrive with 1000's of directories and millions of files per directory, the OS takes a lot of time deciding if it will allow access. If Eu isn't doing anything, and the call to open() isn't in a task, the task_yield() consumes no time(?) and so to add this is painless?
I am asking this for WinXP and NTFS. It cannot possibly cache in ram all the directory listing (in this case), and disc thrashing occurs. I don't think adding task_yield to write or read would help, but it may help open() a lot.
I don't see a way to get that to work within the current euphoria multi-tasking framework. I would think that you'd need pre-emptive multitasking (i.e., threading) to get that to work. We could call task_yield(), but that would only happen after the call to open() had returned, which defeats the purpose of what you're looking to achieve.
It's possible that using Windows' Asynchronous I/O capabilities would solve your problem. I've never used them, though I know it makes things more complicated than "normal" synchronous I/O. Though I somewhat doubt that the call to CreateFile() (the Windows API equivalent to open()) is itself asynchronous, so this may not work for you, either.
Matt
7. Re: file access in Euphoria
- Posted by BRyan Sep 15, 2012
- 1422 views
Kat: Maybe this might help ?
http://rapideuphoria.com/cgi-bin/asearch.exu?win=on&lnx=on&keywords=thread
Bernie
8. Re: file access in Euphoria
- Posted by useless_ Sep 15, 2012
- 1401 views
Hi
Unless Kat can confirm this is her post, I'm going to delete it. I see there is an underscore at the end, but to use such a similar name is really bad form.
Chris
You can take it on my authority that this is really Kat's post. I recall that Kat had issues logging into her older accounts (nor was she the only one, CoJaBo also had issues), hence the new name....
An example of why i hate fighting with you, jim, you have good lucid moments.
Regarding the nick and nick and nick, there were issues with changing from RDS on their site (using email listserv) to openeuphoria, the change to the http forum instead of email, the constant fiasco in the 1990's of the many phone companies that owned the lines here, their inability to cooperate when i had to use long distance analog LAN to get online, winxpee doing a search and destroy on all my win95b files (and all the backups), and then not being able to recover passwords in this forum, or make a new account (because the email address was already in use). I gave up and just went with whatever i was allowed to do. I even had to let my internet domains expire and grab them back, because my isp (at that point) had gone out of business and i couldn't reply to verification emails, i actually drove up to the registrar and talked to them over the table one day. And finally, the inability to have contributions accepted here (Like it taking *4 years* to get a couple fixes added into http.e as of this week!) contributed to my current nick.
So you know, whatever. The nick "useless" sums up my value here, seems apropo to use it.
useless,maybe
9. OT: Re: file access in Euphoria
- Posted by jimcbrown (admin) Sep 15, 2012
- 1437 views
I recall that Kat had issues logging into her older accounts (nor was she the only one, CoJaBo also had issues), hence the new name....
An example of why i hate fighting with you, jim, you have good lucid moments.
All I meant by this was the addition of the underscore.
10. OT: Re: file access in Euphoria
- Posted by useless_ Sep 15, 2012
- 1394 views
I recall that Kat had issues logging into her older accounts (nor was she the only one, CoJaBo also had issues), hence the new name....
An example of why i hate fighting with you, jim, you have good lucid moments.
All I meant by this was the addition of the underscore.
I don't know when or why the "tail" was added.
useless,maybe