Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Daniel Ehrenberg
> Ed has proposed some stack effect changes to core collection words and > Dan is toying with generic collection protocols but I'm still undecided > as to whether these ideas are worthwhile, and if adding them now will > postpone 1.0 too far. Perhaps both can be merged into one proposal: a > g

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Slava Pestov
Phil Dawes wrote: > One of the things I'm loving about factor is its ability to change > implementation direction on a sixpence. I don't know how long this can > last, but for now it's a massive plus for the language. This came up on the IRC channel today. Factor is changing quickly and a lot o

Re: [Factor-talk] How will it be more difficult?

2008-03-10 Thread Slava Pestov
Daniel Ehrenberg wrote: > I don't understand how this will interact with byte array readers, > sockets and other kinds of streams which don't have paths as such. I > don't see how it could be any different from how things are right now, > unless you want to generalize paths significantly. Unless th

Re: [Factor-talk] How will it be more difficult?

2008-03-10 Thread Daniel Ehrenberg
I don't understand how this will interact with byte array readers, sockets and other kinds of streams which don't have paths as such. I don't see how it could be any different from how things are right now, unless you want to generalize paths significantly. Unless this generalization (which I don't

Re: [Factor-talk] How will it be more difficult?

2008-03-10 Thread Slava Pestov
Eduardo Cavazos wrote: > In the api that I'm proposing, the examples you give above still look > like > this: > > iso-2022-jp > > shift-jis > > How is that "harder" than the current api? It's in fact identical. Ed, your "smart pathname" proposal has two distinct parts. The first pa

[Factor-talk] Explicitly stating the encoding

2008-03-10 Thread Eduardo Cavazos
Alex Chapman wrote: > I actually quite like the idea of having to explicitly state what encoding I > want to read or write a file in. Here's the current system: "data" utf8 In the api I'm proposing you can do: "data" utf8 I agree that you should be able to explicitly state

[Factor-talk] How will it be more difficult?

2008-03-10 Thread Eduardo Cavazos
Matthew Willis wrote: > I REALLY don't want working with the various formats I work with to > become any harder than it already is. I do not want to sacrifice the > ease of saying 'iso-2022-jp ', 'shift-jis ', > and all the other adorable encodings japanese people like to use. In the api t

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Slava Pestov
William Tanksley, Jr wrote: > I feel really stupid ... I tried to look up to verify > how to properly apply it (specifically, I wanted to look up the right > conventions for naming things like set-codec; I'm a newbie), and I > simply can't find it in the Vocabulary. What's under? I *expected* it >

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread William Tanksley, Jr
Alex Chapman <[EMAIL PROTECTED]> wrote: > Hi William, > William Tanksley, Jr <[EMAIL PROTECTED]> wrote: > > I feel really stupid ... I tried to look up to verify > > how to properly apply it (specifically, I wanted to look up the right > > conventions for naming things like set-codec; I'm a newbie

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Alex Chapman
Hi William, On 11/03/2008, William Tanksley, Jr <[EMAIL PROTECTED]> wrote: > > I feel really stupid ... I tried to look up to verify > how to properly apply it (specifically, I wanted to look up the right > conventions for naming things like set-codec; I'm a newbie), and I > simply can't find it

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread William Tanksley, Jr
Slava Pestov <[EMAIL PROTECTED]> wrote: > William Tanksley, Jr wrote: > > What if binary were the default, but different filters could be > > attached to a binary stream to modify how it behaved? > That's how Dan's API is implemented internally right now. > It could be renamed to or something

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Slava Pestov
William Tanksley, Jr wrote: > What if binary were the default, but different filters could be > attached to a binary stream to modify how it behaved? That's how Dan's API is implemented internally right now. "foo.txt" utf8 is equivalent to "foo.txt" (file-reader) utf8 (file-reader) is the pla

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread William Tanksley, Jr
Eduardo Cavazos <[EMAIL PROTECTED]> wrote: > No matter what, this is a fact: we are going to have a world-class unicode > implementation. I know this because Dan knows his stuff and I trust him to > solve problems like this. Frankly, his blog is excellent reading; you will at the very least und

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Matthew Willis
Well, on my Safari pulldown menu there are: Shift JIS X0213 ISO 2022 JP Shift JIS EUC If you know just one Japanese word, it should probably be http://en.wikipedia.org/wiki/Mojibake :) Matt On Monday, March 10, 2008, at 02:35PM, "Daniel Ehrenberg" <[EMAIL PROTECTED]> wrote: >IIRC ISO 2202 J

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Daniel Ehrenberg
IIRC ISO 2202 JP = Shift JIS (unless that's referring to the Microsoft extension). But that's a little irrelevant here... Dan On Mon, Mar 10, 2008 at 7:36 AM, Matthew Willis <[EMAIL PROTECTED]> wrote: > I REALLY don't want working with the various formats I work with to become > any harder than i

[Factor-talk] iPhone (was: Re: A note about Dan's unicode efforts)

2008-03-10 Thread Slava Pestov
Matthew Willis wrote: > Hey! I'd love to give it a shot. And, won't we need to revive the ARM > port for use on iPhone? :) Unfortunately the iPhone SDK has some pretty ridiculous restrictions -- you can only distribute your programs through the Apple store, and you're not allowed to write progr

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Matthew Willis
On Monday, March 10, 2008, at 02:12PM, "Slava Pestov" <[EMAIL PROTECTED]> wrote: >Matthew Willis wrote: >> Ed, >> >> I work with different encodings of Japanese, and it's a big headache. >> The biggest part of the headache is that no one knows what encoding >> they are using when they make fil

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Slava Pestov
Matthew Willis wrote: > Ed, > > I work with different encodings of Japanese, and it's a big headache. > The biggest part of the headache is that no one knows what encoding > they are using when they make files. So, you see garbled web pages > because the encoding wasn't specified in headers or

Re: [Factor-talk] hackers and newbies

2008-03-10 Thread Slava Pestov
Eduardo Cavazos wrote: > Let's assume the newbie is living in mandatory encoding parameter land. > The newbie, being a typical newbie, learned about by seeing it > used in some code. He saw "..." utf8 . > > Statistically speaking, based on encoding distributions, he is most > likely to >

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Phil Dawes
Hi Ed, I originally thought the the extra argument to file-reader/writer was going to be a pain but now I'm warming to the idea. I've come across two places in my code where I thought I'd be using a utf-8 encoding but actually I need to load using binary and then do the conversion later. My vote

Re: [Factor-talk] hackers and newbies

2008-03-10 Thread Doug Coleman
Hi All, This reminds me of the first C program I ever wrote as a freshman in college working at ARL in 2000. I had to download a waveform from a file to an arbitrary waveform generator (arb) for work. http:// tinyurl.com/2ga8g3 With my trusty Schaum's Outline of Programming with C and a ru

Re: [Factor-talk] bookworm newbie

2008-03-10 Thread William Tanksley, Jr
Eduardo Cavazos <[EMAIL PROTECTED]> wrote: > Text is the default Text is the convenient default; it'll be used more often. But text is also the *destructive* option -- it'll munge input and output, unpredictably and without warning. I'd like to open a little discussion for the possibility

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Matthew Willis
Ed, I work with different encodings of Japanese, and it's a big headache. The biggest part of the headache is that no one knows what encoding they are using when they make files. So, you see garbled web pages because the encoding wasn't specified in headers or was specified incorrectly,

Re: [Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Alex Chapman
Hey Ed, I don't feel as strongly about this as you seem to, but I actually quite like the idea of having to explicitly state what encoding I want to read or write a file in. Otherwise it just seems to be 'programming by coincidence' when the default of utf8 happens to be what you wanted. I don't wa

[Factor-talk] A note about Dan's unicode efforts

2008-03-10 Thread Eduardo Cavazos
Guys, No matter what, this is a fact: we are going to have a world-class unicode implementation. I know this because Dan knows his stuff and I trust him to solve problems like this. However, there's the implementation and then there's the api. I just wanted to point out and emphasize in case s

[Factor-talk] bookworm newbie

2008-03-10 Thread Eduardo Cavazos
Slava wrote: > But with replacement characters, having a UTF8 default with no > indication that it is UTF8 would lead to confusion among newbies > attempting to read binary files. In my last response, I covered the case where a newbie, having some of the hacker spirit in him, learned of in the

[Factor-talk] hackers and newbies

2008-03-10 Thread Eduardo Cavazos
Slava wrote: > But with replacement characters, having a UTF8 default with no > indication that it is UTF8 would lead to confusion among newbies > attempting to read binary files. Let's assume the newbie is living in mandatory encoding parameter land. The newbie, being a typical newbie, learned

[Factor-talk] Word problem

2008-03-10 Thread Eduardo Cavazos
Stephen, OK, there is essentially one problem to solve in your homework assignment. You have a list of words, and the list of scrambled words. For each scrambled word, you want to see how many words it can "match". The number of words it can match is zero or more. I think you'll have earned yo

Re: [Factor-talk] Too many things in boot stages?

2008-03-10 Thread Matthew Willis
Thanks! And, with the new build system I'm sure it will be easy to find/fix these problems in the future! Matt On Mar 10, 2008, at 12:16 AM, Slava Pestov wrote: > Matthew Willis wrote: >> Hey guys, >> >> I got to thinking about how factor git won't bootstrap on freebsd >> (and >> has been i

Re: [Factor-talk] Too many things in boot stages?

2008-03-10 Thread Slava Pestov
Matthew Willis wrote: > Hey guys, > > I got to thinking about how factor git won't bootstrap on freebsd (and > has been in this state for a while), and I'm wondering if we don't > have too many modules loaded during bootstrapping. Could we at least > remove the new code from the boot stages