Search found 145 matches
- Mon Aug 15, 2011 12:13 am
- Forum: newLISP and the O.S.
- Topic: newlisp OS X Lion Bus Error
- Replies: 1
- Views: 2522
newlisp OS X Lion Bus Error
I have a program I've been running for many months. I upgraded to newLisp 10.3.2 and to OS X Lion. Now, running newlisp server.lsp -c -d 8080 -w . And loading my index.cgi (unchanged) through the "server.lsp" code (see below) causes a BUS ERROR. sh: line 1: 22042 Bus error: 10 ./"index.cgi" > /tmp/n...
- Fri May 20, 2011 3:29 am
- Forum: newLISP in the real world
- Topic: (read-line) and CONTROL-D
- Replies: 4
- Views: 2275
Re: (read-line) and CONTROL-D
My goal is to have something I've requested or found referenced in every set of release notes since 2005...
Looks like I'm in 10.3.1 too! :)
Looks like I'm in 10.3.1 too! :)
Lutz wrote:An uncleared EOF condition on the input stream in 'read-line'.
This is fixed here: http://www.newlisp.org/downloads/develo ... nprogress/
- Sun May 15, 2011 6:32 am
- Forum: newLISP newS
- Topic: newlisp.vim 1.35
- Replies: 5
- Views: 5995
Re: newlisp.vim 1.35
I've been writing code with your updated newlisp.vim since you posted in this thread.
I shared a screen shot of my vim terminal in another thread, but thought you'd want to see it here.
MacVim (plus a bunch of extras installed).
I shared a screen shot of my vim terminal in another thread, but thought you'd want to see it here.
MacVim (plus a bunch of extras installed).
- Sun May 15, 2011 6:30 am
- Forum: newLISP in the real world
- Topic: TextMate Bundles
- Replies: 2
- Views: 1965
Re: TextMate Bundles
Yeah.
I've pretty much moved to MacVim (and vim) for all my editing, as I have a ton of SSH places to go and change files.
I'll post my MacVim settings at some point.
In the meantime, here's a teaser...
I've pretty much moved to MacVim (and vim) for all my editing, as I have a ton of SSH places to go and change files.
I'll post my MacVim settings at some point.
In the meantime, here's a teaser...
- Sun May 15, 2011 6:24 am
- Forum: newLISP in the real world
- Topic: (read-line) and CONTROL-D
- Replies: 4
- Views: 2275
(read-line) and CONTROL-D
What the ****?!?
Run this. Type a few keys, hit ENTER.
Now, hit CONTROL-D
(be prepared to hit Control-Z and then kill newlisp)
Code: Select all
(setf stopme nil)
(while (nil? stopme)
(setf r (read-line))
(if (find "exit" r) (setf stopme true))
(println "Line: " r)
)
Now, hit CONTROL-D
(be prepared to hit Control-Z and then kill newlisp)
- Sun May 15, 2011 6:22 am
- Forum: newLISP in the real world
- Topic: Interesting Challenge...
- Replies: 6
- Views: 3076
Re: Interesting Challenge...
If you are talking about a solution which solves the original problem (at the top of this thread) in under 2 minutes (and gets just over 78,000 friends) -- you should post the results. And, yes, that is what I am seeing. Kanen (or anyone else), I have a solution to the problem in newLISP, which comp...
- Tue May 10, 2011 5:26 am
- Forum: newLISP in the real world
- Topic: Interesting Challenge...
- Replies: 6
- Views: 3076
- Thu May 05, 2011 7:48 pm
- Forum: Whither newLISP?
- Topic: Common Lisp newLisp module?
- Replies: 8
- Views: 8887
Re: Common Lisp newLisp module?
Excellent points. I will probably first port the Land of Lisp to newLisp anyway. Could be a fun project. I am very interested in a newLisp compiler, as I am certain many people are. I've been thinking for years about how much work would be involved to turn newLisp code into a .fasl style output or t...
- Thu May 05, 2011 7:11 am
- Forum: Whither newLISP?
- Topic: Common Lisp newLisp module?
- Replies: 8
- Views: 8887
Common Lisp newLisp module?
Just curious... Has anyone taken the time to port the basics of ANSI Common Lisp to newLisp as a loadable module? I am considering writing a CL inside newLisp, so I can use "normal" Common Lisp expressions and functions in my newLisp code, but use newLisp specific things when it makes sense. Yes, Lu...
- Thu May 05, 2011 5:11 am
- Forum: newLISP in the real world
- Topic: TextMate Bundles
- Replies: 2
- Views: 1965
TextMate Bundles
It always drove me crazy that the TextMate newLisp.bundle(s) out there did not support modern keywords in newLisp and they did not support entities. What I mean is: ( setq my-var 1) In the regular TextMate newLisp bundles, "my-var" is not treated as an entity. So, I've been playing with some changes...
- Wed May 04, 2011 6:20 am
- Forum: newLISP in the real world
- Topic: Interesting Challenge...
- Replies: 6
- Views: 3076
Re: Interesting Challenge...
I posted some work-in-progress code, with a ton of options and some fun stuff in it for this challenge.
https://gist.github.com/954811
https://gist.github.com/954811
- Tue May 03, 2011 7:36 pm
- Forum: newLISP and the O.S.
- Topic: Bug in command-line option (-w)
- Replies: 1
- Views: 2456
Bug in command-line option (-w)
I should be able to specify command-line options to be used with (main-args)
This is a problem, because I did not specify "-w <working directory>" -- even though newLisp believes I did.
Maybe check for a space after -w?
Code: Select all
$ newlisp -word hi
ERR: no working directory found
Maybe check for a space after -w?
- Sat Apr 30, 2011 6:56 pm
- Forum: newLISP in the real world
- Topic: Collatz Conjecture
- Replies: 0
- Views: 2430
Collatz Conjecture
I'm working on a New Lesson in Lisp this week and decided to tackle Collatz Conjecture. I am going to express the code two ways. Firstly, as a 'standard' programming example and secondly as a Lisp programming example. So, I thought I'd share the standard example and give the forums a chance to comme...
- Sat Apr 30, 2011 1:42 am
- Forum: newLISP in the real world
- Topic: Interesting Challenge...
- Replies: 6
- Views: 3076
Interesting Challenge...
I was reading a post on Craig's List where a company was asking for resumes, but they wanted you to solve a specific problem first. As I do a ton of work like this, I thought it would be interesting to share and talk about. I have settled on a way to do this without building a matrix, but I want to ...
- Sat Apr 30, 2011 1:35 am
- Forum: newLISP in the real world
- Topic: Lisp + observation... (unless)
- Replies: 2
- Views: 2128
Lisp + observation... (unless)
I've been [re]learning Lisp (not newLisp) a little bit over the last few weeks, while writing my Lessons in Lisp stuff and I stumbled across a Language Popularity index http://www.langpop.com/#normalized a Wikipedia page about Common Lisp http://en.wikipedia.org/wiki/Common_Lisp . I'd seen both befo...
- Tue Apr 19, 2011 5:15 am
- Forum: newLISP in the real world
- Topic: (timer) fails on (fork)
- Replies: 4
- Views: 2397
Re: (timer) fails on (fork)
Or... a stray (sleep) call in one of the twenty modules. Not that I'd ever admit it. :) newLISP uses the same fork(), setitimer() and getitimer() functions on all UNIX platforms. Perhaps there are some specifics, how fork() and setitimer() interact on your platform, e.g. some resource contention bet...
- Sun Apr 17, 2011 10:27 pm
- Forum: newLISP in the real world
- Topic: Replacing HTML codes
- Replies: 4
- Views: 2384
Re: Replacing HTML codes
I feel like I am missing some (map) or (replace) iterative operator. In other words, $it is the iterative operator I was missing. :) d'oh! (setq text "Telefónica to Sell Spanish Assets") ; regex flag = 0 (replace ".*?;" text (char (int (2 -1 $it))) 0) (println text) ;-> Telefónica to Sell Sp...
- Sun Apr 17, 2011 7:25 pm
- Forum: newLISP in the real world
- Topic: Replacing HTML codes
- Replies: 4
- Views: 2384
Replacing HTML codes
I have a series of lists, which contain something like: "Telefónica to Sell Spanish Assets" I want to be able to quickly change all these codes to their proper ascii characters. (set 'x "Telefónica to Sell Spanish Assets") (find {(.*);} x 0) ; reference only (regex {(.*);} x) ; > ("...
- Sat Apr 16, 2011 7:01 am
- Forum: newLISP in the real world
- Topic: Need faster find (with a semi-complex example)
- Replies: 2
- Views: 1793
Need faster find (with a semi-complex example)
I am processing tens of thousands of bits of data per minute (and, sometimes, per second). I have information coming in as a list in the form '(0 30 55 200 0 1) and I have a reference in a similar format. I need to match the contents of my known lists with the new list which has just arrived. And, i...
- Sat Apr 16, 2011 6:03 am
- Forum: newLISP in the real world
- Topic: Some cool marketing for newLISP from Kanen ...
- Replies: 2
- Views: 1778
Re: Some cool marketing for newLISP from Kanen ...
Did I really say that? Well, it's my favorite and has the best community, anyway! I'm speaking at http://www.takedowncon.com in a month and talking about newLisp there too. The front page (as of right now) mistakenly identifies me as the "Creator of Lisp" ;) I sent an email letting them know that: a...
- Fri Apr 15, 2011 4:52 am
- Forum: newLISP in the real world
- Topic: Faster than find?
- Replies: 5
- Views: 2777
Re: Faster than find?
Genius. I should have considered it, but I didn't think it would be that much faster. Turns out, I was totally wrong. It is way faster . (new Tree 'H) (dolist (s (sequence 1 10000)) (set 'n (rand 300 4)) (H (format "%03d%03d%03d%03d" n) n)) (164 274 162 184) > (time (H "164274162184")) 0.011 Pretty ...
- Wed Apr 13, 2011 7:28 pm
- Forum: newLISP in the real world
- Topic: Faster than find?
- Replies: 5
- Views: 2777
Re: Faster than find?
The large list can be pre-built. The thing-to-find can be dynamically assembled in the same format as the large list. Elaborate on your dictionary idea. I would love to hear your thoughts. Hmm. Tricky to know where to make the trade-offs. Are the numbers/lists unique? If so, you could use a dictiona...
- Wed Apr 13, 2011 5:49 am
- Forum: newLISP in the real world
- Topic: (timer) fails on (fork)
- Replies: 4
- Views: 2397
Re: (timer) fails on (fork)
Would anything else cause this?
I have removed every (sleep) from my code and I still have the timer failing when I fork.
I have removed every (sleep) from my code and I still have the timer failing when I fork.
- Wed Apr 13, 2011 3:14 am
- Forum: newLISP in the real world
- Topic: (timer) fails on (fork)
- Replies: 4
- Views: 2397
(timer) fails on (fork)
Say you have : ; ; a define (define (foo) (println "Oh Yeah.") ) ; ; and another (define (foobar) (dolist (s (sequence 1 10)) (sleep 1000) ) ) ; ; and a timer: (define (ImaTimer) (foo) (timer 'ImaTimer 1) ) ; ; and, some code: (println "Setting timer...") (ImaTimer) (println "Forking...") (fork (foo...
- Wed Apr 13, 2011 12:33 am
- Forum: newLISP in the real world
- Topic: Faster than intersect?
- Replies: 1
- Views: 1369
Faster than intersect?
While I am asking about speed... I am trying to find a set of values within another, larger set of values: (I removed some of the code formatting so bold items appear properly) The big string is: (set 'big '(1 1 5 10 82 222 118 135 82 222 120 79 10 235 83 241 225 229 147 140 238 0 61 97 224 64 31 20...