Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
181.
▲
by
kbp
9y ago
> Is this typical to construct HTML in Lisp? This feels incredibly verbose and error prone, not to mention confusing and hard to grok. Good luck having a designer mockup/write HTML. Do you mean that (:td :colspan "2" "
182.
▲
by
kbp
9y ago
> I realise it's actually a lot closer to Smalltalk than to Lisp -- you have a built in editor, you build memory images that you constantly work with, all the code is decompilable so you can refactor easily, etc, etc Lisps often pro
183.
▲
Try MTS: Exploring the Michigan Terminal System
(try-mts.com)
2 points
by
kbp
9y ago
|
0 comments
184.
▲
by
kbp
9y ago
> AList's used as a map. Probably the worst possible structure for representing a map. They're more flexible than hash tables and often faster; what makes them so awful? They both have trade-offs that make them better and worse
185.
▲
by
kbp
9y ago
> > Perhaps you had problems with the concepts of Lisp packages (namespaces)? > Rather unlikely. The namespaces are pretty easy to understand conceptually, and their interface is pretty minimal. Packages can definitely give beginne
186.
▲
by
kbp
9y ago
It's especially nicer in Ruby (which got it from Perl) where you can use whatever delimiters you like for regexes, with /abc/, %r"abc", %r{abc}, %r#abc# and so on all being equivalent, so you can just about always p
187.
▲
by
kbp
9y ago
But when most of the commonly used "regular expression" libraries aren't regular, I think if you really mean solving something with only regular expressions, you should probably specify that explicitly. The term's been
188.
▲
by
kbp
9y ago
As well, dynamic typing is much less of an issue in Lisp than it is in most other dynamic languages because the debugging and error handling features are really that good; they pick up most of the slack that the less-present type system cre
189.
▲
Tagged Pointer Strings (2015)
(mikeash.com)
2 points
by
kbp
9y ago
|
0 comments
190.
▲
Common Lisp the Language – Conditions (1990)
(cs.cmu.edu)
2 points
by
kbp
9y ago
|
0 comments
191.
▲
Safe and Secure Software: An Invitation to Ada 2012 (2015) [pdf]
(adacore.com)
3 points
by
kbp
9y ago
|
0 comments
192.
▲
by
kbp
9y ago
> Clojure is not based on CONSes but you have CAR and CDR they are first and rest. CAR and CDR are operations on conses, so you can't have them without conses; that's like having sqrt without numbers. Lisp has FIRST and REST fo
193.
▲
by
kbp
9y ago
> Of these five, clojure only has two (atom and eq) You can't have atom without conses (well, it would just be (lambda (x) t)); which Clojure function are you thinking of?
194.
▲
by
kbp
9y ago
> ASDF appears to have been deprecated in favor of Quicklisp No, ASDF and Quicklisp do different things. ASDF handles compiling and loading systems, whereas Quicklisp handles downloading systems and their dependencies. ASDF is kind of li
195.
▲
by
kbp
9y ago
> Haskell functions are not Lisp functions. Lisp functions take a list of arguments, so `apply` should apply to a list of argument. I understand how currying works, thanks, but that doesn't change the fact that $ is not equivalent t
196.
▲
by
kbp
9y ago
> The closest thing to MacLisp today is actually Common Lisp I think you could make the argument that Emacs Lisp is as close. Emacs Lisp has some major similarities with Maclisp that CL doesn't share (like in variable scoping and ob
197.
▲
by
kbp
9y ago
> overzealous pedantry Some people might consider it pedantic to insist to someone who was confused by a choice of wording, and offered a less potentially confusing alternative, that actually it's fine because it's technically
198.
▲
by
kbp
9y ago
Sorry, I just edited in a second quote to my previous comment that addresses that part of your point.
199.
▲
by
kbp
9y ago
> The person who corrected the original commenter seems to recognized that "he" was being used in a gender-neutral way and even offered the use of "they" Their first suggestion was to use the correct gender-specific p
200.
▲
by
kbp
9y ago
> Even if you accidentally parsed "he" as referring to the male gender at first, the context surrounding the comment would quickly clarify that misunderstanding and reveal that the comment was written in a gender-neutral form.
201.
▲
by
kbp
9y ago
I think your version of "fun" is my version of "proper abstraction and factoring".
202.
▲
by
kbp
9y ago
> The zip family has more names than just `map`, but boilerplate? You have to select the right name for your code but you don't have to select more names. Well, you have to select one of the zip functions in addition to map. Those a
203.
▲
by
kbp
9y ago
> Clojure is a Lisp. One of the distinctive things about Lisp is that it has dialects. When one of those dialects is completely source-incompatible with every other dialect (the rest of them share non-trivial programs freely), and doesn&
204.
▲
by
kbp
9y ago
> Regarding the loop: that's exactly what I described, you just move lines and fix the indentation. The experience you get with Paredit is not the same experience you get with C and vi, because you have to be concerned with things a
205.
▲
by
kbp
9y ago
> I see no reason what you just gave isnt isomorphic to > sum(1,2,sum(3,4)) > Which is not "code as data" Says who? In Prolog it would be. Whether or not some syntax is a data structure literal depends entirely on the
206.
▲
by
kbp
9y ago
Sure there is. Imagine you had this function: int f(void) { int x = 1; return x * 2; } Then pretend that later you wanted to call f and provide your own value of x for it to transform, but you realise that f doe
207.
▲
by
kbp
9y ago
> I kept reading places that lisp macros and c macros were completely distinct, which seems untrue after a couple years of trying clojure. They're similar in that they're both compile-time functions that generate code, but they
208.
▲
by
kbp
9y ago
> I don't disagree that if all you have is parens, then you want something like paredit. But for a C programmer there is no need for such a thing. If that's a good selection of tools for editing code, then why would Lisp progra
209.
▲
by
kbp
9y ago
> The biggest practical improvement that I've seen was Clojure notation that expands the number of data literals to include vectors, maps, and sets. Common Lisp has literal syntax for vectors (and it wasn't the first Lisp to).
210.
▲
by
kbp
9y ago
In ReasonML, most of your code is just Reason (which is just OCaml), but you can easily provide type declarations and use Javascript code in a typesafe way, or you can just drop to raw JS at any point in a Reason file.
More ›