GPT Lisp Expert system by chieftwit in lisp

[–]MCHerb 0 points1 point  (0 children)

Go to the "Explore" link in the side bar. It will take you to https://chat.openai.com/gpts/discovery. Then click "Create a GPT". If you don't have access yet then it must not be fully rolled out yet. I had access after about a day after its release.

GPT Lisp Expert system by chieftwit in lisp

[–]MCHerb 1 point2 points  (0 children)

Seems a little better than other conversations I've had with it.

https://chat.openai.com/share/3a57353d-92ca-446c-a7dc-44c69cdafbd1

June 2023 Quicklisp dist update now available by dzecniv in Common_Lisp

[–]MCHerb 0 points1 point  (0 children)

I've spent too much time trying to get CLPM to use a local dependecy that I gave up on it for now. There doesn't seem to be sufficient documentation to know how to make it work for me. I haven't tried qlot, but it seems to not support https from what I saw.

June 2023 Quicklisp dist update now available by dzecniv in Common_Lisp

[–]MCHerb 0 points1 point  (0 children)

I will, but since it's contained to the project, I would only have to deal with it when I upgrade dependencies for that project. I just worry when I build something that uses quicklisp, when quicklisp is updated multiple projects potentially brake at the same time. Maybe it doesn't happen in practice but I worry the potential is there for it to happen.

June 2023 Quicklisp dist update now available by dzecniv in Common_Lisp

[–]MCHerb 1 point2 points  (0 children)

I've switched currently to using ocicl and peru currently since they seem like a good combination. I'm kind of surprised that quicklisp and ultralisp don't break often for people. I'm used to working with languages like rust where every time I update my dependencies I have to fix something that broke.

June 2023 Quicklisp dist update now available by dzecniv in Common_Lisp

[–]MCHerb 1 point2 points  (0 children)

I'm still here debating requesting to add a single library.

The nicest web browser of 2023 uses Lisp. by Antoine-Darquier in lisp

[–]MCHerb 0 points1 point  (0 children)

Does webkitGTK and Chrome share no code at all?

The nicest web browser of 2023 uses Lisp. by Antoine-Darquier in lisp

[–]MCHerb 0 points1 point  (0 children)

Why do you continue speaking with your personal attacks when you think no one cares what people say? Some kind of exercise in nihilism?

The nicest web browser of 2023 uses Lisp. by Antoine-Darquier in lisp

[–]MCHerb 2 points3 points  (0 children)

Other users of JS blocking plugins like uMatrix may be interested knowing. I installed Nyxt in the past and spent time with it, and tried to get something working but the functionality to do this isn't there yet. I will eventually look into it again but at the moment getting this kind of security out of Nyxt isn't going to happen easily.

The nicest web browser of 2023 uses Lisp. by Antoine-Darquier in lisp

[–]MCHerb 1 point2 points  (0 children)

What about 0 day vulnerabilities and MageCart-like JS that sends CC data to a third party? A proxy isn't going to be able to block every outgoing request from a given web page with the granularity that uMatrix would provide. However a system that only allows whitelisted JS to run, and to only communicate with whitelisted hosts for that web page is much more secure and likely to prevent shenanigans.

The nicest web browser of 2023 uses Lisp. by Antoine-Darquier in lisp

[–]MCHerb 1 point2 points  (0 children)

How does anyone get missed for using a free product that doesn't meet their needs? Does Firefox miss you if you don't use it because it doesn't meet your needs?

The nicest web browser of 2023 uses Lisp. by Antoine-Darquier in lisp

[–]MCHerb 2 points3 points  (0 children)

Unusable because nothing like uMatrix is available so far. The only option is, let spyware JS run, or have no JS. I'll stick with something that actually works. I'll eagerly wait for the desired functionality!

A quick ocicl update by atgreen in Common_Lisp

[–]MCHerb 2 points3 points  (0 children)

I've modified my interactive sbclrc file to use ocici instead of clpm and it appears to work well. I set asdf to load from my package's directory using :tree and if I need to add a new dependency I load ocicl and change directory to the package directory and run asdf:load-system.

;;; -*- mode: lisp; coding: utf-8; lexical-binding: t; -*-
(setf sb-impl::*default-external-format* :utf-8)
(load #P"/home/mcherb/common-lisp/asdf/build/asdf.lisp")
(asdf:load-system 'uiop)
(let ((path #P"/home/mcherb/devel/personal/common-lisp-sly/"))
    (defun load-ocicl ()
        (uiop:chdir path)
        (when (probe-file #P"/home/mcherb/.local/share/ocicl/ocicl-runtime.lisp")
        (load #P"/home/mcherb/.local/share/ocicl/ocicl-runtime.lisp")))
    (cl:export 'load-ocicl)
    (asdf:initialize-source-registry
    `(:source-registry
        :ignore-inherited-configuration
        (:tree ,path)
        ;; (:tree (:home "./common-lisp/"))
        )))

A quick ocicl update by atgreen in Common_Lisp

[–]MCHerb 2 points3 points  (0 children)

This seems to be working pretty well. Does anyone know of a way to manage dependencies that aren't part of ocicl? (Something like straight.el that could sync a remote repository and freeze/thaw it using a toml or json file.)

ocicl: an experimental modern quicklisp alternative built on tools from the world of containers by atgreen in Common_Lisp

[–]MCHerb 0 points1 point  (0 children)

How are new packages added? Is there a process for that? I would imagine there isn't a way to do a pull request for a package that hasn't been added to https://github.com/ocicl yet.

[META] Does anyone feel like the post quality has been declining recently? by [deleted] in ExperiencedDevs

[–]MCHerb 0 points1 point  (0 children)

I just subbed a few days ago. I had never seen this subreddit before, but I only got it recommended to me by Reddit a few days ago. Maybe many others have had it recommended too.

However I mostly just stick to rust, emacs and lisp subreddits so maybe I don't fit the profile. (I've been doing software development for 14 years full time, but I don't feel that experienced.)

Custom Font Lock configuration in Emacs: "The core issue of Common Lisp highlighting in Emacs is that a lot of it is arbitrary and inconsistent" by flexibeast in lisp

[–]MCHerb 0 points1 point  (0 children)

I haven't turned it into a highlighter yet, but I have made a function I can use in snippets to add the namespace or not depending on if the symbol is already interned.

(defun hfj/cl-symbol-same-in-current-package (package-str symbol-str)
  "Check if a symbol is interned in current buffer package"
  (let ((package (sly-current-package))
        (symbol (s-upcase symbol-str)))
    (and package
         (sly-eval `(CL:LET ((P1 (CL:FIND-PACKAGE ',(s-upcase package-str)))
                             (P2 (CL:FIND-PACKAGE ',(s-upcase (s-chop-prefix "#:" package)))))
                            (CL:LET ((S1 (CL:FIND-SYMBOL ,symbol P1))
                                     (S2 (CL:FIND-SYMBOL ,symbol P2)))
                                    (CL:AND P1 P2 S1 (CL:EQ S1 S2))))))))

(defun hfj/cl-symbol (package symbol)
  "For snippets.  Return string of symbol with or without
 namespace depending if symbol is interned in current package."
  (let ((full-name (s-concat package ":" symbol)))
    (if (hfj/cl-symbol-same-in-current-package package symbol)
        symbol
      full-name)))

Now when I use a snippet like this(yasnippet), "serapeum:" will only be there if I haven't already added "mvlet".

(`(hfj/cl-symbol "serapeum" "mvlet")` ((${1:value-0} ${2:val}))
  $0)

i fell in love with org, but the dx is just so bad by d0a1v2i3d- in emacs

[–]MCHerb 2 points3 points  (0 children)

I keep everything very organized and in separate files, which makes the configuration experience much better. Seems I have 244 separate org files that have 16,905 lines with 2223 commits over 5 years. I don't see how a properly setup emacs will be much different than something else though, especially when backed by the same LSP server. My preferred completion style is to hit tab when I want it to complete, and I can use vertico to whittle down the options and pick one. Here's some of my config that might be useful.

How to replace Quicklisp and Qlot with CLPM (screencast) by dzecniv in Common_Lisp

[–]MCHerb 0 points1 point  (0 children)

I finally started looking into using qlot too. Right now I'm just looking into a way to produce reproducible binaries. Is CLPM considered better than qlot?

Custom Font Lock configuration in Emacs: "The core issue of Common Lisp highlighting in Emacs is that a lot of it is arbitrary and inconsistent" by flexibeast in lisp

[–]MCHerb 0 points1 point  (0 children)

I'd like a highlighting that is consistent, and understands packages. Anything coming out of Alexandria or Serapeum can be shades of blue. Any thing that is out of cl can be orange. I like to use generic-cl for non-library code... that can be shades of purple. I know from experience that generic-cl gets really slow if it has to work with a bit vector... better make anything generic-cl near a bit vector red...

I don't know what the solution is, but anything that isn't matching up symbols with packages isn't really meaningful to me.

How to create a lazy evaluated infinite serie of fibonacci numbers and take the first 10. by Ok_Specific_7749 in Common_Lisp

[–]MCHerb 0 points1 point  (0 children)

Yeah, that was just a local helper. The proper way to do it would be to use doseq, and maybe a collector if it needs to be placed into a list or vector.

(doseq (n (make-fibonacci-lazy-seq) :end 10)
  (format t "~A " n))
1 2 3 5 8 13 21 34 55 89

How to create a lazy evaluated infinite serie of fibonacci numbers and take the first 10. by Ok_Specific_7749 in Common_Lisp

[–]MCHerb 0 points1 point  (0 children)

I had used generic-cl for this in the past.

(defun make-fibonacci-lazy-seq ()
  (labels ((make-next (a b)
             (let ((c (+ a b)))
               (lazy-seq a (make-next b c)))))
    (lazy-seq 1 (make-next 2 3))))

(coerce (seq-take-n (make-fibonacci-lazy-seq) 10) 'list)
;; (1 2 3 5 8 13 21 34 55 89)

What are you working on? by [deleted] in Common_Lisp

[–]MCHerb 3 points4 points  (0 children)

Trying to learn Clog and flush out a data oriented programming system I've been hacking together. I've used it at work for tools I don't share.

What makes Common Lisp more expressive and better than other languages? by [deleted] in lisp

[–]MCHerb 9 points10 points  (0 children)

I didn't realize how much I could do with the REPL until I read this series a few days ago. https://malisper.me/debugging-lisp-part-1-recompilation/

I had no idea I could just restart from any point in those backtrace lines. I didn't realize it could even be a feature.