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.
 
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.
Kod:
(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?
 
Wstecz
Top Na dole