𓁟 host1.bitchan.one

𓀐 @*oeLnXZs: >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 https://github.com/systemcrafters/crafted-emacs >Learning Emacs C-h t (Interactive Tutorial) https://emacs-config-generator.fly.dev https://systemcrafters.net/emacs-from-scratch http://xahlee.info/emacs https://emacs.tv >Browse imageboards in Emacs Org-Mode https://github.com/eNotchy/4g >Emacs Distros https://github.com/caisah/emacs.dz >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 https://github.com/emacs-tw/awesome-elisp >Common Lisp https://almightylisp.com https://lispcookbook.github.io/cl-cookbook https://cs.cmu.edu/~dst/LispBook https://gigamonkeys.com/book https://lisp-docs.github.io https://awesome-cl.com >Scheme https://scheme.org https://standards.scheme.org https://go.scheme.org/awesome https://research.scheme.org/lambda-papers >Clojure https://clojure.org https://clojure-doc.org https://clojure.land https://www.clojure-toolbox.com https://mooc.fi/courses/2014/clojure https://jafingerhut.github.io/cheatsheet/clojuredocs/cheatsheet-tiptip-cdocs-summary.html >Other https://github.com/dundalek/awesome-lisp-languages >Guix https://guix.gnu.org https://nonguix.org https://systemcrafters.net/craft-your-system-with-guix https://futurile.net/resources/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://lisp.nexus https://rentry.org/lispresources (set! thread-link >>>/g/lisp) (set! prev-thread )

And yet here's what some old school Java looks like, which is part of why so many of us flocked to dynamically typed languages final String jsonPayload = "{\n" + " \"name\": \"Jane Doe\",\n" + " \"email\": \"jane.doe@example.com\"\n" + "}\n"; final ExecutorService executor = Executors.newFixedThreadPool(1); Future<String> futureResponse = executor.submit(new Callable<String>() { @Override public String call() throws Exception { HttpURLConnection connection = null; try { URL url = new URL("https://example.com"); connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/json"); connection.setDoOutput(true); try (DataOutputStream wr = new DataOutputStream(connection.getOutputStream())) { wr.writeBytes(jsonPayload); wr.flush(); } int responseCode = connection.getResponseCode(); StringBuilder response = new StringBuilder(); try (BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()))) { String inputLine; while ((inputLine = in.readLine()) != null) { response.append(inputLine); } } return response.toString(); } finally { if (connection != null) { connection.disconnect(); } } } }); try { String response = futureResponse.get(); formatResponse(response); } catch (Exception e) { e.printStackTrace(); } finally { executor.shutdown(); }

⧖expiring ~22d0/1 kept1w ago

𓀐 @V+PpkH9G

⏱ 1w 👍 0

⬆ upvote 0