arc

7 stories and discussions about arc, aggregated from every source we track.

2.

Three nerds discussing tech, Apple, programming, and loosely related matters.

14 points•Moonchild•over 4 years ago•18 comments
3.

<p>repl.it released support for Emacs Lisp: <a href="https://twitter.com/amasad/status/1143595381789347840" rel="ugc">https://twitter.com/amasad/status/1143595381789347840</a></p> <p>So I thought I'd dust off my old elisp hack and post it here.</p> <p>Instructions:</p> <ol> <li> <p>Go to <a href="https://repl.it/repls/UnluckySturdyCharactercode" rel="ugc">https://repl.it/repls/UnluckySturdyCharactercode</a></p> </li> <li> <p>press the run button</p> </li> <li> <p>evaluate (setq-local lexical-binding t)</p> </li> <li> <p>now you can run most Scheme expressions via the (scheme ...) macro, and most arc expressions via the (arc ...) macro.</p> </li> </ol> <pre><code>&gt; (setq-local lexical-binding t) t &gt; (arc (def adder (n) (fn (x) (+ x n))) (= add2 (adder 2)) (add2 3)) 5 &gt; (scheme (define (adder n) (lambda (x) (+ x n))) (define add2 (adder 2)) (add2 40)) 42 </code></pre> <p>You can refer to elisp functions by surrounding them in with |bars|:</p> <pre><code>&gt; (scheme (|print| "Hello")) "Hello" &gt; (arc (|buffer-string|)) #("GNU Emacs 25.2.2\n*** Welcome to IELM *** Type (describe-mo\ de) for help.\n ;; Hint: .... </code></pre> <p>The original goal was to provide a <em>realistic</em> way of writing Emacs packages in languages other than Emacs Lisp. By "realistic," I mean that it should be basically a thin syntax wrapper over emacs lisp, not a separate runtime environment. That way you can call Emacs Lisp functions from Arc, call Arc functions from elisp lambdas, and so on.</p> <p>This project comes pretty close to that goal. I never got around to releasing it or putting it up on github. <a href="https://github.com/shawwn/y/blob/abcf6f4406178880390308ff0b782a5ed516c688/y.el" rel="ugc">https://github.com/shawwn/y/blob/abcf6f4406178880390308ff0b782a5ed516c688/y.el</a> is probably better for that purpose anyway.</p> <p>It overrides the default Emacs Lisp reader to support Scheme syntax, which is a testament to how flexible elisp actually is. (It also might be some combination of scary and horrible, depending on who the emotions are being experienced by.)</p> <p>For what it's worth, feel free to take any part of the code and use it however you want.</p> <p>There is a version of this that contains most of the old Hacker News codebase. It was hilarious seeing Emacs Lisp generate nearly identical output to Racket. And it'd be fairly straightforward to connect this to an http socket and serve something similar to <a href="http://arclanguage.org/forum" rel="ugc">http://arclanguage.org/forum</a> from an Emacs-powered webserver.</p>

10 points•shawn•over 7 years ago•0 comments
4.

I spent a weekend benchmarking llama.cpp on my Xiaomi Book Pro 14. The machine has Intel's Core Ultra X7 358H and Arc B390 integrated graphics, with 30 GiB of unified memory. That last part matters. It means the GPU…

4 points•grigio•3 days ago•0 comments•
5.

Arc is a library of React components and blocks with motion built in. Install them with the shadcn CLI, or let your AI tool build from the docs and MCP.

2 points•handfuloflight•about 7 hours ago•0 comments•
6.

Learn how Arc works: a stablecoin-native Layer 1 blockchain built by Circle for payments, FX, and tokenized real-world assets, now supported using OpenSea.

2 points•Bluestein•11 days ago•0 comments•
7.
1 points•g0xA52A2A•1 day ago•0 comments•

Related topics