Search found 20 matches
- Fri Sep 16, 2016 6:58 pm
- Forum: newLISP newS
- Topic: We are hiring newLisp programmers....
- Replies: 4
- Views: 26503
Re: We are hiring newLisp programmers....
wow! Job in newlisp, nice to see!
- Thu Oct 31, 2013 10:38 am
- Forum: newLISP in the real world
- Topic: Bioinformatics problems at rosalind.info
- Replies: 0
- Views: 2995
Bioinformatics problems at rosalind.info
Hi folks, have you seen rosalind.info, the website with bioinformatics problems and drills? I think those problems are a good food for newLISP. Look at statistics in top100 or by countries: which languages people use. Lisp is a rare bird there :-(
- Sun Nov 18, 2012 7:05 pm
- Forum: newLISP in the real world
- Topic: How to make load chain properly?
- Replies: 0
- Views: 3021
How to make load chain properly?
Hi again, folks! Tried to find the info in documentation and other forum topics but couldn't. The question is about load function. Say I have three files: main.lsp, lib/a.lsp, lib/b.lsp How do I load file b.lsp into a.lsp if i load a.lsp into main.lsp? This doesn't work: ; main.lsp: (load "lib/a.lsp...
- Thu Nov 08, 2012 4:19 pm
- Forum: newLISP in the real world
- Topic: How does (define (sum (x 0)) (inc 0 x)) work?
- Replies: 8
- Views: 6338
Re: How does (define (sum (x 0)) (inc 0 x)) work?
the same effect happens with this function:
For some reason the function creates a closure for its literals? (sounds sane? :-) )
Code: Select all
> (define (pp x) (push x '()))
(lambda (x) (push x '()))
> (pp 1)
(1)
> pp
(lambda (x) (push x '(1)))
> (pp 3)
(3 1)
> pp
(lambda (x) (push x '(3 1)))
- Wed Nov 07, 2012 3:25 pm
- Forum: newLISP in the real world
- Topic: (float) with elements of the list
- Replies: 4
- Views: 3839
(float) with elements of the list
Some strange behavior:
Why so?
Code: Select all
(set 'lst '("23" "hello" "3.14"))
(float (lst 1))
; -> "3.14" instead of nil
- Mon Nov 05, 2012 5:33 pm
- Forum: newLISP newS
- Topic: new documentation revisions
- Replies: 7
- Views: 10436
Re: new documentation revisions
-Joejoe, this time manually, with help of InDesign.
- Mon Oct 29, 2012 6:56 am
- Forum: newLISP newS
- Topic: new documentation revisions
- Replies: 7
- Views: 10436
Re: new documentation revisions
Hi! I have made a pdf version for "Code Patterns in newLISP". Sometimes I like reading away from computer having text on the paper, so I have made it for my own use. But maybe it will be useful for someone else too.
http://files.rusvegia.com/newlisp/Newli ... tterns.pdf
http://files.rusvegia.com/newlisp/Newli ... tterns.pdf
- Fri Mar 30, 2012 9:27 am
- Forum: Whither newLISP?
- Topic: online help
- Replies: 6
- Views: 14175
Re: online help
to jamesqiu's code I have added
before regexping, to be able to detect also such functions as zero? or null?
Code: Select all
(replace "?" func-name "p")
- Fri Mar 30, 2012 9:21 am
- Forum: newLISP in the real world
- Topic: Colored output in REPL mode and (help) function
- Replies: 2
- Views: 2916
Re: Colored output in REPL mode and (help) function
Ahha, thanks! I see there are a lot of threads related to my question.
Also notion of .init.lsp was new for me, great!
Also notion of .init.lsp was new for me, great!
- Mon Mar 26, 2012 7:37 am
- Forum: newLISP in the real world
- Topic: Colored output in REPL mode and (help) function
- Replies: 2
- Views: 2916
Colored output in REPL mode and (help) function
Good european morning, folks! Could anyone advice me how to make colored output in REPL (in Linux)? Also I thought it would be good to have something like: > (help curry) Syntax: (curry func exp) Transforms func from a function f(x, y) that takes two arguments into a function fx(y) that takes a sing...
- Wed Mar 14, 2012 11:57 am
- Forum: newLISP in the real world
- Topic: "double symbol"
- Replies: 2
- Views: 2821
Re: "double symbol"
Oh, true. Thanks, cormullion!
Needed this to analyze what macroses get in the (args). Complex cases happen when macro calls another macro. Maybe I go in wrong way, but for the moment current the question how to detect the form (type) of argument is relevant :-)
Needed this to analyze what macroses get in the (args). Complex cases happen when macro calls another macro. Maybe I go in wrong way, but for the moment current the question how to detect the form (type) of argument is relevant :-)
- Tue Mar 13, 2012 11:32 am
- Forum: newLISP in the real world
- Topic: "double symbol"
- Replies: 2
- Views: 2821
"double symbol"
Hi! Maybe a simple question, but why double symbol is not detected as symbol?
What type of object is ''a (or e.g. '''''''''''''''''''''a) then?
Code: Select all
(symbol? ''a) ; -> nil
; but
(symbol? (eval ''a)) ; -> true
- Mon Feb 27, 2012 8:29 am
- Forum: newLISP Graphics & Sound
- Topic: Any newlisp libraries that read jpeg-png-gif files formats?
- Replies: 2
- Views: 10815
Re: Any newlisp libraries that read jpeg-png-gif files forma
Thanks, cormullion. Seems I missed this topic while doing search in the forum. Interesting, the issue also was raised by a person from Russia.. In my problem I need to know image size, as it is required in css styling, when using background image. It happens in a number of cases in the design of htm...
- Sun Feb 26, 2012 11:54 am
- Forum: newLISP Graphics & Sound
- Topic: Any newlisp libraries that read jpeg-png-gif files formats?
- Replies: 2
- Views: 10815
Any newlisp libraries that read jpeg-png-gif files formats?
I wonder if someone worked on some newlisp library that operates .jpg, .png, and .gif formats. I need to read width and height of an image. It would be great to have uniform interface, that will automatically detect a format of the image file (given as parameter) and read data common for all these f...
- Mon Nov 14, 2011 9:27 pm
- Forum: newLISP newS
- Topic: Artful Code
- Replies: 12
- Views: 13584
Re: Artful Code
Wow, I like this discussion! Last months I touched Ruby on Rails and Django, but now I am thinking more and more about to come back to my idea of "lispization" and finally try to do something with that. What I would say about HAML... Why not to go further and think on content that our browser gets f...
- Tue Jun 14, 2011 5:44 pm
- Forum: Dragonfly
- Topic: newLispization of server/client code
- Replies: 0
- Views: 6643
newLispization of server/client code
Hi! Seems, I succeeded to rewrite my Java-made site using newlisp and Dragonfly framework. It's here: http://pechenga.xpolaris.net It's in Russian, so short description: this is a site (clone, official website here: http://pechenga-gazeta.ru) of local newspaper with articles and comments to them, so...
- Mon Jun 06, 2011 10:41 pm
- Forum: Dragonfly
- Topic: JSON transformation
- Replies: 4
- Views: 10303
Re: JSON transformation
Thanks, cormullion!
It turned to be trivial, like I suspected! Lists, not quoted lists! Shame on me! :-)
It turned to be trivial, like I suspected! Lists, not quoted lists! Shame on me! :-)
- Fri Jun 03, 2011 3:17 pm
- Forum: Dragonfly
- Topic: JSON transformation
- Replies: 4
- Views: 10303
JSON transformation
Hello, it's me again about Dragonfly! While using plugin artfulcode/json.lsp version 2.0 I tried to build a string in json format (lisp->json function). It turned out that I can not pass variables in the expression (or I don't know how to do it). Example: (setq var1 "some value") (Json:lisp->json '(...
- Sun May 22, 2011 12:48 pm
- Forum: newLISP in the real world
- Topic: utf8 output from mysql
- Replies: 2
- Views: 2751
Re: utf8 output from mysql
Thank you, Lutz! I have just fixed the problem, but the resolution was not even in the page encoding. Actually, I hadn't Russian (ru_RU.UTF-8) locale being set in the operating system (Linux at VPS). First I installed the Russian locale. Then, before requests to the database I put (set-locale "ru_RU...
- Fri May 20, 2011 9:43 pm
- Forum: newLISP in the real world
- Topic: utf8 output from mysql
- Replies: 2
- Views: 2751
utf8 output from mysql
Good night everyone! I am trying to port my website and cms from tomcat/java to dragonfly/newlisp. The site is in Russian (cyrillic), so the problem: when I retrieve data from mysql database and print it through dragonfly's view I get this: "\208\148\208\183\195\166\209\131\208\180\208\182\209\139\2...