Re: PicoLisp on Ubuntu

2016-01-17 Thread Rick Hanson
Hi Jon!

On Sun, Jan 17, 2016 at 2:30 PM, Jon Kleiser  wrote:
> There is a chance I could have managed to run some 64-bit Linux on
> this old Mac if I went for a non-GUI version, or a version that was
> happy with only 1GB RAM, [...]

If you like Ubuntu-ish and want to see about 64-bit, maybe try
http://lubuntu.net/ on your 1GB RAM machine.  More fun for the
weekend! :)
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PicoLisp on Ubuntu

2016-01-17 Thread Tomas Hlavaty
Hi Jon,

> My old Mac mini has an Intel Core 2 Duo, and that is supposed to be a
> 64-bit machine. However, when I should pick the Ubuntu version for
> this Mac from this page http://www.ubuntu.com/download/desktop both
> the drop-down menus says "32-bit — for machines with less than 2GB
> RAM". That is what I picked, and I am afraid that prevents me from

you can try "uname -a" or "cat /proc/cpuinfo" to find out more about the
machine architecture.

Cheers,

Tomas
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PicoLisp on Ubuntu

2016-01-17 Thread Jon Kleiser
Hi Tomas,

Thanks for your hints. This is part of the info I got:
jkleiser@oldmini:~/picoLisp$ uname -a
Linux oldmini 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:18:00 UTC 
2015 i686 i686 i686 GNU/Linux
jkleiser@oldmini:~/picoLisp$ cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 15
model name  : Intel(R) Core(TM)2 CPU T7200  @ 2.00GHz
stepping: 6
microcode   : 0xc7
cpu MHz : 2000.000
 . . and a lot more.

/Jon

From: picolisp@software-lab.de  on behalf of Tomas 
Hlavaty 
Sent: 17 January 2016 21:20
To: picolisp@software-lab.de
Subject: Re: PicoLisp on Ubuntu

Hi Jon,

> My old Mac mini has an Intel Core 2 Duo, and that is supposed to be a
> 64-bit machine. However, when I should pick the Ubuntu version for
> this Mac from this page http://www.ubuntu.com/download/desktop both
> the drop-down menus says "32-bit — for machines with less than 2GB
> RAM". That is what I picked, and I am afraid that prevents me from

you can try "uname -a" or "cat /proc/cpuinfo" to find out more about the
machine architecture.

Cheers,

Tomas
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=subscribe
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PicoLisp on Ubuntu

2016-01-17 Thread Jon Kleiser
Hi Alex,

My old Mac mini has an Intel Core 2 Duo, and that is supposed to be a 64-bit 
machine. However, when I should pick the Ubuntu version for this Mac from this 
page
http://www.ubuntu.com/download/desktop
both the drop-down menus says "32-bit — for machines with less than 2GB RAM". 
That is what I picked, and I am afraid that prevents me from running 64-bit 
software.
You are right, when I do (cons *CPU (version T)), then I get
("emu" 16 1 16).
There is a chance I could have managed to run some 64-bit Linux on this old Mac 
if I went for a non-GUI version, or a version that was happy with only 1GB RAM, 
but as it is, I am quite satisfied that I managed to get Linux running at all 
on this Mac.

/Jon


From: picolisp@software-lab.de  on behalf of 
Alexander Burger 
Sent: 17 January 2016 08:08
To: picolisp@software-lab.de
Subject: Re: PicoLisp on Ubuntu

Hi Jon,

> I had an old Mac mini that I had given up as an OSX machine, as it had
> only 1 GB RAM, and it was too difficult (or impossible?) to install more
> ...
>
> One of the first things I installed was PicoLisp, of course. I simply did the
>
> sudo apt-get install picolisp
>
> What I got was 3.1.5.2 C, 32-bit PicoLisp. I was slightly
> disappointed.

Hmm, I don't know, but isn't the Mac mini hardware 32-bits?


> Then today I downloaded the current .tgz from
> software-lab.de. I tried the
> (cd src64; make), and to my delight, I now got 64-bit 16.1.16 working!

If so, perhaps it compiled the emulator, which is the fallback
architecture if the machine is neither arm64, x86_64 or ppc64le?

What does *CPU say? I suspect

   : (cons *CPU (version T))
   -> ("emu" 16 1 16)

♪♫ Alex
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
PԔ � )mX�����zV�u�.n7�

Re: PicoLisp on Ubuntu

2016-01-17 Thread Tomas Hlavaty
Hi Jon,

> model name: Intel(R) Core(TM)2 CPU T7200  @ 2.00GHz

the processor is 64 bit:
http://ark.intel.com/products/27255/Intel-Core2-Duo-Processor-T7200-4M-Cache-2_00-GHz-667-MHz-FSB
so it should be possible to install 64 bit linux.

Tomas
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


binary search

2016-01-17 Thread Mike Pechkin
hi all,

Today I was wonder is it possible to create a function for binary search
inside flatten or nested lists.
If I have ordered list I need something faster that O(n) and I should not
care of unique structure.
It was a goal while walking in the forest.

There is my code in repo:
https://goo.gl/EMQt3p

Mike


Re: binary search

2016-01-17 Thread Joh-Tob Schäg
Hi

have you thought about implementing a skip list?
It would be implemented very easily, it in particular excels with biased
queries (certain parts more often than others) and other interesting
properties, but has O(log(N)) access time, you could in theory even map
some functions (which do not change the ordering of the elements (- 13 (*
19 N)) vs mod 2 (You get the idea)) on the data, without rebuilding the
index.
I would use the value to store the data and write procedures which follow
the overhead stored in the property list. With little backtracking you
would not even need double link lists, even though they are often
implemented in this manner.

Sincerely
*freeemint_*



2016-01-17 20:13 GMT+01:00 Mike Pechkin :

> hi all,
>
> Today I was wonder is it possible to create a function for binary search
> inside flatten or nested lists.
> If I have ordered list I need something faster that O(n) and I should not
> care of unique structure.
> It was a goal while walking in the forest.
>
> There is my code in repo:
> https://goo.gl/EMQt3p
>
> Mike
>
>


Subscribe

2016-01-17 Thread Nelson