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

#1
newLISP in the real world / Re: A simple(?) problem
June 26, 2024, 02:08:55 PM
Yeah. Way faster than mine :)

chhers
#2
newLISP in the real world / Re: A simple(?) problem
June 25, 2024, 05:37:41 AM
This one is straight-forward but probably a bit slow
(define    (randint RANGE DIGITS)
  (letn ((digits (fn (X) (map int (unique (explode (string X))))))
         (wrong (fn (X) (difference (digits X) DIGITS)))
         (S (clean wrong (apply sequence RANGE))))
    (S (rand (length S)))))

EDIT: simplify by using "apply"

EDIT 2: recusive digitization might be faster (?)
EDIT 3: changed back to use stringifying; looks nicer :)
#3
newLISP newS / Re: sending emails to @gmail.com
May 23, 2023, 01:23:05 PM
Au contraire ;D I, at gmail.com, got the notification email from this forum today. Which is great. Something got improved ...
#4
Thanks @itistoday!! Great to be at a new forum home.

Here's a pointer to a few of my newlisp projects

Most of them are functional, but generally they are for fun.
#5
newLISP newS / Re: sending emails to @gmail.com
May 22, 2023, 05:04:52 PM
Eh? Doesn't your ISP provide rDNS setup?

EDIT: it's not related to email as such, and I agree that setting up your own MTA would be too much.

EDIT 2: not sure if relevant:
https://clientarea.ramnode.com/knowledgebase/19/How-do-I-set-reverse-DNS-RDNSorPTR.html
#6
newLISP newS / Re: sending emails to @gmail.com
May 22, 2023, 04:54:09 PM
Well, I'm not trying to support any of Google's business practices; just trying to assist in getting the forum emails delivered to @gmail.com addresses (especially since I happen to have one).

And for that I believe it would be good getting the rDNS sorted for newlispfanclub.com.
#7
newLISP newS / Re: sending emails to @gmail.com
May 22, 2023, 03:59:37 PM
Yes, the MTA setup would be fine, but afaik gmail will want the original sender (newlispfanclub.com) to have rDNS set up (as well), especially for resolvable hosts "without history".
#8
newLISP newS / Re: sending emails to @gmail.com
May 22, 2023, 03:43:25 PM
Ah; I looked up rDNS for 168.235.93.184 and got 168-235-93-184.cloud.ramnode.com rather than newlispfanclub.com, which would be the origin of an email.

#9
newLISP newS / sending emails to @gmail.com
May 22, 2023, 03:33:34 PM
This morning I got a blurb here about the pains of sending emails to addresses @gmail.com, detailing a bit about how finicky they, Google, are.

Whilst that is true, I've held this email address some 20 years mostly because their spam filtering has been quite outstanding. During that time I have set up some number of MTA (typically small and smallish ones), and like apparently this forum, come to realize both that in order to deliver to @gmail.com addresses all the "ducks" need to be in perfect order, and that getting attention and assistance by Google staff to figure out the "ducks" is near impossible.

This forum is close to perfect in its setup apart from lacking its reverse DNS setup, which I believe is one of the "ducks", i.e. one thing that @gmail.com is finicky about.

(And if it'd be of any help. I'm more than happy to be a trial target for MTA configuration trials.)

#10
maybe check out

https://web.archive.org/web/20230000000000*/http://www.newlisp.org/downloads/manual_frame.html">https://web.archive.org/web/20230000000 ... frame.html">https://web.archive.org/web/20230000000000*/http://www.newlisp.org/downloads/manual_frame.html
#11
newLISP in the real world / Re: string function
June 15, 2022, 02:00:08 AM
I'm confused about why you appear confuse... of course (string ""a""b"") is the same as (string ""   a   ""  b  ""); the string function packs together the stringifying of its arguments ignoring any (optional) whitespace between them. No strangeness involved afaict.
#12
.. and you should dazzle me with the code as well :)



I had a hard time avoiding brute-force, which I thought too boring, but then it started to take too much time for me so I gave up.



Ralph.
#13
Yes it's a bug in the handling of the "incoming cell data" for an ffi_type_float at nl-import.c:814.

That current line is
floatV = (float) *(double *)&cell->aux;
and should be replaced with the following
floatV = (float) ((cell->type == CELL_FLOAT)? *(double *)&uint64V : uint64V);
which corresponds to how it's handled in the pack function.
#14
newLISP newS / Re: Error in 10.7.6
December 29, 2021, 05:36:05 AM
My fully repeatable test is:
> (push x x)
(?)
> (x 0 0)

ERR: list reference changed
> x
#15
newLISP newS / Re: Error in 10.7.6
December 28, 2021, 12:13:32 PM
Same behaviour in "newLISP v.10.7.5 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h"