Giter Site home page Giter Site logo

pirate-lang's Introduction

Calva in GitPod

This is a test/demo project for using Calva in GitPod.

Usage

Installation: Just kidding, there is no installation!

  1. Click this button:
    • It links here: gitpod.io/#https://github.com/PEZ/pirate-lang
    • This will open the repository in a Gitpod workspace in the browser. (Might take a little while.) There will be an instance of VS Code and a VNC window there.
    • NB: If you don't have a Gitpod account, use the option to Sign-up with GitHub.
  2. In the VS Code instance open the VS Code command palette and use the command Start a REPL in your Project and Connect (aka Jack-in).
    • Choose the deps.edn project type.
  3. Hack away! If this is all new and confusing, see New to Clojure below first. Even if you are not new to Clojure, that guide will introduce you to Calva enough to figure this project out.

See a demo first?

Fair enough!

gitpod-vnc-clojure-swing-w-sound.mp4

Please give it a like on Youtube! https://www.youtube.com/watch?v=oXU17qZjtWM

javax.swing Example

When you start this as a Gitpod workspace, it automatically starts a VNC server, so that you can hack out desktup GUI apps. By default it opens a VNC viewer integrated in VS Code. You can pop it out to a separate browser window, if you like.

There's a small swing Hello World example in src/pez/lab/swing_example.clj. You can also just do something like this to open a Swing window:

(comment
  (require 'clojure.inspector)
  (clojure.inspector/inspect (range 7))
)

New to Clojure?

There is not much guidance in this repository for Clojure beginners. You might want to check out this guide first: https://calva.io/get-started-with-clojure/

License

The code in this project is open and free. πŸΊπŸ—½

pirate-lang's People

Contributors

pez avatar shaal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

shaal pez-gh-test

pirate-lang's Issues

Gitpod magic but locally with VSCode devcontainers

Gitpod is good, but require internet connection and works on external machines(performance and security issues).

VSCode could do the same magic, but locally. Documentation: https://code.visualstudio.com/docs/remote/create-dev-container

.gitpod.dockerfile the same thing as .devcontainer/Dockerfile
.gitpod.yml the same thing as .devcontainer/devcontainer.json

Microsoft have official repos for try some popular languages right out-of-the-box: https://github.com/microsoft?utf8=%E2%9C%93&q=vscode-remote-try-
I have found similar solution for Clojure: https://github.com/1and1/vscode-remote-try-clojure
But the problem is a lot of Calva features and nrepl doens't work properly in that repository(obviously too outdated).

So, could we have some vscode-remote-try-clojure with all Calva shiny things for local development?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.