[Factor-talk] Bit fields in structs

2009-10-07 Thread Daniel Ehrenberg
I hacked bit fields onto Joe Groff's excellent new structs. This wasn't hard to do, since Joe's code was so well-structured. My draft code is in the main repository, in the bitfields branch. The current implementation has really inefficient getters and setters, and I'll have to change this before

Re: [Factor-talk] Factor vs. Forth --- the book

2009-10-07 Thread Emeka
Hi Hugh, I can't open that extension could you make a pdf version or something else? Regards, Emeka On Tue, Oct 6, 2009 at 2:50 AM, Hugh Aguilar hugoagui...@rosycrew.comwrote: Well, I've taken a stab at writing some documentation comparing Factor to Forth. Take a look at this

[Factor-talk] Broken pipe when trying to send-email

2009-10-07 Thread Jon Kleiser
Hi, I got this example code on the Factor web page today: USING: accessors smtp ; email j...@foobar.com from { j...@foobar.com } to Up for lunch? subject At Tracy's. body send-email ... but when I try to run it (with my address on the to line), entering it line by line

Re: [Factor-talk] documentation, examples and help...

2009-10-07 Thread Alex A. Naanou
I agree with Jon on this one -- names are better a bit more descriptive and definite. will have go through the article a couple of times more be objective on the specifics... here is what I consider near-ideal example-driven tutorial: http://gigamonkeys.com/book/ CPython's docs come close but

Re: [Factor-talk] Broken pipe when trying to send-email

2009-10-07 Thread Slava Pestov
Hi Jon, This somewhat cryptic error means that Factor could not connect to localhost:25 (the default smtp-server setting). Chances are you're not running an SMTP server on your box, so you'll need to configure the library first:

[Factor-talk] Haskell concurrency papers (gc, primitives)

2009-10-07 Thread Phil Dawes
A Simon Marlow blog post popped up on proggit today which reminded me that I wanted to post a list of his papers here: http://www.haskell.org/~simonmar/bib/bib.html In particular there are papers on parallel gc and concurrency primitives which I guess might be useful for factor's future

Re: [Factor-talk] Factor vs. Forth --- the book

2009-10-07 Thread Linnet
If you are using windows or Linux, you can try MikTex: http://miktex.org/ . Use Yap to open the dvi file. 2009/10/7 Emeka emekami...@gmail.com: Hi Hugh, I can't open that extension could you make a pdf version or something else? Regards, Emeka On Tue, Oct 6, 2009 at 2:50 AM, Hugh Aguilar

[Factor-talk] disassembler patch and blog post

2009-10-07 Thread Phil Dawes
Hi All, I've added a small patch to the disassembler to allow it to handle anonymous quots: http://github.com/phildawes/factor/commits/disassemble-quot e.g. ( scratchpad ) [ 5 fixnum+fast ] disassemble 7feac680f2e0: 498b06mov rax, [r14] 7feac680f2e3: 4883c028 add rax, 0x28

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Slava Pestov
Hi Phil, Nice post. Minor factual errors: - its not called 'dataflow IR', but 'high level IR' - 'machine IR' is what you get after register allocation. High level IR is converted to low level IR, then optimized, then register allocation runs, the control flow graph is flattened and it becomes

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Phil Dawes
Great, thanks Slava. I've made some corrections so hopefully it's a bit more accurate now. I called 'D' a pseudo register for expediency - hope thats not stretching the truth too much. Cheers, Phil Slava Pestov wrote: Hi Phil, Nice post. Minor factual errors: - its not called 'dataflow

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Slava Pestov
I've never thought of D as having a meaning of its own, but I guess it makes sense :-) On Wed, Oct 7, 2009 at 2:23 PM, Phil Dawes p...@phildawes.net wrote: Great, thanks Slava. I've made some corrections so hopefully it's a bit more accurate now. I called 'D' a pseudo register for expediency -

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Slava Pestov
Phil, One more typo: Factor aligns all its heap data to the nearest 16bit address Perhaps you meant nearest 8-byte boundary. Slava On Wed, Oct 7, 2009 at 1:22 PM, Phil Dawes p...@phildawes.net wrote: Hi All, I've added a small patch to the disassembler to allow it to handle anonymous

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Adam
Phil, Your entry didn't show up on planet.factorcode.org for some reason. -Adam On Wed, Oct 7, 2009 at 12:47 PM, Slava Pestov sl...@factorcode.org wrote: Phil, One more typo: Factor aligns all its heap data to the nearest 16bit address Perhaps you meant nearest 8-byte boundary. Slava

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Slava Pestov
Phil, Your Atom feed is not well-formed XML: XML parsing error Line: 163 Column: 0 Mismatched tags Opening tag: p Closing tag: /div And your RSS2.0 feed doesn't have date tags on entries. Slava On Wed, Oct 7, 2009 at 2:57 PM, Adam hiat...@gmail.com wrote: Phil, Your entry didn't show up on

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Phil Dawes
Slava Pestov wrote: Phil, One more typo: Factor aligns all its heap data to the nearest 16bit address Perhaps you meant nearest 8-byte boundary. Yeah, not sure was I was thinking when I wrote that, thanks --

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Phil Dawes
Thanks Adam, I'd imagine it just hasn't pulled the RSS recently. I'll check it again tomorrow morning. Adam wrote: Phil, Your entry didn't show up on planet.factorcode.org for some reason. -Adam On Wed, Oct 7, 2009 at 12:47 PM, Slava Pestov sl...@factorcode.org wrote: Phil, One

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Phil Dawes
Slava Pestov wrote: Phil, Your Atom feed is not well-formed XML: XML parsing error Line: 163 Column: 0 Mismatched tags Opening tag: p Closing tag: /div And your RSS2.0 feed doesn't have date tags on entries. Slava Atom feed (and html) fixed. I haven't really been bothered much

Re: [Factor-talk] disassembler patch and blog post

2009-10-07 Thread Slava Pestov
Did you edit your blog post to remove the add35 example? It seems to be gone. Slava On Wed, Oct 7, 2009 at 3:23 PM, Phil Dawes p...@phildawes.net wrote: Atom feed (and html) fixed. I haven't really been bothered much with my RSS20 feed, maybe I should.

Re: [Factor-talk] Factor vs. Forth --- the book

2009-10-07 Thread Hugh Aguilar
Message: 1 Date: Tue, 6 Oct 2009 15:21:17 +1300 From: Chris Double chris.dou...@double.co.nz Subject: Re: [Factor-talk] Factor vs. Forth --- the book To: factor-talk@lists.sourceforge.net Message-ID: c2e346f90910051921k3be042d9p66bc531b1e00d...@mail.gmail.com Content-Type: text/plain;

[Factor-talk] append usage

2009-10-07 Thread Nicholas Spies
append ( seq1 seq2 -- newseq ) However, { } 5 append -- { 0 1 2 3 4 } as if it were { } 5 iota append All this is well and good, but since this use of 5 instead of a sequence doesn't seem to be documented, should this use be avoided, or celebrated as an undocumented feature

Re: [Factor-talk] append usage

2009-10-07 Thread Chris Double
On Thu, Oct 8, 2009 at 1:42 PM, Nicholas Spies nsp...@verizon.net wrote: All this is well and good, but since this use of 5 instead of a sequence doesn't seem to be documented, should this use be avoided, or celebrated as an undocumented feature :-)  ? Numbers implement the sequence protocol.