Re: [Chicken-users] Any decent web development framework

2015-12-28 Thread Kristian Lein-Mathisen
The spiffy  egg will let you make
what you're looking for, but it doesn't provide the web-DSL that Sinatra
has. You could make your own DSL, though, depending on what you're trying
to do. I put together a small spiffy wrapper that works like this:

https://github.com/Adellica/reser/blob/master/example.scm

It's not in the coops, so chicken-install reser won't work (you'll have to
do clone and cd reser && chicken-install)
K.

On Mon, Dec 28, 2015 at 9:11 AM, 机械唯物主义 : linjunhalida <
linjunhal...@gmail.com> wrote:

> Looks like artanis is for guile and it needs to be compiled, not for
> Chicken.
> Is there any way to install it in Chicken?
>
> 2015-12-28 0:47 GMT+08:00 Dan Leslie :
> >
> > If you are desiring a monolithic web stack of the Rails sort, then what
> > you probably are looking for is GNU Artanis:
> >
> > http://web-artanis.com/index.html
> >
> > -Dan
> >
> > 机械唯物主义 : linjunhalida  writes:
> >
> >> Hi scheme users,
> >>
> >> I'm a rails programmer, and knows scheme long time ago but don't have
> >> chance to write scheme code in production level. I want to use scheme
> >> for website development but it turns out there is no decent framework
> >> for web development in chicken.
> >>
> >> Is there any recommendations? awful is not very useful.
> >> Any library same as Rails or Sinatra?
> >>
> >> Sinatra writes like this:
> >>
> >> (get "/" (lambda (request)  "hello")
> >> (get "/from/:id" (lambda (request) (sprintf "hello ~A" (request 'id
> >> (get "/page/:id" (lambda (request)
> >>   (let ((data ($query (from pages) (where (= id (request 'id))
> >> (render "templates/page" ('data data
> >>
> >> Thanks.
> >
>
>
>
> --
>
> Coder, Gamer, Reader.
>
> ___
> Chicken-users mailing list
> Chicken-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/chicken-users
>
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Any decent web development framework

2015-12-28 Thread 机械唯物主义 : linjunhalida
Looks like artanis is for guile and it needs to be compiled, not for Chicken.
Is there any way to install it in Chicken?

2015-12-28 0:47 GMT+08:00 Dan Leslie :
>
> If you are desiring a monolithic web stack of the Rails sort, then what
> you probably are looking for is GNU Artanis:
>
> http://web-artanis.com/index.html
>
> -Dan
>
> 机械唯物主义 : linjunhalida  writes:
>
>> Hi scheme users,
>>
>> I'm a rails programmer, and knows scheme long time ago but don't have
>> chance to write scheme code in production level. I want to use scheme
>> for website development but it turns out there is no decent framework
>> for web development in chicken.
>>
>> Is there any recommendations? awful is not very useful.
>> Any library same as Rails or Sinatra?
>>
>> Sinatra writes like this:
>>
>> (get "/" (lambda (request)  "hello")
>> (get "/from/:id" (lambda (request) (sprintf "hello ~A" (request 'id
>> (get "/page/:id" (lambda (request)
>>   (let ((data ($query (from pages) (where (= id (request 'id))
>> (render "templates/page" ('data data
>>
>> Thanks.
>



-- 

Coder, Gamer, Reader.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Any decent web development framework

2015-12-28 Thread Jörg F . Wittenberger
There are many, each having it's own strength.  It really depends on
what you are looking for.

I'm using ball.askemos.org .  (Actually much of it I wrote.)

Now this was originally done in rscheme about 15yrs ago.  It's not
monolithic, but consists of communicating actors/agents (which may be
owned/controlled by different individuals, no central admin there).  In
addition to Scheme you may use XSLT with mixed/embedded with Scheme and
SQL.  Each agent has it's very own sqlite database.

But actually it never was designed to be a Web dev framework.  It was
meant to be a framework for "smart contracts".  Thus those agent, their
database (including sqlite3) etc. are stored in a Merkle tree and may be
replicated with byzantine fault tolerance in a network.  Each node
acting as registry and escrow, executing (Scheme) script and checking
the work of other nodes.

Much faster and older than Ethereum and ripple.  But done too early.
Completely unknown.

Am 27.12.2015 um 16:56 schrieb 机械唯物主义 : linjunhalida:
> Hi scheme users,
> 
> I'm a rails programmer, and knows scheme long time ago but don't have
> chance to write scheme code in production level. I want to use scheme
> for website development but it turns out there is no decent framework
> for web development in chicken.
> 
> Is there any recommendations? awful is not very useful.
> Any library same as Rails or Sinatra?
> 
> Sinatra writes like this:
> 
> (get "/" (lambda (request)  "hello")
> (get "/from/:id" (lambda (request) (sprintf "hello ~A" (request 'id
> (get "/page/:id" (lambda (request)
>   (let ((data ($query (from pages) (where (= id (request 'id))
> (render "templates/page" ('data data
> 
> Thanks.
> 
> 


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Any decent web development framework

2015-12-28 Thread Evan Hanson
On 2015-12-27 23:56, 机械唯物主义 : linjunhalida wrote:
> (get "/" (lambda (request)  "hello")
> (get "/from/:id" (lambda (request) (sprintf "hello ~A" (request 'id
> (get "/page/:id" (lambda (request)
>   (let ((data ($query (from pages) (where (= id (request 'id))
> (render "templates/page" ('data data

Awful is somewhat similar to Sinatra, and basically does what you're
describing, so I'd suggest having another look at it. It's worked for me
in the past, anyway.

Or, as others have mentioned, you can use Spiffy directly, hand-roll a
`render` method, and maybe use some helper eggs for things like routing:

http://api.call-cc.org/doc/spiffy-request-vars
http://api.call-cc.org/doc/spiffy-uri-match

Cheers,

Evan

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Any decent web development framework

2015-12-27 Thread Dan Leslie

If you are desiring a monolithic web stack of the Rails sort, then what
you probably are looking for is GNU Artanis:

http://web-artanis.com/index.html

-Dan

机械唯物主义 : linjunhalida  writes:

> Hi scheme users,
>
> I'm a rails programmer, and knows scheme long time ago but don't have
> chance to write scheme code in production level. I want to use scheme
> for website development but it turns out there is no decent framework
> for web development in chicken.
>
> Is there any recommendations? awful is not very useful.
> Any library same as Rails or Sinatra?
>
> Sinatra writes like this:
>
> (get "/" (lambda (request)  "hello")
> (get "/from/:id" (lambda (request) (sprintf "hello ~A" (request 'id
> (get "/page/:id" (lambda (request)
>   (let ((data ($query (from pages) (where (= id (request 'id))
> (render "templates/page" ('data data
>
> Thanks.



signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Any decent web development framework

2015-12-27 Thread 机械唯物主义 : linjunhalida
Hi scheme users,

I'm a rails programmer, and knows scheme long time ago but don't have
chance to write scheme code in production level. I want to use scheme
for website development but it turns out there is no decent framework
for web development in chicken.

Is there any recommendations? awful is not very useful.
Any library same as Rails or Sinatra?

Sinatra writes like this:

(get "/" (lambda (request)  "hello")
(get "/from/:id" (lambda (request) (sprintf "hello ~A" (request 'id
(get "/page/:id" (lambda (request)
  (let ((data ($query (from pages) (where (= id (request 'id))
(render "templates/page" ('data data

Thanks.


-- 

Coder, Gamer, Reader.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users