Search found 74 matches

by dexter
Mon Mar 27, 2017 5:15 am
Forum: newLISP in the real world
Topic: newlisp and microthread or gorouting
Replies: 0
Views: 5194

newlisp and microthread or gorouting

Hello all~~ Recently I developed a few projects using golang tough and complex languages but golang does not have the thread just like newlisp but it has microthread ,called channel and goroutine to do the concurrent job which is a new great way Is it possible that newlisp can have its own newlisp c...
by dexter
Thu Dec 31, 2015 12:05 pm
Forum: newLISP and the O.S.
Topic: A litte edit for cygwin on windows 64 bit
Replies: 0
Views: 7872

A litte edit for cygwin on windows 64 bit

I compiled newlisp on win7 64bit today, found out the makefile for cygwin is outdated and the configure of newlisp does not care the bits under cygwin so here is a very little fix for configure begin line 116 elif [ ${os_type} = CYGWIN ] ; then if [ ${memory_model} = LP64 ]; then cp makefile_cygwinL...
by dexter
Sun Aug 30, 2015 5:53 pm
Forum: newLISP in the real world
Topic: callback return nagetive address
Replies: 0
Views: 4820

callback return nagetive address

I am running newlisp on raspberry pi processor : 0 model name : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 2.00 Features : half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hardware : BCM2708 Revision : 0010 Se...
by dexter
Mon Jul 20, 2015 1:04 am
Forum: newLISP in the real world
Topic: why the (sub) behavior like this?
Replies: 2
Views: 4289

Re: why the (sub) behavior like this?

thanks

in the end ,I (mul) the number to be an integer,than I can deal the number with (-)
by dexter
Sun Jul 19, 2015 3:11 pm
Forum: newLISP in the real world
Topic: why the (sub) behavior like this?
Replies: 2
Views: 4289

why the (sub) behavior like this?

Code: Select all

(sub 1.9 0.2) will work as I thought

but (sub 20000.9 20000.2) will not return 0.7 insead of 
0.700000000000728

why not just return 0.7 ??

my newlisp is 10.6.0
by dexter
Mon Dec 01, 2014 3:49 am
Forum: newLISP in the real world
Topic: newlisp main-args not to execute
Replies: 4
Views: 4446

Re: newlisp main-args not to execute

Oh yeah

Thanks to you all, it works now

:)
by dexter
Thu Nov 27, 2014 12:47 pm
Forum: newLISP in the real world
Topic: newlisp main-args not to execute
Replies: 4
Views: 4446

newlisp main-args not to execute

I recently met a "problem" I wrote a newlisp file ,let's say, test1.lsp then I want the test1.lsp to deal with files in the (main-args) , like newlisp test1.lsp xxxx.file In my mind, I thought newlisp and test1.lsp are together like one binary file but then I found out , the command "newlisp" will a...
by dexter
Fri Sep 05, 2014 2:54 pm
Forum: newLISP in the real world
Topic: newlisp and union
Replies: 2
Views: 2985

Re: newlisp and union

thanks man
Finally I decide to write a share library,.so to wrapper epoll to newlisp

I think newlisp can have epoll support with the net-* functions in the feature.
by dexter
Fri Sep 05, 2014 3:59 am
Forum: newLISP in the real world
Topic: newlisp and union
Replies: 2
Views: 2985

newlisp and union

I am working on newlisp and epoll but epoll has this union struct typedef union epoll_data { void *ptr; int fd; __uint32_t u32; __uint64_t u64; } epoll_data_t; struct epoll_event { __uint32_t events; /* Epoll events */ epoll_data_t data; /* User data variable */ }; How can I translate this union to ...
by dexter
Sun Aug 17, 2014 2:33 pm
Forum: newLISP in the real world
Topic: Is the udp of newlisp's net-listen only do for local ?
Replies: 2
Views: 2693

Re: Is the udp of newlisp's net-listen only do for local ?

yeah,me,too

Finally, it's the problem of firewall

newilsp is fine as usual
by dexter
Sat Aug 16, 2014 2:46 am
Forum: newLISP in the real world
Topic: Is the udp of newlisp's net-listen only do for local ?
Replies: 2
Views: 2693

Is the udp of newlisp's net-listen only do for local ?

Is the udp of newlisp's net-listen only do for local communications? Cause I put the udp-server.lsp on a remote server, then use udp-client.lsp to connect and send something to it but in the server side, Nothing received, and to the client, it showed works just fine. So I am wondering, is the udp of...
by dexter
Fri Jan 10, 2014 7:58 am
Forum: newLISP in the real world
Topic: Fore nth to not use utf8 ?
Replies: 7
Views: 4078

Re: Fore nth to not use utf8 ?

I think if these "utf8 "function with a name "utf8_" in the head would less the mess I know people speak different languages but today ,most of the operation systems support multi language natively , quiet well If I split a utf8 string to binary, which will be three bytes , and the print out these b...
by dexter
Fri Jan 03, 2014 10:08 am
Forum: newLISP in the real world
Topic: Fore nth to not use utf8 ?
Replies: 7
Views: 4078

Re: Fore nth to not use utf8 ?

I re-compiled newlisp

This is not the first time ,-DSUPPORT_UTF-8 make mess with me


I really don't think new lisp should support utf8 natively , could be based on system, leave utf-8 to system

isn't it better?
by dexter
Fri Jan 03, 2014 5:04 am
Forum: newLISP in the real world
Topic: Fore nth to not use utf8 ?
Replies: 7
Views: 4078

Fore nth to not use utf8 ?

Well new lisp support utf8

(nth utf8str index) will return a utf8 string

(slice utf8str 0 1) will return part of a utf8 string, let's say one byte

Why nth works like that?

And How can I force nth to work without utf8 behaviour? like slice do

without re-compile new lisp?
by dexter
Tue Dec 31, 2013 5:29 am
Forum: newLISP in the real world
Topic: How to make if run one time each?
Replies: 2
Views: 2105

Re: How to make if run one time each?

Thanks

I never noticed (silent)
by dexter
Sun Dec 29, 2013 1:12 pm
Forum: newLISP in the real world
Topic: How to make if run one time each?
Replies: 2
Views: 2105

How to make if run one time each?

just say (setq test 0) (if (= test 0) (begin (println test) (++ test)) (= test 1) (begin (println test))) and this output as : > (if (= test 0) (begin (println test) (++ test)) (= test 1) (begin (println test))) 0 1 Is it different to C ? Cause I thought (if ) only run once, so the output should be ...
by dexter
Sat Dec 28, 2013 5:54 am
Forum: newLISP in the real world
Topic: Share a Tree
Replies: 0
Views: 2373

Share a Tree

Create a Tree

Code: Select all

(new Tree 'A)
Is there a possibility to share a Tree to share memory?
like

Code: Select all

(share TREE A)
((share TREE A) "element")) 
I know I could share the (A) to share memory as a list, not a hashed tree .
But Tree is easier to access element than list
by dexter
Thu Dec 26, 2013 7:19 am
Forum: newLISP in the real world
Topic: Can I ping the process forked?
Replies: 0
Views: 2316

Can I ping the process forked?

I spawned or forked some processes the proceses doing net-accept job, which means it is blocked by net-accept if a connection joined in, then do a job like a large file uploading, takes a long time such as 1 hour? in this 1 hour, Can I ping the process to make sure it is alive? just want to know ,ho...
by dexter
Thu Dec 26, 2013 7:13 am
Forum: newLISP in the real world
Topic: Can I use newlisp's read to read serial data for sure?
Replies: 8
Views: 4013

Re: Can I use newlisp's read to read serial data for sure?

yeah
After I send my last reply
I know 0x11 0x13 0x0d is some CODE

now it seems working now,thanks all :)
by dexter
Mon Dec 23, 2013 4:02 pm
Forum: newLISP in the real world
Topic: Can I use newlisp's read to read serial data for sure?
Replies: 8
Views: 4013

Re: Can I use newlisp's read to read serial data for sure?

I finally got this issue

if my device send 0x11 to openwrt , newlisp can not read it; 0x12 is ok ,0x01 is ok ,so else ,I could not test them all

That's why it lost data ,because the lost data is 0x11....


So wired problem...
by dexter
Mon Dec 23, 2013 12:46 pm
Forum: newLISP in the real world
Topic: Can I use newlisp's read to read serial data for sure?
Replies: 8
Views: 4013

Re: Can I use newlisp's read to read serial data for sure?

root@OpenWrt:~# stty -F /dev/ttyUSB0 speed 38400 baud; line = 0; min = 150; time = 1; ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok noflsh -echoctl -echoke Not reading a byte from serial, I read a lot of data from serial port for example I read a0 ec fc 00 0...
by dexter
Mon Dec 23, 2013 5:04 am
Forum: newLISP in the real world
Topic: Can I use newlisp's read to read serial data for sure?
Replies: 8
Views: 4013

Re: Can I use newlisp's read to read serial data for sure?

No timeout ,i just set it to wait the data forever to read
by dexter
Sun Dec 22, 2013 11:10 am
Forum: newLISP in the real world
Topic: Can I use newlisp's read to read serial data for sure?
Replies: 8
Views: 4013

Can I use newlisp's read to read serial data for sure?

I use stty to config serial port,this part is ok as far as we know Then I use newlisp's read function (read) to read the data from serial port most of the time,it's ok ,the data was ok and right just a few chance, it'll get the wrong,short data, seems lost or mixed parts of so wired after a long tim...
by dexter
Tue Nov 19, 2013 2:36 pm
Forum: newLISP in the real world
Topic: Who is faster, semaphore or share?
Replies: 1
Views: 1681

Who is faster, semaphore or share?

lets' just say there are 10 processes I can use (share) to communicating between processes But if process 1 (share something some value) ,other processes will get this update after a little time delayed,lets' just say it about 100us?( depends on computer) so I am not sure about semaphore, is semapho...
by dexter
Sun Oct 20, 2013 7:03 am
Forum: newLISP in the real world
Topic: Still no thread possibility?
Replies: 6
Views: 3092

Re: Still no thread possibility?

# makefile for newLISP v.10.x.x on Openwrt LINUX without readline support # I use upx to compress as hell as I can on newlisp # Note, that readline support may require different libraries on different OSs # OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o \ nl-...