Post 333153 by T045T@scl.zmb.cm
(DIR) More posts by T045T@scl.zmb.cm
(DIR) Post #321353 by neauoire@sunbeam.city
2018-10-01T23:41:40Z
0 likes, 0 repeats
Removed all custom templates from XXIVV and implemented a LISP instead.https://github.com/XXIIVV/Oscean/blob/master/scripts/database/lexicon.ndtl#L25
(DIR) Post #321356 by neauoire@sunbeam.city
2018-10-01T23:42:12Z
0 likes, 0 repeats
cc @joshavanier you might appreciate this.
(DIR) Post #321375 by dualhammers@sunbeam.city
2018-10-01T23:44:35Z
0 likes, 0 repeats
@neauoire Is this LISP the language?
(DIR) Post #321898 by neauoire@sunbeam.city
2018-10-02T00:49:26Z
0 likes, 0 repeats
@dualhammers Lisp is like the middle-ground between a programming language and a hypertext format.
(DIR) Post #322371 by dualhammers@sunbeam.city
2018-10-02T01:36:12Z
0 likes, 0 repeats
@neauoire neat - I did not know you could do that
(DIR) Post #322388 by neauoire@sunbeam.city
2018-10-02T01:37:05Z
0 likes, 0 repeats
@dualhammers It's pretty amazing, I used to have all these tiny js files for singular templates, turns out, a tiny parser for a minimalist language allows for more flexibility and leaner code.
(DIR) Post #322403 by dualhammers@sunbeam.city
2018-10-02T01:37:45Z
0 likes, 0 repeats
@neauoire Ah! yes, I can see that. Automation is always better
(DIR) Post #322490 by joshavanier@sunbeam.city
2018-10-02T01:44:40Z
0 likes, 0 repeats
@neauoire Time to catch up hehe
(DIR) Post #322521 by eel@sunbeam.city
2018-10-02T01:48:08Z
0 likes, 0 repeats
@neauoire damn this is so sick!! I love it 🤘 :teal_heart:
(DIR) Post #322833 by neauoire@sunbeam.city
2018-10-02T02:21:06Z
0 likes, 0 repeats
@eel I KNOW RIGHT, totally should have done that a while back.
(DIR) Post #322837 by eel@sunbeam.city
2018-10-02T02:21:36Z
0 likes, 0 repeats
@neauoire now's the next best moment to have done it ^^
(DIR) Post #324607 by tbd@mastodon.cloud
2018-10-02T05:54:51Z
0 likes, 1 repeats
@neauoire @dualhammers found here the reason for Heol existence 👍
(DIR) Post #325255 by neauoire@sunbeam.city
2018-10-02T07:51:09Z
0 likes, 0 repeats
@tbd @dualhammers it’s only the beginning :)
(DIR) Post #325697 by T045T@scl.zmb.cm
2018-10-02T09:02:38Z
0 likes, 0 repeats
@neauoire Looks neat!I'm a bit confused by (this "children") (the string is throwing me off) - is that just a JS attribute lookup?
(DIR) Post #326816 by xvw@sunbeam.city
2018-10-02T10:47:57Z
0 likes, 0 repeats
@neauoire @dualhammers When "we" talk about the format, and not the language, we use the term "S-expression". It is a kind of Lisp without the "interpretation/compilation" phase. It is super cool to see your web-playground's evolution. (I'm a kind of groupie) ;)
(DIR) Post #332253 by neauoire@sunbeam.city
2018-10-02T18:22:32Z
0 likes, 0 repeats
@T045T “this” is that term in the lexicon which is being rendered, and children is it’s “children” attribute. Any idea how to make this clearer?
(DIR) Post #332288 by neauoire@sunbeam.city
2018-10-02T18:24:44Z
0 likes, 0 repeats
@xvw @dualhammers I’ll use S-expression in the future! It’s just long. I never took computer sciences classes so I’m basically just winging it. ;)
(DIR) Post #332530 by neauoire@sunbeam.city
2018-10-02T18:39:28Z
0 likes, 0 repeats
@xvw @dualhammers so lisp and scheme are both S-exp languages?
(DIR) Post #332801 by T045T@scl.zmb.cm
2018-10-02T18:58:33Z
0 likes, 0 repeats
@neauoire it's pretty clear as is.at first glance I thought it might be more idiomatic (if all the objects follow a common structure) to have accessor functions, i.e. (children (this)) or (entry-children (this)). this is apparently how common lisp does it.but that would add a bunch of boilerplate code without much benefit.
(DIR) Post #332820 by neauoire@sunbeam.city
2018-10-02T18:59:45Z
0 likes, 0 repeats
@T045T Oh! yes yes that's better. I totally got it backward. I will make `(attribute_to_lookup (target object))`.Thanks!
(DIR) Post #332841 by neauoire@sunbeam.city
2018-10-02T19:00:44Z
0 likes, 0 repeats
@T045T Although (this "attribute") is more versatile, I don't think I will be using (children X) onto anything other than terms..
(DIR) Post #332916 by T045T@scl.zmb.cm
2018-10-02T19:05:04Z
0 likes, 0 repeats
@neauoire another idea: (this :children) - I think I've seen that in Clojure, so at least it feels appropriately lispy to me 😋
(DIR) Post #332944 by T045T@scl.zmb.cm
2018-10-02T19:06:32Z
0 likes, 0 repeats
@neauoire reference: https://en.wikibooks.org/wiki/Common_Lisp/Reference/defstruct
(DIR) Post #332973 by T045T@scl.zmb.cm
2018-10-02T19:09:17Z
0 likes, 0 repeats
@neauoire keywords is the term I'm looking for. makes it clearer they're key values, and since you're writing your own parser, it shouldn't be too big a change to support them in place of strings, I hope :)
(DIR) Post #333153 by T045T@scl.zmb.cm
2018-10-02T19:21:17Z
0 likes, 0 repeats
@neauoire last one: source for (entry :children) :https://clojuredocs.org/clojure.core/get#example-542692d3c026201cdc326fbfinterestingly, (:children entry) works too!but yeah, seeing as your this object is probably a JSON dict, it seems right to imitate the map interface :)
(DIR) Post #333298 by TeddyDD@octodon.social
2018-10-02T19:30:22Z
0 likes, 0 repeats
@neauoire @xvw @dualhammers Scheme is Lisp dialect so pretty much yes.
(DIR) Post #333620 by neauoire@sunbeam.city
2018-10-02T19:45:53Z
0 likes, 0 repeats
@T045T No that's a piece of cake, I'll do that instead, it's more elegant and it'll allow for more flexibility.
(DIR) Post #335092 by neauoire@sunbeam.city
2018-10-02T21:10:49Z
0 likes, 0 repeats
@T045T Implemented! And when used on its own, it targets the current scope. It's so elegant, thanks for the head's up!https://github.com/XXIIVV/Oscean/blob/master/scripts/database/lexicon.ndtl#L25
(DIR) Post #344931 by xvw@sunbeam.city
2018-10-03T12:27:51Z
0 likes, 0 repeats
@neauoire @dualhammers Yep. In fact, "lisp" is no longer a language but a family of languages, including Scheme, Racket, Common Lisp, Clojure etc. But I think that using "lisp"/"s-expr" as a Markup is a very nice idea.