From 4b12cfeb62a0f0dc972b46aed296e25f3d8b4fb8 Mon Sep 17 00:00:00 2001 From: vindarel Date: Mon, 22 Apr 2024 14:24:53 +0200 Subject: [PATCH] README: script example with HTTP, JSON, arrow macro, fast startup time --- docs/README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index bef2587..19c5f64 100644 --- a/docs/README.md +++ b/docs/README.md @@ -12,7 +12,25 @@ It comes in 3 forms: Questions, doubts? See the [FAQ](FAQ.md). -Status: it's a work in progress. I use it for clients' projects. +Status: it's a work in progress. I deployed it for client projects. + +```lisp +#!/usr/bin/env ciel + +(-> "https://fakestoreapi.com/products?limit=5" + http:get + json:read-json + (elt 0) + (access "title")) +``` + +```bash +$ chmodx +x getproduct.lisp +$ time ./getproduct.lisp +"Fjallraven - Foldsack No…ckpack, Fits 15 Laptops" +./getproduct.lisp 0.10s user 0.02s system 24% cpu 0.466 total +``` + ## Rationale