Re: Guile Hacker Handbook - Character sets
> From: Ricardo Wurmus > Date: Thu, 18 Feb 2021 22:54:36 +0100 > Cc: guile-user@gnu.org > > Jérémy Korwin-Zmijowski writes: > > > For those who missed it, I am also starting a work towards a guile-ide.el > > for Emacs. > > > > https://framagit.org/Jeko/guile-ide > > Forgot to include a screenshot of Guile Studio: > >https://elephly.net/downies/guile-studio.png Thanks for your work, but would it make sense to coordinate this with the Emacs project, so that, for example, these packages could be available from the GNU ELPA site, if not in the Emacs tarball?
Re: Guile Hacker Handbook - Character sets
Le vendredi 19 février 2021 à 10:10 +0200, Eli Zaretskii a écrit : > Thanks for your work, but would it make sense to coordinate this with > the Emacs project, so that, for example, these packages could be > available from the GNU ELPA site, if not in the Emacs tarball? Hello Eli, It was my intention. ;-) Jérémy
Re: Guile Hacker Handbook - Character sets
Le jeudi 18 février 2021 à 22:53 +0100, Ricardo Wurmus a écrit : > Hi Jérémy, > > > For those who missed it, I am also starting a work towards a guile- > > ide.el for Emacs. > > > > https://framagit.org/Jeko/guile-ide > > Interesting. Do you think there is some overlap with guile- > studio[1]? > (It’s available in Guix.) > > [1]: https://git.elephly.net/software/guile-studio.git > Hi Ricardo ! Firstly, I am convinced Guile Studio can help in Guile onboarding ! I did come from Spacemacs and moved to Emacs (because of Paredit) when I felt ready. I have to say the way Spacemacs configuration is made also helped me to apprehend the jump to Emacs. I think there could be overlaps actually even if we seem to serve different purposes. In my perspective, Guile Studio could activate a Guile mode instead of the Scheme mode ! This Guile mode would come from guile-ide.el. So it can benefit to newcomers thanks to Guile Studio as well as advanced (bare)Emacs users. The guile-ide.el I try to build is focused on the code edition (specially "refactoring" features like extracting or renaming variables/procedures, adding/removing procedure parameters, generating test/implemetation code/file, highlighting syntax errors/unused variables/not defined variables, providing auto-completion, jumping to definition/usage/documentation, and so on… all accross all files of a project). There is more, but I have to start somewhere haha. Those are features I am used to when I edit code with editors at work. Jérémy
Re: Guile Hacker Handbook - Character sets
Le jeudi 18 février 2021 à 22:56 +0100, Zelphir Kaltstahl a écrit : > Hello Jeremy! Hi Zelphir! > I am looking forward to seeing a new chapter of your handbook, > especially, if there is more stuff that explains macros and how to > get > something useful done with macros. : ) Thank you for your support. Macros are a wide topic, I will start with a syntax-rule to make use of srfi-64 more attractive to me ! ;) The "test-begin" "test-" "test-end" feels too much procedural to me haha > There is guile-studio as well: > https://guix.gnu.org/en/packages/guile-studio-0.1.0-1.93622e7/ I did read about it on the mailing list ! Hopefully we are complementary. ;) Jérémy
Re: Guile Hacker Handbook - Character sets
> From: Jérémy Korwin-Zmijowski > Cc: guile-user@gnu.org > Date: Fri, 19 Feb 2021 11:20:54 +0100 > > Le vendredi 19 février 2021 à 10:10 +0200, Eli Zaretskii a écrit : > > Thanks for your work, but would it make sense to coordinate this with > > the Emacs project, so that, for example, these packages could be > > available from the GNU ELPA site, if not in the Emacs tarball? > > Hello Eli, > > It was my intention. ;-) Great, thanks. Looking forward for hearing from you on the Emacs mailing lists.
Re: Guile Hacker Handbook - Character sets
Hi Divoplade ! As takeout of your message, I will add in my TODO to find other exercises for the characters and character-sets chapters. I had not much ideas but you gave me some more here. Thank you for this feedback which will hopefully makes the handbook more inclusive ! Jérémy
Re: Guile Hacker Handbook - Character sets
Jérémy Korwin-Zmijowski writes: > Le jeudi 18 février 2021 à 22:56 +0100, Zelphir Kaltstahl a écrit : >> I am looking forward to seeing a new chapter of your handbook, >> especially, if there is more stuff that explains macros and how to >> get >> something useful done with macros. : ) > > Thank you for your support. > Macros are a wide topic, I will start with a syntax-rule to make use of > srfi-64 more attractive to me ! ;) You could look into my doctest module: https://hg.sr.ht/~arnebab/wisp/browse/examples/doctests.scm?rev=tip this currently does not use a macro but eval, because it uses procedure properties to store the tests, but it could definitely benefit from limiting the impact of eval with a macro: https://hg.sr.ht/~arnebab/wisp/browse/examples/doctests.scm?rev=7ccdb6b2fd94#L123 Best wishes, Arne -- Unpolitisch sein heißt politisch sein ohne es zu merken signature.asc Description: PGP signature
Re: Guile Hacker Handbook - Character sets
Le vendredi 19 février 2021 à 08:09 +0100, Dr. Arne Babenhauserheide a écrit : > Hi Jérémy, Hey Dr. Arne ! > Thank you for your book! My pleasure :) > How you’re describing char-sets using a clear use-case looks really > good! Thank you, I appreciate that. > A few comments: > > # Try and run the test > > here you write “the test fails”, which is slightly unprecise. The > precise wording would be “the test will fail to run”. You're right, I'm correcting this right now. > # Write the minimal … > > I wonder why the test-suite returns "passes 1" in the second try > (with > undefined password-valid?). This is something very annoying indeed and it forces you to be very careful. I haven't the answer to your question. I assume that SRFI-64 catches the "Unbound variable" exception somehow and return #f which is the value the test is coincidently waiting for… Changing the test to (test-error "empty password is not valid" #t (password-valid? "")) Will pass : $ guile -L . char-sets-test.scm ;;; note: source file ./char-sets.scm ;;; newer than compiled /home/jeko/.cache/guile/ccache/3.0-LE-8- 4.4/tmp/char-sets.scm.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling ./char-sets.scm ;;; compiled /home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/char- sets.scm.go Starting test harness-char-sets (Writing full log to "harness- char-sets.log") # of expected passes 1 This indicates an error is raised : $ cat harness-char-sets.log Starting test harness-char-sets Group begin: harness-char-sets Test begin: test-name: "empty password is not valid" source-file: "char-sets-test.scm" source-line: 8 source-form: (test-error "empty password is not valid" #t (password- valid? "")) Test end: result-kind: pass actual-error: (unbound-variable #f "Unbound variable: ~S" (password- valid?) #f) expected-error: #t Group end: harness-char-sets # of expected passes 1 But I am a bad assumption-er so I should ask to the srfi-64 mailing list haha. I'm wondering if Guile can return #unspecified ? > If you want to see the extend to which you can play with macros, you > can > have a look at my natural-script-writing entry-point (from enter- > three-witches): > https://hg.sr.ht/~arnebab/dryads-wake/browse/enter.w?rev=tip#L349 I will have a look at it, thank you for sharing. I think I will have a look even to some of your repos. Haha ! > Thank you for your book! Thank you for reading :-) Cheers, Jérémy
Re: guile-oauth 1.0.0 released
Congrats! I'm considering adding a new option entry for OAUTH, and guile-oauth could be one of the backends. Will you consider supporting OAUTH2? Best regards. On Tue, Feb 16, 2021 at 8:02 PM Zelphir Kaltstahl < zelphirkaltst...@posteo.de> wrote: > Hello Aleix! > > Outstanding work, thank you! It is good to know, that stuff exists, if > one wants to build web things on Guile. > > Best regards, > Zelphir > > On 2/16/21 7:17 AM, Aleix Conchillo Flaqué wrote: > > Hi, > > > > I'm very excited to announce guile-oauth 1.0.0. The biggest addition to > > this version is OAuth 2.0 support (authorization code and client > > credentials grants). It comes with a Reddit example. It has also very > minor > > breaking changes for the old OAuth 1.0a API. > > > > https://github.com/aconchillo/guile-oauth/ > > > > * About > > > > guile-oauth is an OAuth client module for Guile. It supports the > following > > features: > > > > - OAuth 1.0a: HMAC-SHA1 and PLAINTEXT signatures. > > - OAuth 2.0: Authorization Code and Client Credentials grant types. > > > > * Download > > > > Compressed sources and a GPG detached signature[*]: > > > > > https://download.savannah.nongnu.org/releases/guile-oauth/guile-oauth-1.0.0.tar.gz > > > https://download.savannah.nongnu.org/releases/guile-oauth/guile-oauth-1.0.0.tar.gz.sig > > > > [*] To verify download both files and then run: > > > >gpg --keyserver keys.openpgp.org \ > > --recv-keys 7CEC5511C8D057A9EF17470C54D4CC6FFC7468F4 > > > >gpg --verify guile-oauth-1.0.0.tar.gz.sig > > > > * Changes since 1.0.0 > > > > https://github.com/aconchillo/guile-oauth/blob/master/NEWS > > > > Bugs and comments can be reported at > > https://github.com/aconchillo/guile-oauth/issues > > > > Happy hacking! > > > > Aleix > > -- > repositories: https://notabug.org/ZelphirKaltstahl > > >
Re: guile-oauth 1.0.0 released
Thanks! OAuth2 was the biggest feature in this new release. Note that the library is only a client, you can't build an OAuth server with it. Aleix On Fri, Feb 19, 2021 at 9:15 PM Nala Ginrut wrote: > > Congrats! > I'm considering adding a new option entry for OAUTH, and guile-oauth could > be one of the backends. > Will you consider supporting OAUTH2? > > Best regards. > > > On Tue, Feb 16, 2021 at 8:02 PM Zelphir Kaltstahl < > zelphirkaltst...@posteo.de> wrote: > > > Hello Aleix! > > > > Outstanding work, thank you! It is good to know, that stuff exists, if > > one wants to build web things on Guile. > > > > Best regards, > > Zelphir > > > > On 2/16/21 7:17 AM, Aleix Conchillo Flaqué wrote: > > > Hi, > > > > > > I'm very excited to announce guile-oauth 1.0.0. The biggest addition to > > > this version is OAuth 2.0 support (authorization code and client > > > credentials grants). It comes with a Reddit example. It has also very > > minor > > > breaking changes for the old OAuth 1.0a API. > > > > > > https://github.com/aconchillo/guile-oauth/ > > > > > > * About > > > > > > guile-oauth is an OAuth client module for Guile. It supports the > > following > > > features: > > > > > > - OAuth 1.0a: HMAC-SHA1 and PLAINTEXT signatures. > > > - OAuth 2.0: Authorization Code and Client Credentials grant types. > > > > > > * Download > > > > > > Compressed sources and a GPG detached signature[*]: > > > > > > > > https://download.savannah.nongnu.org/releases/guile-oauth/guile-oauth-1.0.0.tar.gz > > > > > https://download.savannah.nongnu.org/releases/guile-oauth/guile-oauth-1.0.0.tar.gz.sig > > > > > > [*] To verify download both files and then run: > > > > > >gpg --keyserver keys.openpgp.org \ > > > --recv-keys 7CEC5511C8D057A9EF17470C54D4CC6FFC7468F4 > > > > > >gpg --verify guile-oauth-1.0.0.tar.gz.sig > > > > > > * Changes since 1.0.0 > > > > > > https://github.com/aconchillo/guile-oauth/blob/master/NEWS > > > > > > Bugs and comments can be reported at > > > https://github.com/aconchillo/guile-oauth/issues > > > > > > Happy hacking! > > > > > > Aleix > > > > -- > > repositories: https://notabug.org/ZelphirKaltstahl > > > > > >
Re: guile-oauth 1.0.0 released
OK, at least it solved TLS + oauth2 client for me. Thanks for the work! On Sat, Feb 20, 2021 at 1:37 PM Aleix Conchillo Flaqué wrote: > Thanks! > > OAuth2 was the biggest feature in this new release. Note that the > library is only a client, you can't build an OAuth server with it. > > Aleix > > On Fri, Feb 19, 2021 at 9:15 PM Nala Ginrut wrote: > > > > Congrats! > > I'm considering adding a new option entry for OAUTH, and guile-oauth > could > > be one of the backends. > > Will you consider supporting OAUTH2? > > > > Best regards. > > > > > > On Tue, Feb 16, 2021 at 8:02 PM Zelphir Kaltstahl < > > zelphirkaltst...@posteo.de> wrote: > > > > > Hello Aleix! > > > > > > Outstanding work, thank you! It is good to know, that stuff exists, if > > > one wants to build web things on Guile. > > > > > > Best regards, > > > Zelphir > > > > > > On 2/16/21 7:17 AM, Aleix Conchillo Flaqué wrote: > > > > Hi, > > > > > > > > I'm very excited to announce guile-oauth 1.0.0. The biggest addition > to > > > > this version is OAuth 2.0 support (authorization code and client > > > > credentials grants). It comes with a Reddit example. It has also very > > > minor > > > > breaking changes for the old OAuth 1.0a API. > > > > > > > > https://github.com/aconchillo/guile-oauth/ > > > > > > > > * About > > > > > > > > guile-oauth is an OAuth client module for Guile. It supports the > > > following > > > > features: > > > > > > > > - OAuth 1.0a: HMAC-SHA1 and PLAINTEXT signatures. > > > > - OAuth 2.0: Authorization Code and Client Credentials grant types. > > > > > > > > * Download > > > > > > > > Compressed sources and a GPG detached signature[*]: > > > > > > > > > > > > https://download.savannah.nongnu.org/releases/guile-oauth/guile-oauth-1.0.0.tar.gz > > > > > > > > https://download.savannah.nongnu.org/releases/guile-oauth/guile-oauth-1.0.0.tar.gz.sig > > > > > > > > [*] To verify download both files and then run: > > > > > > > >gpg --keyserver keys.openpgp.org \ > > > > --recv-keys 7CEC5511C8D057A9EF17470C54D4CC6FFC7468F4 > > > > > > > >gpg --verify guile-oauth-1.0.0.tar.gz.sig > > > > > > > > * Changes since 1.0.0 > > > > > > > > https://github.com/aconchillo/guile-oauth/blob/master/NEWS > > > > > > > > Bugs and comments can be reported at > > > > https://github.com/aconchillo/guile-oauth/issues > > > > > > > > Happy hacking! > > > > > > > > Aleix > > > > > > -- > > > repositories: https://notabug.org/ZelphirKaltstahl > > > > > > > > > >