Re: native calling

2017-03-02 Thread Mike Pechkin
It needs clear:
o) you create demo picolisp code without native calls as demo and startpoint
o) I need a list of library functions you gonna use
o) I create native wrappers or something
o) you glue your code and native

On Thu, Mar 2, 2017 at 7:06 PM, Mike Pechkin  wrote:

>
> hi,
>
> I need more experience in (native) usage.
> If somebody need library bindings to something you can request here or
> directly.
>


Re: native calling

2017-03-02 Thread Mike


> On Mar 3, 2017, at 01:24, David Bloom  wrote:
> 
> Either of these two single header C libraries is where I'm considering 
> beginning my journey with native calls:
> 
> nanomsg - a spiritual successor to ZeroMQ
> http://nanomsg.org/index.html
> 

https://github.com/aw/picolisp-nanomsg
nano already done



Re: JavaCode with static class methods

2017-03-02 Thread Alexander Burger
Hi Thorsten,

> I'm experimenting a bit with the 'java' function, and the StringBuilder
> ...
> (java "java.lang.Math" 'sqrt 4)

It needs a different call:

   : (scl 6)
   -> 6

   : (java "java.lang.Math" 'sqrt  (-6 . 64.0))
   -> 800

   : (round @)
   -> "8.000"

As you probably know, the Java interface is described in
http://picolisp.com/wiki/?javacode

It writes:

   While integers are directly passed to/from the JVM, other number formats can
   be passed to the JVM as cons pairs consisting of an ID in the CAR and the
   value in the CDR. These are:

• 1 for Byte
• 2 for Char
• 3 for Short
• 4 for Integer (default, usually not needed)
• 8 for Long
• 9 for BigInteger

   If the CAR is a negative number, the value is taken as a double scaled by the
   negated number of digits.

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: JavaCode with static class methods

2017-03-02 Thread Joe Bogner
Hi Thorsen, it looks like you were on the right path. I'm guessing there
may be a bug or issue with the double signature

This works:

: (java (java "java.lang.Math" "abs" -4))
-> 4

: (java (java "java.lang.Math" "min" 10 5))
-> 5

But I'm just guessing

On Thu, Mar 2, 2017 at 3:02 PM, Thorsten Jolitz  wrote:

>
> Hi List,
>
> I'm experimenting a bit with the 'java' function, and the StringBuilder
> and GregorianCalendar example from the JavaCode Wiki entry work fine,
> but I wonder how to use a constructorless class like e.g. java.lang.Math
> with its static class methods?
>
> #+NAME: JavaCode - none of these work
> #+BEGIN_SRC picolisp
> (java "java.lang.Math" 'sqrt 4)
> (java java.lang.Math 'sqrt 4)
> (java 'java.lang.Math 'sqrt 4)
>
> (setq M (java "java.lang.Math" T))  // returns null, no constructor
> #+END_SRC
>
> Thanks for any hints.
>
> --
> cheers,
> Thorsten
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


unsubscribe

2017-03-02 Thread Adam Frey
Šo'€u©…­ìšu©šu©Ÿ­ì¦yŠ.j·§£§²æìr¸›yÓÆF—bF—#ÒvWFòsãÂöF—cà

Subscribe

2017-03-02 Thread Alexander Williams

Hello Alexander Williams  :-)
You are now subscribed



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


Re: native calling

2017-03-02 Thread David Bloom
Either of these two single header C libraries is where I'm considering
beginning my journey with native calls:

nanomsg - a spiritual successor to ZeroMQ
http://nanomsg.org/index.html

Or

nuklear - a slick looking, small ANSI-C GUI
https://github.com/vurtun/nuklear


I'm happy to pitch in code as well but still have much to explore in
PicoLisp and so may provide noobish codezezez.

On Mar 2, 2017 12:15 PM, "Mike Pechkin"  wrote:

> hi,
>
> I need more experience in (native) usage.
> If somebody need library bindings to something you can request here or
> directly.
>
> (mike)
>
>
>


Re: Self-similar fractal curves on canvas

2017-03-02 Thread Lindsay John Lawrence
Thanks for the reminder. I'll add it in.
MIT Lic. No restriction. As-is, no warranty, no liability.

Enjoy.

/Lindsay
Gratitude makes any experience more enjoyable. It doesn't make the journey
any less new, the effort any less real.


On Thu, Mar 2, 2017 at 9:13 AM, Christopher Howard <
christopher.how...@qlfiles.net> wrote:
> Hi, this looks cool and I want to play around with it, but licensing
> information is not clear. Could you please add clear licensing/copying
> terms to the repository (ideally on each source file)?
>


RE: native calling

2017-03-02 Thread Loyall, David
Graphviz!

> From: picolisp@software-lab.de On Behalf Of Mike Pechkin
> Subject: native calling
...
> I need more experience in (native) usage.
> If somebody need library bindings to something you can request here or 
> directly.
...


PԔ � )mX�����zV�u�.n7�

JavaCode with static class methods

2017-03-02 Thread Thorsten Jolitz

Hi List, 

I'm experimenting a bit with the 'java' function, and the StringBuilder
and GregorianCalendar example from the JavaCode Wiki entry work fine,
but I wonder how to use a constructorless class like e.g. java.lang.Math
with its static class methods?

#+NAME: JavaCode - none of these work
#+BEGIN_SRC picolisp
(java "java.lang.Math" 'sqrt 4)
(java java.lang.Math 'sqrt 4)
(java 'java.lang.Math 'sqrt 4)

(setq M (java "java.lang.Math" T))  // returns null, no constructor
#+END_SRC

Thanks for any hints.

-- 
cheers,
Thorsten

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


Re: native calling

2017-03-02 Thread Joh-Tob Schäg
I am not sure this sensible or even doable, but a binding to the torch
library (http://torch.ch) would be cool. Since Picolisp could use high
speed high dimensional math and machine learning.
It is written in C++ and already has a LUA interface. It needs a newer (< 4
years, i guess) NVIDIA graphics card to run.
GNUplot could be usefull too.

2017-03-02 18:06 GMT+01:00 Mike Pechkin :

> hi,
>
> I need more experience in (native) usage.
> If somebody need library bindings to something you can request here or
> directly.
>
> (mike)
>
>
>


Re: Self-similar fractal curves on canvas

2017-03-02 Thread Christopher Howard
Hi, this looks cool and I want to play around with it, but licensing
information is not clear. Could you please add clear licensing/copying
terms to the repository (ideally on each source file)?

On 03/01/2017 11:44 PM, Lindsay John Lawrence wrote:
> I developed this a bit more.
> 
> https://github.com/thinknlive/picolisp-gosper
> 
> I think now it may be a nice little tool to explore these kinds of functions.
> 
> You can step draw the results, or draw all at once.  You can also
> modify the lisp function code and then reload the module to try the
> changes immediately without restarting the service.
> 
> I'll add more over time as I think of it. Perhaps zoom and navigation
> buttons, buttons to change the step size and refresh rate from the ui,
> etc.
> 
> The picolisp ui framework makes this so easy.
> 
> /Lindsay
> 
> 
> On Wed, Mar 1, 2017 at 4:42 AM, Erik Gustafson
>  wrote:
>> Hi Lindsay,
>>
>> I practiced a bit more with the built-in functions...
>>
>> https://github.com/thinknlive/picolisp-gosper.git
>>
>>
>> Very cool! Looks like you've got '*/' all figured out now :)
>>
>> Thanks for sharing
>>
>> - Erik

-- 
https://qlfiles.net
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


native calling

2017-03-02 Thread Mike Pechkin
hi,

I need more experience in (native) usage.
If somebody need library bindings to something you can request here or
directly.

(mike)


Re: French localization

2017-03-02 Thread Alexander Burger
Hi Raman, Eric,

> > However, I will find time if Roman need help or if he wants to share
> > the work between us.
> 
> Perfect! I have already started working on it. I have one last file to
> write. I will send it to you once I finish. It would really help if
> you could review it once. Alex can then merge the code into his master
> copy. Would that work Alex?

Sure, very good! :)
♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: French localization

2017-03-02 Thread Raman Gopalan
Dear Eric,

> However, I will find time if Roman need help or if he wants to share
> the work between us.

Perfect! I have already started working on it. I have one last file to
write. I will send it to you once I finish. It would really help if
you could review it once. Alex can then merge the code into his master
copy. Would that work Alex?

R

On 2 March 2017 at 12:19, CILz  wrote:

> Hi,
>
> I've been overbooked the past few weeks because of a new job. Hence
> nothing new on my side, sorry.
>
> However, I will find time if Roman need help or if he wants to share the
> work between us.
>
> Best,
> Eric
>
>
> Le 02/03/2017 à 02:50, Raman Gopalan a écrit :
>
>
> Dear Alex, greetings! :)
>
> > How is the situation? Does anybody have good news? ;)
>
> I would like to work on this activity. I can start working on it
> today. Should I just email the files to you OR is there a better way?
>
> R
>
> On 28 February 2017 at 15:33, Alexander Burger 
> wrote:
>
>> On Tue, Jan 24, 2017 at 07:49:43AM +0100, Alexander Burger wrote:
>> > Dear PicoLispers,
>> >
>> > is anybody able and interested to do the French localization of
>> PicoLisp?
>>
>> How is the situation? Does anybody have good news? ;)
>>
>> ♪♫ Alex
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>
>
>
>


Self-similar fractal curves on canvas

2017-03-02 Thread Lindsay John Lawrence
I developed this a bit more.

https://github.com/thinknlive/picolisp-gosper

I think now it may be a nice little tool to explore these kinds of functions.

You can step draw the results, or draw all at once.  You can also
modify the lisp function code and then reload the module to try the
changes immediately without restarting the service.

I'll add more over time as I think of it. Perhaps zoom and navigation
buttons, buttons to change the step size and refresh rate from the ui,
etc.

The picolisp ui framework makes this so easy.

/Lindsay


On Wed, Mar 1, 2017 at 4:42 AM, Erik Gustafson
 wrote:
> Hi Lindsay,
>
> I practiced a bit more with the built-in functions...
>
> https://github.com/thinknlive/picolisp-gosper.git
>
>
> Very cool! Looks like you've got '*/' all figured out now :)
>
> Thanks for sharing
>
> - Erik
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe