Programming languages are there to express ideas and solve problems. I can think of more elegant ways to express ideas (functional languages for instance), but Python is an excellent ecosystem for solving problems.
Why Lisp?
51–60 of 339 posts
Re: Why Lisp?
#52I guess I'm describing some kind of custom in-memory database engine.
Anyway, I'm confused as to how the purity of Lisp functions would or would not prevent me from writing this code? Is this a use case that is bad for Lisp, or am missing something?
Re: Why Lisp?
#53The article seems like mostly about Common Lisp, but how many of the points are applicable to rest of Lisps? (Scheme, Emacs Lisp, Janet, etc)
Re: Why Lisp?
#54i cant even install this program on my system because of common lisp’s insane dependency management so count me as unconvinced
> this program What program are you talking about? The article is about Common Lisp, but perhaps you are talking about the Portacle setup mentioned in the article? Or is this just a general snipe at CL? Is it a problem to use QuickLisp [1]? Or are you talking about deeper problems. I think you could have something useful to say here, but I don't think that post conveys it. [1] https://www.quicklisp.org/beta/
Re: Why Lisp?
#55After learning Python, I wanted to take the next step and find what was better. I looked into a lot of languages reading books on Haskell and Lisp and many others. At least for my use cases (desktop scripting, numerical work... etc) I didn't find Lisp to be superior. Most of what I actually needed to do could be done simpler in Python. Python's REPL isn't near as good as CL, but it's good enough. Then the batteries i…
As a Lisp fan who sometimes codes in Scheme and Common Lisp whenever I get the chance, I agree with you. The gap has certainly narrowed in the past 20 or so years between Lisp and widely-used programming languages. In addition, the rise of statically-typed functional programming languages like OCaml and Haskell provide another alternative for those who love functional programming but want Hindley-Milner types. I stil…
I don't think Lisp, Scheme, OCaml or Haskell talks have been submitted yet actually.
https://blog.carolina.codes/p/call-for-speakers-is-now-open-...
If you decide to submit a talk, the deadline is May 25th.
Re: Why Lisp?
#56This thread may be as good as any to ask: the code I write has to deal with a huge amount of state. To summarize, my code receives millions of "change commands", which update state in memory. Data structures are hash tables, lists, etc. And some commands, once in a while, are queries like "how many of these are there now, of what does this element now point to?". I guess I'm describing some kind of custom in-memory d…
Re: Why Lisp?
#57This thread may be as good as any to ask: the code I write has to deal with a huge amount of state. To summarize, my code receives millions of "change commands", which update state in memory. Data structures are hash tables, lists, etc. And some commands, once in a while, are queries like "how many of these are there now, of what does this element now point to?". I guess I'm describing some kind of custom in-memory d…
Re: Why Lisp?
#58This thread may be as good as any to ask: the code I write has to deal with a huge amount of state. To summarize, my code receives millions of "change commands", which update state in memory. Data structures are hash tables, lists, etc. And some commands, once in a while, are queries like "how many of these are there now, of what does this element now point to?". I guess I'm describing some kind of custom in-memory d…
Re: Why Lisp?
#59After learning Python, I wanted to take the next step and find what was better. I looked into a lot of languages reading books on Haskell and Lisp and many others. At least for my use cases (desktop scripting, numerical work... etc) I didn't find Lisp to be superior. Most of what I actually needed to do could be done simpler in Python. Python's REPL isn't near as good as CL, but it's good enough. Then the batteries i…
As a Lisp fan who sometimes codes in Scheme and Common Lisp whenever I get the chance, I agree with you. The gap has certainly narrowed in the past 20 or so years between Lisp and widely-used programming languages. In addition, the rise of statically-typed functional programming languages like OCaml and Haskell provide another alternative for those who love functional programming but want Hindley-Milner types. I stil…
Re: Why Lisp?
#60This thread may be as good as any to ask: the code I write has to deal with a huge amount of state. To summarize, my code receives millions of "change commands", which update state in memory. Data structures are hash tables, lists, etc. And some commands, once in a while, are queries like "how many of these are there now, of what does this element now point to?". I guess I'm describing some kind of custom in-memory d…
For your use-case a mutable reference behind some type of synchronized accessor would probably suffice. If you want to get fancy you could design the system in such a way that any point in time could be replayed or rewound to, since you have the commands and the initial state.
Some ideas to look into:
[1] https://github.com/acid-state/acid-state
[2] https://docs.datomic.com/pro/getting-started/brief-overview....