progress with native code generation in guile

2012-06-09 Thread Stefan Israelsson Tampe
Hi, On linux, x86-64 I can now write, (use-modules (native aschm)) (define b (asm (inst mov rbx 10) ;rbx = 1000,000,000 loop: (inst cmp rbx 0) (inst jmp #:eq out:) (inst dec rbx) (inst jmp loop:) out: (

Re: Growable arrays?

2012-06-09 Thread David Kastrup
Krister Svanlund writes: > On Sat, Jun 9, 2012 at 2:32 PM, David Kastrup wrote: > > > One principal distinguishing feature, like with a Scheme > hashtable, is the ability to grow on-demand. > > Scheme/Guile vectors are fixed size. > > It is a bit of a nuisance that one can g

Re: subbytevectors

2012-06-09 Thread Andy Wingo
Hello, On Sat 09 Jun 2012 17:16, Thien-Thi Nguyen writes: > If you want to make a case for such a facility, why not > show some code, both without (status quo) and with (proposed)? > It should be clear what expressiveness is gained, and how. For example, let's say I mmap a big file. (define

Re: subbytevectors

2012-06-09 Thread Thien-Thi Nguyen
() Andy Wingo () Sat, 09 Jun 2012 13:07:15 +0200 Again, the gain in expressiveness is probably worth it Overall, i am concerned about quick fixes and slow suffering in the Guile design. To break it down from different angles: Thinking positively: If you want to make a case for such a facil

Re: Growable arrays?

2012-06-09 Thread Krister Svanlund
On Sat, Jun 9, 2012 at 2:32 PM, David Kastrup wrote: > > Hi, > > the main data structure of Lua is a "table", an associative array, and a > table t has a continguous numerically addressed part from 1..#t, with > all other indices going through a hashing mechanism. One principal > distinguishing

subbytevectors

2012-06-09 Thread Andy Wingo
Hi, It would be very convenient to offer bytevectors that give a view on some other data structure, possibly another bytevector. We already have that, to an extent, with pointer->bytevector. We can consecrate that with some subbytevector facility. I think it's a good idea but it has some costs.

Growable arrays?

2012-06-09 Thread David Kastrup
Hi, the main data structure of Lua is a "table", an associative array, and a table t has a continguous numerically addressed part from 1..#t, with all other indices going through a hashing mechanism. One principal distinguishing feature, like with a Scheme hashtable, is the ability to grow on-de

Re: [ERROR] fedora 17 install error

2012-06-09 Thread Andy Wingo
Hi, On Sat 09 Jun 2012 05:01, "B.Tag" writes: > ok. >   i system environmental  path included chinese.compile time it does not > understand Chinese. Interesting! I'm happy it worked for you, but I am curious what the precise error was. Which environment variable caused the build to fail? Th