Re: Looking for graph library

2022-10-12 Thread Dmitry Polyakov
Ricardo Wurmus writes: Could you provide examples of graph creation? It's not entirely obvious to me how they need to be created via graph-cons. I tried doing something like this: (define test;name (graph-cons (context; making context

http-request bearer token syntax for Twitter v2 api

2022-10-12 Thread Mortimer Cladwell
Hi, Has anyone successfully submitted a bearer token to Twitter v2 api using http-request? What syntax did you use? Without success I have tried many permutations/splellings/capitalizations of: (let* ( (uri "https://api.twitter.com/2/tweets";) (data "{\"text\":\"Hello world!\"}") (my-token (str

Re: http-request bearer token syntax for Twitter v2 api

2022-10-12 Thread Olivier Dion via General Guile related discussions
On Wed, 12 Oct 2022, Mortimer Cladwell wrote: > Hi, > Has anyone successfully submitted a bearer token to Twitter v2 api using > http-request? What syntax did you use? Without success I have tried many > permutations/splellings/capitalizations of: No but I managed with sourcehut. --8<

Re: Looking for graph library

2022-10-12 Thread zimoun
Hi Ricardo, On sam., 08 oct. 2022 at 16:07, Ricardo Wurmus wrote: > Here’s an implementation of inductive graphs: > > https://github.com/rekado/minigrad/blob/main/minigrad/graph.scm IIUC, mingrad is implementing a part of [1]. Some time ago, I have read this interesting paper from Haskell folk

Re: Looking for graph library

2022-10-12 Thread Ricardo Wurmus
Hi Dmitry, > Ricardo Wurmus writes: > > Could you provide examples of graph creation? It's not entirely obvious > to me how they need to be created via graph-cons. > > I tried doing something like this: > > (define test ;name > (graph-cons (context; mak

map-par slower than map

2022-10-12 Thread Damien Mattei
Hello, all is in the title, i test on a approximately 3 element list , i got 9s with map and 3min 30s with par-map on exactly the same piece of code!? what i change in code is in comments: {unified-minterms-set-1 <+ (map function-unify-minterms-list minterms-set)} ;;(par-map function-unify-min

Re: http-request bearer token syntax for Twitter v2 api

2022-10-12 Thread Mortimer Cladwell
Thanks Olivier. Those spellings did not work with https://api.twitter.com/2/tweets and/or Guile http-request. On Wed, Oct 12, 2022 at 7:06 AM Olivier Dion wrote: > On Wed, 12 Oct 2022, Mortimer Cladwell wrote: > > Hi, > > Has anyone successfully submitted a bearer token to Twitter v2 api using

Re: map-par slower than map

2022-10-12 Thread Maxime Devos
On 12-10-2022 19:19, Damien Mattei wrote: Hello, all is in the title, i test on a approximately 3 element list , i got 9s with map and 3min 30s with par-map on exactly the same piece of code!? > [...] > translated from Scheme+ to Scheme: (define unified-minterms-set-1 (map function-unify-m

Re: Looking for graph library

2022-10-12 Thread Dmitry Polyakov
Ricardo Wurmus writes: > Hope this helps! This help me a lot. Thank you for response >.< and for this library. May be you have intention to pack this as ice-9 module and send patch to guix? -- sanity level in trouble

Re: map-par slower than map

2022-10-12 Thread Damien Mattei
Mutex? i do not think code has situation where dead lock could happen, it is a code about minimalising logic expressions, it uses minterms , minterms set is a set of minterms :like this: example: ((1 1 0) (1 1 1)) will be unified : (1 1 x) because 0 and 1 are replaced by x the minterms-set could h

Re: map-par slower than map

2022-10-12 Thread Damien Mattei
https://github.com/damien-mattei/library-FunctProg/blob/master/guile/logiki%2B.scm#L1674 i commited the current version of code here with all files but it is huge :-/ On Wed, Oct 12, 2022 at 10:20 PM Damien Mattei wrote: > Mutex? i do not think code has situation where dead lock could happe

Re: map-par slower than map

2022-10-12 Thread Zelphir Kaltstahl
Hi! On 10/12/22 22:27, Damien Mattei wrote: https://github.com/damien-mattei/library-FunctProg/blob/master/guile/logiki%2B.scm#L1674 i commited the current version of code here with all files but it is huge :-/ On Wed, Oct 12, 2022 at 10:20 PM Damien Mattei wrote: Mutex? i do not think

Re: map-par slower than map

2022-10-12 Thread Maxime Devos
On 12-10-2022 22:20, Damien Mattei wrote: Mutex? i do not think code has situation where dead lock could happen, it is a code about minimalising logic expressions, it uses minterms , minterms set is a set of minterms :like this: I didn't mean deadlocks, I just meant a single mutex being take

Re: map-par slower than map

2022-10-12 Thread Olivier Dion via General Guile related discussions
On Wed, 12 Oct 2022, Damien Mattei wrote: > Hello, > all is in the title, i test on a approximately 3 element list , i got > 9s with map and 3min 30s with par-map on exactly the same piece of > code!? I can only speculate here. But trying with a very simple example here: --8<---c

Re: http-request bearer token syntax for Twitter v2 api

2022-10-12 Thread James Crake-Merani
On 22/10/12 06:30am, Mortimer Cladwell wrote: > Hi, > Has anyone successfully submitted a bearer token to Twitter v2 api using > http-request? What syntax did you use? Without success I have tried many > permutations/splellings/capitalizations of: > > (let* ( > (uri "https://api.twitter.com/2/t