Search found 57 matches

by Elica
Mon Oct 05, 2009 12:22 pm
Forum: Whither newLISP?
Topic: newLISP compiler
Replies: 9
Views: 6487

Lutz is absolutely right. I'm now finishing a Logo compiler (internally Logo is very close to Lisp), so to support its dynamic features (like defining variables and functions at run time) it has incremental JIT-like compilation. The fact that datatype is a property of the datum, not a property of th...
by Elica
Sat Sep 19, 2009 7:13 pm
Forum: Anything else we might add?
Topic: Aargh
Replies: 2
Views: 2820

This is the first time ever I used a dictionary while reading a Lisp program. Honestly. :)
by Elica
Tue Sep 15, 2009 12:13 pm
Forum: Whither newLISP?
Topic: Is a lisp with only functional parentheses possible?
Replies: 33
Views: 19271

Six years ago I presented a paper about how Elica displays source code to help users find errors. The paper is available here . You may have a look at figures: Fig.4 - a summary of supported representations of source code Fig.5 - fully parenthesised original Logo source Fig.6 - graphical non-ASCII b...
by Elica
Sat Sep 12, 2009 5:35 pm
Forum: Whither newLISP?
Topic: Is a lisp with only functional parentheses possible?
Replies: 33
Views: 19271

Try to code this: "if a is integer and b is integer then print 'yes'."
by Elica
Fri Sep 11, 2009 11:23 am
Forum: Anything else we might add?
Topic: It doesn't look good! Is there any other Newlisper photo?
Replies: 7
Views: 4865

Although not a true newlisper, here is a recursive version of me (when I was younger):


Image
by Elica
Fri Sep 11, 2009 11:17 am
Forum: Whither newLISP?
Topic: Is a lisp with only functional parentheses possible?
Replies: 33
Views: 19271

If the idea of reducing the number of (...)'s is to make the source code easier to read by not-lispers, then you must also consider solutions which affect the IDE (or the editor) without changing anything in the language. For example, an editor that helps with the (..)'s might solve most of the prob...
by Elica
Mon Aug 31, 2009 6:25 pm
Forum: Whither newLISP?
Topic: Is a lisp with only functional parentheses possible?
Replies: 33
Views: 19271

There is one easy recursive solution, but I'm afraid you will not like it, although you may enjoy it. Here it goes: To solve the problem with parentheses, we can replace them by square brackets. However, this will introduce a new problem - a problem with the square brackets. To solve it, we can repl...
by Elica
Wed Aug 19, 2009 1:49 pm
Forum: Whither newLISP?
Topic: Is a lisp with only functional parentheses possible?
Replies: 33
Views: 19271

Re: Is a lisp with only functional parentheses possible?

When long enough removing parentheses from lisp you will endup killing lisp. If you remove parentheses carefully you will not kill Lisp, but will end up with Logo. A Lisp with reduced number of parentheses may appear simpler to novice users, but will definitely be harder to implement (from develope...
by Elica
Tue Aug 04, 2009 6:34 pm
Forum: Whither newLISP?
Topic: self explaining lines (or what args can do for you)
Replies: 7
Views: 4790

This looks like a preprocessor inside of an event handler. So, practically, your code treats "x IS y" as data and processes it into something more digestible. Will this work if the commands are inside a text file mixed up with other lisp commands?
by Elica
Tue Aug 04, 2009 11:57 am
Forum: Whither newLISP?
Topic: Benchmarking
Replies: 23
Views: 12538

A little bit too late, but here are my two cents on the topic of benckmarks (I did a lot for the Lhogho compiler). 1. I think it is impossible to write a satisfactory one-liner for benchmarking. 2. A true benchmark does not produce a scalar (i.e. a single value), but a vector - i.e. there are many i...
by Elica
Mon Aug 03, 2009 7:54 pm
Forum: Whither newLISP?
Topic: self explaining lines (or what args can do for you)
Replies: 7
Views: 4790

It is a 20-30 lines long program which defines IS in a way that simple sentences like "x IS y" are valid programming commands.
by Elica
Mon Aug 03, 2009 4:34 pm
Forum: Whither newLISP?
Topic: self explaining lines (or what args can do for you)
Replies: 7
Views: 4790

If Lisp were not stuck with the prefix-only notation, it would be possible to recreate the following toy-program: mike is tall john is tall peter is old john is old what is john ; => john is tall and old john is smart what is john ; => john is tall, old and smart who is smart ; => john is smart who ...
by Elica
Wed Jul 29, 2009 10:11 am
Forum: Whither newLISP?
Topic: newlisp and the C++ revolution
Replies: 13
Views: 7790

Do you know how many lines of code one needs for a simple 'Hello world' application in C++? The same number of lines as in C. #include <iostream> int main() { std::cout << "Hello, world!\n"; } More examples including some funny languages are available in Transwiki:List of hello world programs
by Elica
Wed Jul 15, 2009 6:19 pm
Forum: Whither newLISP?
Topic: newlisp and the C++ revolution
Replies: 13
Views: 7790

Just curious about C++ libraries which do use OOP within their APIs. How would one deal with stuff like this?
by Elica
Sat Jun 20, 2009 9:51 pm
Forum: Whither newLISP?
Topic: What is the language of the future?
Replies: 13
Views: 8197

I'm afraid you are interpreting my words too literally. There is no need of medical intervention, no wires, no chips. You've watched too many crap SciFi movies. Just kidding, of course. What I imagine will be interface which is not bound to physical connection in the conventional meaning. Let's say ...
by Elica
Sat Jun 20, 2009 6:42 pm
Forum: Whither newLISP?
Topic: What is the language of the future?
Replies: 13
Views: 8197

Ah, IMHO programming languages will die within the span of a human life. What I actually mean is that in the future people would communicate with machines (this includes "programming") in a non-verbal and non-language approach. I don't know the details yes (ha-ha!) but it could be something like dir...
by Elica
Tue Nov 18, 2008 2:43 pm
Forum: Anything else we might add?
Topic: If it is Newlisp logo?
Replies: 5
Views: 4793

Kazimir, why did you crop the image !!!
;)
by Elica
Tue May 27, 2008 10:02 am
Forum: Anything else we might add?
Topic: How did you find newLISP?
Replies: 35
Views: 25780

newBert is the person who introduced newLISP to me.
by Elica
Thu May 22, 2008 4:18 am
Forum: Anything else we might add?
Topic: Why Arc is bad for exploratory programming...
Replies: 29
Views: 15635

To be honest I'm not sure what's the point of the whole quarrel. Historically CAR/CDR represent a physical data structure. HEAD/TAIL, or FIRST/REST, or FIRST/BUTFIRST, or whatever pair of names you come up with, represent a logical data structure*. But things change over time. Anyway, these are just...
by Elica
Sat Mar 08, 2008 6:07 am
Forum: Anything else we might add?
Topic: Quine
Replies: 15
Views: 10136

The functionality of NOP is not the point. There are many others 1-byte instructions, e.g. RET (return from procedure). A single RET is the shortest subroutine. In some languages there are formal definitions of programs. For example in Pascal there is a program reserved word. In Lisp and Logo (and m...
by Elica
Fri Mar 07, 2008 8:35 pm
Forum: Anything else we might add?
Topic: Quine
Replies: 15
Views: 10136

Can a single number like '0' be called a program? May be in some machine code for some processor there is an instruction with opcode 0. So, this might be a kind of minimalistic program. For example, in 80x86 family the number 144 (i.e. 0x90) stands for NOP instruction, which is a program by itself....
by Elica
Fri Mar 07, 2008 8:20 pm
Forum: Anything else we might add?
Topic: Quine
Replies: 15
Views: 10136

That's why I started my post with the word "IF".
by Elica
Fri Mar 07, 2008 6:14 pm
Forum: Anything else we might add?
Topic: Quine
Replies: 15
Views: 10136

If this is a quine: (lambda (x)) Then here is a little bit shorter one: (lambda ()) Let's get rid of the pair of parentheses (but we still need the space) (lambda ) And here is another one: nil And finally: 0 But still this is not the shortest quine. The shortest one is the empty program. If you run...
by Elica
Fri Mar 07, 2008 5:50 pm
Forum: Anything else we might add?
Topic: Why Java (& Python) Programmers Should Learn newLISP
Replies: 7
Views: 4703

The one-two-three<->123 problem is not fair, because it relies too much on the libraries, instead on the language itself. So one may slip into comparing libraries and applying the result on the languages themselves. If your favourite language has a suitable library function, you can solve the proble...
by Elica
Tue Mar 04, 2008 7:59 pm
Forum: Anything else we might add?
Topic: NL IP Address Calculator?
Replies: 6
Views: 4684

ImageImageImage
Vir sapit qui pauca loquitur