Bonjour, i present a new update of Scheme+ for Guile:
https://github.com/damien-mattei/Scheme-PLUS-for-Guile the documentation is not updated fully, but the Guile version have now the same features as the Racket version, so one can refer to this documentation: https://docs.racket-lang.org/Scheme-PLUS-for-Racket/index.html the main difference are of course Guile does not allow personal readers for curly infix (and the already existing can no more be used) so you have now to use a script (curly-infix2prefix4guile.scm <https://github.com/damien-mattei/Scheme-PLUS-for-Guile/blob/main/curly-infix2prefix4guile.scm>) to parse the scheme+ file into regular guile scheme file.A provided Makefile <https://github.com/damien-mattei/Scheme-PLUS-for-Guile/blob/main/examples/Makefile> can be used to do that. Also there is some example in the subdirectory. This version also add annotation and type inference , here is an example: ; modify coefficients layer (define (modification_des_poids M_i_o η z_input z_output z̃_output ᐁ_i_o მzⳆმz̃) ; derivative of activation function of the layer (type matrix? M_i_o) ; M_i_o[j {i + 1}] calls matrix-ref / matrix-set! directly (type ℝ η) (type #(ℝ) ᐁ_i_o z_input z_output z̃_output) ; vectors of reals : z_input[i] is a vector-ref (type ((ℝ) procedure? (ℝ ℝ)) მzⳆმz̃) ; the derivative : 2 reals , returns a real ; the length of output and input layer with coeff. used for bias update {(len_layer_output len_layer_input_plus1forBias) <+ (dim-matrix M_i_o)} ; use values and define-values to create bindings ;;(display "modification_des_poids ") (newline) {len_layer_input <+ len_layer_input_plus1forBias - 1} (type ℕ j) (for-each-in (j (in-range len_layer_output)) ; line (type ℕ i) (for-each-in (i (in-range len_layer_input)) ; column , parcours les colonnes de la ligne sauf le bias {M_i_o[j (i + 1)] <- M_i_o[j (i + 1)] + η * z_input[i] * მzⳆმz̃(z_output[j] z̃_output[j]) * ᐁ_i_o[j]}) ;;(display "modification_des_poids : after M_i_o") (newline)) ; and update the bias {M_i_o[j 0] <- M_i_o[j 0] + η * 1.0 * მzⳆმz̃(z_output[j] z̃_output[j]) * ᐁ_i_o[j]})) Damien
