Search found 608 matches
- Wed Sep 13, 2017 1:46 am
- Forum: Anything else we might add?
- Topic: Newlisp vs Lua
- Replies: 11
- Views: 13564
Re: Newlisp vs Lua
A thought on co-routines; how do you implement them so the call stack doesn't blow up? Is such an implementation possible under the ORO memory manager? The bash shell uses ORO, and Unix pipes have been compared to coroutines, maybe there is some insight to be gleaned there. If coroutines require cod...
- Tue Sep 12, 2017 8:21 pm
- Forum: Anything else we might add?
- Topic: Newlisp vs Lua
- Replies: 11
- Views: 13564
Re: Newlisp vs Lua
So, for newLISP, I think that licensing is not a big issue; if not, a non-issue, or rather, shouldn't be considered critical or important. (But as we all know, perception often wins out over bare facts. I get it, as sometimes, I'm the cause of such problems/issues myself. :) License is an issue if ...
- Tue Sep 12, 2017 4:26 pm
- Forum: Anything else we might add?
- Topic: Newlisp vs Lua
- Replies: 11
- Views: 13564
Re: Newlisp vs Lua
About Mind-share, Lua has licensed a bit differently in a way that allows proprietary software. And it has a university department that has been developing and promoting it for decades. Guy Steele wrote about the initial user communities for a language being crucial to it taking off. So, what is the...
- Tue Sep 12, 2017 4:20 pm
- Forum: Anything else we might add?
- Topic: Newlisp vs Lua
- Replies: 11
- Views: 13564
Re: Newlisp vs Lua
I've been thinking about coroutines over the past 2 years. To my surprise, I think I've found a way to implement coroutines for newlisp that doesn't involve any assembly language or tricky C. It is just pure AST manipulation. However, it definitely wouldn't be lexically scoped. :) I went back and re...
- Wed Aug 09, 2017 7:32 am
- Forum: newLISP Graphics & Sound
- Topic: Postscript page size: plywood sheet for CNC routing.
- Replies: 5
- Views: 6129
Re: Postscript page size: plywood sheet for CNC routing.
Thanks Lutz. I found I can do it entirely in the Postscript. I took the postscript output by newlisp, and edited it by hand. Here is the diff; it just needed 3 lines added, and 1 line modified. -%!PS-Adobe-2.0 +%!PS-Adobe-3.0 %%Creator: newLISP +%%Orientation: Portrait +%%DocumentMedia: plywood 6912...
- Wed Aug 09, 2017 12:21 am
- Forum: newLISP Graphics & Sound
- Topic: Postscript page size: plywood sheet for CNC routing.
- Replies: 5
- Views: 6129
Re: Postscript page size: plywood sheet for CNC routing.
This page may have the info I need. I'll do some experiments.
http://pages.cs.wisc.edu/~rjl/landscape/
http://pages.cs.wisc.edu/~rjl/landscape/
- Tue Aug 08, 2017 9:11 pm
- Forum: newLISP Graphics & Sound
- Topic: Postscript page size: plywood sheet for CNC routing.
- Replies: 5
- Views: 6129
Postscript page size: plywood sheet for CNC routing.
I'm using newlisp to make postscript (and thus, PDF) files for cutting things on laser cutters and CNC machines. I love the ability to be precise and exact in my lines and angles. For CNC cutting, I want to use plywood pieces bigger than a typical sheet of paper. Lots of CNC software accepts PDF fil...
- Tue Jul 25, 2017 6:30 am
- Forum: Anything else we might add?
- Topic: wanted (net-debug ...)
- Replies: 3
- Views: 4860
Re: wanted (net-debug ...)
Lutz did add an embedded DLL call that keeps the console output as normal. I forget what he called it. Should be in the documentation. He added it at my request 2 years ago. Should still be there in the API.mikerudin39 wrote:2. debugging for embedded dll - no console at all...
- Sat Jul 22, 2017 6:38 am
- Forum: Anything else we might add?
- Topic: about (directory)
- Replies: 11
- Views: 9607
Re: about (directory)
Does that mean the non-UTF8 version of newlisp is working for you?
- Thu Jul 20, 2017 10:11 pm
- Forum: Anything else we might add?
- Topic: about (directory)
- Replies: 11
- Views: 9607
Re: about (directory)
So, the problem is his system is using code page 936 (Simplified Chinese), but newlisp is using UTF8. To convert between encodings perhaps I need to write some bindings for libiconv, libiconv can convert between different character encodings. But I don't see myself having time to write the bindings ...
- Thu Jul 20, 2017 10:05 pm
- Forum: Anything else we might add?
- Topic: about (directory)
- Replies: 11
- Views: 9607
Re: about (directory)
Might have something to do with locale; perhaps the output of (directory) is coming in the current locale, which may NOT be UTF-8? So, how do you convert from his locale encoding into UTF8? What text encoding is he using if not UTF8? Some sort of non-UTF multi-byte encoding.
- Tue Jul 18, 2017 5:32 pm
- Forum: Anything else we might add?
- Topic: about (directory)
- Replies: 11
- Views: 9607
Re: about (directory)
Can you run and tell us the results?
Code: Select all
(set-locale)
- Sun Jul 16, 2017 8:48 pm
- Forum: Anything else we might add?
- Topic: about (directory)
- Replies: 11
- Views: 9607
Re: about (directory)
To help with debugging, can you run this newlisp code and paste the results? (define str->bytes (lambda (s) (unpack (dup "b" (length s)) s))) (str->bytes "the real filename") (str->bytes "the filename directory returns") Don't cut and paste the code; when you run str->bytes function, then put in the...
- Wed Jul 12, 2017 4:58 pm
- Forum: Anything else we might add?
- Topic: and to set $it?
- Replies: 2
- Views: 4360
Re: and to set $it?
Haskell also has nice composition syntax with the "." operator, be worth studying that for some lessons. Monads are such a big deal in Haskell, but I think a lot of JavaScript patterns are using monads and monadic style without even thinking about it.
- Wed Jul 12, 2017 4:56 pm
- Forum: Anything else we might add?
- Topic: and to set $it?
- Replies: 2
- Views: 4360
Re: and to set $it?
$it has a slightly different meaning already. But we could definitely use a "thrush" function. I was thinking, instead of two separate thrush operators -> and ->> like Clojure hash, I'd like a thrush like this: (thrush initial-expr [idx] expr [idx] expr [idx] expr) In this syntax, idx is an optional...
- Wed Jul 12, 2017 6:10 am
- Forum: newLISP Graphics & Sound
- Topic: PostScript atan error
- Replies: 2
- Views: 5610
Re: PostScript atan error
I think I found the error. The "atan" is bombing out when drawto is called from a point, to the identical point. So I changed my code a little to guarantee drawto isn't called when the start and end points are identical. Now it works.
- Wed Jul 12, 2017 6:08 am
- Forum: newLISP Graphics & Sound
- Topic: PostScript atan error
- Replies: 2
- Views: 5610
PostScript atan error
Hi. On macOS Sierra, I am using postscript.lsp (newlisp 10.7.0) In the function drawto, there is a line newy ypos sub newx xpos sub atan neg 90 add /orient exch def So I generate my postscript instructions with ps:render. Then it comes time to convert the postscript file to a PDF so I can view it, a...
- Sat Jun 17, 2017 11:31 pm
- Forum: Whither newLISP?
- Topic: (directory) nonsence
- Replies: 5
- Views: 7256
Re: (directory) nonsence
I it dot'nt make ant difference still got nil. I ended up using (directory) followed with a do-list to remove everything I do not want. thanks for the reply . ps I missed the definitive reply before I posted this the first time ... my bad Glad you were able to do what you wanted. Can you try one mo...
- Fri Jun 16, 2017 4:14 am
- Forum: Whither newLISP?
- Topic: (directory) nonsence
- Replies: 5
- Views: 7256
Re: (directory) nonsence
first problem I put (directory) in the search box an it tells me it is too common ? I change-dir to the directory with my log files and do a (directory) and get back a list of everything. In this case I only want the dovecot logs so why does (directory "dovecot*") return nil ? obviously too common ...
- Wed Jun 07, 2017 5:18 am
- Forum: newLISP in the real world
- Topic: suggestion: nand, nor, and xor functions
- Replies: 8
- Views: 7218
Re: suggestion: nand, nor, and xor functions
Chaining them together would be easier with something like foldr or foldl from Haskell. Lutz? You reading this? Also, the "thrush" operator from Clojure is pretty handy.
- Wed Jun 07, 2017 2:01 am
- Forum: newLISP in the real world
- Topic: suggestion: nand, nor, and xor functions
- Replies: 8
- Views: 7218
Re: suggestion: nand, nor, and xor functions
Also, if you want multy versions, show me the output for nand, nor, and xnor. The main thing I need to know is, is "not" applied as the last operation to regular standard multy and, nor, xor, or is it a chain of nand, nor, xnor operations.
- Wed Jun 07, 2017 1:17 am
- Forum: newLISP in the real world
- Topic: suggestion: nand, nor, and xor functions
- Replies: 8
- Views: 7218
Re: suggestion: nand, nor, and xor functions
I can do an (and a b c d e ... I am looking for a multy input (nand a b c d ... Please show the output for multy (nand a b c d) Is the (not ...) applied as the last operation, or is it done more as a "fold" operation like (nand (nand (nand a b) c) d) ? Almost everything I do gets linked to an exe w...
- Tue Jun 06, 2017 8:39 pm
- Forum: newLISP in the real world
- Topic: suggestion: nand, nor, and xor functions
- Replies: 8
- Views: 7218
Re: suggestion: nand, nor, and xor functions
If I have to guess, I'd say there is no nand, nor, and xor because xor is already present with the ^ operator (like in C), nand and nor are easily composed from (not (and)) and (not (or)). Or something like that. If you have a use case where this is a performance bottleneck, like a tight inner loop ...
- Thu Jun 01, 2017 2:01 am
- Forum: newLISP and the O.S.
- Topic: All the console goodies you ever wanted
- Replies: 11
- Views: 14219
Re: All the console goodies you ever wanted
Thank you, Bob the CaveGuy.
- Fri Jan 27, 2017 1:39 pm
- Forum: newLISP and the O.S.
- Topic: Static compiling newlisp for portable binaries
- Replies: 1
- Views: 3988
Re: Static compiling newlisp for portable binaries
I tested a simple socket program on OpenBSD, and static linking works fine. So this is a Linux issue. The solution is to use a different version of libc. The MUSL version looks pretty good. I'll need to test it with newlisp soon to confirm it provides everything newlisp needs. https://www.musl-libc....