Coder Social home page Coder Social logo

janet-playground's Introduction

Janet Programming language playground

Here I will put code as I am learning Janet Programming language. There is almost nothing to see here now.

Usage

You will need Janet programming language installed on your computer.

Clone this repo, and cd to it. Then run [sudo] jpm deps do download dependencies. To run any script cd playground.

TCP communication

You can run simple echo server with janet tcp-server.janet. Server is implemented with [juv].

You can connect to it with telnet localhost 8120. You will receive instruction for server controll. Protocol is defined with PEG from Janet standart library in file proto.janet.

Second approach is to run janet tcp-client.janet which should communicate with the server.

cUrl download with jurl

Example of using jurl library in basic-jurl.janet program. You can run it with janet basic-jurl.janet. It will show you http://www.google.com content (oh no it is full of JS) and download some happy tunes.

PEG

PEG from the standart library is used on more places. Very simple example, taken from Janet PEG documentation can be run with janet test-peg.janet.

For me personaly PEG is one the greatest surprises and delights in Janet language.

Numbers walking

Simple tree walker implemented with walk fn from Janet standart library.

Condarr

Simple implementation of cond-> and cond->> ala clojure.

Eventures

Adventures in the ev module.

janet-playground's People

Contributors

pepe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jgarte

janet-playground's Issues

Hello, World!

Hello Pepe

First of all, sorry for popping this message as an issue but I didn't have a good idea on how to reach you the best.

I see you are part of the Janet programming language, which I LOVE really. I follow the development process of Janet since it was born. Its just awesome. After all I see you are active with various Lisp dialects.

I have initialized a series of Lisp dialects most notable: Igel, a Clojure'ish Lisp-dialect intended to be written in VHDL. It would be pretty awesome to work with you together on Lisp dialects. It would be pretty to cool to have some exchange with each other about Lisps. :)

Thanks

Kindest regards

Timo

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.