Search found 20 matches

by adam33147
Wed Aug 31, 2011 7:21 pm
Forum: Common Lisp
Topic: Mapping a different syntax to Lisp
Replies: 10
Views: 13644

Re: Mapping a different syntax to Lisp

Its difficult to describe how it would work because its subtle. But another way to coneptualize it, is if you are in the "postfix mode" (the toggling of which i explained above), the opening bracket of the right most list moves to the left till it reaches the first atom. defun (a, b) (x, y...
by adam33147
Wed Aug 31, 2011 6:41 pm
Forum: Common Lisp
Topic: Mapping a different syntax to Lisp
Replies: 10
Views: 13644

Re: Mapping a different syntax to Lisp

To give you more of an idea of the flavor, To do this. (mapcar (lambda (x y) string-concat x y)) (list "a" "b" "c") (list "x" "y" "z")) you could use mapcar ( lambda (x, y) (string-concat (x, y)) list ("a", "b", "c&...
by adam33147
Wed Aug 31, 2011 5:03 pm
Forum: Common Lisp
Topic: Mapping a different syntax to Lisp
Replies: 10
Views: 13644

Re: Mapping a different syntax to Lisp

Below I give concepts that I think can be used to develop the lisp infix interpreter. Maybe its wrong. Maybe there is that "oooohhhhh, thats why they dont do it like that" right around the corner. If you can grapple with the concepts then please let me know what you think. I had an interes...
by adam33147
Wed Aug 31, 2011 4:49 am
Forum: Common Lisp
Topic: Mapping a different syntax to Lisp
Replies: 10
Views: 13644

Re: Mapping a different syntax to Lisp

Reposting with code in the code brackets. Thank you for the insightfull and thoughtfull reply. I certainly am not changing the language to make it any better for me, or a Lisper to use. For now, the idea is to make a mapping that is easier to understand for someone who doesn't care about Lisp. If th...
by adam33147
Tue Aug 30, 2011 10:54 pm
Forum: The Lounge
Topic: What name do you use for the dashed lisp naming convention?
Replies: 9
Views: 20063

Re: What name do you use for the dashed lisp naming convention?

Off the top of my head, I would call it dash separated, and I wouldnt use the word case, because the case is either lower or upper. Camel case is named so because of its uppercase "humps".
by adam33147
Tue Aug 30, 2011 7:18 pm
Forum: Common Lisp
Topic: Macro to construct function names dynamically
Replies: 4
Views: 14688

Re: Macro to construct function names dynamically

Here is a version of a macro which creates function calls according to every possable combination of concatination of the symbols in symbol-list as the functions, and every possable concatination of the args. If an atom is applied anywhere, it is included in its place according to the pattern. (defm...
by adam33147
Tue Aug 30, 2011 6:16 pm
Forum: Common Lisp
Topic: Mapping a different syntax to Lisp
Replies: 10
Views: 13644

Re: Mapping a different syntax to Lisp

I want to make something compact but easier on the eyes for someone who doen't like the parenthesis. And Im not doing it wrong because it doent look like Python, or because it has a regular precidence. But thanks for sharing your thoughts anyway.
by adam33147
Tue Aug 30, 2011 5:09 pm
Forum: Common Lisp
Topic: Mapping a different syntax to Lisp
Replies: 10
Views: 13644

Mapping a different syntax to Lisp

It would be great to impletemt a simple language that is more natural looking to people whos heads explode when they see lots of parenthesis, but which maps onto Lisp. Here is an infix interpreter. Feel free to tell me what can be better. The idea is that you can put in a string, say "1 + 2 - 6...
by adam33147
Mon Aug 29, 2011 7:24 am
Forum: The Lounge
Topic: Any New Insights
Replies: 2
Views: 7895

Any New Insights

Wondering if anyone has any new insights they came upon. Anything that is cool to you. Would love to hear about them. Or even if you dont have any new insights, how about your domains of interest? Your technical musings. What would you like to be able to do? What are you working on? What are you cur...
by adam33147
Sat Aug 20, 2011 7:15 pm
Forum: The Lounge
Topic: Average Lisp age?
Replies: 36
Views: 499003

Re: Average Lisp age?

I am 32. I was working on a project in Java, and was in really deep. Working on it for over a year. Then I read "Hackers and Painters". That book was a real eye opener for me. Although Lisp is esoteric, and the many PHP programmers will think you are crazy, it is a very rewarding experienc...