7 ms·
This is amazing. Is there a syntax highlighting and linter kind of things for the "Arc" language? If it's possible, I would like to try that. I love how Lisp lo
by fatih-erikli 5y ago
This is amazing. Is there a syntax highlighting and linter kind of things for the "Arc" language? If it's possible, I would like to try that. I love how Lisp looks like.
- sillysaurusx 5y agoIndeed there is. I've been using this vim plugin for over a decade: https://www.vim.org/scripts/script.php?script_id=2720 https://www.vim.org/scripts/script.php?script_id=2720 Which IDE do you like? I'll see about getting some highlighting for it. As for actually running arc, it’s hard to run the original arc3.1 due to racket updates. I’ve made a few branches over the years that try to preserve the original spirit of arc (no significant changes) while making it easy to run. Try this one: https://github.com/tensorfork/tlarc https://github.com/tensorfork/tlarc I believe you can simply install racket, then run make && bin/arc and be dropped into a repl. From there you can follow the arc tutorial, whose link I’ll dig up after I’m finished driving home. EDIT: That fork is actually a lot different from arc3.1 proper. I’ll try to locate a more faithful one. EDIT 2: Unfortunately it's quite a lot of work to remove the mzscheme dependency from the old arc3.1 codebase. And I'm not sure it's even possible to install the mzscheme lib on the latest racket (e.g. `brew install racket` doesn't seem to have it). So the above instructions are the best I can do for now.
- fatih-erikli 5y agoI use Visual studio code, I couldn't find it in Extensions. I'm just asking out of curiosity, What do you develop with Arc usually? I like how the "html" and "css" part was embedded in that "news.arc" file. Do you think that VIM script will highlight and lint the "css" part of an "arc" file?
- sillysaurusx 5y ago> What do you develop with Arc usually? I try to use Arc for as much as possible. We wrote our TPU monitoring software in it: http://tensorfork.com/tpus http://tensorfork.com/tpus Eventually I became frustrated with Racket's FFI. So I eventually made my own arclike language called elflang: https://github.com/elflang/elf https://github.com/elflang/elf ... which itself is a fork of Lumen (https://github.com/sctb/lumen https://github.com/sctb/lumen) by Scott Bell. The performance is good enough to run a minecraft-style game engine: https://i.imgur.com/iyr0YrB.png https://i.imgur.com/iyr0YrB.png which was satisfying. Nowadays I've been trying to implement Bel, mostly for the challenge of it than for any practical reason. > I like how the "html" and "css" part was embedded in that "news.arc" file. Do you think that VIM script will highlight and lint the "css" part of an "arc" file? Nope. https://i.imgur.com/o9aUG6j.png https://i.imgur.com/o9aUG6j.png But it has one very important feature: it can properly highlight atstrings: https://i.imgur.com/wO4f742.png https://i.imgur.com/wO4f742.png It's probably hard to tell, but the "@(hexrep border-color*)" would normally be highlighted as if it were a string. Arc has a feature called atstrings, where you can use @foo to reference the enclosing variable "foo". It can also call functions, e.g. "The value of 1 plus 2 is @(+ 1 2)" will become "The value of 1 plus 2 is 3".