Search found 429 matches
- Mon Jul 05, 2010 1:06 am
- Forum: Whither newLISP?
- Topic: Nesting and Booleans
- Replies: 7
- Views: 5367
Re: Nesting and Booleans
I think it's cool, but I'm not sure this would result in very clear code (for others reading it). People coming to newLISP from other Lisps would be baffled by this. Does the advantage of not having to write an 'if' make it worth it? I'm not sure... BTW, Clojure has a builtin function called 'comp' ...
- Sun Jul 04, 2010 2:42 am
- Forum: newLISP in the real world
- Topic: 3 questions regarding modularizing code
- Replies: 5
- Views: 1834
Re: 3 questions regarding modularizing code
Thank you very much for sharing, I'll check it out. Up to now my impression is that the approach of xml to name-spaces is provably the most effective one: Using a URL to define a unique global name-space and a symbol that references it as a prefix to cut down on the verbosity. e.g.: in the module f...
- Sat Jul 03, 2010 7:39 pm
- Forum: newLISP newS
- Topic: ANN: namespace.lsp - Java-like namespaces
- Replies: 3
- Views: 3474
Re: ANN: namespace.lsp - Java-like namespaces
Yup!cormullion wrote:It's cool! Thanks. Some useful by-products from your recent Clojure investigations?!
I actually use a newLISP script to run Clojure. :-p
- Sat Jul 03, 2010 4:27 pm
- Forum: newLISP in the real world
- Topic: SBCL to newLISP
- Replies: 19
- Views: 6615
Re: SBCL to newLISP
Yes, though the manual does use that convention for some reason, I don't see the point. I see it as adding confusion to my code and giving me one more thing to have to worry about (should I use setf or setq here?). There's no reason to burden yourself with unnecessary complexity.
- Sat Jul 03, 2010 4:19 am
- Forum: newLISP newS
- Topic: ANN: namespace.lsp - Java-like namespaces
- Replies: 3
- Views: 3474
Re: ANN: namespace.lsp - Java-like namespaces
Oh, and btw, this was made possible by the recent addition of the prefix function. :-)
- Sat Jul 03, 2010 3:21 am
- Forum: newLISP in the real world
- Topic: 3 questions regarding modularizing code
- Replies: 5
- Views: 1834
Re: 3 questions regarding modularizing code
I just released a little bit of code that makes modularization real simple and safe like in Java. Check it out:
http://newlispfanclub.alh.net/forum/vie ... f=2&t=3670
http://newlispfanclub.alh.net/forum/vie ... f=2&t=3670
- Sat Jul 03, 2010 3:19 am
- Forum: newLISP newS
- Topic: ANN: namespace.lsp - Java-like namespaces
- Replies: 3
- Views: 3474
ANN: namespace.lsp - Java-like namespaces
I've created a little project that adds Java-like namespaces to newLISP! You can now do stuff like: (ns-import 'com.example.*) (ns-import 'com.example2.Test) (Test:foo "bar") In a nutshell, this solves the name clashing issues in newLISP and means newLISP is now much easier to use for large projects...
- Fri Jul 02, 2010 6:19 pm
- Forum: newLISP in the real world
- Topic: SBCL to newLISP
- Replies: 19
- Views: 6615
Re: SBCL to newLISP
So it looks like both setq and setf are faster than set . I ran these tests multiple times, and the q and f versions are consistently faster. Lutz, should we be using setq in place of set for the slight speed increase? I don't think setq should be used at all, there's no reason for it as it's just ...
- Thu Jul 01, 2010 1:11 am
- Forum: newLISP newS
- Topic: Bug in 'process'?
- Replies: 3
- Views: 3220
Re: Bug in 'process'?
OK thanks, either I forgot about that, or I never knew it to begin with. :-p
Maybe that could be mentioned in the fork/process docs? Seems like something that could trip up a lot of folks..
Maybe that could be mentioned in the fork/process docs? Seems like something that could trip up a lot of folks..
- Wed Jun 30, 2010 10:59 pm
- Forum: newLISP newS
- Topic: Bug in 'process'?
- Replies: 3
- Views: 3220
Re: Bug in 'process'?
Same problem with 'fork':
Code: Select all
> (fork) (sleep 2000) (exit)
19389
2000
[shell]$
- Wed Jun 30, 2010 10:50 pm
- Forum: newLISP newS
- Topic: Bug in 'process'?
- Replies: 3
- Views: 3220
Bug in 'process'?
v.10.2.9
Or another version:
That happens instantly. There's no delay despite the (sleep 2000) call. Shouldn't there be a delay?
Code: Select all
> (begin (process "ls") (sleep 2000) (println "hi"))
hi
"hi"
Code: Select all
> ((fn () (sleep 2000) (println "foo")) (process "ls"))
foo
"foo"
- Wed Jun 30, 2010 7:17 pm
- Forum: newLISP in the real world
- Topic: SBCL to newLISP
- Replies: 19
- Views: 6615
Re: SBCL to newLISP
The idea of using one call to set with multiple symbol/value pairs versus multiple calls to set with just one symbol/value pair for each call appeals to my aversion to redundancy. but michael makes a compelling case in the test code that he posted. I don't understand, why "but"? His test code shows...
- Wed Jun 30, 2010 5:49 pm
- Forum: newLISP in the real world
- Topic: SBCL to newLISP
- Replies: 19
- Views: 6615
Re: SBCL to newLISP
Regarding the set thing... I've actually done the same benchmarks, and they've affected how I decide to use set or setf. Basically, I've found that setf is faster for situations where only 1 variable needs to be set, but if you're setting multiple things in a row, set is faster (if called once for a...
- Fri Jun 25, 2010 6:53 pm
- Forum: Dragonfly
- Topic: Installing Dragonfly to hosted server
- Replies: 7
- Views: 7703
Re: Installing Dragonfly to hosted server
I'd have to look at your setup to be able to figure out what's going wrong, I can't just guess.
To figure this out, the files you need to look at are config.lsp and dragonfly.lsp.
To figure this out, the files you need to look at are config.lsp and dragonfly.lsp.
- Fri Jun 25, 2010 12:31 am
- Forum: Dragonfly
- Topic: Installing Dragonfly to hosted server
- Replies: 7
- Views: 7703
Re: Installing Dragonfly to hosted server
Check your DRAGONFLY_ROOT constant, make sure it's correctly set. In the standard config.lsp it's set to this: ; docroot (also site root, usually doesn't need modification) (constant (global 'DOCUMENT_ROOT) (env "DOCUMENT_ROOT")) ; dragonfly root (constant (global 'DRAGONFLY_ROOT) (string DOCUMENT_R...
- Fri Jun 25, 2010 12:26 am
- Forum: Dragonfly
- Topic: How do I retain a list in memory in Dragonfly between pages?
- Replies: 5
- Views: 6044
Re: How do I retain a list in memory in Dragonfly between pages?
Normally large amounts of data is stored in some sort of a database, not loaded all at once. Dragonfly has excellent support for sqlite3 (see the docs for DF.DB). You can also use something like memcache.
- Thu Jun 17, 2010 7:41 am
- Forum: newLISP in the real world
- Topic: newLISP web server with SSL
- Replies: 3
- Views: 2124
Re: newLISP web server with SSL
Any suggestions, or am I stuck running Apache or Lighttpd or similar to make this happen? Why do you consider that "stuck"? newLISP's built-in web server isn't exactly designed to serve as a replacement for Apache or lighttpd, it's primarily for testing purposes. Or is this just a matter of conveni...
- Thu Jun 10, 2010 3:06 am
- Forum: newLISP in the real world
- Topic: webserver multiple domains
- Replies: 3
- Views: 1366
Re: webserver multiple domains
I don't think newLISP's built-in web server is designed to be used to host live websites.... Doesn't sound like a very good idea. :-\
- Sun Jun 06, 2010 1:04 am
- Forum: Whither newLISP?
- Topic: Lisp and "symbols": difference with Python or other script!
- Replies: 9
- Views: 5951
Re: Lisp and "symbols": difference with Python or other script!
Fundamentally LISPs are different in that expressions are based on the list data structure, and this structure is directly accessible to the executing code. The syntax and various other features are really just extraneous stuff that people throw on top of this fact. Other languages can interpret str...
- Tue May 25, 2010 6:59 pm
- Forum: Whither newLISP?
- Topic: Developing commercial software
- Replies: 38
- Views: 24627
Re: Developing commercial software
I sent Lutz an email asking for comment and here's his response: People should just goto http://www.gnu.org/licenses/gpl-faq.html and read up on related questions. Regarding linking the newLISP script and newLISP executable or shipping it together, it is pretty much like HPW stated it in the thread:...
- Thu May 20, 2010 4:44 pm
- Forum: Whither newLISP?
- Topic: Developing commercial software
- Replies: 38
- Views: 24627
Re: Developing commercial software
My interest in this topic is purely academic - but I'm curious - what do the other scripting languages do for licensing - Perl, Python, Ruby, Lua, etc? If different from newLISP, what does newLISP's licence deliver that the others miss out on? All except for Perl appear to be liberal licenses that ...
- Wed May 19, 2010 8:37 pm
- Forum: newLISP in the real world
- Topic: What is the best way to get the URL generated by a <FORM>?
- Replies: 3
- Views: 1818
Re: What is the best way to get the URL generated by a <FORM>?
Glad I could help. :-)
- Wed May 19, 2010 6:05 pm
- Forum: newLISP in the real world
- Topic: What is the best way to get the URL generated by a <FORM>?
- Replies: 3
- Views: 1818
Re: What is the best way to get the URL generated by a <FORM>?
I'm not sure I understand your question. But just looking at your code I see that you're using the same name for all the checkboxes. If you want to do that you should put a '[]' after the name like this: 'input[]' so that Dragonfly gets all the values in a list, not just the last one. Have you looke...
- Tue May 18, 2010 10:33 pm
- Forum: Whither newLISP?
- Topic: Developing commercial software
- Replies: 38
- Views: 24627
Re: Developing commercial software
For a language to become popular, it needs as few impediments as possible. The GPL is one such impediment.
- Tue May 18, 2010 10:02 pm
- Forum: Whither newLISP?
- Topic: Developing commercial software
- Replies: 38
- Views: 24627
Re: Developing commercial software
I'd just like to cast my vote for the LGPL (or if possible, an even more liberal license).