I really like the power and flexibility of Lisps, but I am so much more productive with good(!) statical typesystems. Looking at both typed racket and now sugar, it doesn't look really good to me. I think I would rather decide to go straight for Haskell/Scala/... or Lisp/Clojure. Maybe it's not really possible to combine both in a good way _yet_, or maybe it's not possible in general. I hope for the former.
You should check out Carp[1]. The language is still young but it might scratch that itch. [1] https://github.com/carp-lang/Carp
Sugar – a typed lispy language targeting webasm/wat
21–28 of 28 posts
Re: Sugar – a typed lispy language targeting webasm/wat
#22Earlier quoted context omitted.
If you already know how to program, I'd recommend to just install SBCL and start a project with https://lispcookbook.github.io/cl-cookbook/ as a companion. Forget about the perfect editor setup, idiomatic code and all that fuzz about becoming enlightened. (Common) Lisp is first and foremost a productive, pragmatic language to get things done, so just start hacking.
I am particularly looking to learn a LISP style language. Scheme and Racket caught my interest, given its concise, expressive syntax. Is it advisable to start with Common Lisp first, or go with Scheme/Racket? Thanks for the tip btw.
Scheme is opinionated and wants you to program in a certain way (hence TCO being part of the standard), it's also more static and doesn't want to take over the whole machine like Common Lisp and Smalltalk want.
I started with Scheme but I am no longer my idealistic self so I am partial to Common Lisp since I use it for work and don't mind coding in ugly kitchen sink languages as long as they are fit for production use. Not that Scheme lacks amazing implementations such as Chez, Gambit or Chicken (my favourite) but I would have a harder time building something non trivial in those.
As a counter argument you have https://fare.livejournal.com/188429.html from a seasoned Lisper so YMMV.
Re: Sugar – a typed lispy language targeting webasm/wat
#23Re: Sugar – a typed lispy language targeting webasm/wat
#24When I read about a new typed Lisp I always hope to see a Lisp with Haskell-like type annotations. Is this easily feasible? That would be real sugar .
Re: Sugar – a typed lispy language targeting webasm/wat
#25Will you say it is ok for a complete new person to lisp to learn sugar? Example is someone who has never learnt lisp in life? Or will you recommend learning sugar after learning some other lisp?
Sugar is just a toy. Don't learn it. Maybe you can learn something about common lisp from reading the sugar compiler source code.
I agree with TurboHaskal. I too, learned Scheme first and liked it cos it was simpler/purer etc. than Common Lisp.
When I finally learned Common Lisp, my only regret was that I hadn't learned it earlier.
Common Lisp is not perfect, but it has a single standard. Very important. It's very mature and battle tested.
The people who you'll meet in the Common Lisp community are very smart and capable and you will learn a lot from them. I did.
Learning Scheme won't hurt but I recommend Common Lisp. Great, free compilers, lots of libraries for everything and a great community.
But please, do not learn sugar :)
Re: Sugar – a typed lispy language targeting webasm/wat
#26Will you say it is ok for a complete new person to lisp to learn sugar? Example is someone who has never learnt lisp in life? Or will you recommend learning sugar after learning some other lisp?
"Between Land of Lisp, David Touretzky's Common Lisp: A Gentle Introduction to Symbolic Computation (really great book for people new to programming, available for free) and The Little LISPer (3rd edition, editions four and up use Scheme) you have three really great resources to get started."
https://carcaddar.blogspot.com/2011/10/common-lisp-is-best-l...
And here's a link to Shapiro's COMMON LISP: An Interactive Approach:
Re: Sugar – a typed lispy language targeting webasm/wat
#27Will you say it is ok for a complete new person to lisp to learn sugar? Example is someone who has never learnt lisp in life? Or will you recommend learning sugar after learning some other lisp?
Oh please do _not_ do that :) Sugar is just a toy. Don't learn it. Maybe you can learn something about common lisp from reading the sugar compiler source code. I agree with TurboHaskal. I too, learned Scheme first and liked it cos it was simpler/purer etc. than Common Lisp. When I finally learned Common Lisp, my only regret was that I hadn't learned it earlier. Common Lisp is not perfect, but it has a single standard…
Re: Sugar – a typed lispy language targeting webasm/wat
#28Earlier quoted context omitted.
I am particularly looking to learn a LISP style language. Scheme and Racket caught my interest, given its concise, expressive syntax. Is it advisable to start with Common Lisp first, or go with Scheme/Racket? Thanks for the tip btw.
They are really different languages with similar syntax. Scheme is opinionated and wants you to program in a certain way (hence TCO being part of the standard), it's also more static and doesn't want to take over the whole machine like Common Lisp and Smalltalk want. I started with Scheme but I am no longer my idealistic self so I am partial to Common Lisp since I use it for work and don't mind coding in ugly kitchen…