Programming thread

  • 🇵🇦 Nuestro primer dominio localizado está en español en kiwifarms.pa. Our first localized domain is on Spanish on kiwifarms.pa.
  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
Is this how it feels to work in the industry? Someone with little to no knowledge in a subject throws buzzwords at you, you have no idea what they're saying, you try to figure it out, they hit you with the fluoride stare, the conversation ends and you're not sure if they left satisfied or not, and suddenly you're being asked to join a random Teams call.
Usually if your boss is non technical they get scared and go away relatively quickly once you get into details, I havent found any so far that differ much in that regard
 
My friends joked that she was an undercover mossad agent. I am supporting canalCrab's theory. Big gov is afraid of perl coming back due to one autistic student so they're trying to send me into yet another acute psychosis episode!
You joke but autism has become a national security threat in recent years.
 
You joke but autism has become a national security threat in recent years.
It's nothing compared to real instances where Pakistanis posed as women to steal state secrets from Indians. They didn't even need to be real women, since it was all online, from what I know. :story:
 
Ever since I learned how to write the Sieve of Erathosthenes, I’ve wanted to write a recursive version of it. Looks I got close to it.
Código:
(defun count-up (x)
    "function to count up from 2 to x"
    (labels ((inner-count (y z a) ;;local function to help counting up
                          (cond ((> z y) (reverse a))
                              (t
                               (inner-count y (+ 1 z) (cons z a))))))
(inner-count x 2 nil)))
    
;;applicative function to remove non-primes from the list
(defun filter-comps (x y)
    (remove-if #'(lambda(z) (and (>= z (* x x))(zerop (mod z x)))) y))

;;the final recursive function
(defun find-primes (x)
    (labels ((inner-prime (y z)
                          (cond ((null y) z)
                              (t
                               (inner-prime (cdr y) (filter-comps (car y) z))))))
            (let ((nums (count-up x)))
                    (inner-prime nums nums))))
Null please add Lisp to the code block languages. I will give all my life’s savings to the nation of Israel if you do.

On another note, almost done with Common Lisp: A Gentle Introduction to Symbolic Programming and I’ll need another book to get better at Lisp. Any suggestions?
 
Ever since I learned how to write the Sieve of Erathosthenes, I’ve wanted to write a recursive version of it. Looks I got close to it.
I wouldn't mind writing a version for comparison, if it would be wanted. Just let me know.
I’ll need another book to get better at Lisp. Any suggestions?
I enjoyed Let Over Lambda well enough, but it's more of an advanced text. I didn't particularly enjoy Practical Common Lisp, but plenty of other people have, and it's available to read for free on the WWW.

Hell, why not read John McCarthy's original Lisp paper? I've read it, and it's a fun read. It's always good to look at how something started out, I think.
 

Archivos adjuntos

Atrás
Top Abajo