Search found 123 matches

by jopython
Sat Feb 11, 2017 11:07 pm
Forum: newLISP in the real world
Topic: set multiple symbols from list values at once
Replies: 2
Views: 1083

Re: set multiple symbols from list values at once

You can't. unless you want to use title case.

Code: Select all

: (bind (unify '(Name City Age) '("john" "new york" 22)))
22
: Name
john
: City
new york
: Age
22
by jopython
Wed Oct 26, 2016 7:07 pm
Forum: newLISP newS
Topic: We are hiring newLisp programmers....
Replies: 4
Views: 11659

Re: We are hiring newLisp programmers....

Kanen,
I just saw your links about trustpipe. Does your organisation compete on the same league as IP360, nessus, etc?
It is nice to know there is a mainstream product based on newlisp, assuming your product is built on it.
by jopython
Sat Oct 22, 2016 5:01 pm
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 8
Views: 6544

Re: TLS/SSL support

Are you expecting that newlisp bundles a SSL/TLS library?
vetelko wrote:Thank you for replies guys. I also started using curl, but IMHO whole world has started using https protocol so soon or later get-url against public internet will be useless.
by jopython
Fri Oct 14, 2016 5:58 pm
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 8
Views: 6544

Re: TLS/SSL support

There should be a curl wrapper somwhere. Never tried myself though.
Have you tried this one?
https://github.com/kosh04/newlisp-curl
by jopython
Thu Oct 13, 2016 9:19 pm
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 8
Views: 6544

Re: TLS/SSL support

use newlisp with Stunnel. Or use a Apache or nginx reverse proxy
by jopython
Sun Oct 02, 2016 10:17 pm
Forum: newLISP in the real world
Topic: compojure like http routes for newlisp?
Replies: 1
Views: 1607

compojure like http routes for newlisp?

I am trying to run newlisp behind inetd in -http mode with http-conf.lsp example provided in the manual. The example provided in the manual is very limited and it exposes the entire newlisp interpreter to the http port which I find a security issue. I wish we had clojure compojure like routes DSL fo...
by jopython
Sun Mar 15, 2015 1:07 pm
Forum: newLISP in the real world
Topic: Pattern Matching
Replies: 4
Views: 1238

Re: Pattern Matching

Ralph,
Thank you for that amazing macro.
by jopython
Sun Mar 15, 2015 6:19 am
Forum: newLISP in the real world
Topic: Pattern Matching
Replies: 4
Views: 1238

Re: Pattern Matching

Ralph,

Yes, i was looking for a macro which will support this kind of a syntax.
by jopython
Sat Mar 14, 2015 5:04 pm
Forum: newLISP in the real world
Topic: Pattern Matching
Replies: 4
Views: 1238

Pattern Matching

Once you get into ML languages, you get used to pattern matching:
Here is an factorial example in Shen.

Code: Select all

(26-) (define factorial
    0 -> 1
    X -> (* X (factorial (- X 1))))
factorial

(27-) (factorial 6)
720
I wonder if anybody done anything like this for beloved newLisp?
Thanks and Cheers.
by jopython
Sun Jan 25, 2015 5:44 pm
Forum: newLISP newS
Topic: newLISP stable release 10.6.2
Replies: 20
Views: 10307

Re: newLISP stable release 10.6.2

The links for "UBUNTU Linux Debian 64-bit installers v.10.6.2" are not working at the time of writing.
Thank you,
by jopython
Wed Nov 26, 2014 12:36 am
Forum: newLISP in the real world
Topic: How to determine type of variable/value?
Replies: 4
Views: 3002

How to determine type of variable/value?

The newlisp manual has predicates.
But I like to know if there is there a builtin function to find out the type of a symbol/variable/defn which I can use such as
eg:

Code: Select all

(type x) => "list"
(type n) => "integer"
etc...
by jopython
Sat Nov 15, 2014 12:22 am
Forum: newLISP in the real world
Topic: standard unit testing framework for newlispers?
Replies: 0
Views: 1810

standard unit testing framework for newlispers?

What is the standard unit testing framework used by newlispers?
Thanks in advance.
by jopython
Thu Nov 13, 2014 11:10 pm
Forum: newLISP in the real world
Topic: Multiple dispatch?
Replies: 4
Views: 1776

Re: Multiple dispatch?

This doesn't work. I get the following instead

Code: Select all

(collide-with "asteroid" "asteroid") =>
   ("POFF" spaceship-spaceship "asteroid" "asteroid")
When I was expecting "BANG"
by jopython
Mon Nov 10, 2014 2:30 am
Forum: newLISP in the real world
Topic: Multiple dispatch?
Replies: 4
Views: 1776

Multiple dispatch?

This was probably discussed in this forum before. Has anyone succeeded adding multiple dispatch capability to newLisp using a macro or otherwise? http://en.wikipedia.org/wiki/Multiple_dispatch#Common_Lisp If newLisp had a feature which allowed parametric polymorphism, my code will look more cleaner ...
by jopython
Tue Sep 16, 2014 1:34 am
Forum: newLISP in the real world
Topic: comparative macrology
Replies: 2
Views: 1570

comparative macrology

Just wanted to point someone mentioned and compared newlisp macros in his blog.

http://www.wilfred.me.uk/blog/2014/09/1 ... macrology/
by jopython
Mon Aug 18, 2014 12:51 am
Forum: newLISP in the real world
Topic: how to expand list-map
Replies: 2
Views: 1364

Re: how to expand list-map

Ricky,

My ultimate goal was to abstract "map +" into a single function
Thanks
by jopython
Sun Aug 17, 2014 6:40 pm
Forum: newLISP in the real world
Topic: how to expand list-map
Replies: 2
Views: 1364

how to expand list-map

The following function performs a map over two lists. How to extend this abstraction where the numbers of lists are unknown instead of only two? (define (list-map op lst1 lst2) (map (fn (x y) (op x y)) lst1 lst2)) For. eg I should be able to call (list-map + '(1 2 3) '(3 4 4)) or (list-map + '(1 2 3...
by jopython
Wed Aug 06, 2014 9:34 pm
Forum: newLISP in the real world
Topic: newlisp button demo on OpenJDK
Replies: 1
Views: 1187

Re: newlisp button demo on OpenJDK

Never mind. My fault. My Ubuntu only had headless java.
by jopython
Wed Aug 06, 2014 9:27 pm
Forum: newLISP in the real world
Topic: newlisp button demo on OpenJDK
Replies: 1
Views: 1187

newlisp button demo on OpenJDK

Is there an issue with running the button demo on OpenJDK on 64 bit Ubuntu (14.04)? :( ]$ java -version java version "1.7.0_55" OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode) :( ]$ newlisp /usr/share/newlisp/guiserver/button-d...
by jopython
Mon May 19, 2014 11:47 pm
Forum: newLISP in the real world
Topic: Is there a List comprehensions macro?
Replies: 3
Views: 1104

Re: Is there a List comprehensions macro?

To me, it is a 'for' loop inside a 'for' loop if you come from C-like languages and then mutate the crap of those arrays. Besides multilevel 'for' loops make my head ache :(
by jopython
Mon May 19, 2014 11:40 pm
Forum: newLISP in the real world
Topic: Newlisp and debugging
Replies: 2
Views: 966

Re: Newlisp and debugging

Unfortunately that is all i got.
Ultimately, I managed to figure out where the issue was. But it took a while.
Thank you for your response.
by jopython
Sun May 18, 2014 5:41 pm
Forum: newLISP in the real world
Topic: Newlisp and debugging
Replies: 2
Views: 966

Newlisp and debugging

It becomes really painful to debug newlisp code if we get an error message like follows with no line number and there are 8 instances of the map function in my code :

Code: Select all

ERR: list expected in function map : nil
by jopython
Thu May 15, 2014 1:01 am
Forum: newLISP in the real world
Topic: Is there a List comprehensions macro?
Replies: 3
Views: 1104

Is there a List comprehensions macro?

Is there a macro or library for list comprehensions in newlisp?

Something like this small one liner (eg in python) can come real handy.

Code: Select all

>>> a = range(10)
>>> b = range(11,20)
>>> [[x, y] for x in b for y in a]
Which gives

Code: Select all

[[11, 0], [11, 1], [11, 2], [11, 3], ......
by jopython
Tue Mar 25, 2014 3:34 am
Forum: newLISP and the O.S.
Topic: Errors compiling 10.5.8 on Solaris 10 with gcc
Replies: 2
Views: 2371

Re: Errors compiling 10.5.8 on Solaris 10 with gcc

I added -fno-strict-aliasing to CFLAGS and updated line 41 in newlisp.h.
I was able to compile successfully and test without any of those warnings.
Thank you