unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* miniAdapton
@ 2017-04-29 10:40 Catonano
  2017-04-30  9:55 ` miniAdapton Amirouche
  0 siblings, 1 reply; 3+ messages in thread
From: Catonano @ 2017-04-29 10:40 UTC (permalink / raw)
  To: guile-user

I'd like to run miniAdapton in Guile

here's the repo
https://github.com/fisherdj/miniAdapton

Now: how do I get it running in Guile ?

What are those .sld files ?

What about thos "define-library" and "library" forms ? Are those a r7rs
thing ?

For reference:

here's an amazing talk given by the awesome William Byrd
https://www.youtube.com/watch?v=bmpu1N2yf-k&feature=youtu.be

here's an article
http://scheme2016.snow-fort.org/static/schemeworkshop2016-miniadapton.pdf

Thanks in advance


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: miniAdapton
  2017-04-29 10:40 miniAdapton Catonano
@ 2017-04-30  9:55 ` Amirouche
  2017-05-01  9:07   ` miniAdapton Catonano
  0 siblings, 1 reply; 3+ messages in thread
From: Amirouche @ 2017-04-30  9:55 UTC (permalink / raw)
  To: guile-user

Héllo!

Le 29/04/2017 à 12:40, Catonano a écrit :
> I'd like to run miniAdapton in Guile
>
> here's the repo
> https://github.com/fisherdj/miniAdapton
>
> Now: how do I get it running in Guile ?
>
> What are those .sld files ?
>
> What about thos "define-library" and "library" forms ? Are those a r7rs
> thing ?
>
> For reference:
>
> here's an amazing talk given by the awesome William Byrd
> https://www.youtube.com/watch?v=bmpu1N2yf-k&feature=youtu.be
>
> here's an article
> http://scheme2016.snow-fort.org/static/schemeworkshop2016-miniadapton.pdf
>
> Thanks in advance

Well, this requires a more time that I want to give to it to understand
it correctly.

FYI the following works:

~/src/guile/miniAdapton$ guile -L .
GNU Guile 2.2.0
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (use-modules (miniadapton))
scheme@(guile-user)> (define-avar a 1)
scheme@(guile-user)> (avar-get a)
$1 = 1
scheme@(guile-user)> (define-avar b 2)
scheme@(guile-user)> (define-avar c (+ (avar-get a) (avar-get b)))
scheme@(guile-user)> (avar-get c)
$2 = 3
scheme@(guile-user)> (avar-set! a 10)
scheme@(guile-user)> (avar-get c)
$3 = 12

In theory this kind of framework could be put to good use, to implement
the equivalent of PostgreSQL Materialized view [1] that are refreshed
automatically.

How do you want to use it?

[1] 
https://www.postgresql.org/docs/current/static/sql-creatematerializedview.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: miniAdapton
  2017-04-30  9:55 ` miniAdapton Amirouche
@ 2017-05-01  9:07   ` Catonano
  0 siblings, 0 replies; 3+ messages in thread
From: Catonano @ 2017-05-01  9:07 UTC (permalink / raw)
  To: Amirouche; +Cc: guile-user

2017-04-30 11:55 GMT+02:00 Amirouche <amirouche@hypermove.net>:

> Héllo!
>
>
> Le 29/04/2017 à 12:40, Catonano a écrit :
>
>> I'd like to run miniAdapton in Guile
>>
>> here's the repo
>> https://github.com/fisherdj/miniAdapton
>>
>> Now: how do I get it running in Guile ?
>>
>> What are those .sld files ?
>>
>> What about thos "define-library" and "library" forms ? Are those a r7rs
>> thing ?
>>
>> For reference:
>>
>> here's an amazing talk given by the awesome William Byrd
>> https://www.youtube.com/watch?v=bmpu1N2yf-k&feature=youtu.be
>>
>> here's an article
>> http://scheme2016.snow-fort.org/static/schemeworkshop2016-miniadapton.pdf
>>
>> Thanks in advance
>>
>
> Well, this requires a more time that I want to give to it to understand
> it correctly.
>

It seems to me that you already understood a lot !

>
> FYI the following works:
>
> ~/src/guile/miniAdapton$ guile -L .
> GNU Guile 2.2.0
> Copyright (C) 1995-2017 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> (use-modules (miniadapton))
> scheme@(guile-user)> (define-avar a 1)
> scheme@(guile-user)> (avar-get a)
> $1 = 1
> scheme@(guile-user)> (define-avar b 2)
> scheme@(guile-user)> (define-avar c (+ (avar-get a) (avar-get b)))
> scheme@(guile-user)> (avar-get c)
> $2 = 3
> scheme@(guile-user)> (avar-set! a 10)
> scheme@(guile-user)> (avar-get c)
> $3 = 12
>

Wonderful. So those "deine-library" and "library" forms are a vanilla
feature of Guile !


> In theory this kind of framework could be put to good use, to implement
> the equivalent of PostgreSQL Materialized view [1] that are refreshed
> automatically.
>
> How do you want to use it?
>

I want to keep a database AND a datastructure in ram in synch. I don't want
to read a view, for that.

I used to read the db when I was using your grf3, but now I'd lie to
minimize the traffic to/from the db.



>
> [1] https://www.postgresql.org/docs/current/static/sql-createmat
> erializedview.html
>
>
Thanks for your help !


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-01  9:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-29 10:40 miniAdapton Catonano
2017-04-30  9:55 ` miniAdapton Amirouche
2017-05-01  9:07   ` miniAdapton Catonano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).