Search found 87 matches

by Kirill
Tue May 18, 2021 11:44 am
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 9
Views: 9314

Re: TLS/SSL support

Hi, all. Any news on the TLS support in newLISP?
by Kirill
Wed May 05, 2021 2:26 pm
Forum: newLISP in the real world
Topic: CGI and JSON
Replies: 2
Views: 616

Re: CGI and JSON

Never thought of it before, but with json-parse being a built-in function, it's easy to check if CONTENT_TYPE is application/json and then parse POST-ed data as JSON and otherwise as old skool form data.
newLISP JSON parsing seem to choke when JSON lines end with \r\n rather than \n.
by Kirill
Wed May 05, 2021 8:47 am
Forum: newLISP in the real world
Topic: CGI and JSON
Replies: 2
Views: 616

Re: CGI and JSON

Very lightweight and simple. Does what I need.
by Kirill
Wed May 05, 2021 7:44 am
Forum: newLISP in the real world
Topic: CGI and JSON
Replies: 2
Views: 616

CGI and JSON

Greetings! Never thought of it before, but with json-parse being a built-in function, it's easy to check if CONTENT_TYPE is application/json and then parse POST-ed data as JSON and otherwise as old skool form data. Now I can move on to build my lightweight webhook processing engine in newLISP. Yay! K.
by Kirill
Sat Oct 17, 2020 7:19 am
Forum: newLISP in the real world
Topic: ×tamp formatting
Replies: 2
Views: 1229

Re: ×tamp formatting

Try escaping the ampersand as &. × is the multiplication cross sign...
by Kirill
Thu Oct 08, 2020 8:06 am
Forum: newLISP and the O.S.
Topic: fun with pledge()
Replies: 2
Views: 1624

Re: fun with pledge()

I was thinking of creating something that would allow running untrusted newLISP code (think serverless, function-as-a-service et c) as a CGI, only allowing to act on submittes post data and do calculations and spit out the result. Now, with pledge() and newLISP running in a chroot already, the idea ...
by Kirill
Wed Oct 07, 2020 3:11 pm
Forum: newLISP and the O.S.
Topic: fun with pledge()
Replies: 2
Views: 1624

fun with pledge()

On OpenBSD pledge() system call forces the current process into a restricted-service operating mode. I know newLISP can import function from shared libraries, but I have never done so yet. So I thought I'd give it a try with pledge(): > (import "/usr/lib/libc.so.96.0" "pledge") pledge@F99015DECD0 > ...
by Kirill
Tue May 14, 2019 8:38 pm
Forum: newLISP newS
Topic: Stable Release newLISP v.10.7.5
Replies: 10
Views: 8885

Re: Stable Release newLISP v.10.7.5

Hi, Lutz

Are there any checksums/signatures to verify downloads?

Kirill
by Kirill
Sat Apr 20, 2019 8:21 pm
Forum: newLISP in the real world
Topic: libtls for TLS in newLISP
Replies: 3
Views: 2435

Re: libtls for TLS in newLISP

rickyboy wrote:
Kirill wrote:Happy Easter!
With a name like Kirill, surely you know that Easter (Pascha) is really next week. ;) Христос воскресе!
Indeed - I'll be celebrating a week later :)
by Kirill
Sat Apr 20, 2019 12:03 pm
Forum: newLISP in the real world
Topic: libtls for TLS in newLISP
Replies: 3
Views: 2435

libtls for TLS in newLISP

Hi, all HTTPS (and other TLS variants) is becoming more and more common. I'm seeing this as a certain pain for myself on client side (as server side is more easily solvable) (not a huge pain, I can easily use other tool in that case, but newLISP would be nice). The LibreSSL projects provides a libra...
by Kirill
Mon Apr 01, 2019 9:28 pm
Forum: newLISP newS
Topic: Development release newLISP v.10.7.4
Replies: 19
Views: 13424

Re: Development release newLISP v.10.7.4

Thank you, both! Good to know that it wasn't someone trying to hijack systems running newLISP. :)
by Kirill
Fri Mar 29, 2019 9:14 pm
Forum: newLISP newS
Topic: Development release newLISP v.10.7.4
Replies: 19
Views: 13424

Re: Development release newLISP v.10.7.4

What is the correct SHA1 checksum for the release? In http://www.newlisp.org/downloads/development/SHA1.txt it says SHA1(newlisp-10.7.4.tgz)= 5a3ce129f43138773abdc479a03512699e8a4256 But I'm getting a different SHA1 when fetching tgz myself: km ~/src $ ftp http://www.newlisp.org/downloads/developmen...
by Kirill
Wed Oct 28, 2015 12:40 pm
Forum: newLISP and the O.S.
Topic: float representation on FreeBSD 10.1-RELEASE-p10
Replies: 6
Views: 6813

Re: float representation on FreeBSD 10.1-RELEASE-p10

Thanks, Lutz! I had a feeling it had to do with (pretty-print) default change, but didn't try to figure out what was the default before the change, so that I could restore it.
by Kirill
Tue Oct 27, 2015 3:22 pm
Forum: newLISP and the O.S.
Topic: float representation on FreeBSD 10.1-RELEASE-p10
Replies: 6
Views: 6813

Re: float representation on FreeBSD 10.1-RELEASE-p10

And here was the "fix" for me for now:

Code: Select all

(define (format-sla sla)
  (trim (trim (format "%f" sla) "0") "."))
by Kirill
Tue Oct 27, 2015 3:14 pm
Forum: newLISP and the O.S.
Topic: float representation on FreeBSD 10.1-RELEASE-p10
Replies: 6
Views: 6813

Re: float representation on FreeBSD 10.1-RELEASE-p10

Well, that didn't happen earlier. I became aware of the issue when my SLA calculator became "broken".

Could the issue be caused by this change in 10.6.0?
The pretty-print default float setting has been changed to "%1.15g"
by Kirill
Tue Oct 27, 2015 11:29 am
Forum: newLISP and the O.S.
Topic: float representation on FreeBSD 10.1-RELEASE-p10
Replies: 6
Views: 6813

float representation on FreeBSD 10.1-RELEASE-p10

newLISP v.10.6.2 on FreeBSD 10.1 (on NearlyFreeSpeech) represents floats in some trange way: uptime:/home/public> newlisp newLISP v.10.6.2 64-bit on BSD IPv4/6 UTF-8 libffi, options: newlisp -h > (float 99.0) 99 > (float [b]99.1[/b]) [b]99.09999999999999[/b] > (float 99.2) 99.2 > (float 99.7) 99.7 >...
by Kirill
Tue Jan 22, 2013 9:16 pm
Forum: newLISP in the real world
Topic: Source code for uptime.is
Replies: 2
Views: 1419

Source code for uptime.is

Yet another newLISP powered tool (http://uptime.is):

https://github.com/km/uptime
by Kirill
Fri Dec 28, 2012 10:18 pm
Forum: newLISP newS
Topic: YubiKey OTP verification library
Replies: 4
Views: 5996

Re: YubiKey OTP verification library

Lutz:

I've done a couple of fixes in the docs for yubi.lsp here: http://km.krot.org/code/newlisp/

Kirill
by Kirill
Thu Dec 06, 2012 3:51 pm
Forum: newLISP and the O.S.
Topic: CGI input data disappearing
Replies: 16
Views: 7174

Re: CGI input data disappearing

Thank you, Lutz. Two things: (1) I believe the version you diffed against is not the current 3.2 online - may be you have to hit refresh in your browser. See the position of the (set 'post-data "") statement, which has to come after the 'when'. This was the change from 3.11 to 3.2. Yes, the diff was...
by Kirill
Thu Dec 06, 2012 12:44 pm
Forum: newLISP and the O.S.
Topic: CGI input data disappearing
Replies: 16
Views: 7174

Re: CGI input data disappearing

cgi.lsp has been updated again, to version 3.2 : http://www.newlisp.org/code/modules/cgi.lsp.html Thanks, Lutz! The file online does not seem to include the change below, though --- cgi.lsp.orig 2012-12-05 00:48:29.632208151 +0000 +++ cgi.lsp 2012-12-05 00:51:34.799112862 +0000 @@ -132,10 +132,13 @...
by Kirill
Wed Dec 05, 2012 8:56 am
Forum: newLISP and the O.S.
Topic: CGI input data disappearing
Replies: 16
Views: 7174

Re: CGI input data disappearing

The issue is solved, so I remove the test CGI scripts. Thanks.
by Kirill
Wed Dec 05, 2012 1:17 am
Forum: newLISP and the O.S.
Topic: CGI input data disappearing
Replies: 16
Views: 7174

Re: CGI input data disappearing

When running on nfshost.com, make sure you do not run with /usr/local/bin/newlisp, which probably is a very old version of newLISP. Instead compile your own version of newLISP on nfshost and put it in e.g: /home/public/bin/newlisp, and of course put #!/home/public/bin/newlisp as the first line in y...
by Kirill
Wed Dec 05, 2012 1:14 am
Forum: newLISP and the O.S.
Topic: CGI input data disappearing
Replies: 16
Views: 7174

Re: CGI input data disappearing

And here's a patch for web.lsp: http://km.krot.org/code/web.lsp.patch
by Kirill
Wed Dec 05, 2012 12:52 am
Forum: newLISP and the O.S.
Topic: CGI input data disappearing
Replies: 16
Views: 7174

Re: CGI input data disappearing

Patch for cgi.lsp: http://km.krot.org/code/cgi.lsp.patch

Now http://km.krot.org/cgitest3.cgi works properly as well.
by Kirill
Wed Dec 05, 2012 12:47 am
Forum: newLISP and the O.S.
Topic: CGI input data disappearing
Replies: 16
Views: 7174

Re: CGI input data disappearing

I have a fix! http://km.krot.org/cgitest4.cgi

Patch will follow shortly...