Search found 107 matches
- Wed May 21, 2014 4:47 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: newLisp vs node.js
- Replies: 5
- Views: 9327
Re: newLisp vs node.js
The answers will be different when asking different people? For me, node.js is slower than C++, I can develop web site using C++, C++ has the best speed, so node.js is not my first option mostly. Node.js is JavaScript based on V8 engine, JavaScript is a dynamic language, it provides more flexibility...
- Thu May 15, 2014 3:49 pm
- Forum: newLISP in the real world
- Topic: Don't know how to pass a pointer of structure to C function
- Replies: 4
- Views: 3157
Don't know how to pass a pointer of structure to C function
Today, I try to call MongoDB C Driver API in newLISP code. Below is this C function declaration : char ** mongoc_database_get_collection_names (mongoc_database_t *database, bson_error_t *error); I have got database pointer successfully before, but do not know how to pass a pointer as bson_error_t, b...
- Mon May 12, 2014 12:48 am
- Forum: newLISP and the O.S.
- Topic: Cannot build 64 bit on CentOS
- Replies: 3
- Views: 5009
Re: Cannot build 64 bit on CentOS
Thanks, it works.
cmake is not required now. ;)
cmake is not required now. ;)
- Fri May 09, 2014 1:40 pm
- Forum: newLISP and the O.S.
- Topic: Cannot build 64 bit on CentOS
- Replies: 3
- Views: 5009
Cannot build 64 bit on CentOS
I figure out how to build newLISP on CentOS, but cannot build 64 bit version, Below is my build information. Environment: [root@hadoopMaster newlisp-10.6.0]# lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4....
- Sun Apr 27, 2014 3:02 pm
- Forum: newLISP in the real world
- Topic: Asynchronous method in newLISP
- Replies: 2
- Views: 2041
Re: Asynchronous method in newLISP
Thanks, Lutz.
- Sat Apr 26, 2014 2:31 pm
- Forum: newLISP in the real world
- Topic: Asynchronous method in newLISP
- Replies: 2
- Views: 2041
Asynchronous method in newLISP
Hi, Lutz: I wan to develop dynamic library(.so or other format) using newLISP. For example, I want to let Java code to call my newLISP library on Andorid, my newLISP code will send some tracking data to my log server. But I do not want to block caller when my newLISP code is running, in other langua...
- Sat Apr 26, 2014 3:07 am
- Forum: newLISP in the real world
- Topic: example of newlisp usage
- Replies: 0
- Views: 2497
example of newlisp usage
Hi, Lutz: From first page of newlisp.org, we can see the following description: It is especially well-suited for applications in AI, simulation, natural language processing, big data, machine learning and statistics. Could you introduce us some examples about that? I am interested in these very much.
- Thu Apr 24, 2014 4:14 pm
- Forum: newLISP in the real world
- Topic: load artful msql module failed
- Replies: 1
- Views: 1618
Re: load artful msql module failed
Fixed it. Add my real path in mysql.lsp file: ;;; Find the libmysqlclient library on this system (setf is-64-bit nil) (let ((paths '("/usr/lib/libmysqlclient.so" "/usr/lib/x86_64-linux-gnu/libmysqlclient.so" ;;here "/usr/lib64/mysql/libmysqlclient.so" "/usr/local/mysql/lib/libmysqlclient.dylib" "/op...
- Thu Apr 24, 2014 4:08 pm
- Forum: newLISP in the real world
- Topic: load artful msql module failed
- Replies: 1
- Views: 1618
load artful msql module failed
Always get following error on Ubuntu with 10.6.0
Code: Select all
root@gitlab:/opt# newlisp
newLISP v.10.6.0 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h
> (load "/opt/mysql.lsp")
ERR: string expected in function import : libmysqlclient
- Sat Apr 19, 2014 2:57 pm
- Forum: newLISP in the real world
- Topic: Build failed on Ubuntu 14.04
- Replies: 10
- Views: 9048
Re: Build failed on Ubuntu 14.04
I replaced gcc with clang, still got error: clang -fPIC -m64 -Wall -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX -DFFI -I/usr/local/lib/libffi-3.0.13/include newlisp.c newlisp.c:907:37: error: use of undeclared identifier 'CPPFunction'...
- Sat Apr 19, 2014 1:19 pm
- Forum: newLISP in the real world
- Topic: If newLISP meets BI
- Replies: 3
- Views: 2350
Re: If newLISP meets BI
Thanks for your reply. Let's just talk the programming technique here.
Do you create DSL for your job? Could you give me a simple example?
Do you create DSL for your job? Could you give me a simple example?
- Sat Apr 19, 2014 1:16 pm
- Forum: newLISP in the real world
- Topic: Build failed on Ubuntu 14.04
- Replies: 10
- Views: 9048
Build failed on Ubuntu 14.04
When build 10.6.0 source code on Ubuntu 14.04 64bit, I get following error: root@dean-Aspire-V7-481G:/usr/src/newlisp-10.6.0# make make -f makefile_build make[1]: Entering directory `/usr/src/newlisp-10.6.0' gcc -fPIC -m64 -Wall -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREAD...
- Sat Apr 12, 2014 10:43 am
- Forum: newLISP in the real world
- Topic: If newLISP meets BI
- Replies: 3
- Views: 2350
If newLISP meets BI
Hi, my current job is about big data, we need to create some tools to help other coworkers to search and analyse their business data. One approach is to teach them to use SQL, we need to provide a standard SQL which encapsulates the differences of Hive, MySQL, Oracle and PostgreSQL. Most of these pe...
- Sat Apr 12, 2014 12:52 am
- Forum: newLISP in the real world
- Topic: Pass one function to handle scanned file
- Replies: 3
- Views: 2277
Re: Pass one function to handle scanned file
Yes, thanks. I changed it:
Code: Select all
(define (recursive-access-dir dir-path file-op)
(dolist (nde (directory dir-path {^[^.]}))
(if (directory? (append dir-path nde))
(recursive-access-dir (append dir-path nde "/") file-op)
(file-op (append dir-path nde)))))
- Fri Apr 11, 2014 7:00 pm
- Forum: newLISP in the real world
- Topic: Pass one function to handle scanned file
- Replies: 3
- Views: 2277
Re: Pass one function to handle scanned file
My bad, forgot to pass file-op to next call
(recursive-access-dir (append dir-path nde "/") file-op)
(recursive-access-dir (append dir-path nde "/") file-op)
- Fri Apr 11, 2014 6:40 pm
- Forum: newLISP in the real world
- Topic: Pass one function to handle scanned file
- Replies: 3
- Views: 2277
Pass one function to handle scanned file
Hi, I have one function from wiki to iterate folder tree recursively, It works fine. Then I want to modify it to accept a function as argument to handle the scanned file, I try function and macro, but failed. Below is my function version: (define (recursive-access-dir dir-path file-op) (println dir-...
- Tue Feb 25, 2014 4:54 pm
- Forum: newLISP in the real world
- Topic: exec is blocked by service command on Ubuntu
- Replies: 1
- Views: 1626
Re: exec is blocked by service command on Ubuntu
I fixed this problem. It's nothing to do with newLisp. Just edit /etc/init.d/data_service script file
replace
with
replace
Code: Select all
./data_service ./config.xml &
Code: Select all
nohup ./data_service_d ./config.xml > /dev/null 2>&1 &
- Tue Dec 24, 2013 2:47 pm
- Forum: newLISP in the real world
- Topic: if we can see line number in error message
- Replies: 11
- Views: 5851
Re: if we can see line number in error message
OK. I don't need error line number now because correct highlight is enough.
Thanks.
Thanks.
- Sun Dec 22, 2013 8:39 am
- Forum: newLISP in the real world
- Topic: exec is blocked by service command on Ubuntu
- Replies: 1
- Views: 1626
exec is blocked by service command on Ubuntu
On Ubuntu, I configured some services under /etc/init.d/ folder When start my service in terminal, it works fine # service sign_service start * Starting sign service / But If I try to launch it in newlisp, the exec function is blocked, how to solve this problem? > (exec "service sign_service start")...
- Fri Dec 13, 2013 2:37 pm
- Forum: Anything else we might add?
- Topic: Someone translated my blogpost on newLISP into Chinese
- Replies: 1
- Views: 2930
Re: Someone translated my blogpost on newLISP into Chinese
You are the author!
I read your post (Chinese version). :)
And I post many Chinese articles about newlisp too.
http://blog.csdn.net/csfreebird/article ... ry/1325786
I read your post (Chinese version). :)
And I post many Chinese articles about newlisp too.
http://blog.csdn.net/csfreebird/article ... ry/1325786
- Mon Dec 09, 2013 1:05 pm
- Forum: newLISP in the real world
- Topic: call C++ function from newlisp code
- Replies: 2
- Views: 1879
Re: call C++ function from newlisp code
I made an example, see my blog
http://csfreebird.blogspot.com/2013/12/ ... namic.html
Thank you, Lutz.
http://csfreebird.blogspot.com/2013/12/ ... namic.html
Thank you, Lutz.
- Thu Dec 05, 2013 12:00 pm
- Forum: newLISP in the real world
- Topic: pack all fields into one string buffer
- Replies: 1
- Views: 1409
Re: pack all fields into one string buffer
Got it. just use (string ) to contruct it. (define (send-message type content) (letn ((checksum-value (hex-str (cal-checksum (total2 (append type content))) 2)) (str-buffer (string (pack "b" 1) (format "%s%s%s%s" (hex-str (+ 10 (length content)) 4) type content checksum-value) (pack "b" 3)))) (let (...
- Thu Dec 05, 2013 3:14 am
- Forum: newLISP in the real world
- Topic: pack all fields into one string buffer
- Replies: 1
- Views: 1409
pack all fields into one string buffer
I want to send a message via TCP to remote server. This message consists of a few fields, some fields are sting, some are number. My old way is to pack one field and then send it. e.g. (define (send-message type content) ;; send SOH (unless (net-send (self 4) SOH) (throw-error (string "send soh fail...
- Fri Nov 29, 2013 1:27 pm
- Forum: newLISP in the real world
- Topic: how to make newlisp app run in background
- Replies: 6
- Views: 3146
Re: how to make newlisp app run in background
disown, thanks, I got another way.
- Wed Nov 27, 2013 4:47 am
- Forum: newLISP in the real world
- Topic: how to make newlisp app run in background
- Replies: 6
- Views: 3146