Re: [Pharo-project] why FileDirectory sucks

2009-07-02 Thread Hernán Morales Durand
2009/7/1 Igor Stasenko siguc...@gmail.com: 2009/7/1 Michael Rueger m.rue...@acm.org: Stephen Pair wrote: accomplish this (in VisualWorks).  It would be really cool if things like filenames and directories didn't make assumptions about the file system with which they are used (so that you

Re: [Pharo-project] why FileDirectory sucks

2009-07-02 Thread Stéphane Ducasse
Ok I also like some parts of the rio api. Arg too much to do. Stef On Jul 1, 2009, at 11:32 PM, Michael Rueger wrote: Igor Stasenko wrote: how then i could write a 'FileDirectory default' in terms of URIs? 'file://.' asURI ? No, you would still write FileDirectory default :-) But then

Re: [Pharo-project] why FileDirectory sucks

2009-07-02 Thread Stéphane Ducasse
Ok I also like some parts of the rio api. Arg too much to do. Stef On Jul 1, 2009, at 11:32 PM, Michael Rueger wrote: Igor Stasenko wrote: how then i could write a 'FileDirectory default' in terms of URIs? 'file://.' asURI ? No, you would still write FileDirectory default :-) But then

Re: [Pharo-project] why FileDirectory sucks

2009-07-02 Thread David Goehrig
Pharoers, In my image I have a few methods that make file access a little more legible: Http // 'www.slashdot.org/' File // '/Users/dave/hello.c' It reads just like a protocol string :) Both of these class methods return a ByteString, what I typically need 99% of the time. When I need a

[Pharo-project] why FileDirectory sucks

2009-07-01 Thread Stéphane Ducasse
Hi guys we should really consider to have an alternate (may be building on / rewriting part of RIO) but FileDirectory sucks. I have a file FileDirectory default and now I want to get two levels up. Well after 20 min looking around I could not find a way. I'm probably too stupid for

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Lukas Renggli
Well after 20 min looking around I could not find a way. I'm probably too stupid for squeak arcane logic. FileDirectory default containingDirectory containingDirectory Yes, it took me a long time to find out the first time. Lukas -- Lukas Renggli http://www.lukas-renggli.ch

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Lukas Renggli
Smalltalk deserves a better library for file. What a crap this stuff. The problem is that a good platform independent library is not a trivial thing. Also from the architectural point of view this is a rather difficult problem. The biggest problem is though that the primitives where everything

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Schwab,Wilhelm K
, July 01, 2009 8:43 AM To: Pharo Development Subject: [Pharo-project] why FileDirectory sucks Hi guys we should really consider to have an alternate (may be building on / rewriting part of RIO) but FileDirectory sucks. I have a file FileDirectory default and now I want to get two levels

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Schwab,Wilhelm K
@lists.gforge.inria.fr Subject: Re: [Pharo-project] why FileDirectory sucks Well after 20 min looking around I could not find a way. I'm probably too stupid for squeak arcane logic. FileDirectory default containingDirectory containingDirectory Yes, it took me a long time to find out the first time. Lukas

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Schwab,Wilhelm K
...@lists.gforge.inria.fr] On Behalf Of Lukas Renggli Sent: Wednesday, July 01, 2009 12:11 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] why FileDirectory sucks Smalltalk deserves a better library for file. What a crap this stuff. The problem is that a good platform

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Stephen Pair
On Wed, Jul 1, 2009 at 9:42 AM, Stéphane Ducasse stephane.duca...@inria.frwrote: Hi guys we should really consider to have an alternate (may be building on / rewriting part of RIO) but FileDirectory sucks. I have a file FileDirectory default and now I want to get two levels up.

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Cameron Sanders
On Jul 1, 2009, at 1:28 PM, Stephen Pair wrote: On Wed, Jul 1, 2009 at 9:42 AM, Stéphane Ducasse stephane.duca...@inria.fr wrote: Hi guys we should really consider to have an alternate (may be building on / rewriting part of RIO) but FileDirectory sucks. I have a file FileDirectory

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread John M McIntosh
Well actually in Sophie we used URI http://en.wikipedia.org/wiki/URI *hint* all that code is MIT By using relative URI then asking for the read or readwrite stream later we could build URI constructs that referred to disk, to a server in the cloud, to memory. Oh and let's not forget the

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Stephen Pair
On Wed, Jul 1, 2009 at 2:18 PM, John M McIntosh john...@smalltalkconsulting.com wrote: So I'd suggest one thinks about reusing the URI logic 2009/7/1 Cameron Sanders camsander...@roadrunner.com And back to the main topic here... aren't URL's fairly well generalized? Are they not the right

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Michael Rueger
Schwab,Wilhelm K wrote: One thing that seems to be missing is a good abstraction of relative paths, and some type of #, message to allow relative ones to be tacked onto full ones (FileDirectory etc.)?? In Sophie and to an even larger extent in an experimental fork I based everything on URIs

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Michael Rueger
Stephen Pair wrote: accomplish this (in VisualWorks). It would be really cool if things like filenames and directories didn't make assumptions about the file system with which they are used (so that you could have filenames for in memory file systems, or filenames for other file systems

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Michael Rueger
Igor Stasenko wrote: how then i could write a 'FileDirectory default' in terms of URIs? 'file://.' asURI ? No, you would still write FileDirectory default :-) But then you would do something like (FileDirectory default uri resolveRelativePath: 'myDir/images') directory I know, doesn't look

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Stéphane Ducasse
On Jul 1, 2009, at 7:10 PM, Lukas Renggli wrote: Smalltalk deserves a better library for file. What a crap this stuff. The problem is that a good platform independent library is not a trivial thing. Also from the architectural point of view this is a rather difficult problem. The biggest

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Stéphane Ducasse
: Wednesday, July 01, 2009 12:08 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] why FileDirectory sucks Well after 20 min looking around I could not find a way. I'm probably too stupid for squeak arcane logic. FileDirectory default containingDirectory

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Stéphane Ducasse
On Jul 1, 2009, at 7:28 PM, Stephen Pair wrote: On Wed, Jul 1, 2009 at 9:42 AM, Stéphane Ducasse stephane.duca...@inria.fr wrote: Hi guys we should really consider to have an alternate (may be building on / rewriting part of RIO) but FileDirectory sucks. I have a file

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Stéphane Ducasse
Well actually in Sophie we used URI http://en.wikipedia.org/wiki/URI *hint* all that code is MIT I know I just did not find time Good I do not know why a moment I thought that the sophie license was different. By using relative URI then asking for the read or readwrite stream later

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Stephen Pair
On Wed, Jul 1, 2009 at 5:32 PM, Michael Rueger m.rue...@acm.org wrote: Igor Stasenko wrote: how then i could write a 'FileDirectory default' in terms of URIs? 'file://.' asURI ? No, you would still write FileDirectory default :-) But then you would do something like (FileDirectory

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread Michael Rueger
Stéphane Ducasse wrote: Well actually in Sophie we used URI http://en.wikipedia.org/wiki/URI *hint* all that code is MIT I know I just did not find time Good I do not know why a moment I thought that the sophie license was different. It actually is. New BSD, which is basically MIT

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread John M McIntosh
On 1-Jul-09, at 4:02 PM, Michael Rueger wrote: It actually is. New BSD, which is basically MIT with the advertising clause. So if we add code from Sophie (other than fixes) we would need to list the new BSD license as well. Michael I must turn the A/C up another notch before talking

Re: [Pharo-project] why FileDirectory sucks

2009-07-01 Thread John M McIntosh
I think there is a whole day of reading on the squeak list now about backwards forward compatibility if you change the meaning of FileSystem default defaultDirectory and have it return a URI, that would break things, or assumptions etc. Personally I'd think it should be URI