Search found 90 matches

by Kirill
Thu Mar 09, 2023 8:10 am
Forum: newLISP newS
Topic: I'd like to offer to take over these forums
Replies: 25
Views: 2921

Re: I'd like to offer to take over these forums

I wonder if the forum postings are archived in any way for future importing into another system? I'm going to do my best to import the existing posts. The challenge will be going through all the spam accounts and deleting them. Giving the forum a boost is a very welcome undertaking! However, I'd be...
by Kirill
Tue Oct 04, 2022 6:37 pm
Forum: Anything else we might add?
Topic: What's up with Nuevatec and Lutz?
Replies: 3
Views: 1081

Re: What's up with Nuevatec and Lutz?

newlisp stays a great and genious tool.
It does indeed.

Hope Lutz is well and good!
by Kirill
Tue Oct 04, 2022 4:15 pm
Forum: Anything else we might add?
Topic: What's up with Nuevatec and Lutz?
Replies: 3
Views: 1081

What's up with Nuevatec and Lutz?

WHOIS is reporting that nuevatec.com has not been renewed: Domain Name: NUEVATEC.COM Registry Domain ID: 1708765_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.networksolutions.com Registrar URL: http://networksolutions.com Updated Date: 2022-10-03T09:14:46Z Creation Date: 1996-10-02T04:00:00Z Regist...
by Kirill
Tue May 18, 2021 11:44 am
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 9
Views: 12708

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: 2236

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: 2236

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: 2236

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: 2838

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: 3348

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: 3348

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: 14006

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: 3817

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: 3817

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: 19826

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: 19826

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: 9359

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: 9359

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: 9359

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: 9359

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: 2220

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: 7402

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: 10729

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: 10729

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: 10729

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: 10729

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...