Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jopython

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



: (bind (unify '(Name City Age) '("john" "new york" 22)))
22
: Name
john
: City
new york
: Age
22
#2
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.
#3
Anything else we might add? / Re: TLS/SSL support
October 22, 2016, 10:01:46 AM
Are you expecting that newlisp bundles a SSL/TLS library?


Quote from: "vetelko"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.
#4
Anything else we might add? / Re: TLS/SSL support
October 14, 2016, 10:58:45 AM
There should be a curl wrapper somwhere. Never tried myself though.

Have you tried this one?

https://github.com/kosh04/newlisp-curl">https://github.com/kosh04/newlisp-curl
#5
Anything else we might add? / Re: TLS/SSL support
October 13, 2016, 02:19:16 PM
use newlisp with Stunnel. Or use a Apache or nginx reverse proxy
#6
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 for  newlisp.



(defroutes home-routes
  (GET "/" [] (home-page))
  (GET "/hello/:name" [name] (str  "Hello " name))
  (GET "/about" [] (about-page)))


Nice thing about compojure is that it exposes only these routes and nothing but these routes. Is there a DSL similar to this for newlisp and easy to use?
#7
newLISP in the real world / Re: Pattern Matching
March 15, 2015, 06:07:47 AM
Ralph,

Thank you for that amazing macro.
#8
newLISP in the real world / Re: Pattern Matching
March 14, 2015, 11:19:43 PM
Ralph,



Yes, i was looking for a macro which will support this kind of a syntax.
#9
newLISP in the real world / Pattern Matching
March 14, 2015, 10:04:56 AM
Once you get into ML languages, you get used to pattern matching:

Here is an factorial example in Shen.



(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.
#10
newLISP newS / Re: newLISP stable release 10.6.2
January 25, 2015, 09:44:32 AM
The links for "UBUNTU Linux Debian 64-bit installers v.10.6.2" are not working at the time of writing.

Thank you,
#11
Thanks everyone.
#12
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:



(type x) => "list"
(type n) => "integer"
etc...
#13
What is the standard unit testing framework used by newlispers?

Thanks in advance.
#14
newLISP in the real world / Re: Multiple dispatch?
November 13, 2014, 03:10:11 PM
This doesn't work. I get the following instead

(collide-with "asteroid" "asteroid") =>
   ("POFF" spaceship-spaceship "asteroid" "asteroid")

When I was expecting "BANG"
#15
newLISP in the real world / Multiple dispatch?
November 09, 2014, 06:30:31 PM
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">//http://en.wikipedia.org/wiki/Multiple_dispatch#Common_Lisp

If newLisp had a feature which allowed parametric polymorphism, my code will look more cleaner as it grows in size.