Re: Python slices in Scheme

2023-06-24 Thread Damien Mattei
hello Arne, i already know your interesting and original web site and i read today the zen page too. "WM: Use the Weakest Method that gets the job done, but know the stronger methods to employ them as needed." i think too it is a good philosophy to do that Bonne journée, Damien On Sat, Jun 24,

Re: Python slices in Scheme

2023-06-24 Thread Dr. Arne Babenhauserheide
Damien Mattei writes: > really easy and powerful, but i dislike decorator, i prefer scheme's macro > but i think too it has no sense to write big macros, in my opinion they > should be short and avoid them when possible. Do you know my Zen for Scheme? In that I tried to capture what I learned a

Re: Python slices in Scheme

2023-06-24 Thread Damien Mattei
hello Jay, for code testing i think in this summer, when i will have updated a new release of Scheme+ , i will show two codes to compare , one in Python (already written) and the other in Scheme/Scheme+ (to finish...) doing the same thing (Deep Learning - backpropagation and gradient descent) to c

Re: Python slices in Scheme

2023-06-23 Thread Damien Mattei
seems a great work on array Lloda , for Guile , i can not use it directly in Scheme+ because i search portable code compatible with Racket too (and any scheme that support SRFI 105 curly infix), but perhaps there is not a lot of work to port it , indeed your library seems very powerful ,make me thi

Re: Python slices in Scheme

2023-06-23 Thread Jay Sulzberger
On Mon, 19 Jun 2023, lloda wrote: My library guile-newra (1) has quite general multidimensional array slicing. The indices < can be linear ranges or arbitrary integer arrays and they can have any rank. You can also use the indexed array as write target. If all the indices are linear ranges th

Re: Python slices in Scheme

2023-06-23 Thread Jay Sulzberger
On Sun, 18 Jun 2023, Damien Mattei wrote: hello, i'm porting the Python slicing ( https://docs.python.org/2/reference/expressions.html#slicings ) to Scheme Guile and Racket. examples in Scheme+ : {#(1 2 3 4 5 6 7)[2 / 5]} #(3 4 5) i'm using / instead of : because : is already used by the

Re: Python slices in Scheme

2023-06-21 Thread Damien Mattei
what troubled me is the uppercase in Front and the sense and i'm not easy with english as being french. Sexp i already know as symbolic expressions , that are in Scheme prefix expression but could also be infix or postfix, SRFI 105 being an infix reader for Scheme noted with curly syntax but they e

Re: Python slices in Scheme

2023-06-20 Thread Robby Zambito
Jun 20, 2023 02:42:34 Damien Mattei : > what is Sexp Front? On X front is an idiom - search for "on that front" if you want to see examples. Sexp refers to symbolic expressions, which is the typical syntax of Lisp. Robby

Re: Python slices in Scheme

2023-06-19 Thread Damien Mattei
hello Jay what is Sexp Front? regards, Damien On Mon, Jun 19, 2023 at 3:53 AM Jay Sulzberger wrote: > > On Sun, 18 Jun 2023, Damien Mattei wrote: > > > hello, > > > > i'm porting the Python slicing ( > > https://docs.python.org/2/reference/expressions.html#slicings ) to > Scheme > > Guile and R

Re: Python slices in Scheme

2023-06-19 Thread Damien Mattei
it seems a big work , thanks On Mon, Jun 19, 2023 at 6:37 PM lloda wrote: > > My library guile-newra (1) has quite general multidimensional array > slicing. The indices can be linear ranges or arbitrary integer arrays and > they can have any rank. You can also use the indexed array as write targ

Re: Python slices in Scheme

2023-06-19 Thread Zelphir Kaltstahl
On 6/19/23 18:36, lloda wrote: My library guile-newra (1) has quite general multidimensional array slicing. The indices can be linear ranges or arbitrary integer arrays and they can have any rank. You can also use the indexed array as write target. If all the indices are linear ranges then the

Re: Python slices in Scheme

2023-06-19 Thread lloda
My library guile-newra (1) has quite general multidimensional array slicing. The indices can be linear ranges or arbitrary integer arrays and they can have any rank. You can also use the indexed array as write target. If all the indices are linear ranges then the operation is done without copi

Re: Python slices in Scheme

2023-06-18 Thread Jay Sulzberger
On Sun, 18 Jun 2023, Damien Mattei wrote: hello, i'm porting the Python slicing ( https://docs.python.org/2/reference/expressions.html#slicings ) to Scheme Guile and Racket. examples in Scheme+ : {#(1 2 3 4 5 6 7)[2 / 5]} #(3 4 5) Damien, thank you for your work in this! Guile will be s

Re: Python slices in Scheme

2023-06-18 Thread Dr. Arne Babenhauserheide
Damien Mattei writes: > yes it needs SRFI 105 Curly infix to allow full notation. > It defines the optional $bracket-apply$ procedure or macro (here a macro) > as described in SRFI 105. The code is in attachment (not in my github > because there is a lot of work again to have the same powerful a

Re: Python slices in Scheme

2023-06-18 Thread Damien Mattei
Hello Arne, yes it needs SRFI 105 Curly infix to allow full notation. It defines the optional $bracket-apply$ procedure or macro (here a macro) as described in SRFI 105. The code is in attachment (not in my github because there is a lot of work again to have the same powerful and easy affectation

Re: Python slices in Scheme

2023-06-18 Thread Dr. Arne Babenhauserheide
Hi Damien, > {#(1 2 3 4 5 6 7)[2 / 5]} > #(3 4 5) that looks pretty interesting. Is it compatible to curly infix / SRFI-105? Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de signature.asc Description: PGP signature

Python slices in Scheme

2023-06-18 Thread Damien Mattei
hello, i'm porting the Python slicing ( https://docs.python.org/2/reference/expressions.html#slicings ) to Scheme Guile and Racket. examples in Scheme+ : {#(1 2 3 4 5 6 7)[2 / 5]} #(3 4 5) i'm using / instead of : because : is already used by the SRFI 42 Eager Comprehension below are my testin