cmd
Ammonite-Ops
cmd | Ammonite-Ops | |
---|---|---|
10 | 15 | |
63 | 2,589 | |
- | 0.3% | |
2.3 | 8.5 | |
12 months ago | about 11 hours ago | |
Common Lisp | Scala | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cmd
- Getting started with lisp
-
writing scripts in lisp
In CL, there is also https://github.com/ruricolist/cmd on top of uiop:run-program / launch-program to quickly run commands.
-
Running docker commands from Common Lisp REPLs
+1. To write quick shell commands, see also cmd: https://github.com/ruricolist/cmd
-
Portable Lisp Dialects with Solid UNIX and Systems Programming Support?
A nice library that makes running shell programs even easier than uiop:run-program: https://github.com/ruricolist/cmd
-
How to run external commands?
uiop:run/launch-program (sync/async): https://lispcookbook.github.io/cl-cookbook/os.html#running-external-programs and the handy cmd which builds on it: https://github.com/ruricolist/cmd
-
[Common Lisp] Best Libraries for Interfacing with UNIX-like Operating Systems?
Some ideas/reminders/pointers: do not miss uiop:run-process and launch-process to run (a)sync programs; see cmd for an easier to use equivalent; see file-object-finder for a high-level lib around files (it handles file permissions). clawk replaces AWK.
-
Guides on Learning to Use Lisp Instead of Shell Script?
To operate on files and directories, see UIOP and this new library: https://github.com/Ambrevar/fof (File Object Finder). You could start using the Lem editor and Lisp REPL, the Nyxt browser, this basic file manager (https://github.com/szos/CLFM), cmd to fire external commands (https://github.com/ruricolist/cmd).
-
A Lisp REPL as my main shell
There is https://github.com/ruricolist/cmd in particular which is very helpful.
I'm going to publish a few more libraries which should help with file manipulation (as I demoed it).
Stay tuned!
-
ruricolist/cmd - utility for running external programs.
As for cmd, I just cloned it into local-projects, so it's the development version. This seems to be the line where exo is called and I don't think it's defined anywhere: https://github.com/ruricolist/cmd/blob/master/cmd.lisp#L374
Ammonite-Ops
- RFC: A Path Forward for Ammonite REPL and Scripts in 2023 and Beyond
-
Does ammonite support indent based syntax?
The indent based syntax is only available in Scala 3, you have to download a matching ammonite version from https://github.com/com-lihaoyi/Ammonite/releases
-
Scala Isn't Fun Anymore
That's funny, because this is what I really like about Scala; how quick and easy it is to get a project started.
> sbt new scala/scala3.g8
will just create an empty project. If you don't even want to bother with a project, use use scala-cli or ammonite (http://ammonite.io/) to just start banging out code.
Even the upgrading of a project from Scala2 to Scala3 is a breeze, thanks to very good backwards compatibility of new library releases.
-
No build target could be found
Ammonite is a very good REPL for Scala. You can invoke it with amm and type expressions into it, or load a Scala “script file” whose name ends with .sc into it, or many other things. It’s documented at https://ammonite.io. 2. sbt is the dominant build tool for Scala projects. As others have commented, when you open a folder in Visual Studio Code and try to make Metals “aware of it,” it expects to find a “Scala project” in the folder. A “Scala project” isn’t just Scala source code. See https://www.scala-sbt.org for details. 3. Also be aware that Metals supports worksheets, so you can easily experiment with code in your project interactively, too.
- A Python-compatible statically typed language erg-lang/erg
-
Scala 3 Reflection
Scripting API is quite limited, so the third option. - reuse the ammonite scripts https://github.com/com-lihaoyi/Ammonite or look how this is implemented (using internal compiler API),
-
New to Scala
Your exposure to Functional Programming with Haskell and Clojure suggest you will certainly pick up Scala quickly. With ZIO and cats, you can write robust software quickly. Consider the excellent Coursera Scala course. Get "the Red Book" https://www.manning.com/books/functional-programming-in-scala, and most important, play. Experiment to see how things work. Get https://ammonite.io/
-
Audacity Fork Without Any Sentry Telemetry or Crash Reporting
Here's an example of a smaller project that added telemetry without suffering a fork:
https://github.com/com-lihaoyi/Ammonite/issues/607
-
Scripting with Java – Improving Approachability
Or ammonite - I've ran Gatling performance test from a simple script based on this gist it fetches all the dependencies, compiles and runs the test, producing nice html report..
-
25 years of OCaml
Scala with the Typelevel ecosystem. Stay on the jVM, but have a much more pleasant and robust experience, including a great REPL.
What are some alternatives?
CLFM - Common Lisp File Manager
better-files - Simple, safe and intuitive Scala I/O
scsh - A Unix shell embedded in scheme
Shapeless - Generic programming for Scala
linedit - Readline-style line-editor for Common Lisp.
Scalaz - Principled Functional Programming in Scala
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.
calculator - Windows Calculator: A simple yet powerful calculator that ships with Windows
lish - Lisp Shell
cats - Lightweight, modular, and extensible library for functional programming.
pipeline
scala.meta - Library to read, analyze, transform and generate Scala programs