Search found 166 matches

by didi
Sat Dec 27, 2014 8:33 am
Forum: newLISP in the real world
Topic: Access to serial interface with Windows-OS
Replies: 3
Views: 3204

Re: Access to serial interface with Windows-OS

OK - Thanks, you are right, Google ;) I just found this on github:

https://github.com/ryuo/newlisp-serial-port

An on the newLISP site under modules : http://www.newlisp.org/modules/
by didi
Fri Dec 26, 2014 8:26 am
Forum: newLISP in the real world
Topic: Access to serial interface with Windows-OS
Replies: 3
Views: 3204

Access to serial interface with Windows-OS

I am wondering how to communicate via the serial port under Windows7. Has someone a tipp ?
by didi
Wed Nov 05, 2014 5:43 pm
Forum: newLISP in the real world
Topic: Big structures - Greenarrays GA144 simulator
Replies: 6
Views: 4265

Re: Big structures - Greenarrays GA144 simulator

You have 3 and a half slots per word. So up to 4 commands per word . There is also a micronext command, with it you can make a loop within one word and other nice Features.. with some outer nodes you can make simple Interfaces to different memories, I currently use the serial Interface, one word are...
by didi
Wed Nov 05, 2014 6:31 am
Forum: newLISP in the real world
Topic: Big structures - Greenarrays GA144 simulator
Replies: 6
Views: 4265

Re: Big structures - Greenarrays GA144 simulator

The nodes talk via the I/O ports to each other, by Default a middle node listens to his 4 neighbours, if one of the 4 writes something it starts working. Let's take the datastack and the push and pop command - that'll be the most used . Top of stack is "T" , second is "S" and than the inner 8 words ...
by didi
Sun Nov 02, 2014 5:43 pm
Forum: newLISP in the real world
Topic: Big structures - Greenarrays GA144 simulator
Replies: 6
Views: 4265

Big structures - Greenarrays GA144 simulator

I am testing and learning all about the Greenarrays GA144 chip , a multicore processor with 144 very simple 32 bit processors, optimized for FORTH, Chuck Moores design - really minimalistic. I first have made a disassembler, about one page of code, which is quite good : http://www.ForthSeen.de , see...
by didi
Thu Jan 24, 2013 6:13 am
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6979

Re: Searching in lists

Thanks Ricky !

It seems that in Wordpress 3.xx it is correct and the problem is only with the older versions 2.9x

Currently I'm struggeling with some regex functions to replace the image and video-links. More after solving that ..
by didi
Sat Jan 12, 2013 11:38 am
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6979

Re: Searching in lists

With Wordpress 3.x everything works fine. With 2.x I had to delete all "youtube videos" , because the output of xml-parse was "nil" due to "not well formed XML", to analyze it I opened the xml-file with my firefox-browser, there you get detailed informations about the errors , I had to throw out lin...
by didi
Fri Jan 11, 2013 6:10 am
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6979

Re: Searching in lists

Thanks Ricky !! I like the "Lego" style .
Thats exactly what I wanted, in the end all wordpress-posts should be in Cormullions nldb.lsp database.
So that I can translate a wordpress-blog in the static blog with ZZBlogX .

Many thanks to all. Hope I can show you the final result soon.
by didi
Thu Jan 10, 2013 6:52 pm
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6979

Re: Searching in lists

Ricky's code works fine. I've got all titles out of a 600kb textfile in a blink. Now I want to get the post-content marked as <content:encoded> , I changed "title" to "content:encoded" and tested evey kind and combination of "*" nothing worked. Maybe I couldn't find out the right pattern or it doesn...
by didi
Thu Jan 10, 2013 6:19 am
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6979

Re: Searching in lists

Thanks Ricky - that's really awesome - nearly can't wait till the evening to test it !
by didi
Wed Jan 09, 2013 9:19 pm
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6979

Re: Searching in lists

The wikibook shows exactly what I'm looking for. I try to adapt that for wordpress. I'll be back after everything works this works now, too - but not elegant : ( do-while (find "title" outlist) ( set 'i ( find "title" outlist )) ( set 'outlist ( i outlist)) ( pop outlist ) ( push (pop outlist) title...
by didi
Wed Jan 09, 2013 6:16 am
Forum: newLISP in the real world
Topic: Searching in lists
Replies: 19
Views: 6979

Searching in lists

I want to import data directly from Wordpress to my ZZBlogX. I can export data as XML-Files. I've parsed it with xml-parse and filtered out unnecessary things. Now I have the problem to seek through the file for eg. to look for "title" and then get the next element which is the title to make a title...
by didi
Sat Jan 05, 2013 12:23 pm
Forum: newLISP in the real world
Topic: ZZBlogX A static blog generator
Replies: 5
Views: 2780

Re: ZZBlogX A static blog generator

Thank you for your Tipps, I made an update: ZZBlogX New Version Updated to newLIPS Version 10.4.5 Updated to nldb.lsp from Cormullion @version 2010-01-14 14:57:28 @Cormullion First it didn't work with the new nldb, I had to change this functions: ( select-rows 'myBlog '(= xdate 'datevalue)'( titel m...
by didi
Fri Jan 04, 2013 5:32 pm
Forum: newLISP in the real world
Topic: ZZBlogX A static blog generator
Replies: 5
Views: 2780

Re: ZZBlogX A static blog generator

Hi Ricky and Cormullion, thankyou very much for looking at the program on different platforms - and the tipps what to change for that. Cormullion, I use nldb since 4 years in my ShortNotizer-program nearly every day and so far it worked without problems, so I am quite confident that there is no prob...
by didi
Thu Jan 03, 2013 6:59 pm
Forum: newLISP in the real world
Topic: ZZBlogX A static blog generator
Replies: 5
Views: 2780

ZZBlogX A static blog generator

I wrote another newLISP programm - ” ZZBlogX – A Static Blog Generator ” ZZBlogX generates dozens of blog like html-pages in a second. I wrote this program as an easier and more flexible replacement for my Wordpress blogs. In contrast to eg. Wordpress the pages are ’static’ that means you do not nee...
by didi
Tue Jan 10, 2012 6:08 am
Forum: newLISP in the real world
Topic: List indexing
Replies: 2
Views: 1780

Re: List indexing

Super, thankyou !
by didi
Mon Jan 09, 2012 7:06 pm
Forum: newLISP in the real world
Topic: List indexing
Replies: 2
Views: 1780

List indexing

; implicit indexing from "Code Patterns" (set 'L '(a b (c d (e f) g) h i)) (L 2 2 1) → f (L 2 2) → (e f) Is there a reverse function to get the vector of an element in a nested list ? Is it right, that the find function principally does this, but only in the highest level ? For example (find 'a L ) ...
by didi
Sat Jul 04, 2009 5:58 pm
Forum: newLISP Graphics & Sound
Topic: oh-no-graphic
Replies: 21
Views: 14916

http://www.dmemos.de/onographic/images/ono18-400-400.png new is a special arc-function , you give two points and a radius ... OK - i know a manual would be not bad, and a special context , and some optimization .. but until now it makes fun without it ;) the rest is here : http://www.dmemos.de/onog...
by didi
Sat Jul 04, 2009 5:55 pm
Forum: newLISP Graphics & Sound
Topic: oh-no-graphic
Replies: 21
Views: 14916

arcs

; ono-arc.lsp 4july2009 dmemos ; get the possible centers of a circle, 2 points and a radius given ( define ( getcenter x1 y1 x2 y2 radius ) ( set 'DX ( sub x2 x1 ) 'DY ( sub y2 y1 ) ) ( set 'dist-x1-x2 ( sqrt ( add (pow DX 2) (pow DY 2)))) ( set 'min-radius (div dist-x1-x2 2 )) ( if ( < radius min...
by didi
Thu Jun 18, 2009 5:21 am
Forum: Whither newLISP?
Topic: What is the language of the future?
Replies: 13
Views: 8154

As a hobby-programmer i have maybe not the right view, but I think the language of the ( farer?) future is still not there .
My dream since a long time, is a new programming language, self-optimizing, self-organizing, self-simplifying .And i think newLISP is the first step to it.
by didi
Thu Jun 11, 2009 5:27 pm
Forum: newLISP Graphics & Sound
Topic: oh-no-graphic
Replies: 21
Views: 14916

THX Cormullion :) - Now with pretty fast circles : ; ono-circle.lsp 11june2009 dmemos ( define ( circle xm ym r ) ( set 'cy r ) ( set 'cx 0 ) ( set 'pd ( div (sub 5 (mul r 4)) 4)) ( cpoint xm ym cx cy ) ( while ( < cx cy ) ( inc cx ) ( if ( < pd 0 ) ( set 'pd ( + pd (* 2 cx ) 1 )) ( begin ( dec cy )...
by didi
Sun Jun 07, 2009 6:28 pm
Forum: newLISP Graphics & Sound
Topic: oh-no-graphic
Replies: 21
Views: 14916

http://www.dmemos.de/onographic/ I made a special site for this project on my mainpage. Don't want to overload this thread and your nerves ;) drawline, drawpath and drawpolygon are new. PS: Is there a simpler way to get eg. four elements out of a list ( the values not a sublist ) than this ? " ( ml...
by didi
Fri Jun 05, 2009 10:47 am
Forum: newLISP Graphics & Sound
Topic: Some almond bread for tea
Replies: 3
Views: 5394

I like them ! and speed comes with time ;)

( How long would this take with nl-gs ? )
by didi
Tue Jun 02, 2009 6:55 pm
Forum: newLISP Graphics & Sound
Topic: oh-no-graphic
Replies: 21
Views: 14916

OK - thanks Lutz.
by didi
Tue Jun 02, 2009 6:26 pm
Forum: newLISP Graphics & Sound
Topic: oh-no-graphic
Replies: 21
Views: 14916

; part of ono-rgb-ppm2.lsp (rgb-mixer) ( set 'cmax 255 ) ( set 'cmin 0 ) ( set 'red ( list cmax cmin cmin )) ( set 'green ( list cmin cmax cmin )) ( define ( limit rgbx) ( if ( > rgbx cmax) cmax ( if ( < rgbx cmin) cmin rgbx ))) ( define ( rgb-add rgb1 rgb2 ) ( map limit ( map add rgb1 rgb2))) ( se...