Staring a while at the HTTPS client example in Gambit-Scheme's manual[0]
I could minimise and morph it back to plain HTTP and then to NNTP and
NNTPS examples.
#+begin_example
(let ( (d (open-tcp-client (list address: "news.eternal-september.org"
port-number: 119
eol-encoding: 'cr-lf))) )
(print port: d "article <rrej7g$72d$1@dont-email.me>\nquit\n.\n")
(force-output d)
(print (read-line d #f)) )
#+end_example
#+begin_example
(let ( (d (open-tcp-client (list address: "news.eternal-september.org"
port-number: 563
eol-encoding: 'cr-lf
tls-context: (make-tls-context)))) )
(print port: d "article <rrej7g$72d$1@dont-email.me>\nquit\n.\n")
(force-output d)
(print (read-line d #f)) )
#+end_example
But between those HTTP and NNTP experiments I tried to access Gemini
with a similar minimised example and it stayed uncooperative.
#+begin_src sh
printf 'gemini://geminiprotocol.net/docs/specification.gmi\r\n' \
| ncat --ssl geminiprotocol.net 1965
#+end_src
Ncat seems tolerant by default.
yeti <yeti@tilde.institute> writes:
Ncat seems tolerant by default.
Meaning it accepts self-signed but if you pass an option --dont-do-it,
it doesn't?
Meaning it accepts self-signed but if you pass an option --dont-do-it,
it doesn't?
protocol-specification.gmi Gemini network protocol specification gemtext-specification.gmi Gemini hypertext format ("gemtext") specification
tech-overview.gmi Project Gemini technical overview
I like that: insecure by default. Why don't we let the fearful people
read the manual?
Why must always the brave that need to learn how to turn off all the bureaucracy?
#+header: :prologue exec 2>&1 :epilogue true :results output :wrap example #+begin_src sh
printf 'gemini://geminiprotocol.net/docs/specification.gmi\r\n' \
| ncat --ssl-verify geminiprotocol.net 1965
#+end_src
#+RESULTS:
#+begin_example
Ncat: TIMEOUT.
#+end_example
What I do not want is switching to Lisp. I'd prefer to only use one
Lisp and this shall be Emacs-Lisp and that one is really bad at network access and even worse for making stand alone tools to run without Emacs.
Similarly for Scheme. My experiences with Debian and Ubuntu told me
long ago that very similar, but not identical is a bigger problem than
big differences, e.g. using two more distant Unix relatives side by
side.
yeti <yeti@tilde.institute> writes:
[...]
What I do not want is switching to Lisp. I'd prefer to only use one
Lisp and this shall be Emacs-Lisp and that one is really bad at network
access and even worse for making stand alone tools to run without Emacs.
I was introduced to Lisp last December and was coming from Racket. I
had not looked back. Lisp seems so much easier and more fun to use.
Similarly for Scheme. My experiences with Debian and Ubuntu told me
long ago that very similar, but not identical is a bigger problem than
big differences, e.g. using two more distant Unix relatives side by
side.
I believe that might be true.
Patricia Ferreira <pferreira@example.com> writes:
yeti <yeti@tilde.institute> writes:
[...]
What I do not want is switching to Lisp. I'd prefer to only use one
Lisp and this shall be Emacs-Lisp and that one is really bad at network
access and even worse for making stand alone tools to run without Emacs.
I was introduced to Lisp last December and was coming from Racket. I
had not looked back. Lisp seems so much easier and more fun to use.
Similarly for Scheme. My experiences with Debian and Ubuntu told me
long ago that very similar, but not identical is a bigger problem than
big differences, e.g. using two more distant Unix relatives side by
side.
I believe that might be true.
|\/| _ _ _ _ _ | | |
| |(_)(_)(_)| | | . . .
I'm hallucinating and still see Patricia here...
;-)
I've no aversion against Lisp, just Emacs-Lisp makes the most sense for
me now. I'm still in Lisp and Scheme preschool, but it is fun to see
how useful even a few lines are.
E.g. in that experiment where I collect code snippets that all shall
produce the same output and suppress the output unless it does not match
the expected results.
<http://yeti.freeshell.org/brain/unsorted.d/compare-results.org> \\ <http://yeti.freeshell.org/brain/unsorted.d/compare-results.html>
I'll need many more of such small helpers and that is the reason why
Elisp makes the most sense for me. Maybe when I start to dream in Lisp
I may dare to touch a 2nd dialect.
yeti <yeti@tilde.institute> writes:
|\/| _ _ _ _ _ | | |
| |(_)(_)(_)| | | . . .
I'm hallucinating and still see Patricia here...
;-)
LOL! That was not a lie---but I changed my mind and killed all groups
and left this one. What was annoying me was that I had subscribed to a
lot of groups and they're all quiet, so I wanted to just go away. But
I'll keep this one just to chat with you.
Dude, you gotta use a Lisp that doesn't require you to run emacs to
compute it. I wonder why the EMACS people didn't release an interpreter
or compiler outside of the GNU EMACS. I think that would be healthy to
the GNU EMACS community.
E.g. in that experiment where I collect code snippets that all shall
produce the same output and suppress the output unless it does not match
the expected results.
<http://yeti.freeshell.org/brain/unsorted.d/compare-results.org> \\
<http://yeti.freeshell.org/brain/unsorted.d/compare-results.html>
Hey, you're interested in numbers. Cool. I just proved the fundamental theorem of arithmetic (after proving Euclid's Lemma).
Lisp is great and it's not too far away from Elisp. (I loved it.)
yeti <yeti@tilde.institute> writes:
|\/| _ _ _ _ _ | | |
| |(_)(_)(_)| | | . . .
I'm hallucinating and still see Patricia here...
;-)
LOL! That was not a lie---but I changed my mind and killed all groups
and left this one. What was annoying me was that I had subscribed to a
lot of groups and they're all quiet, so I wanted to just go away. But
I'll keep this one just to chat with you.
Dude, you gotta use a Lisp that doesn't require you to run emacs to
compute it. I wonder why the EMACS people didn't release an interpreter
or compiler outside of the GNU EMACS. I think that would be healthy to
the GNU EMACS community.
E.g. in that experiment where I collect code snippets that all shall
produce the same output and suppress the output unless it does not match
the expected results.
<http://yeti.freeshell.org/brain/unsorted.d/compare-results.org> \\
<http://yeti.freeshell.org/brain/unsorted.d/compare-results.html>
Hey, you're interested in numbers. Cool. I just proved the fundamental theorem of arithmetic (after proving Euclid's Lemma).
Lisp is great and it's not too far away from Elisp. (I loved it.)
Patricia Ferreira <pferreira@example.com> writes:
yeti <yeti@tilde.institute> writes:
|\/| _ _ _ _ _ | | |
| |(_)(_)(_)| | | . . .
I'm hallucinating and still see Patricia here...
;-)
LOL! That was not a lie---but I changed my mind and killed all groups
and left this one. What was annoying me was that I had subscribed to a
lot of groups and they're all quiet, so I wanted to just go away. But
I'll keep this one just to chat with you.
Oh ... nice ... but being one of many here would even be nicer.
Dude, you gotta use a Lisp that doesn't require you to run emacs to
compute it. I wonder why the EMACS people didn't release an interpreter
or compiler outside of the GNU EMACS. I think that would be healthy to
the GNU EMACS community.
Emacs can be started as s script interpreter without staring all the UI parts,
but that doesn't change it's capabilities and I'd perfer a "smaller"
Lisp that compiles to C and/or has a good FFI.
...aaaaand there is the Lisp used in Sawfish (Rep) which claims to be
like Elisp. I never used it outside of Sawfish, but configuring that WM
via Lisp was not a big problem even after not having touched Lisp for decades. I played with Sawfish round about the Debian6-to-7 upgrade
era.
<http://sawfish.tuxfamily.org/> <http://sawfish.tuxfamily.org/librep.html/index.html>
Hey, you're interested in numbers. Cool. I just proved the fundamental
theorem of arithmetic (after proving Euclid's Lemma).
-----------------------------------------------------------------------
3. Hitchhiker 1: (6) He stood up straight and looked the world squarely
in the fields and hills. To add weight to his words he stuck the rabbit
bone in his hair. He spread his arms out wide. (7) "I will go mad!" he announced. -----------------------------------------------------------------------
Primes drive me mad. In a positive way.
I had an overdose of university maths and forgot most of it. I still occasionally like to do weird things with and without maths. Sometimes
it is just comparing code snippets in multiple languages like an own
little Rosetta Code, sometimes numbers or maths are more in the
spotlight than the languages.
Short form: I loved maths until the university destroyed that and now
I only play a bit with it.
The last fun I hat was "transposing" a prime number algorithm I made
years ago by "pulling the sieve of Eratosthenes through a Klein's
bottle" to using unary numbers in plain SH.
yeti <yeti@tilde.institute> writes:
Emacs can be started as s script interpreter without staring all the UI
parts,
Does it also have a REPL? :-) I know you'll say the GNU EMACS, but I
don't think the GNU EMACS offers a typical (ELISP) REPL.
Short form: I loved maths until the university destroyed that and now
I only play a bit with it.
That's sad. What major you were in?
At the university I realized my education wasn't good but I had a
solid understanding of computers and I asked why did that happen---the
answer was ``school never taught me anything about computers''. What
did I do then?
yeti <yeti@tilde.institute> writes:
Emacs can be started as s script interpreter without staring all the UI
parts,
Does it also have a REPL? :-) I know you'll say the GNU EMACS, but I
don't think the GNU EMACS offers a typical (ELISP) REPL.
Short form: I loved maths until the university destroyed that and now
I only play a bit with it.
That's sad. What major you were in?
At the university I realized my education wasn't good but I had a
solid understanding of computers and I asked why did that happen---the
answer was ``school never taught me anything about computers''. What
did I do then?
Executable does NOTHING, when importing srfi-module (but code worksin REPL) #872 \\
Sysop: | deepend |
---|---|
Location: | Calgary, Alberta |
Users: | 262 |
Nodes: | 10 (0 / 10) |
Uptime: | 33:15:44 |
Calls: | 1,880 |
Calls today: | 1 |
Files: | 4,273 |
D/L today: |
27 files (14,110K bytes) |
Messages: | 403,317 |