[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: frieren.png (1.82 MB, 1492x1100)
1.82 MB
1.82 MB PNG
>Lisp is a family of programming languages with a long history and a distinctive parenthesized prefix notation. There are many dialects of Lisp, including Common Lisp, Scheme, Clojure and Elisp.

>Emacs is an extensible, customizable, self-documenting free/libre text editor and computing environment, with a Lisp interpreter at its core.

>Emacs Resources
https://gnu.org/s/emacs
https://github.com/emacs-tw/awesome-emacs

>Learning Emacs
C-h t (Interactive Tutorial)
https://emacs.amodernist.com
https://systemcrafters.net/emacs-from-scratch
http://xahlee.info/emacs

>Emacs Distros
https://www.spacemacs.org
https://doomemacs.org

>Elisp
Docs: C-h f [function] C-h v [variable] C-h k [keybinding] C-h m [mode] M-x ielm [REPL]
https://gnu.org/s/emacs/manual/eintr.html
https://gnu.org/s/emacs/manual/elisp.html

>Common Lisp
https://lispcookbook.github.io/cl-cookbook
https://cs.cmu.edu/~dst/LispBook
https://gigamonkeys.com/book
https://lem-project.github.io
https://stumpwm.github.io
https://nyxt-browser.com

>Scheme
https://scheme.org
https://try.scheme.org
https://get.scheme.org
https://books.scheme.org
https://go.scheme.org/tspl
https://research.scheme.org/lambda-papers

>Clojure
https://clojure.org
https://tryclojure.org
https://clojure-doc.org
https://mooc.fi/courses/2014/clojure
https://clojure.org/community/resources

>Guix
https://guix.gnu.org
https://gitlab.com/nonguix/nonguix
https://systemcrafters.net/craft-your-system-with-guix
https://github.com/franzos/awesome-guix

>SICP/HtDP
https://web.mit.edu/6.001/6.037/sicp.pdf
https://htdp.org

>More Lisp Resources
https://paste.textboard.org/52b08691

(set! prev-thread (quote >>101469195))
>>
File: graphics.png (848 KB, 1170x2307)
848 KB
848 KB PNG
Kino scheme
https://lisppad.app
https://github.com/objecthub/swift-lispkit
>>
>>101582754
>>101579371
>what package for this nice formatting? lines
https://github.com/minad/org-modern
https://github.com/jdtsmith/org-modern-indent


>and interpreting \vert to | ??
I'm not sure what's doing that, but it only happens in org-mode. It was the first time I had ever tried it, and it just worked.
>>
>>101582775
The rendering looks very clean.
>>
Honest question: why is Guix part of this thread? I completely understand why Emacs is there, but Guix simply doesn't make sense.
>>101582804
Thanks mate
>>
File: org-symbols.png (357 KB, 1314x1672)
357 KB
357 KB PNG
>>101579371
I found out what makes org render symbols specially.
M-x org-toggle-pretty-entities
I also found a table of other symbols it recognizes.
https://orgmode.org/worg/org-symbols.html
>>
>>101582985
>why is Guix part of this thread?
Isn't it configured in Scheme?
https://guix.gnu.org/cookbook/en/html_node/A-_0060_0060Hello-World_0027_0027-package.html
(define-public hello
(package
(name "hello")
(version "2.10")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnu/hello/hello-" version
".tar.gz"))
(sha256
(base32
"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i"))))
(build-system gnu-build-system)
(synopsis "Hello, GNU world: An example GNU package")
(description
"GNU Hello prints the message \"Hello, world!\" and then exits. It
serves as an example of standard GNU coding practices. As such, it supports
command-line arguments, multiple languages, and so on.")
(home-page "https://www.gnu.org/software/hello/")
(license gpl3+)))
>>
File: replicator.png (229 KB, 1365x768)
229 KB
229 KB PNG
Fantastic
https://glisp.app
https://github.com/baku89/glisp
>>
>>101583061
This is very nice. How did you find this?
>>
>>101582623
Shit toylang shilled by nocoders taking their CS 101 in racket
>>
File: btcusd.png (713 KB, 2333x1895)
713 KB
713 KB PNG
gotta automate trading
>>
File: kuruminha-brazil.jpg (31 KB, 450x554)
31 KB
31 KB JPG
>>101583105
You can always do [-] when you see a thread you don't like.
>>
vanilla emacs + meow or Doom™ for a beginner with 0 experience with vim/emacs
>>
>>101583183
using dvorak*
>>
File: doom.png (284 KB, 1012x635)
284 KB
284 KB PNG
>>101583183
You're doomed anon
>>
>>101583183
I'd favor Doom, because it can show you what a well-configured Emacs is capable of, but try both and see what you like. Starting with Emacs 29, they introduced a --init-directory option that makes it easy to maintain and use multiple independent configs. You're not locked in with one config anymore.
https://emacs.stackexchange.com/a/78739

Also, if you go the vanilla route, add which-key too. It's so useful for discovery that it's being added to Emacs 30.
https://melpa.org/#/which-key
https://irreal.org/blog/?p=12254

Also, if you don't even know vim, I'd play with vim a little bit too.
>>
>>101583141
Hull Moving Averages hug the price so well sometimes.
https://alanhull.com/hull-moving-average
>>
>>101583183
One of the most important skills for a new emacs user to learn is to learn how to ask emacs questions about itself. I recommend getting very comfortable using the five keybindings listed in the Elisp section of the OP which I'll repeat here.

>Elisp
Docs: C-h f [function] C-h v [variable] C-h k [keybinding] C-h m [mode] M-x ielm [REPL]

My understanding of emacs grew tremendously once I started using these regularly. Ask emacs first before going to a search engine for answers.
>>
>>101582985
>why is Guix part of this thread
closest thing we can get to a lisp machine currently
>>
File: TUTDHxD.png (145 KB, 1604x1246)
145 KB
145 KB PNG
>101490180
>>Hy faakhead
>>https://hylang.org
literally unusable
>>
File: file.png (373 KB, 400x533)
373 KB
373 KB PNG
>>101583845
Uh... no?
>>
>>101584072
are you telling me you have one of those sitting in your room, retard?
"we" as in "average person"
>>
>>101582985
It's written in lisp and configured using lisp. Just like emacs.
I actually can't think of any reasons why you would conclude that it doesn't belong? Did you think it was written in C or something?
>>
>>101582623
Frieren kawaii
>>
>>101583890
The rest function was hiding out in hyrule.
https://hylang.org/hyrule/doc/v0.6.0#hyrule.rest
(import hyrule [rest])
(setv a [1 2 3 4])
(rest a) ; <itertools.islice object at 0x15e41b8>
(list (rest a)) ; [2 3 4]

I don't know about car or first though. This was my first time trying hylang out, and I found it frustratingly different.
>>
File: file.png (611 KB, 460x647)
611 KB
611 KB PNG
>>101584088
He's right. The only similarity between a LISP machine and Guix the fact that they use some LISP dialect to customise things. The OS itself is written in C, not Scheme. You only use Scheme to interface with the OS.
>>101584155
No, it's not. You only use Scheme to customise the behaviour, but the OS itself is written in C and Assembly. See: Linux Libre Kernel, Gnu Hurd etc. You see Guile being used in Gnu Shepherd though, but that's it.
>>
>>101584263
emacs core is also written in c and interfaced with through elisp so i guess that doesn't belong here either
this is such a pointless argument
>>
>>101584263
>No, it's not. You only use Scheme to customise the behaviour, but the OS itself is written in C and Assembly.
That's the same as emacs. It's ultimately built on top of C, but most of the relevant shit is written in lisp.

In Guix obviously the relevant stuff MUST be written in guile or you wouldn't be able to modify it through your config.

But I'll also just say this, I am not interested in debating over some imaginary line of how much lisp software needs to contain before we are allowed to discuss it here.
If you want to make some argument like that feel free, and I'll just ignore you because that sort of thinking is how good threads like this turn into shit really quick.
As far as I'm concerned if it has ANY lisp at all, and people are talking about it because of the lisp that it has, then it's welcome in this thread in my book.
>>
File: hashset.jpg (68 KB, 425x486)
68 KB
68 KB JPG
what do you think of my idea of how a hash set looks like?
My first thought was to make it look like a funnel of sorts, but that seemed impractical.
So I opted for making it look like a bowl or something.

I feel like I'm going full circle back to Egyptian hieroglyphs here.
>>
>>101584248
hmm thanks. I just ended up using cut. ya it seems like its just python. at least hyrule has inc though.

(defn merge [left right]
(let [res [] i 0 j 0]
(while (and (< i (len left)) (< j (len right)))
(if (< (get left i) (get right j))
(do
(.append res (get left i))
(setv i (inc i)))
(do
(.append res (get right j))
(setv j (inc j)))))
(if (< i (len left))
(.extend res (cut left i None))
(.extend res (cut right j None)))
res))
(merge [1 2] [3 4])

(defn sort [arr]
(if (<= (len arr) 1)
arr
(let [mid (// (len arr) 2)
left (sort (cut arr 0 mid))
right (sort (cut arr mid None))]
(merge left right))))
(sort [5 4 3 2 1])
>>
>>101584248
>>101583890
I haven't used it, but as I understand it, Hy isn't trying to be a full-blown lisp (like a python equivalent of what Clojure does on the jvm) but rather just let you write Python with Lisp syntax
>>
>>101584565
What's the Clojure code equivalent of the data structure in that image?
>>
File: hylang merge.jpg (363 KB, 1080x1716)
363 KB
363 KB JPG
>>101584712
#{[y 9] [z 55] [x 4]}

#{{:red 222, :green 40, :blue 99}
{:silver 55, :gold 25, :bronze 20}
#{:derp 48 99 22}}
>>
>>101583845
https://interlisp.org/
good morning sir, take a peek in the needful
>>
can't believe I'm just finding out about winner-mode

fuck man
>>
File: spook.jpg (224 KB, 586x733)
224 KB
224 KB JPG
>>101506709
M-x spook
>>
File: .png (191 KB, 500x500)
191 KB
191 KB PNG
>>101587004
>M-x spook
CIA Soros Recruitment Trojan 9/11 Subway Connections 
Mossad FEMA New World Order Unix UFO illuminati terrorism
>>
>>101579624
M-x toaster-eject-toast
>>
What variant would the Omnissiah use?
>>
>>101589322
vanilla
>>
>>101584248
>>101583890
looks like they moved first and cons into toolz

(import toolz [cons first])
(import hyrule [res])


https://github.com/hylang/hy/blob/master/NEWS.rst#removals-6

https://toolz.readthedocs.io/en/latest/api.html
>>
File: file.png (102 KB, 282x223)
102 KB
102 KB PNG
>>101588644
That's me. I discovered that javascript/typescript lsp was fucking with everything. I can try any other language and it works perfectly. Watching to lsp-mode in debug I can see that there is some throttle while fetching from server, that's why it "blocks" emacs for a few milliseconds while typing. Well, nothing I can do, thank god I only do web stuff for my blog, so I can bear that.
>>
Judge me
;; masterpass@servicename
(defun passman (x)
(interactive "sPass: ")
(kill-new (base64-encode-string
(rot13 x)))
(message "Pass copied!"))
>>
I am trying to get my uni O365 email work with smtp. While I can sync with the imap server I am unable to get oauth2 authenticated with smtp when sending an email.
I am using this https://github.com/harishkrupo/oauth2ms/blob/main/steps.org.

I was wondering if there is another way of oauth2 authentication since the one mentioned above seems too hacky
>>
>>101590936
What do you do with the encoded password string afterward?
>>
Can I do HtDP using SBCL or am I going to have a bad time?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.