Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38976 > unrolled thread
| Started by | Julien Arlandis <julien.arlandis@gmail.com> |
|---|---|
| First post | 2020-10-17 17:44 +0000 |
| Last post | 2020-10-18 18:31 +0000 |
| Articles | 8 — 2 participants |
Back to article view | Back to comp.lang.javascript
Npm module to build web API Julien Arlandis <julien.arlandis@gmail.com> - 2020-10-17 17:44 +0000
Re: Npm module to build web API "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-10-17 11:44 -0700
Re: Npm module to build web API Julien Arlandis <julien.arlandis@gmail.com> - 2020-10-17 21:13 +0000
Re: Npm module to build web API Julien Arlandis <julien.arlandis@gmail.com> - 2020-10-17 21:50 +0000
Re: Npm module to build web API "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-10-17 18:28 -0700
Re: Npm module to build web API Julien Arlandis <julien.arlandis@gmail.com> - 2020-10-18 11:15 +0000
Re: Npm module to build web API "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-10-18 10:23 -0700
Re: Npm module to build web API Julien Arlandis <julien.arlandis@gmail.com> - 2020-10-18 18:31 +0000
| From | Julien Arlandis <julien.arlandis@gmail.com> |
|---|---|
| Date | 2020-10-17 17:44 +0000 |
| Subject | Npm module to build web API |
| Message-ID | <7njX6frWR21gXAJ3wXYyMRfKDvQ@jntp> |
Hello, I present you a npm module to build fast API : https://www.npmjs.com/package/bebel
[toc] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2020-10-17 11:44 -0700 |
| Message-ID | <6e6445e1-8cfd-4390-baaf-a7ed7015659cn@googlegroups.com> |
| In reply to | #38976 |
On Saturday, October 17, 2020 at 12:44:33 PM UTC-5, Julien Arlandis wrote: > Hello, > > I present you a npm module to build fast API : > https://www.npmjs.com/package/bebel What does this offer that GraphQL does not? <https://graphql.org/>
[toc] | [prev] | [next] | [standalone]
| From | Julien Arlandis <julien.arlandis@gmail.com> |
|---|---|
| Date | 2020-10-17 21:13 +0000 |
| Message-ID | <WqNKULZwFhKLthS_Z9iFNOkpPqQ@jntp> |
| In reply to | #38978 |
Le 17/10/2020 à 20:44, "Michael Haufe (TNO)" a écrit : > On Saturday, October 17, 2020 at 12:44:33 PM UTC-5, Julien Arlandis wrote: >> Hello, >> >> I present you a npm module to build fast API : >> https://www.npmjs.com/package/bebel > > What does this offer that GraphQL does not? > > <https://graphql.org/> With bebel there is no predefined scheme, the design pattern is completely non-binding. The protocol is functional oriented and can be deployed for scientific computing. Bebel is used by JNTP server that distribute usenet : <http://news2.nemoweb.net/?DataID=WqNKULZwFhKLthS_Z9iFNOkpPqQ@jntp>
[toc] | [prev] | [next] | [standalone]
| From | Julien Arlandis <julien.arlandis@gmail.com> |
|---|---|
| Date | 2020-10-17 21:50 +0000 |
| Message-ID | <CGt0dtM8SYa66zxPYx7JLpibuoA@jntp> |
| In reply to | #38979 |
Le 17/10/2020 à 23:13, Julien Arlandis a écrit : > Le 17/10/2020 à 20:44, "Michael Haufe (TNO)" a écrit : >> On Saturday, October 17, 2020 at 12:44:33 PM UTC-5, Julien Arlandis wrote: >>> Hello, >>> >>> I present you a npm module to build fast API : >>> https://www.npmjs.com/package/bebel >> >> What does this offer that GraphQL does not? >> >> <https://graphql.org/> > > > With bebel there is no predefined scheme, the design pattern is completely > non-binding. The protocol is functional oriented and can be deployed for > scientific computing. Bebel is used by JNTP server that distribute usenet : > <http://news2.nemoweb.net/?DataID=WqNKULZwFhKLthS_Z9iFNOkpPqQ@jntp> For example, you can use bebel to compute : ["sum", [a, b, c, ...]] => a + b + c... ["square", a] => a^2 So you can combine the two expressions : ["square", ["sum", [3, 5, 2]]] => ["square", 10] => 100
[toc] | [prev] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2020-10-17 18:28 -0700 |
| Message-ID | <08df519a-fba2-47c4-9e75-24756ed07b45n@googlegroups.com> |
| In reply to | #38980 |
On Saturday, October 17, 2020 at 4:50:23 PM UTC-5, Julien Arlandis wrote: > For example, you can use bebel to compute : > ["sum", [a, b, c, ...]] => a + b + c... > ["square", a] => a^2 > So you can combine the two expressions : > ["square", ["sum", [3, 5, 2]]] => ["square", 10] => 100 Still feels limiting for a client. If I want an image or XML returned for example, what would that look like? For the image would I be forced to encode it in base64? Is this always an http POST/Response transaction? Can I use a url equivalent? http://localhost/sum?p=3,5,2
[toc] | [prev] | [next] | [standalone]
| From | Julien Arlandis <julien.arlandis@gmail.com> |
|---|---|
| Date | 2020-10-18 11:15 +0000 |
| Message-ID | <YRs_BUHvaPR_0phwjuNJiqo8Yuc@jntp> |
| In reply to | #38983 |
Le 18/10/2020 à 03:28, "Michael Haufe (TNO)" a écrit : > On Saturday, October 17, 2020 at 4:50:23 PM UTC-5, Julien Arlandis wrote: > >> For example, you can use bebel to compute : >> ["sum", [a, b, c, ...]] => a + b + c... >> ["square", a] => a^2 >> So you can combine the two expressions : >> ["square", ["sum", [3, 5, 2]]] => ["square", 10] => 100 > > > Still feels limiting for a client. If I want an image or XML returned for > example, > what would that look like? For the image would I be forced > to encode it in base64? > > Is this always an http POST/Response transaction? Yes you can map queries and responses. This picture upload with a bebel query : <http://news2.nemoweb.net/jntp?YRs_BUHvaPR_0phwjuNJiqo8Yuc@jntp/Data.Media:1.> This image can also be downloaded via the get method : http://news2.nemoweb.net/jntp/?YRs_BUHvaPR_0phwjuNJiqo8Yuc@jntp/Data.Media:1 So, you can choose mime-type. If you are interested, I can add an example in the module or in the doc. > Can I use a url equivalent? > > http://localhost/sum?p=3,5,2 Yes you can add a route if necessary.
[toc] | [prev] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2020-10-18 10:23 -0700 |
| Message-ID | <4c84ad22-5929-453b-bfee-fd44a49f4452n@googlegroups.com> |
| In reply to | #38983 |
On Sunday, October 18, 2020 at 6:13:32 AM UTC-5, Julien Arlandis wrote: > Le 18/10/2020 à 03:28, "Michael Haufe (TNO)" a écrit : > > On Saturday, October 17, 2020 at 4:50:23 PM UTC-5, Julien Arlandis wrote: > > > >> For example, you can use bebel to compute : > >> ["sum", [a, b, c, ...]] => a + b + c... > >> ["square", a] => a^2 > >> So you can combine the two expressions : > >> ["square", ["sum", [3, 5, 2]]] => ["square", 10] => 100 > > > > > > Still feels limiting for a client. If I want an image or XML returned for > > example, > > what would that look like? For the image would I be forced > > to encode it in base64? > > > > Is this always an http POST/Response transaction? > Yes you can map queries and responses. > This picture upload with a bebel query : > <http://news2.nemoweb.net/jntp?5T_UY6uMEsf08KVAhYswcYu8XEc@jntp/Data.Media:1.> 404 error > This image can also be downloaded via the get method : > http://news2.nemoweb.net/jntp/?5T_UY6uMEsf08KVAhYswcYu8XEc@jntp@jntp/Data.Media:1 404 error > So, you can choose mime-type. > If you are interested, I can add an example in the module or in the doc. > > Can I use a url equivalent? > > > > http://localhost/sum?p=3,5,2 > Yes you can add a route if necessary. Right. Since I can already define routes, I'm having trouble seeing the value add of this library. More examples could only help.
[toc] | [prev] | [next] | [standalone]
| From | Julien Arlandis <julien.arlandis@gmail.com> |
|---|---|
| Date | 2020-10-18 18:31 +0000 |
| Message-ID | <2jf2P1Nz7NapZ0D-YUCKgmmRsH8@jntp> |
| In reply to | #38990 |
Le 18/10/2020 à 19:23, "Michael Haufe (TNO)" a écrit : > On Sunday, October 18, 2020 at 6:13:32 AM UTC-5, Julien Arlandis wrote: >> Le 18/10/2020 à 03:28, "Michael Haufe (TNO)" a écrit : >> > On Saturday, October 17, 2020 at 4:50:23 PM UTC-5, Julien Arlandis wrote: >> > >> >> For example, you can use bebel to compute : >> >> ["sum", [a, b, c, ...]] => a + b + c... >> >> ["square", a] => a^2 >> >> So you can combine the two expressions : >> >> ["square", ["sum", [3, 5, 2]]] => ["square", 10] => 100 >> > >> > >> > Still feels limiting for a client. If I want an image or XML returned for >> > example, >> > what would that look like? For the image would I be forced >> > to encode it in base64? >> > >> > Is this always an http POST/Response transaction? >> Yes you can map queries and responses. >> This picture upload with a bebel query : >> <http://news2.nemoweb.net/jntp?5T_UY6uMEsf08KVAhYswcYu8XEc@jntp/Data.Media:1.> > > 404 error > >> This image can also be downloaded via the get method : >> >> http://news2.nemoweb.net/jntp/?5T_UY6uMEsf08KVAhYswcYu8XEc@jntp@jntp/Data.Media:1 Sorry, my cancel did not propagate well : http://news2.nemoweb.net/jntp/?5T_UY6uMEsf08KVAhYswcYu8XEc@jntp/Data.Media:1 > 404 error > >> So, you can choose mime-type. >> If you are interested, I can add an example in the module or in the doc. >> > Can I use a url equivalent? >> > >> > http://localhost/sum?p=3,5,2 >> Yes you can add a route if necessary. > > Right. Since I can already define routes, I'm having trouble seeing the value > add of this library. > > More examples could only help. Ok, I will add more.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web