Search found 296 matches
- Thu Jun 20, 2013 10:47 am
- Forum: newLISP in the real world
- Topic: how to wrap functions from a context without prefixing?
- Replies: 2
- Views: 2221
Re: how to wrap functions from a context without prefixing?
Here is a small example of how newLISP can use the power of "context" to create an html5 dsl. ; This module and program code is run ; together as one file to make it easier ; to experiment with. ; ---------------------------------------- ; module file "html5.lsp" code section (context 'html5) (defin...
- Wed Jun 12, 2013 8:36 pm
- Forum: newLISP newS
- Topic: Guiserver Java 7 update 21 bug fix
- Replies: 1
- Views: 6998
Re: Guiserver Java 7 update 21 bug fix
It is working on my Win 7 laptop again, (until the next Java security update ;o)
-- xytroxon
-- xytroxon
- Sat Jun 01, 2013 7:10 pm
- Forum: newLISP and the O.S.
- Topic: Windows install
- Replies: 35
- Views: 25599
Re: Windows install
Lutz, I am also having the same problem on Win 7 :o( Back in March, I uninstalled Java 6 when it failed to upgrade to Java 7... (Downloading nearly 31 megabytes over a 28.8k phone modem over a rickety phone line in the country isn't pretty...) From the on going Java security problems I read about ba...
- Wed May 15, 2013 4:38 pm
- Forum: Anything else we might add?
- Topic: Tail Recusion
- Replies: 7
- Views: 5641
Re: Tail Recusion
I've no idea what he's on about to be honest...) It's just one of those on-going fundamental difference in personal philosophy that come to a head now and then... http://www.thetimes.co.uk/tto/news/uk/article3765790.ece I find that there are pluses and minuses to both sides' views, but I have real ...
- Mon Apr 15, 2013 10:20 pm
- Forum: newLISP newS
- Topic: Built-in, unlimited precision, big integer arithmetik
- Replies: 18
- Views: 19383
Re: Built-in, unlimited precision, big integer arithmetik
Ditto...
Since the death of my 4 German speaking great grandparents nearly 50 years ago, sadly, our family retains very few German words in their daily vocabulary.
Lutz's amazing command of the American er. "English" language is almost flawless.
Almost ;o)
-- xytroxon
Since the death of my 4 German speaking great grandparents nearly 50 years ago, sadly, our family retains very few German words in their daily vocabulary.
Lutz's amazing command of the American er. "English" language is almost flawless.
Almost ;o)
-- xytroxon
- Mon Apr 15, 2013 9:17 am
- Forum: newLISP newS
- Topic: Built-in, unlimited precision, big integer arithmetik
- Replies: 18
- Views: 19383
Re: Built-in, unlimited precision, big integer arithmetik
Bist du wahnsinnig?cormullion wrote:(arithmetiC, by the way, not arithmetiK), although it look good with a K...
http://de.wikipedia.org/wiki/Arithmetik
-- xytroxon ;o)
- Tue Apr 09, 2013 7:36 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: For Fun: Benchmarking Sudoku Algorithms
- Replies: 0
- Views: 5270
For Fun: Benchmarking Sudoku Algorithms
In the spirit of rickyboy's recent interesting posts on using the problem solving capabilities of the newlisp language, I offer up this "For Fun" challenge, inspired by this old (2011) 'Attractive Chaos' blog that bubbled back up on one of my rss feeds: 'An Incomplete Review of Sudoku Solver Impleme...
- Thu Apr 04, 2013 9:40 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: For Fun: Clojure-style Tail Recursion in newLISP
- Replies: 9
- Views: 11007
Re: For Fun: Clojure-style Tail Recursion in newLISP
Sometimes it's fun to do something illegal - in programming languages, I mean - (1) (1) I know, some on this forum work for the government ;) And sometimes it's not... when it allows easily made programming errors... (setq x -0.1) (println (inc x)) ;-> 0.9 (println (inc x)) ;-> 1.9 (println (inc x)...
- Thu Apr 04, 2013 1:10 am
- Forum: So, what can you actually DO with newLISP?
- Topic: For Fun: Clojure-style Tail Recursion in newLISP
- Replies: 9
- Views: 11007
Re: For Fun: Clojure-style Tail Recursion in newLISP
Just noticed one small little thing ;o) Variable names .args, .res, .parms, .etc. are "illegal" in newLISP due to the starting . (period) in their names. Symbols for variable names The following rules apply to the naming of symbols used as variables or functions: 1. Variable symbols may not start wi...
- Mon Apr 01, 2013 3:40 pm
- Forum: newLISP in the real world
- Topic: curly strings and symbols
- Replies: 3
- Views: 2022
Re: curly strings and symbols
No... Without " ' ( ) : , or the space character before { in Test{Bla1} It is parsed as a legal variable per rule 3. 1. Syntax of symbol variables and numbers Source code in newLISP is parsed according to the rules outlined here. When in doubt, verify the behavior of newLISP's internal parser by cal...
- Thu Feb 14, 2013 8:05 pm
- Forum: newLISP in the real world
- Topic: "secret" save of game scores
- Replies: 4
- Views: 2262
Re: "secret" save of game scores
To access a web page cgi interface programatically, use this cURL FORM technique... Using cURL to automate HTTP jobs http://curl.haxx.se/docs/httpscripting.html You can do a lot of this via newLISP's get-url function once you understand the method... But for https protected sites you need to use cUR...
- Fri Feb 08, 2013 8:17 am
- Forum: newLISP newS
- Topic: newLISP Development release 10.4.6
- Replies: 11
- Views: 16916
- Thu Feb 07, 2013 7:36 pm
- Forum: newLISP newS
- Topic: newLISP Development release 10.4.6
- Replies: 11
- Views: 16916
Re: newLISP Development release 10.4.6
Thanks for your great work Lutz!!!
-- xytroxon
- Thu Feb 07, 2013 8:00 am
- Forum: newLISP in the real world
- Topic: HTTPS request
- Replies: 4
- Views: 2407
Re: HTTPS request
The cURL project should fit your needs.
http://curl.haxx.se/
You need your system's version of libcurl with ssl enabled
http://curl.haxx.se/libcurl/
And one of these versions of curl.lsp
http://pastebin.com/Jngp4jpR
https://gist.github.com/kosh04/1119771
-- xytroxon
http://curl.haxx.se/
You need your system's version of libcurl with ssl enabled
http://curl.haxx.se/libcurl/
And one of these versions of curl.lsp
http://pastebin.com/Jngp4jpR
https://gist.github.com/kosh04/1119771
-- xytroxon
- Sat Jan 19, 2013 6:53 pm
- Forum: newLISP in the real world
- Topic: cgi again
- Replies: 12
- Views: 4667
Re: cgi again
Okay, it's in the way cgi.lsp initializes itself... Since this code was NOT being run from a server, (read-line) is waiting for input that never arrives. ; get POST data if present, use CONTENT_LENGTH variable ; if available ... (begin (set 'inline (read-line)) (when inline (set 'params (get-vars in...
- Sat Jan 19, 2013 6:44 pm
- Forum: newLISP in the real world
- Topic: cgi again
- Replies: 12
- Views: 4667
Re: cgi again
Okay, I've isolated the problem to the cgi.lsp module.
I use CGI:url-translate in an old program that now hangs up too.
-- xytroxon
I use CGI:url-translate in an old program that now hangs up too.
-- xytroxon
- Sat Jan 19, 2013 6:10 pm
- Forum: newLISP in the real world
- Topic: cgi again
- Replies: 12
- Views: 4667
Re: cgi again
Try: #!/usr/bin/newlisp ;;; to create table, used this -- CREATE TABLE UsrTbl(Id INTEGER PRIMARY KEY, UserName TEXT, UserEmail TEXT) (print "Content-type: text/html\n") (module "cgi.lsp") (module "sqlite3.lsp") (println [text] <br> <form action="UPDTDB2.cgi" method="POST"> <pre> User name:<input ty...
- Thu Jan 17, 2013 9:52 pm
- Forum: newLISP newS
- Topic: sqlite3 module: how to maintain lib paths
- Replies: 10
- Views: 18230
Re: sqlite3 module: how to maintain lib paths
One more... ... (string (env "PROGRAMFILES") "/sqlite3/sqlite3.dll") ; Win32/MinGW "sqlite3.dll" ; <- look in the same directory as the script )) Looking in the same directory as the script would be useful for 'all in one' packages, so you don't need to explain to your 'low info' user how to manuall...
- Tue Jan 01, 2013 9:50 pm
- Forum: newLISP in the real world
- Topic: -=((( HAPPY NEW YEAR 2013 )))=-
- Replies: 8
- Views: 4960
Re: -=((( HAPPY NEW YEAR 2013 )))=-
I've heard rumors that the 2013 newLISP series will be even leaner and meaner!!!
Cheers!!!
-- xytroxon
Cheers!!!
-- xytroxon
- Thu Oct 18, 2012 9:02 pm
- Forum: newLISP and the O.S.
- Topic: newLisp on Android (redux)
- Replies: 6
- Views: 6364
Re: newLisp on Android (redux)
To achieve the goal of NL4A (NewLisp For Android), their exists the SL4A project as described in Wikipedia: ------ Scripting Layer for Android http://en.wikipedia.org/wiki/Scripting_Layer_for_Android The Scripting Layer for Android (abridged as SL4A, and previously named Android Scripting Environmen...
- Thu Oct 18, 2012 12:38 pm
- Forum: newLISP and the O.S.
- Topic: newLisp on Android (redux)
- Replies: 6
- Views: 6364
Re: newLisp on Android (redux)
Welcome to Google's version of non-standard Oracle Java aka programming hell... But not to worry, C/C++ can be made to live here too! Android runs a form of Debian Linux, but sadly, Debian packages won't run as is, since Android doesn't allow several commonly used Debian program directories. Also Li...
- Fri Oct 05, 2012 7:15 am
- Forum: newLISP in the real world
- Topic: utf8 (chinese) in current working directory path on windows
- Replies: 6
- Views: 2599
Re: utf8 (chinese) in current working directory path on wind
Maybe this will help...
Fix: Windows 7 Chinese characters showing up as squares
http://www.evozong.com/126
-- xytroxon
Fix: Windows 7 Chinese characters showing up as squares
http://www.evozong.com/126
-- xytroxon
- Thu Oct 04, 2012 5:37 pm
- Forum: newLISP in the real world
- Topic: utf8 (chinese) in current working directory path on windows
- Replies: 6
- Views: 2599
Re: utf8 (chinese) in current working directory path on wind
Just a thought... Are you using the Windows UTF-8 version of newLISP? The newLISP Windows installer is non-UTF-8 From: http://www.newlisp.org/downloads/UTF-8_win32/ Copy and paste newlisp.exe and newlisp.dll To: C:\Program Files (x86)\newlisp For extra credit ;o) Do both versions cause the problem? ...
- Thu Aug 23, 2012 9:38 am
- Forum: newLISP newS
- Topic: newLISP Stable Maintenance Release v.10.4.3
- Replies: 5
- Views: 6006
Re: newLISP Stable Maintenance Release v.10.4.3
Hi Lutz! This problem about drove me crazy, it only showed up rarely when decoding html base64 data strings... (My previous late night crypto based "torture test" didn't catch it either ;o) In PHP, base64 encoding an empty string returns an empty string... While newLisp returns "====" >newlisp newLI...
- Tue Jun 05, 2012 6:16 pm
- Forum: newLISP in the real world
- Topic: getting nL symbols into the find-all regex?
- Replies: 5
- Views: 2888
Re: getting nL symbols into the find-all regex?
I'm at lunch, so here is a quick and dirty post! Notes: process-tags function builds list of tags found into clean_tags list add "magic" \ before the / in the regex of closing tags <\/h2> add ? to make regex stop at first ending tag match find-all flag 5 to process upper or lower case tags and inclu...