Search
Monday, 21st of June 2021, 16:09:41 UTC
16:15:25
jmercouris
Anyone know of something like setf if not nil ?
16:15:33
jmercouris
Maybe in Alexandria or something
16:15:56
Bike
you mean you want to do, like, (when place (setf place value))?
16:16:44
jmercouris
(when value (setf place value))
16:17:15
Bike
don't think i've seen that before, and i don't think it's in alexandria
16:18:54
jmercouris
Seems like a common one
16:19:17
jmercouris
Well, the example you gave, and the one I gave
16:19:38
Bike
i'd just write it yourself and if it turns out to be in a utility library all the better
16:22:15
_death
a long time ago I had https://github.com/death/constantia/blob/master/misc.lisp#L86
16:23:43
_death
oh, but jmercouris meant something else
16:39:58
jackdaniel
(defun wow (ding dong) (or dong ding)) (define-modify-macro wowf (value) wow)
16:41:49
jackdaniel
otoh doing it that way may invoke unnecessary protocols (because it always modifies the place) - the same problem would apply to reverse-orf I think
16:46:05
_death
a reverse-orf thing (there must be some proper word to describe the operation :) could also avoid evaluating parts of the place if the value is nil
16:46:42
jackdaniel
((orf :from-end t) ha ha ha)
16:46:55
jackdaniel
ACTION is sold, moving to scheme
16:47:17
_death
but such an operator may be too surprising (evaluation-wise) to be worth it
16:49:00
_death
maybe less surprising if the order of evaluations is reversed, like in PUSH.. (stamp value place)
22:06:30
jmercouris
anyone know of any attempts to create a 'visual' programming interface for lisp?
22:07:08
jmercouris
of course it would be a new language, but borrowing as many concepts from lisp as possible
22:07:19
jmercouris
I'm imagining for example, someone has a defun block they can drop in
22:07:26
jmercouris
and then they can nest in other operations in that defun block
22:07:33
jmercouris
and instead of parens, things would just be indentation levels
22:08:31
jmercouris
I got some pretty awful images from the search engine assuming I meant fracture
22:08:43
moon-child
sorry, this https://github.com/disconcision/fructure
22:09:41
jmercouris
yeah, this is pretty close to what I was imagining
22:10:12
jmercouris
I want a really simple interface for users to make little subroutines
22:10:15
jmercouris
without having to learn lisp
22:10:59
jmercouris
this looks really intense, I think I could tone it down and provide some of the same concepts more approachable for beginners
22:11:20
jmercouris
thanks for the link moon-child
22:43:07
zephyr
jmercouris blockly is a related thing, web based but possibly informative
22:44:02
hendursaga
jmercouris: blockly is pretty good, although you'd want to wrap it some, it's pretty old JS
22:47:18
luis
There's one such library where you can switch between text and blocks seamlessly. I forget its name
22:49:22
luis
https://github.com/droplet-editor/droplet is it
23:54:07
phantomics
Hey jmercouris, my Seed project kind of fits that bill
23:54:29
phantomics
It's been on hold awaiting a rebuild of the interface generation system
3:04:59
beach
Good morning everyone!
3:39:30
Lord_of_Life_
** NICK Lord_of_Life
Tuesday, 22nd of June 2021, 4:09:41 UTC