Search found 183 matches

by Cyril
Sat Mar 27, 2010 10:53 pm
Forum: newLISP and the O.S.
Topic: (directory) in Windows and UTF8
Replies: 6
Views: 6871

Re: (directory) in Windows and UTF8

I just want to ask about future politics: will newLISP in the future have an operator like *nix iconv You can use iconv in Windows too. A lot of Unix-like applications for Windows comes with iconv library today: in my system there are... let me count... six instances of iconv.dll (yes, this IS the ...
by Cyril
Fri Mar 26, 2010 2:28 pm
Forum: newLISP and the O.S.
Topic: Windows, true executable, editable script
Replies: 0
Views: 2649

Windows, true executable, editable script

In the brave Unix world, anything with an 'x' bit set is an executable, and the interpreter is determined by #! notation. In Windows, you need a real .exe file sometimes. One particular case is Windows screensavers, which in fact are .exe files with .scr extensions. BTW, screensavers are not only to...
by Cyril
Thu Nov 26, 2009 12:43 am
Forum: newLISP newS
Topic: Maintenance Release v.10.1.7
Replies: 2
Views: 3031

Re: Maintenance Release v.10.1.7

Thanks, Lutz! But I have already noted an undocumented change: (string cons) returns "cons<408D7A>" in 10.1.7 but "cons <408D7A>" (note space!) in previous versions. And yes, I use ((parse (string function)) 0) in my debug code. Of course I can fix it to work in both new and old versions, or even le...
by Cyril
Tue Nov 10, 2009 12:01 am
Forum: newLISP in the real world
Topic: char signed-ness bug in nl-web.c
Replies: 1
Views: 1344

char signed-ness bug in nl-web.c

newLISP (10.1.5 and 10.1.6 checked) failed to parse an HTTP answer if it contains 8-bit characters in headers. Well, according to RFC, there should be no 8-bit character in headers, but in real live there are. In particular, I cannot avoid them in my application (the server returning them is not und...
by Cyril
Thu Sep 17, 2009 5:02 pm
Forum: newLISP in the real world
Topic: Why ? and @ are in (symbols)?
Replies: 1
Views: 1019

Re: Why ? and @ are in (symbols)?

Maybe because ? is special for match and @ for xml-parse? The implementation of these two functions probably need an "prototype" symbols to compare with.
by Cyril
Mon Aug 24, 2009 11:57 pm
Forum: Whither newLISP?
Topic: Is a lisp with only functional parentheses possible?
Replies: 33
Views: 19272

Re: Is a lisp with only functional parentheses possible?

When long enough removing parentheses from lisp you will endup killing lisp. ...parenthese per parenthese... Hm... Then my favorite lisp-killing device is: ; This is in fact im my small library of handy tools (define-macro (make-pass) (doargs (arg) (letex ((Old arg) (New (sym (append (string arg) "...
by Cyril
Sun Jul 05, 2009 11:40 am
Forum: newLISP newS
Topic: newlisp.vim version 1.27
Replies: 8
Views: 5687

In brief: vimrc is system-wide, .vimrc is your personal. If you haven't yet, just create it in your home directory. In full: vim starting is a very complex process, with lot of nice features if only you are ready to learn them all. Read :help starting , but prepare to be really bored. P.S. Vim allow...
by Cyril
Sun Jul 05, 2009 11:02 am
Forum: newLISP newS
Topic: newlisp.vim version 1.27
Replies: 8
Views: 5687

I assume that you have highlighting already enabled for other languages (if not, read :help usr_06 before). Then copy newlisp.vim file into syntax directory, located in some directory listed in runtimepath . Depending on your access rights and intentions, this can be system-wide or your personal set...
by Cyril
Mon Jun 29, 2009 9:30 pm
Forum: Anything else we might add?
Topic: Problem in search of an elegant solution
Replies: 10
Views: 6026

Re: Problem in search of an elegant solution

cormullion wrote:The elegant solution is currently eluding me... Can I do it with ref/ref-all or do I need a state-keeping function?
Is using apply for state keeping elegant enough?

Code: Select all

(define (df datum) (abs (- target (datum 0))))
(define (choose x y) (if (< (df x) (df y)) x y))
(println (apply choose data 2))
by Cyril
Thu Jun 25, 2009 10:22 pm
Forum: Whither newLISP?
Topic: Generic data stucture?
Replies: 1
Views: 2409

Generic data stucture?

Maybe I am reinventing the wheel, but this pattern seems useful for me: newLISP v.10.1.0 on Win32 IPv4, execute 'newlisp -h' for more info. > (define (Struct:Struct) (apply context (cons (context) (args)))) (lambda () (apply context (cons (context) (args)))) > (new Struct 't) t > (map t '(year month...
by Cyril
Fri Jun 12, 2009 6:28 pm
Forum: newLISP newS
Topic: newlisp.vim version 1.27
Replies: 8
Views: 5687

newlisp.vim version 1.27

I've updated the newlisp.vim syntax highlighting file. In this version: * new built-in functions introduced recently into newlisp: last-error , xfer-event and inf? (the version shipped with newlisp already has these); * module function (technically, not built-in but preloaded, but worth highlighting...
by Cyril
Mon Apr 13, 2009 3:26 pm
Forum: newLISP newS
Topic: development release newLISP v.10.0.3
Replies: 19
Views: 9870

newdep wrote:Haaa slick! yeah I did not know that 'module existed..
Me too! Searching for more surprises...

Code: Select all

newLISP v.10.0.3 on Win32 IPv4, execute 'newlisp -h' for more info.

> (filter (fn (x) (lambda? (eval x))) (symbols))
(module)
No luck! ;-)
by Cyril
Sat Mar 21, 2009 12:57 am
Forum: newLISP newS
Topic: newlisp.vim version 1.25
Replies: 1
Views: 2364

newlisp.vim version 1.25

Minor update of newlisp.vim syntax highlighting file. In this version: * Adopded changes made by Lutz in 10.0.2 ( estack and read-utf8 ). BTW, Lutz, integer is still defined as alias of int ! Do you intent to remove it, or to keep it forever? * Another attempt to became more compatible with some 3rd...
by Cyril
Mon Jan 19, 2009 12:25 pm
Forum: newLISP in the real world
Topic: Docomentation example?
Replies: 1
Views: 1368

Docomentation example?

Reading new Jeff's introduction to FFI, I have noted that in the documentation of import function in the newLISP manual there are examples of importing printf from the standard C library for Linux, MacOS and Cygwin, but not for standard Win32 distribution. I have noted many times before that amateur...
by Cyril
Tue Dec 16, 2008 3:51 pm
Forum: newLISP in the real world
Topic: wp in newLISP
Replies: 11
Views: 3782

Re: wp in newLISP

I came across this listing of a word count program implemented in various languages (see README.txt for more info). As you can probably guess, there was no newLISP version! That's fine! I have the similar listing of my own long ago, you can find it here . And, of course, I do have newLISP! ;-) I ha...
by Cyril
Wed Nov 26, 2008 9:49 pm
Forum: newLISP newS
Topic: newlisp.vim version 1.24
Replies: 2
Views: 2141

newlisp.vim version 1.24

Another step toward newlisp v10.0. No major changes this time, only an update of built-in functions list. In particular: * integer is moved to "obsolete" section. It was removed from documentation long ago, and Lutz said it will be discarded completely in 9.9.96 release. * new section "debugging" is...
by Cyril
Tue Nov 25, 2008 10:06 pm
Forum: newLISP newS
Topic: development release newLISP v.9.9.95
Replies: 12
Views: 5871

Re: development release newLISP v.9.9.95

ps: final 10.0 release probably next week Preparing my newlisp.vim to 10.0 release, I've found a bunch of predefined functions which status is unclear for me. I am confused which is the preferred way to highlight them. The functions in question are: * integer -- shares the code with int , removed f...
by Cyril
Tue Nov 25, 2008 3:06 pm
Forum: Anything else we might add?
Topic: *** RESULT COMPETITION 2008 ***
Replies: 19
Views: 12228

Your sorry is not accepted ;-) Nice coding and reading between the lines ;-) Sorry nevertheless -- the first version was WRONG. The moral of that is, NEVER try to "optimize" formulae given to you by the astronomer! I am an amateur astronomer myself, I say this from experience! The post above was co...
by Cyril
Tue Nov 25, 2008 3:41 am
Forum: newLISP newS
Topic: development release newLISP v.9.9.95
Replies: 12
Views: 5871

Lutz wrote:The source package was updated twice this morning shortly after the first upload, and has a fixed link.lsp.
Yes, I see now, it is exactly three bytes shorter! ;-) I've missed this, because I've downloaded windows binary, not source. Now I have both.
by Cyril
Tue Nov 25, 2008 2:41 am
Forum: Anything else we might add?
Topic: *** RESULT COMPETITION 2008 ***
Replies: 19
Views: 12228

Re: =(NEWLISP-COMPETITION 2008)=

(option #4) A newlisp calendar [/color] Just to make the first entry: ;; @module zeller.lsp ;; @description Straightforward implementation of Zeller's congruence ;; @author Cyril Slobin ;; @location http://slobin.pp.ru/newlisp/zeller.lsp ;; @version 2.0, corrected and updated ;; ;; See also @link h...
by Cyril
Tue Nov 25, 2008 1:14 am
Forum: newLISP newS
Topic: development release newLISP v.9.9.95
Replies: 12
Views: 5871

Re: development release newLISP v.9.9.95

ps: final 10.0 release probably next week Lutz, I have reported this bug already, it is minor but annoying: the utility link.lsp , used to linking newlisp script with win32 executable, does NOT work with latest releases: it passes a quoted symbol as a parameter to write-buffer . ;; this field gets ...
by Cyril
Thu Nov 20, 2008 9:15 pm
Forum: newLISP newS
Topic: link.lsp incompatible with 9.9.x
Replies: 0
Views: 2148

link.lsp incompatible with 9.9.x

From 10.0 release notes:
write-buffer a never-used odd symbol syntax for the string to be written has been eliminated.
link.lsp utility does use this odd syntax! Works fine after eliminating apostrophes in all three calls to write-buffer.
by Cyril
Sun Oct 12, 2008 9:49 pm
Forum: Anything else we might add?
Topic: lisp.ru
Replies: 6
Views: 6597

Re: TRANSLATION

unixtechie wrote:Lithper in that lisp.ru forum is "unixtechie" in this one. Here's a translation of Slobin's first comment there:
Thank you for translation, unixtechie! I'll try to clarify my point later. No time to do this just now, sorry. :-(
by Cyril
Mon Sep 29, 2008 5:59 pm
Forum: newLISP newS
Topic: development release newLISP version 9.9.5
Replies: 1
Views: 1690

Re: development release newLISP version 9.9.5

System variables $0 - $15, $args, $idx, $it and $main-args are now documented in the appendix for the "Users Manual and Reference". I believe it is worth to put a line "See also: ostype " in this appendix. Some people (like myself) search for it in the variables list (I consider it as a kind of sys...