!iNkFOAFNSlAAUKgcCT:matrix.org

lisp

506 Members
All things lisp: cl, scheme, racket, clojure etc67 Servers

Load older messages


SenderMessageTime
10 May 2022
@ralfwissing:matrix.orgralfwissing left the room.17:51:48
@pvtlai:matrix.orgpvtlai changed their profile picture.18:50:47
11 May 2022
@tacoda:matrix.orgtacoda joined the room.03:35:35
@moltylollipop:matrix.orgmoltylollipophey, I'm trying to give SICP a go, and currently am struggling understanding what's the issue with this code:14:42:34
@moltylollipop:matrix.orgmoltylollipop
#lang sicp

(define (>= t v) (or (t > v) (t = v)))
(define (sum-squared-pair a b)
	(+ (* a a) (* b b))
)
(define (sum-squared-largest-pair x y z)
	(cond 
		((and (>= x y) (>= y z)) (sum-squared-pair x y))
		((and (>= x y) (>= z y)) (sum-squared-pair x z))
		((< x z) (sum-squared-pair y z))
	)
)

(sum-squared-largest-pair 4 5 3)
14:42:43
@moltylollipop:matrix.orgmoltylollipop

I'm using Racket's SICP collection, and the interpreter tells me:

application: not a procedure;
 expected a procedure that can be applied to arguments
  given: 5
  context...:
   /home/splop/code/sicp/1-3.rkt:7:0: sum-squared-largest-pair
   body of "/home/splop/code/sicp/1-3.rkt"

14:43:14
@moltylollipop:matrix.orgmoltylollipopI don't understand why that is not a procedure14:43:38
@drown_notably:matrix.orgdrown_notably
In reply to @moltylollipop:matrix.org
I don't understand why that is not a procedure
(t > v) (t = v) You forgot it is function/procedure first here :)
14:47:53
@moltylollipop:matrix.orgmoltylollipop
In reply to @drown_notably:matrix.org
(t > v) (t = v) You forgot it is function/procedure first here :)
ahh, thank you 😅
14:51:39
12 May 2022
@leibniz:matrix.organtikythera joined the room.13:58:11
@leibniz:matrix.organtikythera0 experience in LISPs. I want to build a webapp that essentially is submisison of a form which contains a geographical point and some notes and pictures and presenting it on a slippy map. Is Clojure and ClojureScript a good solution for it? Or am I better of with Django? (separate backend and frontend) 14:00:00
@leibniz:matrix.organtikythera * 0 experience in LISPs. I want to build a webapp that essentially is submisison of a form which contains a geographical point and some notes and pictures and presenting it on a slippy map. (separate backend and frontend) Is Clojure and ClojureScript a good solution for it? Or am I better of with Django? 14:00:18
@leibniz:matrix.organtikythera * 0 experience in LISPs. I want to build a webapp that essentially is submisison of a form which contains a geographical point and some notes and pictures and presenting it on a slippy map. (separate backend and frontend). Both anonymous and account-based. Is Clojure and ClojureScript a good solution for it? Or am I better of with Django? 14:01:32
@carson.couillard:matrix.orgCarsaloma changed their display name from Allan to Carsaloma.14:42:39
@tho1efx:matrix.org@tho1efx:matrix.orgDo you have any more requirements? Maybe some other software you've already decided on?14:45:04
@leibniz:matrix.organtikytheraYes, the webapp should be able to get coordinates of the device via GPS or directly upload photos from camera (so permissions) 15:48:56
@leibniz:matrix.organtikythera * Yes, the webapp should be able to get coordinates of the device via GPS or directly upload photos from camera (so permissions) @tho1efx:matrix.org 15:50:53
@lamdba:halogen.city@lamdba:halogen.city joined the room.18:45:03
13 May 2022
@james:james-clarke.ynh.frjames left the room.19:52:27
14 May 2022
@getz:envs.netgetz joined the room.10:24:09
@david:pflug.emailDavid
In reply to @leibniz:matrix.org
Yes, the webapp should be able to get coordinates of the device via GPS or directly upload photos from camera (so permissions) @tho1efx:matrix.org

The map is going to be an external dependency any way you go. I've had good luck with http://leafletjs.com/.

GPS location will be a navigator.geolocation.getCurrentPosition(some_callback) call.

Photo upload would be handled like so: https://stackoverflow.com/questions/17241707/using-form-input-to-access-camera-and-immediately-upload-photos-using-web-app

You should be able to do all of this in any of the web frameworks fairly easily. Backend design should be simple enough to not matter what you pick.

Auth is probably the part that would differentiate. Look for how each framework handles that (or doesn't)? https://awesome-cl.com/#web-frameworks has a list for Common Lisp.

13:21:29
15 May 2022
@carlo-s:matrix.orgcarlo-s joined the room.10:02:03
16 May 2022
@an_origamian:matrix.organ_origamian changed their profile picture.19:50:25
17 May 2022
@leibniz:matrix.organtikytheraDavid, thanks!18:11:15
@californiatokens:matrix.orgcaliforniatokens joined the room.23:19:49
18 May 2022
@getz:envs.netgetz changed their profile picture.07:15:08
@californiatokens:matrix.orgcaliforniatokens left the room.10:58:56
@billykin:matrix.orgbillykin joined the room.12:40:23
@marek:mrms.czmarek left the room.15:19:52
@billykin:matrix.orgbillykin left the room.16:39:02

There are no newer messages yet.


Back to Room List