HackerTrans
TopNewTrendsCommentsPastAskShowJobs

flavio81

no profile record

comments

flavio81
·hace 7 meses·discuss
>Coalton strives to implement Haskell or ML-adjacent semantics (in the type system, for example) with Lisp syntax. "With" here meaning that it is both implemented in and written with Lisp syntax.

Not exactly. Coalton brings ML-style strong typing to Common Lisp. But Coalton code is also Lisp code.

The backend, thus, is Common Lisp, and it is available at all times, thus leveraging all its power.
flavio81
·hace 7 años·discuss
>Saying Go has it's head up it's ass is extremely disrespectful to the people that created it and are maintaining it. You lost all credibility when you chose the low road and said that.

No, because Go really has its head up it's ass.
flavio81
·hace 8 años·discuss
> very similar to the Common Lisp one, arguably with some improvements

Quite the opposite. Common Lisp macros are totally unrestricted, they don't auto-qualify names with the package. Also, there are user-defined reader macros in CL, unlike Clojure.
flavio81
·hace 9 años·discuss
Why?

I have done two major (commercial) software projects in Python, with a good amount of code, several months of work, and I've never had ANY kind of problem with the indentation/whitespace.

Any Python IDE (like Pycharm) will easily highlight you where each section of code sits relative to the indentation level, so it's really pretty simple. Really, really simple.
flavio81
·hace 9 años·discuss
SLIME (for Emacs) is wonderful. I like Emacs, what i don't like is the key combinations, which are horrible.

Fortunately, you can redefine them. Emacs can be customized at will, and using Lisp :)
flavio81
·hace 9 años·discuss
(we) lispers LOVE our parentheses.

"Elegant weapons... for a more civilized age."

Ref: https://xkcd.com/297/
flavio81
·hace 9 años·discuss
True, Common Lisp is better in every way, but still Clojure has its uses (in my opinion, mainly when you need to interact with a lot of Java libraries and don't want to submit to the sadism of the Java language.)

Also, the more Clojure users out there, the more people are potentially able to "jump" to the other Lisps like Racket, Arc, Scheme, and CL.
flavio81
·hace 9 años·discuss
For Lisp, parentheses are a big plus. They allow the following advantages:

TL;DR: Once you start programming in Lisp for long enough, you end up loving and embracing the parentheses.

0. They allow for an extremely simple syntax, which in turn allows the source code to easily manipulate source code. No simple syntax, no really easy way to write macros. And macros are one of the most essential keys to Lisp's power. You can argue that, without extremely simple syntax, a Lisp language is not possible.

1. Syntax, being so simple, is extremely easy to learn. Yesterday i explained Lisp's syntax to a friend, in 3 minutes.

2. No need to care for special operator precedence rules. The precedence of operators is obvious by looking at the code.

3. IDEs, like SLIME, can easily traverse the code in many powerful ways. Due to this syntax, the IDEs can "understand" expressions and expressions within expressions. This means that the IDE can 'understand' any part of your code, not just big constructs like functions, methods or classes.

4. IDEs will also easily complete the parentheses for you, and will warn you of a missing parenthesis.

5. It is also dead simple to understand which parenthesis closes which one. It can be done with most source code editors -- Even a simple program like Notepad++ can do it, Visual Studio Code can do it, etc.

6. Parentheses also enable IDEs to automatically apply "pretty" format to the code rather easily.

7. As anything, you get used to it. Many people, for example, think that, in Python, whitespace as a block delimiter is a bad idea, however I never had any problem with that, it was just fine. Unless you are using Windows Notepad to edit code...