« first day (1 day earlier)      last day (2067 days later) » 

00:23
@DLosc Aww, OK
01:16
@Qwerp-Derp To what were you replying? (My guesses are either the name insert-end or keeping support for car and cdr.)
 
1 hour later…
02:37
@DLosc The insert-end thing
I still think append would fit better
02:50
@DLosc Should we make tinylisp an individual repo? If it gets bigger?
Cause if you do that can I be a collaborator on that repository?
 
1 hour later…
04:12
@Qwerp-Derp I'm definitely considering it. We'll see if it continues receiving attention beyond a week or two. If it gets as popular as Brain-Flak (e.g.) I agree that it should have its own repository.
@Qwerp-Derp I'm thinking about making a generalized insert function too, so there would be a connection between the names.
04:52
Hmm, what do you mean by a generalised insert function?
So do you specify at what index the element goes into?
@DLosc?
Yeah. I just couldn't decide what order to put the parameters in. I have (insert-end val ls), so it would be either (insert index val ls) or (insert val index ls) or (insert val ls index). Got a vote on which one makes the most sense? I couldn't find such a function in any existing Lisp languages in a few minutes on Google.
The English expression would be "insert val into ls at index," so maybe that's the most natural order.
05:12
insert val ls index
That would make the most sense IMO
I agree. Coding it now.
05:48
@DLosc Ummm I might need to add an chain-first function in
I want to shorten the names of chain-first -> chainf and chain-last -> chainl...
But I don't think that's a good idea
@Qwerp-Derp Go ahead and do a pull request if you want--I'll take care of the merging.
I'm messing around with Clojure and Clojurescript right now
:) Clojure is really cool
I may have to look into it. I've been toying with the idea of really learning a Lisp dialect (a bit of Common Lisp in college hasn't stuck with me much), but I've never gotten enough motivation to do it. (Just to create my own miniature Lisp dialect instead. :P)
06:12
Welp, turns out I picked about the slowest possible way to implement cons in Python. :P
06:38
Actually, I take that back. The faster ways all involve modifying a list in place, which doesn't work for tinylisp's by-value semantics. So although it's horribly slow compared to append, I guess it's the only way to do it.
Suddenly I am seized by a vision of a tinylisp implementation in C...
(no, forget it, stay on track, it doesn't have to be the fastest)
07:29
Hmm, that's true...
@DLosc Or I can make an implementation in Java
@Qwerp-Derp Sure, if you want to. You could even golf it and submit it to the original question. ;) Does Java have an efficient way of doing linked lists?
Or, hey, you could implement it in Clojure.
True that.
I'm currently finding a good IDE/editor plugin for Clojure, and I'm probably going to do Clojure stuff in Vim from now on.
Or Emacs.
07:45
You know, it just occurred to me: I have Vim available in my git bash. I could probably use it to edit files, not just to edit commit messages.

« first day (1 day earlier)      last day (2067 days later) »