Search found 23 matches
- Sat May 31, 2008 3:19 pm
- Forum: Whither newLISP?
- Topic: Developing commercial software
- Replies: 38
- Views: 45094
sorry to bump! Has somebody released a LGPL newLisp application? I mean, got to an agreement with Lutz... right now I think I could use newLisp for a little game, the newlisp footprint and speed the reason, but I'm not sure because my other option is lua with a more freely license that permits embed...
- Sun Nov 26, 2006 3:31 pm
- Forum: Anything else we might add?
- Topic: check this dragonfly ;)
- Replies: 4
- Views: 4134
- Sun Nov 26, 2006 4:58 am
- Forum: Anything else we might add?
- Topic: check this dragonfly ;)
- Replies: 4
- Views: 4134
- Wed Sep 06, 2006 4:23 am
- Forum: newLISP in the real world
- Topic: Casting SPELs in Lisp (newLISP)
- Replies: 6
- Views: 6875
- Wed Sep 06, 2006 3:47 am
- Forum: newLISP in the real world
- Topic: Casting SPELs in Lisp (newLISP)
- Replies: 6
- Views: 6875
- Tue Sep 05, 2006 9:06 pm
- Forum: newLISP in the real world
- Topic: Casting SPELs in Lisp (newLISP)
- Replies: 6
- Views: 6875
Casting SPELs in Lisp (newLISP)
Well I found this excellent newbie tutorial http://www.lisperati.com/actions.html But I'm having troubles trying to translate this code to newLISP (defun describe-path (path) `(there is a ,(second path) going ,(first path) from here.)) I read the documentation and couldn't find something like (`) an...
- Sun Sep 03, 2006 11:58 pm
- Forum: newLISP newS
- Topic: development release version 8.9.8
- Replies: 2
- Views: 4042
- Sun Sep 03, 2006 11:28 pm
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
hmm.. nice to see cormullion... ;) BTW your code doesn't work for me... I've done the changes: (setq freqLang "TEOIARNSHLMYUCWDGPFBVKJ") (define (in-range? x low high) (and (>= x low) (<= x high))) (define (letter? c) (or (in-range? (char c) (char "a") (char "z")) (in-range? (char c) (char "A") (cha...
- Thu Aug 31, 2006 4:44 am
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
cormullion, I think I'll follow with my newLisp endeavours :) because is the *only* lisp I can afford now (and that with a lot of struggling by my part) About the message I didn't want to post the text complete Uid nx, aex jcdjipx iu wzux zp, ta wxtpa jtdaws, ai etkx vis. Dcos zyexdzaxr aex Jxdw jez...
- Wed Aug 30, 2006 2:19 pm
- Forum: Anything else we might add?
- Topic: coroutines for newLISP
- Replies: 16
- Views: 12664
- Wed Aug 30, 2006 2:08 pm
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
- Tue Aug 29, 2006 11:54 pm
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
finally...
Finally... but you must to agree: It takes more code (and more neurons) :) (context 'DIC) (define (DIC:DIC this) (new 'MAIN:DIC this)) (define (put key value) (context this key value)) (define (get key) (context this key)) (define (has_key key) (context? this key)) (define (echo) (map (fn (key) (pri...
- Tue Aug 29, 2006 4:46 am
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
Thank you very much frontera000!
Code: Select all
(println (sort (map (lambda (x) (list (myhash:get x) x)) (myhash:keys)) (lambda (x y) (< y x))))
(println (sort (map (lambda (x) (list (myhash:get x) x)) (myhash:keys)) (lambda (x y) (> y x))))
- Tue Aug 29, 2006 2:18 am
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
Lutz my friend, seems I still have lots to walk in the newLisp way :) In your example: ; create a new HASH (HASH 'myhash) ; put some values (myhash:put "a" 123) (myhash:put "x" 456) (myhash:put "d" 5) How do you sort the dictionary by value?, I mean I wan't to get (println myhash:sort-by-value-desce...
- Mon Aug 28, 2006 11:07 pm
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
Now I'm REALLY missing my hashes... :(
ouch! this hurts... All that I was trying to do was sort my map in order to decrypt a message, this map has the form: map frequency { "char" => freq } where freq is the number of repetitions of the character "char" in one string: But the dotree function sorts them (seems) as they were strings.. :( C...
- Mon Aug 28, 2006 4:04 am
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
Thank you guys. I'm learning new things with newLisp, what is good, and I'm havng a nice time in the way :). map seems an interesting function and so dotree and dolist. cormullion: the idea was to use a dictionary for this problem, but your function helpme to undestand the *map* concept, I refined a...
- Sat Aug 26, 2006 9:09 pm
- Forum: newLISP in the real world
- Topic: I'm missing my foreach keys %hash... :(
- Replies: 24
- Views: 23706
I'm missing my foreach keys %hash... :(
Hi there, I want to use hash tables in newLisp, Take for example this code (Python challenge ;) ;* http://www.pythonchallenge.com/pc/def/map.html (setq input (string "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp.\n" "bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr ...
- Thu Aug 24, 2006 5:00 am
- Forum: Anything else we might add?
- Topic: FAVORITE newLISP editors !!
- Replies: 8
- Views: 7621
- Wed Aug 23, 2006 7:02 pm
- Forum: newLISP in the real world
- Topic: newLisp doesn't have long long support?
- Replies: 8
- Views: 7362
thank you guys! :) I did this for this problem in particular: [DON'T LAUGH I'M A NEWBIE....] (define (double strNumber) (setq carry 0) (setq strDouble "") (reverse strNumber) (for (k 0 (- (length strNumber) 1)) (setq d (- (char strNumber k) (char "0"))) (setq m (+ (* d 2) carry)) (setq md (% m 10)) ...
- Wed Aug 23, 2006 4:17 pm
- Forum: newLISP in the real world
- Topic: newLisp doesn't have long long support?
- Replies: 8
- Views: 7362
- Wed Aug 23, 2006 4:05 pm
- Forum: newLISP in the real world
- Topic: newLisp doesn't have long long support?
- Replies: 8
- Views: 7362
newLisp doesn't have long long support?
hi again I'm trying to obtain the value of 2 to the exponent 38
this is basic question that can be solved beautifully as:
print( 2 ** 38 ); PERL
puts( 2 ** 38 ) RUBY
print( 2 ^ 38 ) LUA
or as uglier as
System.out.println( Math.round( Math.pow( 2, 38 ) ) ); JAVA
this is basic question that can be solved beautifully as:
print( 2 ** 38 ); PERL
puts( 2 ** 38 ) RUBY
print( 2 ^ 38 ) LUA
or as uglier as
System.out.println( Math.round( Math.pow( 2, 38 ) ) ); JAVA
- Wed Aug 23, 2006 3:42 pm
- Forum: newLISP in the real world
- Topic: how to load script?
- Replies: 2
- Views: 3775
- Wed Aug 23, 2006 3:23 pm
- Forum: newLISP in the real world
- Topic: how to load script?
- Replies: 2
- Views: 3775
how to load script?
Hi there! I'm trying to load a lisp file and be interpreted (like perl, ruby etc...) I'm using the next command: newlisp myFile.lsp OR (newlisp -c myFile.lsp) where myFile.lsp is just: (+ 1 2) (with the correct paths and current directory) This only shows the console, not the answer (3) I don't thin...