10 May 2022 |
| ralfwissing left the room. | 17:51:48 |
| pvtlai changed their profile picture. | 18:50:47 |
11 May 2022 |
| tacoda joined the room. | 03:35:35 |
moltylollipop | hey, I'm trying to give SICP a go, and currently am struggling understanding what's the issue with this code: | 14:42:34 |
moltylollipop | #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 | 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 | I don't understand why that is not a procedure | 14:43:38 |
drown_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 | 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 |
| antikythera joined the room. | 13:58:11 |
antikythera | 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.
Is Clojure and ClojureScript a good solution for it? Or am I better of with Django? (separate backend and frontend) | 14:00:00 |
antikythera | * 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 |
antikythera | * 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 |
| Carsaloma changed their display name from Allan to Carsaloma. | 14:42:39 |
@tho1efx:matrix.org | Do you have any more requirements? Maybe some other software you've already decided on? | 14:45:04 |
antikythera | Yes, the webapp should be able to get coordinates of the device via GPS or directly upload photos from camera (so permissions) | 15:48:56 |
antikythera | * 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 joined the room. | 18:45:03 |
13 May 2022 |
| james left the room. | 19:52:27 |
14 May 2022 |
| getz joined the room. | 10:24:09 |
David | 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 joined the room. | 10:02:03 |
16 May 2022 |
| an_origamian changed their profile picture. | 19:50:25 |
17 May 2022 |
antikythera | David, thanks! | 18:11:15 |
| californiatokens joined the room. | 23:19:49 |
18 May 2022 |
| getz changed their profile picture. | 07:15:08 |
| californiatokens left the room. | 10:58:56 |
| billykin joined the room. | 12:40:23 |
| marek left the room. | 15:19:52 |
| billykin left the room. | 16:39:02 |